MxEngine
Public Types | Static Public Member Functions | List of all members
MxEngine::Primitives Class Reference

Public Types

using TextureHandle = GResource< Texture >
 

Static Public Member Functions

static MeshHandle CreateMesh (const AABB &boundingBox, MeshData meshData)
 
static MeshHandle CreateCube ()
 
static MeshHandle CreatePlane (size_t UVrepeats=1)
 
static MeshHandle CreateSphere (size_t polygons=30)
 
static MeshHandle CreateSurface (const Array2D< float > &heights)
 
static TextureHandle CreateGridTexture (size_t textureSize=512, float borderScale=0.01f)
 
template<typename Func >
static MeshHandle CreateSurface (Func &&f, float xsize, float ysize, float step)
 

The documentation for this class was generated from the following files: