Functions

sp::scene::MeshGenerator Namespace Reference

Functions

SP_EXPORT void createMesh (video::MeshBuffer &Surface, const EBasicMeshes Model, SMeshConstruct Construct)
SP_EXPORT void createCube (video::MeshBuffer &Surface, f32 Radius, s32 SegmentsVert, s32 SegmentsHorz)
SP_EXPORT void createCone (video::MeshBuffer &Surface, f32 Radius, f32 Height, s32 Segments, bool HasCap)
SP_EXPORT void createCylinder (video::MeshBuffer &Surface, f32 Radius, f32 Height, s32 Segments, bool HasCap)
SP_EXPORT void createSphere (video::MeshBuffer &Surface, f32 Radius, s32 Segments)
SP_EXPORT void createIcoSphere (video::MeshBuffer &Surface, f32 Radius, s32 Segments)
SP_EXPORT void createTorus (video::MeshBuffer &Surface, f32 RadiusOuter, f32 RadiusInner, s32 Segments)
SP_EXPORT void createTorusknot (video::MeshBuffer &Surface, f32 RadiusOuter, f32 RadiusInner, s32 Segments)
SP_EXPORT void createSpiral (video::MeshBuffer &Surface, f32 RadiusOuter, f32 RadiusInner, f32 TwirlDegree, f32 TwirlDistance, s32 Segments, bool HasCap)
SP_EXPORT void createPipe (video::MeshBuffer &Surface, f32 RadiusOuter, f32 RadiusInner, f32 Height, s32 Segments, bool HasCap)
SP_EXPORT void createPlane (video::MeshBuffer &Surface, s32 SegmentsVert, s32 SegmentsHorz)
SP_EXPORT void createDisk (video::MeshBuffer &Surface, f32 RadiusOuter, f32 RadiusInner, s32 Segments, bool HasHole)
SP_EXPORT void createCuboctahedron (video::MeshBuffer &Surface)
SP_EXPORT void createTetrahedron (video::MeshBuffer &Surface)
SP_EXPORT void createOctahedron (video::MeshBuffer &Surface)
SP_EXPORT void createDodecahedron (video::MeshBuffer &Surface)
SP_EXPORT void createIcosahedron (video::MeshBuffer &Surface)
SP_EXPORT void createTeapot (video::MeshBuffer &Surface)
SP_EXPORT void createWireCube (scene::Mesh &MeshObj, f32 Radius)
SP_EXPORT void createSkyBox (scene::Mesh &MeshObj, video::Texture *(&TextureList)[6], f32 Radius)
void createCube (video::MeshBuffer &Surface, f32 Radius=0.5f, s32 Segments=1)
void createPlane (video::MeshBuffer &Surface, s32 Segments=1)

Function Documentation

SP_EXPORT void sp::scene::MeshGenerator::createCone ( video::MeshBuffer &  Surface,
f32  Radius,
f32  Height,
s32  Segments,
bool  HasCap 
)
void sp::scene::MeshGenerator::createCube ( video::MeshBuffer &  Surface,
f32  Radius = 0.5f,
s32  Segments = 1 
) [inline]
SP_EXPORT void sp::scene::MeshGenerator::createCube ( video::MeshBuffer &  Surface,
f32  Radius,
s32  SegmentsVert,
s32  SegmentsHorz 
)
SP_EXPORT void sp::scene::MeshGenerator::createCuboctahedron ( video::MeshBuffer &  Surface  ) 
SP_EXPORT void sp::scene::MeshGenerator::createCylinder ( video::MeshBuffer &  Surface,
f32  Radius,
f32  Height,
s32  Segments,
bool  HasCap 
)
SP_EXPORT void sp::scene::MeshGenerator::createDisk ( video::MeshBuffer &  Surface,
f32  RadiusOuter,
f32  RadiusInner,
s32  Segments,
bool  HasHole 
)
SP_EXPORT void sp::scene::MeshGenerator::createDodecahedron ( video::MeshBuffer &  Surface  ) 
SP_EXPORT void sp::scene::MeshGenerator::createIcosahedron ( video::MeshBuffer &  Surface  ) 
SP_EXPORT void sp::scene::MeshGenerator::createIcoSphere ( video::MeshBuffer &  Surface,
f32  Radius,
s32  Segments 
)
SP_EXPORT void sp::scene::MeshGenerator::createMesh ( video::MeshBuffer &  Surface,
const EBasicMeshes  Model,
SMeshConstruct  Construct = SMeshConstruct() 
)

Universal mesh creation function.

Parameters:
[out] Surface Specifies the mesh buffer (or rather surface) which is to be created. It will be cleared before the mesh is constructed.
[in] Model Specifies the standard model type.
[in] Construct Describes the mesh construction. This contains all information for any kind of basic meshes: inner- and outer radius, segmentation and other options.
See also:
EBasicMeshes
SP_EXPORT void sp::scene::MeshGenerator::createOctahedron ( video::MeshBuffer &  Surface  ) 
SP_EXPORT void sp::scene::MeshGenerator::createPipe ( video::MeshBuffer &  Surface,
f32  RadiusOuter,
f32  RadiusInner,
f32  Height,
s32  Segments,
bool  HasCap 
)
void sp::scene::MeshGenerator::createPlane ( video::MeshBuffer &  Surface,
s32  Segments = 1 
) [inline]
SP_EXPORT void sp::scene::MeshGenerator::createPlane ( video::MeshBuffer &  Surface,
s32  SegmentsVert,
s32  SegmentsHorz 
)
SP_EXPORT void sp::scene::MeshGenerator::createSkyBox ( scene::Mesh &  MeshObj,
video::Texture *(&)  TextureList[6],
f32  Radius 
)

Creates a skybox mesh.

Parameters:
[out] MeshObj Specifies the mesh object which is to be constructed.
[in] TextureList Array of 6 textures. These textures should represent the following sky orientations (and in the same order): North, South, Top, Bottom, West, East.
[in] Radius Radius (or rather size) of the skybox.
SP_EXPORT void sp::scene::MeshGenerator::createSphere ( video::MeshBuffer &  Surface,
f32  Radius,
s32  Segments 
)
SP_EXPORT void sp::scene::MeshGenerator::createSpiral ( video::MeshBuffer &  Surface,
f32  RadiusOuter,
f32  RadiusInner,
f32  TwirlDegree,
f32  TwirlDistance,
s32  Segments,
bool  HasCap 
)
SP_EXPORT void sp::scene::MeshGenerator::createTeapot ( video::MeshBuffer &  Surface  ) 
SP_EXPORT void sp::scene::MeshGenerator::createTetrahedron ( video::MeshBuffer &  Surface  ) 
SP_EXPORT void sp::scene::MeshGenerator::createTorus ( video::MeshBuffer &  Surface,
f32  RadiusOuter,
f32  RadiusInner,
s32  Segments 
)
SP_EXPORT void sp::scene::MeshGenerator::createTorusknot ( video::MeshBuffer &  Surface,
f32  RadiusOuter,
f32  RadiusInner,
s32  Segments 
)
SP_EXPORT void sp::scene::MeshGenerator::createWireCube ( scene::Mesh &  MeshObj,
f32  Radius 
)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines