Nebula
Loading...
Searching...
No Matches
mesh.h File Reference

Go to the source code of this file.

Classes

struct  CoreGraphics::VertexAlloc
 
struct  CoreGraphics::MeshId
 
struct  CoreGraphics::VertexStream
 
struct  CoreGraphics::MeshCreateInfo
 Mesh collects vertex and index buffers with primitive groups which can be used to render with. More...
 
struct  CoreGraphics::__Mesh
 

Namespaces

namespace  CoreGraphics
 Acceleration structures are used to enable ray tracing on the GPU by dividing the scene into a BVH.
 

Typedefs

typedef Ids::IdAllocatorSafe< 0xFFFF, Resources::ResourceName, __MeshCoreGraphics::MeshAllocator
 

Enumerations

enum  { CoreGraphics::Mesh_Name , CoreGraphics::Mesh_Internals }
 

Functions

const MeshId CoreGraphics::CreateMesh (const MeshCreateInfo &info)
 create new mesh
 
void CoreGraphics::DestroyMesh (const MeshId id)
 destroy mesh
 
const Util::Array< CoreGraphics::PrimitiveGroup > & CoreGraphics::MeshGetPrimitiveGroups (const MeshId id)
 get number of primitive groups
 
const CoreGraphics::PrimitiveGroup CoreGraphics::MeshGetPrimitiveGroup (const MeshId id, const IndexT group)
 get primitive group
 
const BufferId CoreGraphics::MeshGetVertexBuffer (const MeshId id, const IndexT stream)
 get vertex buffer
 
const void CoreGraphics::MeshSetVertexBuffer (const MeshId id, const BufferId buffer, const IndexT stream)
 Set vertex buffer.
 
const uint CoreGraphics::MeshGetVertexOffset (const MeshId id, const IndexT stream)
 Get mesh vertex offset.
 
const BufferId CoreGraphics::MeshGetIndexBuffer (const MeshId id)
 get index buffer
 
const uint CoreGraphics::MeshGetIndexOffset (const MeshId id)
 Get index buffer base offset.
 
const IndexType::Code CoreGraphics::MeshGetIndexType (const MeshId id)
 Get index type.
 
const CoreGraphics::PrimitiveTopology::Code CoreGraphics::MeshGetTopology (const MeshId id)
 Get topology.
 
const CoreGraphics::VertexLayoutId CoreGraphics::MeshGetVertexLayout (const MeshId id)
 Get vertex layout.
 
const void CoreGraphics::MeshBind (const MeshId id, const CoreGraphics::CmdBufferId cmd)
 Bind mesh on command buffer.
 
 CoreGraphics::_DECL_ACQUIRE_RELEASE (MeshId)