MCPcopy Create free account
hub / github.com/DavidColson/Polybox / UserData

Class UserData

source/userdata.h:14–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12};
13
14struct UserData {
15 i32 width;
16 i32 height;
17 Type type;
18 u8* pData;
19
20 // used when the userdata contains an image
21 sg_image img;
22 bool dirty;
23 bool dynamic;
24};
25
26UserData* AllocUserData(lua_State* L, Type type, i32 width, i32 height);
27i64 GetUserDataSize(UserData* pUserData);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected