Nebula
Loading...
Searching...
No Matches
mesh.cc File Reference
#include "mesh.h"
#include "coregraphics/commandbuffer.h"

Namespaces

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

Functions

 CoreGraphics::_IMPL_ACQUIRE_RELEASE (MeshId, meshAllocator)
 
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.
 

Variables

MeshId CoreGraphics::RectangleMesh
 
MeshId CoreGraphics::DiskMesh
 
MeshAllocator CoreGraphics::meshAllocator