Skip to content

Commit

Permalink
Add Clay_IsDebugModeEnabled() (#130)
Browse files Browse the repository at this point in the history
  • Loading branch information
juniorrantila authored Dec 29, 2024
1 parent 5831a8a commit c24a41b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions clay.h
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,7 @@ void Clay_SetMeasureTextFunction(Clay_Dimensions (*measureTextFunction)(Clay_Str
void Clay_SetQueryScrollOffsetFunction(Clay_Vector2 (*queryScrollOffsetFunction)(uint32_t elementId));
Clay_RenderCommand * Clay_RenderCommandArray_Get(Clay_RenderCommandArray* array, int32_t index);
void Clay_SetDebugModeEnabled(bool enabled);
bool Clay_IsDebugModeEnabled(void);
void Clay_SetCullingEnabled(bool enabled);
void Clay_SetMaxElementCount(uint32_t maxElementCount);
void Clay_SetMaxMeasureTextCacheWordCount(uint32_t maxMeasureTextCacheWordCount);
Expand Down Expand Up @@ -3852,6 +3853,11 @@ void Clay_SetDebugModeEnabled(bool enabled) {
Clay__debugModeEnabled = enabled;
}

CLAY_WASM_EXPORT("Clay_IsDebugModeEnabled")
bool Clay_IsDebugModeEnabled(void) {
return Clay__debugModeEnabled;
}

CLAY_WASM_EXPORT("Clay_SetCullingEnabled")
void Clay_SetCullingEnabled(bool enabled) {
Clay__disableCulling = !enabled;
Expand Down

0 comments on commit c24a41b

Please sign in to comment.