Vesper 0.5.1
Vesper is short form for the Latin word for "Bat", as Vesper is designed to be small, lightweight, and easily handle things like particles and flocking behaviors in accordance with the nature of bats. \n It is meant to be a particle simulation, VFX editor, and CAN be used secondarily as a small game engine.
GitHub | Vesper Updates | Creator
Loading...
Searching...
No Matches
Vesper::IndexBuffer Class Referenceabstract

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

#include <Buffer.h>

Inheritance diagram for Vesper::IndexBuffer:
Vesper::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 Ref< IndexBufferCreate (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 Vesper::IndexBuffer::~IndexBuffer ( )
inlinevirtual
156{}

Member Function Documentation

◆ Bind()

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

Implemented in Vesper::OpenGLIndexBuffer.

◆ Create()

Ref< IndexBuffer > Vesper::IndexBuffer::Create ( uint32_t * indices,
uint32_t count )
static
34 {
35
36 switch (Renderer::GetAPI())
37 {
38 case RendererAPI::API::None: VZ_CORE_ASSERT(false, "RendererAPI::None is currently not supported!"); return nullptr;
39 case RendererAPI::API::OpenGL: return CreateRef<OpenGLIndexBuffer>(indices, count);
40 }
41 VZ_CORE_ASSERT(false, "Unknown RendererAPI!");
42 return nullptr;
43 }
#define VZ_CORE_ASSERT(x,...)
Definition Asserts.h:20
@ None
Definition RendererAPI.h:15
@ OpenGL
Definition RendererAPI.h:16
static RendererAPI::API GetAPI()
Retrieves the current rendering API.
Definition Renderer.h:40
constexpr Ref< T > CreateRef(Args &&... args)
Creates a Ref (shared_ptr) for the given type and constructor arguments.
Definition Defines_Macros.h:72

References Vesper::Renderer::GetAPI(), Vesper::RendererAPI::None, and Vesper::RendererAPI::OpenGL.

◆ GetCount()

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

Implemented in Vesper::OpenGLIndexBuffer.

◆ Unbind()

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

Implemented in Vesper::OpenGLIndexBuffer.


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