20 #define TEXTURE_MAP_TO_HANDLE(texture_map) (reinterpret_cast<C4TextureMapHandle*>(texture_map))
21 #define HANDLE_TO_TEXTURE_MAP(handle) (reinterpret_cast<C4TextureMap*>(handle))
23 #define GROUP_TO_HANDLE(group) (reinterpret_cast<C4GroupHandle*>(group))
24 #define HANDLE_TO_GROUP(handle) (reinterpret_cast<C4Group*>(handle))
47 bool fOverloadMaterials =
false;
48 bool fOverloadTextures =
false;
50 if(overload_materials) *overload_materials = fOverloadMaterials;
51 if(overload_textures) *overload_textures = fOverloadTextures;
58 if(!result)
return FALSE;
76 if(!entry)
return nullptr;
83 if(!entry)
return nullptr;
const char * GetTextureName() const
const char * GetMaterialName() const
typedefG_BEGIN_DECLS struct _C4GroupHandle C4GroupHandle
guint32 c4_texture_handle_get_average_texture_color(C4TextureMapHandle *texture_map, const char *name)
const char * c4_texture_handle_get_entry_material_name(C4TextureMapHandle *texture_map, guint index)
#define TEXTURE_MAP_TO_HANDLE(texture_map)
const char * c4_texture_map_handle_get_texture(C4TextureMapHandle *texture_map, guint index)
const char * c4_texture_handle_get_entry_texture_name(C4TextureMapHandle *texture_map, guint index)
gboolean c4_texture_map_handle_add_texture(C4TextureMapHandle *texture_map, const char *texture, guint32 avg_color)
C4TextureMapHandle * c4_texture_map_handle_new(void)
#define HANDLE_TO_GROUP(handle)
#define HANDLE_TO_TEXTURE_MAP(handle)
void c4_texture_map_handle_free(C4TextureMapHandle *texture_map)
guint c4_texture_map_handle_load_map(C4TextureMapHandle *texture_map, C4GroupHandle *group, const char *entry_name, gboolean *overload_materials, gboolean *overload_textures)
typedefG_BEGIN_DECLS struct _C4TextureMapHandle C4TextureMapHandle