Midnight Graphics
Create Fast and Simple Graphics in C++
mn::Graphics::Mesh Struct Reference

Classes

struct  Frame
 
struct  Vertex
 

Public Member Functions

MN_SYMBOL std::size_t vertexCount () const
 
MN_SYMBOL std::size_t indexCount () const
 
MN_SYMBOL void setVertexCount (uint32_t count)
 
MN_SYMBOL void setIndexCount (uint32_t count)
 
MN_SYMBOL std::span< Vertexvertices ()
 
MN_SYMBOL std::span< const Vertexvertices () const
 
MN_SYMBOL std::span< uint32_t > indices ()
 
MN_SYMBOL std::span< const uint32_t > indices () const
 
MN_SYMBOL std::size_t allocated () const
 

Static Public Member Functions

static MN_SYMBOL Mesh fromFrame (const Frame &frame)
 
static MN_SYMBOL Mesh fromLua (const std::string &lua_file)
 

Public Attributes

std::shared_ptr< TypeBuffer< Vertex > > vertex
 
std::shared_ptr< TypeBuffer< uint32_t > > index
 

Friends

struct RenderFrame
 

The documentation for this struct was generated from the following file: