#include <glib.h>
#include "mape/cpp-handles/group-handle.h"
#include "mape/cpp-handles/texture-handle.h"
Go to the source code of this file.
Typedefs | |
typedef typedefG_BEGIN_DECLS struct _C4MaterialHandle | C4MaterialHandle |
typedef struct _C4MaterialMapHandle | C4MaterialMapHandle |
Functions | |
C4MaterialMapHandle * | c4_material_map_handle_new (void) |
void | c4_material_map_handle_free (C4MaterialMapHandle *material_map) |
guint | c4_material_map_handle_load (C4MaterialMapHandle *material_map, C4GroupHandle *group) |
void | c4_material_map_crossmap_materials (C4MaterialMapHandle *material_map, C4TextureMapHandle *texture_map) |
guint | c4_material_map_handle_get_num (C4MaterialMapHandle *material_map) |
C4MaterialHandle * | c4_material_map_handle_get_material (C4MaterialMapHandle *material_map, guint index) |
const gchar * | c4_material_handle_get_name (C4MaterialHandle *material) |
const gchar * | c4_material_handle_get_texture_overlay (C4MaterialHandle *material) |
typedef typedefG_BEGIN_DECLS struct _C4MaterialHandle C4MaterialHandle |
Definition at line 24 of file material-handle.h.
typedef struct _C4MaterialMapHandle C4MaterialMapHandle |
Definition at line 24 of file material-handle.h.
const gchar* c4_material_handle_get_name | ( | C4MaterialHandle * | material | ) |
Definition at line 85 of file material-handle.cpp.
References HANDLE_TO_MATERIAL.
Referenced by mape_material_get_name(), and mape_material_map_get_material_by_name().
const gchar* c4_material_handle_get_texture_overlay | ( | C4MaterialHandle * | material | ) |
Definition at line 89 of file material-handle.cpp.
References HANDLE_TO_MATERIAL.
Referenced by mape_material_get_texture_overlay().
void c4_material_map_crossmap_materials | ( | C4MaterialMapHandle * | material_map, |
C4TextureMapHandle * | texture_map | ||
) |
Definition at line 55 of file material-handle.cpp.
References C4Material::DefaultMatTex, StdStrBuf::getData(), HANDLE_TO_MATERIAL_MAP, HANDLE_TO_TEXTURE_MAP, C4MaterialCore::Name, and C4MaterialCore::sTextureOverlay.
Referenced by mape_material_map_set_default_textures().
void c4_material_map_handle_free | ( | C4MaterialMapHandle * | material_map | ) |
Definition at line 45 of file material-handle.cpp.
C4MaterialHandle* c4_material_map_handle_get_material | ( | C4MaterialMapHandle * | material_map, |
guint | index | ||
) |
Definition at line 79 of file material-handle.cpp.
References HANDLE_TO_MATERIAL_MAP, and MATERIAL_TO_HANDLE.
Referenced by mape_material_map_get_material_by_name().
guint c4_material_map_handle_get_num | ( | C4MaterialMapHandle * | material_map | ) |
Definition at line 74 of file material-handle.cpp.
References HANDLE_TO_MATERIAL_MAP.
Referenced by mape_material_map_get_material(), mape_material_map_get_material_by_name(), and mape_material_map_get_material_count().
guint c4_material_map_handle_load | ( | C4MaterialMapHandle * | material_map, |
C4GroupHandle * | group | ||
) |
Definition at line 50 of file material-handle.cpp.
References HANDLE_TO_GROUP, and HANDLE_TO_MATERIAL_MAP.
Referenced by mape_material_map_load().
C4MaterialMapHandle* c4_material_map_handle_new | ( | void | ) |
Definition at line 34 of file material-handle.cpp.
References C4MaterialMap::Clear(), MATERIAL_MAP_TO_HANDLE, and MaterialMap.