28 #ifndef __PatchMesh_H__
29 #define __PatchMesh_H__
59 void update(
void* controlPointBuffer,
size_t width,
size_t height,
60 size_t uMaxSubdivisionLevel,
size_t vMaxSubdivisionLevel,
63 void define(
void* controlPointBuffer,
70 bool vbUseShadow =
false,
bool ibUseShadow =
false);
75 void setSubdivision(
Real factor);
114 if (pRep == static_cast<PatchMesh*>(r.
getPointer()))
133 assert(r.
isNull() &&
"RHS must be null if it has no mutex!");
141 if (pRep == static_cast<PatchMesh*>(r.
getPointer()))
VertexDeclaration * mDeclaration
Vertex declaration, cloned from the input.
PatchMeshPtr & operator=(const MeshPtr &r)
Operator used to convert a MeshPtr to a PatchMeshPtr.
float Real
Software floating point type.
PatchMeshPtr(const PatchMeshPtr &r)
void prepareImpl(void)
Overridden from Resource - do nothing (no disk caching)
PatchMeshPtr(const ResourcePtr &r)
PatchMeshPtr(PatchMesh *rep)
PatchSurface mSurface
Internal surface definition.
#define OGRE_MUTEX_CONDITIONAL(name)
Combination of HBU_STATIC and HBU_WRITE_ONLY.
Specialisation of SharedPtr to allow SharedPtr to be assigned to PatchMeshPtr.
A surface which is defined by curves of some kind to form a patch, e.g.
Combination of HBU_DYNAMIC and HBU_WRITE_ONLY.
Usage
Enums describing buffer usage; not mutually exclusive.
unsigned long long int ResourceHandle
#define OGRE_LOCK_MUTEX(name)
This class declares the format of a set of vertex inputs, which can be issued to the rendering API th...
Defines a generic resource handler.
unsigned int * useCountPointer() const
Reference-counted shared pointer, used for objects where implicit destruction is required.
The side from which u goes right and v goes up (as in texture coords)
Patch specialisation of Mesh.
PatchMeshPtr & operator=(const ResourcePtr &r)
Operator used to convert a ResourcePtr to a PatchMeshPtr.
Specialisation of SharedPtr to allow SharedPtr to be assigned to MeshPtr.
#define OGRE_COPY_AUTO_SHARED_MUTEX(from)