37 void Enabled(
bool value,
MeshObject *client = 0);
38 bool ChangeTexture(
const std::string &old_texture,
const std::string &new_texture,
MeshObject *client = 0);
39 void EnableDebugView(
bool value,
MeshObject *client = 0);
41 bool IsVisible(Ogre::Camera *camera,
MeshObject *client = 0);
42 bool IsVisible(Ogre::Camera *camera,
int mesh_index);
44 bool LoadFromFile(
const std::string &filename,
const std::string &path);
45 bool LoadFromMesh(
const std::string &meshname);
52 int GetMaterials(std::vector<std::string> &materials,
int client = -1);
53 int GetMaterialCount(
int client = -1);
54 unsigned int GetVertexCount(
const std::string &material =
"",
int client = -1);
55 unsigned int GetTriangleCount(
const std::string &material,
int &client_count,
int client = -1);
56 unsigned int GetIndexOffset(
MeshObject *client);
58 void UpdateVertices(
MeshObject *client,
const std::string &material =
"",
Polygon *polygon = 0,
bool single =
false);
61 int GetSubMeshCount(
int mesh_index);
62 std::string GetMeshName(
int mesh_index);
63 Ogre::AxisAlignedBox GetBounds(
MeshObject *client = 0);
64 void EnableShadows(
bool value);
65 void SetMaterial(
const std::string& material);
74 Mesh(
DynamicMesh *parent,
const std::string &name,
SceneNode *node,
Real max_render_distance,
const std::string &filename =
"",
const std::string &meshname =
"",
const std::string & path =
"");
76 void Enabled(
bool value);
77 bool ChangeTexture(
const std::string &old_texture,
const std::string &new_texture);
78 int FindMatchingSubMesh(
const std::string &material);
79 Submesh* CreateSubMesh(
const std::string &material);
80 void DeleteSubMesh(
int client,
int index);
81 void Prepare(
bool process_vertices =
true,
int client = -1);
82 void EnableDebugView(
bool value);
84 bool IsVisible(Ogre::Camera *camera);
85 int GetSubMeshCount();
86 void UpdateVertices(
int client,
const std::string &material,
Polygon *polygon = 0,
bool single =
false);
88 void UpdateBoundingBox();
89 void EnableShadows(
bool value);
90 void SetMaterial(
const std::string& material);
unsigned int vertex_offset
unsigned int vertex_count
Ogre::AxisAlignedBox * bounds