Diligent::EngineFactoryOpenGLImpl class

Engine factory for OpenGL implementation.

Contents

Base classes

template<class BaseInterface>
class EngineFactoryBase<IEngineFactoryOpenGL>
Template class implementing base functionality of the engine factory.

Public functions

void CreateDeviceAndSwapChainGL(const EngineGLCreateInfo& EngineCI, IRenderDevice** ppDevice, IDeviceContext** ppImmediateContext, const SwapChainDesc& SCDesc, ISwapChain** ppSwapChain) final
Creates render device, device context and swap chain for OpenGL/GLES-based engine implementation.
void AttachToActiveGLContext(const EngineGLCreateInfo& EngineCI, IRenderDevice** ppDevice, IDeviceContext** ppImmediateContext) final
Creates render device, device context and attaches to existing GL context.

Function documentation

void Diligent::EngineFactoryOpenGLImpl::CreateDeviceAndSwapChainGL(const EngineGLCreateInfo& EngineCI, IRenderDevice** ppDevice, IDeviceContext** ppImmediateContext, const SwapChainDesc& SCDesc, ISwapChain** ppSwapChain) final

Creates render device, device context and swap chain for OpenGL/GLES-based engine implementation.

Parameters
EngineCI in - Engine creation attributes.
ppDevice out - Address of the memory location where pointer to the created device will be written.
ppImmediateContext out - Address of the memory location where pointers to the immediate context will be written.
SCDesc in - Swap chain description.
ppSwapChain out - Address of the memory location where pointer to the new swap chain will be written.

void Diligent::EngineFactoryOpenGLImpl::AttachToActiveGLContext(const EngineGLCreateInfo& EngineCI, IRenderDevice** ppDevice, IDeviceContext** ppImmediateContext) final

Creates render device, device context and attaches to existing GL context.

Parameters
EngineCI in - Engine creation attributes.
ppDevice out - Address of the memory location where pointer to the created device will be written.
ppImmediateContext out - Address of the memory location where pointers to the immediate context will be written.