mirror of
https://github.com/nicbarker/clay.git
synced 2025-04-23 22:58:06 +00:00
Compare commits
2 Commits
ddb13a717e
...
1200ad4dfc
Author | SHA1 | Date | |
---|---|---|---|
|
1200ad4dfc | ||
|
5e1e807358 |
4
clay.h
4
clay.h
@ -396,7 +396,7 @@ CLAY__WRAPPER_STRUCT(Clay_TextElementConfig);
|
|||||||
|
|
||||||
// Controls various settings related to image elements.
|
// Controls various settings related to image elements.
|
||||||
typedef struct {
|
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_Dimensions sourceDimensions; // The original dimensions of the source image, used to control aspect ratio.
|
||||||
} Clay_ImageElementConfig;
|
} Clay_ImageElementConfig;
|
||||||
|
|
||||||
@ -560,7 +560,7 @@ typedef struct {
|
|||||||
// The original dimensions of the source image, used to control aspect ratio.
|
// The original dimensions of the source image, used to control aspect ratio.
|
||||||
Clay_Dimensions sourceDimensions;
|
Clay_Dimensions sourceDimensions;
|
||||||
// A pointer transparently passed through from the original element definition, typically used to represent image data.
|
// A pointer transparently passed through from the original element definition, typically used to represent image data.
|
||||||
void* imageData;
|
const void* imageData;
|
||||||
} Clay_ImageRenderData;
|
} Clay_ImageRenderData;
|
||||||
|
|
||||||
// Render command data when commandType == CLAY_RENDER_COMMAND_TYPE_CUSTOM
|
// Render command data when commandType == CLAY_RENDER_COMMAND_TYPE_CUSTOM
|
||||||
|
Loading…
Reference in New Issue
Block a user