CoriEngine
Loading...
Searching...
No Matches
Cori::Graphics::Internal::API Class Reference

#include <API.hpp>

Static Public Member Functions

static void SetViewport (const int32_t x, const int32_t y, const int32_t width, const int32_t height)
static void SetClearColor (const glm::vec4 &color)
static void ClearFramebuffer ()
static void DrawElementsTriangles (const uint32_t elementCount)
static void DrawElementsInstancedTriangles (const uint32_t instanceCount)
static void EnableDepthTest ()
static void DisableDepthTest ()
static void EnableBlending ()
static void DisableBlending ()
static void SetDepthMask (const bool mode)

Static Protected Member Functions

static void Init ()
static void Shutdown ()

Static Protected Attributes

static std::unique_ptr< CoriGraphicsAPIs_GraphicsAPI = nullptr

Detailed Description

Definition at line 14 of file API.hpp.

Member Function Documentation

◆ ClearFramebuffer()

void Cori::Graphics::Internal::API::ClearFramebuffer ( )
inlinestatic

Definition at line 25 of file API.hpp.

◆ DisableBlending()

void Cori::Graphics::Internal::API::DisableBlending ( )
inlinestatic

Definition at line 49 of file API.hpp.

◆ DisableDepthTest()

void Cori::Graphics::Internal::API::DisableDepthTest ( )
inlinestatic

Definition at line 41 of file API.hpp.

◆ DrawElementsInstancedTriangles()

void Cori::Graphics::Internal::API::DrawElementsInstancedTriangles ( const uint32_t instanceCount)
inlinestatic

Definition at line 33 of file API.hpp.

◆ DrawElementsTriangles()

void Cori::Graphics::Internal::API::DrawElementsTriangles ( const uint32_t elementCount)
inlinestatic

Definition at line 29 of file API.hpp.

◆ EnableBlending()

void Cori::Graphics::Internal::API::EnableBlending ( )
inlinestatic

Definition at line 45 of file API.hpp.

◆ EnableDepthTest()

void Cori::Graphics::Internal::API::EnableDepthTest ( )
inlinestatic

Definition at line 37 of file API.hpp.

◆ Init()

void Cori::Graphics::Internal::API::Init ( )
staticprotected

Definition at line 8 of file API.cpp.

Here is the call graph for this function:

◆ SetClearColor()

void Cori::Graphics::Internal::API::SetClearColor ( const glm::vec4 & color)
inlinestatic

Definition at line 21 of file API.hpp.

◆ SetDepthMask()

void Cori::Graphics::Internal::API::SetDepthMask ( const bool mode)
inlinestatic

Definition at line 53 of file API.hpp.

◆ SetViewport()

void Cori::Graphics::Internal::API::SetViewport ( const int32_t x,
const int32_t y,
const int32_t width,
const int32_t height )
inlinestatic

Definition at line 17 of file API.hpp.

◆ Shutdown()

void Cori::Graphics::Internal::API::Shutdown ( )
staticprotected

Definition at line 14 of file API.cpp.

Member Data Documentation

◆ s_GraphicsAPI

std::unique_ptr< CoriGraphicsAPI > Cori::Graphics::Internal::API::s_GraphicsAPI = nullptr
staticprotected

Definition at line 63 of file API.hpp.


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