mirror of
https://github.com/nicbarker/clay.git
synced 2025-04-22 06:08:03 +00:00
Compare commits
2 Commits
173e026ca3
...
67e5fac1ac
Author | SHA1 | Date | |
---|---|---|---|
|
67e5fac1ac | ||
|
c24a41b9e4 |
6
clay.h
6
clay.h
@ -466,6 +466,7 @@ void Clay_SetMeasureTextFunction(Clay_Dimensions (*measureTextFunction)(Clay_Str
|
|||||||
void Clay_SetQueryScrollOffsetFunction(Clay_Vector2 (*queryScrollOffsetFunction)(uint32_t elementId));
|
void Clay_SetQueryScrollOffsetFunction(Clay_Vector2 (*queryScrollOffsetFunction)(uint32_t elementId));
|
||||||
Clay_RenderCommand * Clay_RenderCommandArray_Get(Clay_RenderCommandArray* array, int32_t index);
|
Clay_RenderCommand * Clay_RenderCommandArray_Get(Clay_RenderCommandArray* array, int32_t index);
|
||||||
void Clay_SetDebugModeEnabled(bool enabled);
|
void Clay_SetDebugModeEnabled(bool enabled);
|
||||||
|
bool Clay_IsDebugModeEnabled(void);
|
||||||
void Clay_SetCullingEnabled(bool enabled);
|
void Clay_SetCullingEnabled(bool enabled);
|
||||||
void Clay_SetMaxElementCount(uint32_t maxElementCount);
|
void Clay_SetMaxElementCount(uint32_t maxElementCount);
|
||||||
void Clay_SetMaxMeasureTextCacheWordCount(uint32_t maxMeasureTextCacheWordCount);
|
void Clay_SetMaxMeasureTextCacheWordCount(uint32_t maxMeasureTextCacheWordCount);
|
||||||
@ -3838,6 +3839,11 @@ void Clay_SetDebugModeEnabled(bool enabled) {
|
|||||||
Clay__debugModeEnabled = enabled;
|
Clay__debugModeEnabled = enabled;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CLAY_WASM_EXPORT("Clay_IsDebugModeEnabled")
|
||||||
|
bool Clay_IsDebugModeEnabled(void) {
|
||||||
|
return Clay__debugModeEnabled;
|
||||||
|
}
|
||||||
|
|
||||||
CLAY_WASM_EXPORT("Clay_SetCullingEnabled")
|
CLAY_WASM_EXPORT("Clay_SetCullingEnabled")
|
||||||
void Clay_SetCullingEnabled(bool enabled) {
|
void Clay_SetCullingEnabled(bool enabled) {
|
||||||
Clay__disableCulling = !enabled;
|
Clay__disableCulling = !enabled;
|
||||||
|
Loading…
Reference in New Issue
Block a user