Elevate Engine 1
Loading...
Searching...
No Matches
Elevate::IndexBuffer Class Referenceabstract

#include <Buffer.h>

Inheritance diagram for Elevate::IndexBuffer:
Elevate::OpenGLIndexBuffer

Public Member Functions

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

Static Public Member Functions

static IndexBufferCreate (const void *vertices, uint32_t count)
 

Detailed Description

Definition at line 101 of file Buffer.h.

Constructor & Destructor Documentation

◆ ~IndexBuffer()

virtual Elevate::IndexBuffer::~IndexBuffer ( )
inlinevirtual

Definition at line 104 of file Buffer.h.

104{}

Member Function Documentation

◆ Bind()

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

Implemented in Elevate::OpenGLIndexBuffer.

◆ Create()

IndexBuffer * Elevate::IndexBuffer::Create ( const void *  vertices,
uint32_t  count 
)
static

Definition at line 23 of file Buffer.cpp.

24 {
25 switch (Renderer::GetAPI())
26 {
27 case RendererAPI::GraphicAPI::None: return nullptr; break;
28 case RendererAPI::GraphicAPI::OpenGL: return new OpenGLIndexBuffer(vertices, count);
29 }
30
31 EE_CORE_ASSERT(false, "A supported RendererAPI needs to be supported!");
32 return nullptr;
33 }
static RendererAPI::GraphicAPI GetAPI()
Definition Renderer.h:24

◆ GetCount()

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

Implemented in Elevate::OpenGLIndexBuffer.

◆ Unbind()

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

Implemented in Elevate::OpenGLIndexBuffer.


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