| 1075 | } |
| 1076 | |
| 1077 | static inline const char* AssetHandleToString(dmGraphics::HAssetHandle asset_handle, char* buf, uint32_t buf_size) |
| 1078 | { |
| 1079 | dmSnPrintf(buf, buf_size, "(asset %d type=%s)", |
| 1080 | dmGraphics::GetOpaqueHandle(asset_handle), |
| 1081 | dmGraphics::GetAssetTypeLiteral(dmGraphics::GetAssetType(asset_handle))); |
| 1082 | return buf; |
| 1083 | } |
| 1084 | |
| 1085 | static dmGraphics::HAssetHandle CheckAssetHandle(lua_State* L, int index, dmGraphics::HContext graphics_context, dmGraphics::AssetType expected_type) |
| 1086 | { |
no test coverage detected