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);
std::pair< ResourcePtr, bool > ResourceCreateOrRetrieveResult
Combination of HBU_STATIC and HBU_WRITE_ONLY.
Implementation of a Quaternion, i.e.
HardwareBuffer::Usage indexBufferUsage
static String AUTODETECT_RESOURCE_GROUP_NAME
Special resource group name which causes resource group to be automatically determined based on searc...
The side from which u goes right and v goes up (as in texture coords)
float Real
Software floating point type.
Abstract class representing a loadable resource (e.g.
Interface describing a manual resource loader.
unsigned long long int ResourceHandle
map< Resource *, MeshBuildParams >::type MeshBuildParamsMap
Map from resource pointer to parameter set.
Defines a plane in 3D space.
Defines a part of a complete mesh.
MeshSerializerListener * mListener
Standard 3-dimensional vector.
MeshBuildType
Enum identifying the types of manual mesh built by this manager.
This class declares the format of a set of vertex inputs, which can be issued to the rendering API th...
bool mPrepAllMeshesForShadowVolumes
Combination of HBU_DYNAMIC and HBU_WRITE_ONLY.
HardwareBuffer::Usage vertexBufferUsage
map< String, String >::type NameValuePairList
Name / value parameter pair (first = name, second = value)
Resource holding data about 3D mesh.
Usage
Enums describing buffer usage; not mutually exclusive.
static const Vector3 UNIT_Y
Handles the management of mesh resources.
Defines a generic resource handler.
Saved parameters used to (re)build a manual mesh built by this class.
Template class for creating single-instance global classes.
static const Quaternion IDENTITY
Real mBoundsPaddingFactor
MeshBuildParamsMap mMeshBuildParams
unsigned short numTexCoordSets