Karma Engine
Loading...
Searching...
No Matches
Karma::OpenGLRendererAPI Class Reference
Inheritance diagram for Karma::OpenGLRendererAPI:
Collaboration diagram for Karma::OpenGLRendererAPI:

Public Member Functions

virtual void SetClearColor (const glm::vec4 &color) override
 
virtual void Clear () override
 
virtual void BeginScene () override
 
virtual void DrawIndexed (const std::shared_ptr< VertexArray > vertexArray) override
 
virtual void EndScene () override
 
- Public Member Functions inherited from Karma::RendererAPI
glm::vec4 & GetClearColor () const
 

Additional Inherited Members

- Public Types inherited from Karma::RendererAPI
enum class  API { None = 0 , OpenGL = 1 , Vulkan = 2 }
 
- Static Public Member Functions inherited from Karma::RendererAPI
static API GetAPI ()
 
- Static Protected Attributes inherited from Karma::RendererAPI
static glm::vec4 m_ClearColor = { 0.0f, 0.0f, 0.0f, 0.0f }
 

Member Function Documentation

◆ BeginScene()

virtual void Karma::OpenGLRendererAPI::BeginScene ( )
inlineoverridevirtual

Implements Karma::RendererAPI.

◆ Clear()

void Karma::OpenGLRendererAPI::Clear ( )
overridevirtual

Implements Karma::RendererAPI.

◆ DrawIndexed()

void Karma::OpenGLRendererAPI::DrawIndexed ( const std::shared_ptr< VertexArray > vertexArray)
overridevirtual

Implements Karma::RendererAPI.

◆ EndScene()

virtual void Karma::OpenGLRendererAPI::EndScene ( )
inlineoverridevirtual

Implements Karma::RendererAPI.

◆ SetClearColor()

void Karma::OpenGLRendererAPI::SetClearColor ( const glm::vec4 & color)
overridevirtual

Implements Karma::RendererAPI.


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