mirror of
https://github.com/nicbarker/clay.git
synced 2025-04-23 22:58:06 +00:00
Compare commits
3 Commits
b183b51463
...
73c0126a9d
Author | SHA1 | Date | |
---|---|---|---|
|
73c0126a9d | ||
|
982ade4cf9 | ||
|
5e1e807358 |
8
clay.h
8
clay.h
@ -102,6 +102,10 @@
|
||||
|
||||
static uint8_t CLAY__ELEMENT_DEFINITION_LATCH;
|
||||
|
||||
// GCC marks the above CLAY__ELEMENT_DEFINITION_LATCH as an unused variable for files that include clay.h but don't declare any layout
|
||||
// This is to suppress that warning
|
||||
static inline void Clay__SuppressUnusedLatchDefinitionVariableWarning(void) { (void) CLAY__ELEMENT_DEFINITION_LATCH; }
|
||||
|
||||
// Publicly visible layout element macros -----------------------------------------------------
|
||||
|
||||
/* This macro looks scary on the surface, but is actually quite simple.
|
||||
@ -392,7 +396,7 @@ CLAY__WRAPPER_STRUCT(Clay_TextElementConfig);
|
||||
|
||||
// Controls various settings related to image elements.
|
||||
typedef struct {
|
||||
void* imageData; // A transparent pointer used to pass image data through to the renderer.
|
||||
const void* imageData; // A transparent pointer used to pass image data through to the renderer.
|
||||
Clay_Dimensions sourceDimensions; // The original dimensions of the source image, used to control aspect ratio.
|
||||
} Clay_ImageElementConfig;
|
||||
|
||||
@ -556,7 +560,7 @@ typedef struct {
|
||||
// The original dimensions of the source image, used to control aspect ratio.
|
||||
Clay_Dimensions sourceDimensions;
|
||||
// A pointer transparently passed through from the original element definition, typically used to represent image data.
|
||||
void* imageData;
|
||||
const void* imageData;
|
||||
} Clay_ImageRenderData;
|
||||
|
||||
// Render command data when commandType == CLAY_RENDER_COMMAND_TYPE_CUSTOM
|
||||
|
Loading…
Reference in New Issue
Block a user