28 #ifndef __MeshManager_H__
29 #define __MeshManager_H__
43 class MeshSerializerListener;
66 void _initialise(
void);
98 bool vertexBufferShadowed =
true,
bool indexBufferShadowed =
true);
124 bool vertexBufferShadowed =
true,
bool indexBufferShadowed =
true);
150 bool vertexBufferShadowed =
true,
bool indexBufferShadowed =
true);
211 int xsegments = 1,
int ysegments = 1,
212 bool normals =
true,
unsigned short numTexCoordSets = 1,
216 bool vertexShadowBuffer =
true,
bool indexShadowBuffer =
true);
269 MeshPtr createCurvedIllusionPlane(
272 int xsegments = 1,
int ysegments = 1,
273 bool normals =
true,
unsigned short numTexCoordSets = 1,
278 bool vertexShadowBuffer =
true,
bool indexShadowBuffer =
true,
279 int ySegmentsToKeep = -1);
325 int xsegments = 1,
int ysegments = 1,
326 bool normals =
false,
unsigned short numTexCoordSets = 1,
330 bool vertexShadowBuffer =
true,
bool indexShadowBuffer =
true);
369 const String& name,
const String& groupName,
void* controlPointBuffer,
376 bool vbUseShadow =
true,
bool ibUseShadow =
true);
381 void setPrepareAllMeshesForShadowVolumes(
bool enable);
383 bool getPrepareAllMeshesForShadowVolumes(
void);
421 Real getBoundsPaddingFactor(
void);
425 void setBoundsPaddingFactor(
Real paddingFactor);
446 void tesselate2DMesh(
SubMesh* pSub,
unsigned short meshWidth,
unsigned short meshHeight,
447 bool doubleSided =
false,
449 bool indexSysMem =
false);
451 void createPrefabPlane(
void);
452 void createPrefabCube(
void);
453 void createPrefabSphere(
void);
unsigned short numTexCoordSets
float Real
Software floating point type.
bool mPrepAllMeshesForShadowVolumes
map< String, String >::type NameValuePairList
Name / value parameter pair (first = name, second = value)
Defines a plane in 3D space.
Template class for creating single-instance global classes.
Combination of HBU_STATIC and HBU_WRITE_ONLY.
static String AUTODETECT_RESOURCE_GROUP_NAME
Special resource group name which causes resource group to be automatically determined based on searc...
Interface describing a manual resource loader.
MeshSerializerListener * mListener
Implementation of a Quaternion, i.e.
MeshBuildType
Enum identifying the types of manual mesh built by this manager.
HardwareBuffer::Usage vertexBufferUsage
static const Quaternion IDENTITY
map< Resource *, MeshBuildParams >::type MeshBuildParamsMap
Map from resource pointer to parameter set.
MeshBuildParamsMap mMeshBuildParams
Combination of HBU_DYNAMIC and HBU_WRITE_ONLY.
std::pair< ResourcePtr, bool > ResourceCreateOrRetrieveResult
Usage
Enums describing buffer usage; not mutually exclusive.
HardwareBuffer::Usage indexBufferUsage
Defines a part of a complete mesh.
Saved parameters used to (re)build a manual mesh built by this class.
Standard 3-dimensional vector.
Abstract class representing a loadable resource (e.g.
unsigned long long int ResourceHandle
This class declares the format of a set of vertex inputs, which can be issued to the rendering API th...
Handles the management of mesh resources.
Defines a generic resource handler.
static const Vector3 UNIT_Y
The side from which u goes right and v goes up (as in texture coords)
Resource holding data about 3D mesh.
Real mBoundsPaddingFactor