28#ifndef __PatchMesh_H__
29#define __PatchMesh_H__
Usage
Enums describing buffer usage; not mutually exclusive.
Resource holding data about 3D mesh.
Patch specialisation of Mesh.
void define(void *controlPointBuffer, VertexDeclaration *declaration, size_t width, size_t height, size_t uMaxSubdivisionLevel=PatchSurface::AUTO_LEVEL, size_t vMaxSubdivisionLevel=PatchSurface::AUTO_LEVEL, PatchSurface::VisibleSide visibleSide=PatchSurface::VS_FRONT, HardwareBuffer::Usage vbUsage=HardwareBuffer::HBU_STATIC_WRITE_ONLY, HardwareBuffer::Usage ibUsage=HardwareBuffer::HBU_DYNAMIC_WRITE_ONLY, bool vbUseShadow=false, bool ibUseShadow=false)
Define the patch, as defined in MeshManager::createBezierPatch.
PatchSurface mSurface
Internal surface definition.
VertexDeclaration * mDeclaration
Vertex declaration, cloned from the input.
void prepareImpl(void)
Overridden from Resource - do nothing (no disk caching)
void setSubdivision(Real factor)
PatchMesh(ResourceManager *creator, const String &name, ResourceHandle handle, const String &group)
Constructor.
void update(void *controlPointBuffer, size_t width, size_t height, size_t uMaxSubdivisionLevel, size_t vMaxSubdivisionLevel, PatchSurface::VisibleSide visibleSide)
Update the mesh with new control points positions.
void loadImpl(void)
Overridden from Resource.
A surface which is defined by curves of some kind to form a patch, e.g.
Defines a generic resource handler.
Reference-counted shared pointer, used for objects where implicit destruction is required.
This class declares the format of a set of vertex inputs, which can be issued to the rendering API th...