ezEngine  Milestone 7
ezGALSwapChainGL Class Reference

Each "SwapChain" of the same device needs to have the same pixel format, since they will use the same rendering context. This way the more complicated resource sharing between contexts is avoided. More...

#include <SwapChainGL.h>

Inheritance diagram for ezGALSwapChainGL:

Public Member Functions

void SetVSync (bool active)
 Enables or disables vertical synchronization.
 
- Public Member Functions inherited from ezGALSwapChain
ezGALTextureHandle GetBackBufferTexture () const
 Returns a handle to the back buffer texture. More...
 
ezGALRenderTargetViewHandle GetBackBufferRenderTargetView () const
 Returns a handle to the render target view which can be bound to render to this swap chain.
 
ezGALTextureHandle GetDepthStencilBufferTexture () const
 Returns a handle to the swap chain's depth buffer texture. More...
 
ezGALRenderTargetViewHandle GetDepthStencilTargetView () const
 Returns a handle to the swap chain's depth stencil view. More...
 
- Public Member Functions inherited from ezGALObjectBase< ezGALSwapChainCreationDescription >
EZ_FORCE_INLINE ezGALObjectBase (const ezGALSwapChainCreationDescription &Description)
 
EZ_FORCE_INLINE const
ezGALSwapChainCreationDescription
GetDescription () const
 
- Public Member Functions inherited from ezRefCounted
 ezRefCounted ()
 Constructor.
 
 ezRefCounted (const ezRefCounted &rhs)
 
void operator= (const ezRefCounted &rhs)
 
void AddRef ()
 Increments the reference counter.
 
void ReleaseRef ()
 Decrements the reference counter.
 
bool IsReferenced () const
 Returns true if the reference count is greater than 0, false otherwise.
 
ezInt32 GetRefCount () const
 Returns the current reference count.
 

Protected Member Functions

 ezGALSwapChainGL (const ezGALSwapChainCreationDescription &Description)
 
virtual ezResult InitPlatform (ezGALDevice *pDevice) override
 
virtual ezResult DeInitPlatform (ezGALDevice *pDevice) override
 
void SwapBuffers (ezGALDevice *pDevice)
 Copies backbuffer texture to actual backbuffer and performs OS dependent swap.
 
- Protected Member Functions inherited from ezGALSwapChain
 ezGALSwapChain (const ezGALSwapChainCreationDescription &Description)
 

Friends

class ezGALDeviceGL
 
class ezMemoryUtils
 

Additional Inherited Members

- Protected Attributes inherited from ezGALSwapChain
ezGALTextureHandle m_hBackBufferTexture
 
ezGALRenderTargetViewHandle m_hBackBufferRTV
 
ezGALTextureHandle m_hDepthStencilBufferTexture
 
ezGALRenderTargetViewHandle m_hBackBufferDSV
 

Detailed Description

Each "SwapChain" of the same device needs to have the same pixel format, since they will use the same rendering context. This way the more complicated resource sharing between contexts is avoided.


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