#include "C4Include.h"
#include "landscape/C4Material.h"
#include "landscape/C4Texture.h"
#include "mape/cpp-handles/material-handle.h"
Go to the source code of this file.
Macros | |
#define | MATERIAL_MAP_TO_HANDLE(material_map) (reinterpret_cast<C4MaterialMapHandle*>(material_map)) |
#define | HANDLE_TO_MATERIAL_MAP(handle) (reinterpret_cast<C4MaterialMap*>(handle)) |
#define | MATERIAL_TO_HANDLE(material) (reinterpret_cast<C4MaterialHandle*>(material)) |
#define | HANDLE_TO_MATERIAL(handle) (reinterpret_cast<C4Material*>(handle)) |
#define | HANDLE_TO_TEXTURE_MAP(handle) (reinterpret_cast<C4TextureMap*>(handle)) |
#define | GROUP_TO_HANDLE(group) (reinterpret_cast<C4GroupHandle*>(group)) |
#define | HANDLE_TO_GROUP(handle) (reinterpret_cast<C4Group*>(handle)) |
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) |
#define GROUP_TO_HANDLE | ( | group | ) | (reinterpret_cast<C4GroupHandle*>(group)) |
Definition at line 29 of file material-handle.cpp.
#define HANDLE_TO_GROUP | ( | handle | ) | (reinterpret_cast<C4Group*>(handle)) |
Definition at line 30 of file material-handle.cpp.
#define HANDLE_TO_MATERIAL | ( | handle | ) | (reinterpret_cast<C4Material*>(handle)) |
Definition at line 25 of file material-handle.cpp.
#define HANDLE_TO_MATERIAL_MAP | ( | handle | ) | (reinterpret_cast<C4MaterialMap*>(handle)) |
Definition at line 22 of file material-handle.cpp.
#define HANDLE_TO_TEXTURE_MAP | ( | handle | ) | (reinterpret_cast<C4TextureMap*>(handle)) |
Definition at line 27 of file material-handle.cpp.
#define MATERIAL_MAP_TO_HANDLE | ( | material_map | ) | (reinterpret_cast<C4MaterialMapHandle*>(material_map)) |
Definition at line 21 of file material-handle.cpp.
#define MATERIAL_TO_HANDLE | ( | material | ) | (reinterpret_cast<C4MaterialHandle*>(material)) |
Definition at line 24 of file material-handle.cpp.
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.