| 12 | }; |
| 13 | |
| 14 | struct 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 | |
| 26 | UserData* AllocUserData(lua_State* L, Type type, i32 width, i32 height); |
| 27 | i64 GetUserDataSize(UserData* pUserData); |
nothing calls this directly
no outgoing calls
no test coverage detected