CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
CeresEngine::GLRenderAPI Class Referencefinal

#include <CeresEngine/RenderAPI/OpenGL/GLRenderAPI.hpp>

Inheritance diagram for CeresEngine::GLRenderAPI:
CeresEngine::RenderAPI

Public Member Functions

 GLRenderAPI (const RenderAPIDescriptor &descriptor, std::function< void()> present)
 
 ~GLRenderAPI () final
 
GPUDevicePtr createDevice (const GPUDeviceDescriptor &descriptor, const DevicePickerFunc &pickerFunc=nullptr) final
 
GPUDevicePtr getDefaultDevice () final
 
void update () final
 
- Public Member Functions inherited from CeresEngine::RenderAPI
 RenderAPI ()=default
 Default initializer.
 
virtual ~RenderAPI ()=default
 Destroys the renderer object.
 
 RenderAPI (const RenderAPI &)=delete
 Deleted copy constructor.
 
RenderAPIoperator= (const RenderAPI &)=delete
 
 RenderAPI (RenderAPI &&)=delete
 Deleted move constructor.
 
RenderAPIoperator= (RenderAPI &&)=delete
 

Private Attributes

GLDevicePtr mDevice
 The default OpenGL device.
 
std::function< void()> present
 

Friends

class GLDevice
 

Constructor & Destructor Documentation

◆ GLRenderAPI()

CeresEngine::GLRenderAPI::GLRenderAPI ( const RenderAPIDescriptor descriptor,
std::function< void()>  present 
)

◆ ~GLRenderAPI()

CeresEngine::GLRenderAPI::~GLRenderAPI ( )
final

Member Function Documentation

◆ createDevice()

GPUDevicePtr CeresEngine::GLRenderAPI::createDevice ( const GPUDeviceDescriptor descriptor,
const DevicePickerFunc pickerFunc = nullptr 
)
finalvirtual

◆ getDefaultDevice()

GPUDevicePtr CeresEngine::GLRenderAPI::getDefaultDevice ( )
finalvirtual

◆ update()

void CeresEngine::GLRenderAPI::update ( )
finalvirtual

Friends And Related Symbol Documentation

◆ GLDevice

Member Data Documentation

◆ mDevice

GLDevicePtr CeresEngine::GLRenderAPI::mDevice
private

The default OpenGL device.

◆ present

std::function<void()> CeresEngine::GLRenderAPI::present
private

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