mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-04-19 19:40:00 +03:00
feat(gx): add setter for screen layer rect
This commit is contained in:
parent
fad901796c
commit
6e48b775aa
@ -208,6 +208,10 @@ void ScrnLayerCreate(const RECTF* rect, float zOrder, uint32_t flags, void* para
|
||||
*layerPtr = HandleCreate(layer);
|
||||
}
|
||||
|
||||
void ScrnLayerSetRect(HLAYER layer, const RECTF* rect) {
|
||||
static_cast<CILayer*>(HandleDereference(layer))->rect = *rect;
|
||||
}
|
||||
|
||||
void ScrnSetStockFont(SCRNSTOCK stockID, const char* fontTexturePath) {
|
||||
if (s_stockObjects[stockID]) {
|
||||
HandleClose(s_stockObjects[stockID]);
|
||||
|
@ -44,6 +44,8 @@ void ScrnInitialize(int32_t a1);
|
||||
|
||||
void ScrnLayerCreate(const RECTF* rect, float zOrder, uint32_t flags, void* param, void (*paintFunc)(void*, const RECTF*, const RECTF*, float), HLAYER* layerPtr);
|
||||
|
||||
void ScrnLayerSetRect(HLAYER layer, const RECTF* rect);
|
||||
|
||||
void ScrnSetStockFont(SCRNSTOCK stockID, const char* fontTexturePath);
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user