Muto 0.0.1
Cross-Platform Application Template
GitHub Repo | Muto Updates | Muto's Author
Loading...
Searching...
No Matches
Muto::IndexBuffer Class Referenceabstract

Abstract base class for an index buffer. More...

#include <Buffer.h>

Inheritance diagram for Muto::IndexBuffer:
Muto::OpenGLIndexBuffer

Public Member Functions

virtual void Bind () const =0
 
virtual uint32_t GetCount () const =0
 
virtual void Unbind () const =0
 
virtual ~IndexBuffer ()
 

Static Public Member Functions

static Ref< IndexBuffer > Create (uint32_t *indices, uint32_t count)
 

Detailed Description

Abstract base class for an index buffer.

Currently only supports uint32_t indices

Constructor & Destructor Documentation

◆ ~IndexBuffer()

virtual Muto::IndexBuffer::~IndexBuffer ( )
inlinevirtual
159{}

Member Function Documentation

◆ Bind()

virtual void Muto::IndexBuffer::Bind ( ) const
pure virtual

Implemented in Muto::OpenGLIndexBuffer.

◆ Create()

Ref< IndexBuffer > Muto::IndexBuffer::Create ( uint32_t *  indices,
uint32_t  count 
)
static
34 {
35
36 switch (Renderer::GetAPI())
37 {
38 case RenderAPI::API::RAPI_None: MU_CORE_ASSERT(false, "RenderAPI::None is currently not supported!"); return nullptr;
40 }
41 MU_CORE_ASSERT(false, "Unknown RenderAPI!");
42 return nullptr;
43 }
#define MU_CORE_ASSERT(x,...)
Definition Asserts.h:32
static RenderAPI::API GetAPI()
Retrieves the current rendering API.
Definition Renderer.h:44
constexpr Scope< T > CreateScope(Args &&... args)
Creates a Scope (unique_ptr) for the given type and constructor arguments.
Definition Defines_Macros.h:51

References Muto::Renderer::GetAPI(), Muto::RenderAPI::RAPI_None, and Muto::RenderAPI::RAPI_OpenGL.

◆ GetCount()

virtual uint32_t Muto::IndexBuffer::GetCount ( ) const
pure virtual

Implemented in Muto::OpenGLIndexBuffer.

◆ Unbind()

virtual void Muto::IndexBuffer::Unbind ( ) const
pure virtual

Implemented in Muto::OpenGLIndexBuffer.


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