Public Member Functions | Private Member Functions | Private Attributes | List of all members
gte::WGLEngine Class Reference

#include <GteWGLEngine.h>

Inheritance diagram for gte::WGLEngine:
Inheritance graph
[legend]

Public Member Functions

virtual void DisplayColorBuffer (unsigned int syncInterval) override
 
HDC GetDevice () const
 
HGLRC GetImmediate () const
 
virtual bool IsActive () const override
 
virtual void MakeActive () override
 
 WGLEngine (HWND handle, bool saveDriverInfo, int requiredMajor=4, int requiredMinor=3)
 
 WGLEngine (bool saveDriverInfo, int requiredMajor=4, int requiredMinor=3)
 
virtual ~WGLEngine ()
 
- Public Member Functions inherited from gte::GL4Engine
virtual bool BindProgram (std::shared_ptr< ComputeProgram > const &program) override
 
virtual void ClearBuffers () override
 
virtual void ClearColorBuffer () override
 
virtual void ClearDepthBuffer () override
 
virtual void ClearStencilBuffer () override
 
virtual bool CopyCpuToGpu (std::shared_ptr< Buffer > const &buffer) override
 
virtual bool CopyCpuToGpu (std::shared_ptr< TextureSingle > const &texture) override
 
virtual bool CopyCpuToGpu (std::shared_ptr< TextureSingle > const &texture, unsigned int level) override
 
virtual bool CopyCpuToGpu (std::shared_ptr< TextureArray > const &textureArray) override
 
virtual bool CopyCpuToGpu (std::shared_ptr< TextureArray > const &textureArray, unsigned int item, unsigned int level) override
 
virtual bool CopyGpuToCpu (std::shared_ptr< Buffer > const &buffer) override
 
virtual bool CopyGpuToCpu (std::shared_ptr< TextureSingle > const &texture) override
 
virtual bool CopyGpuToCpu (std::shared_ptr< TextureSingle > const &texture, unsigned int level) override
 
virtual bool CopyGpuToCpu (std::shared_ptr< TextureArray > const &textureArray) override
 
virtual bool CopyGpuToCpu (std::shared_ptr< TextureArray > const &textureArray, unsigned int item, unsigned int level) override
 
virtual void CopyGpuToGpu (std::shared_ptr< Buffer > const &buffer0, std::shared_ptr< Buffer > const &buffer1) override
 
virtual void CopyGpuToGpu (std::shared_ptr< TextureSingle > const &texture0, std::shared_ptr< TextureSingle > const &texture1) override
 
virtual void CopyGpuToGpu (std::shared_ptr< TextureSingle > const &texture0, std::shared_ptr< TextureSingle > const &texture1, unsigned int level) override
 
virtual void CopyGpuToGpu (std::shared_ptr< TextureArray > const &textureArray0, std::shared_ptr< TextureArray > const &textureArray1) override
 
virtual void CopyGpuToGpu (std::shared_ptr< TextureArray > const &textureArray0, std::shared_ptr< TextureArray > const &textureArray1, unsigned int item, unsigned int level) override
 
virtual void Disable (std::shared_ptr< DrawTarget > const &target) override
 
virtual void Enable (std::shared_ptr< DrawTarget > const &target) override
 
virtual void Execute (std::shared_ptr< ComputeProgram > const &program, unsigned int numXGroups, unsigned int numYGroups, unsigned int numZGroups) override
 
virtual void Flush () override
 
virtual void GetDepthRange (float &zmin, float &zmax) const override
 
virtual bool GetNumActiveElements (std::shared_ptr< StructuredBuffer > const &buffer) override
 
virtual void GetViewport (int &x, int &y, int &w, int &h) const override
 
 GL4Engine ()
 
bool MeetsRequirements () const
 
virtual bool Resize (unsigned int w, unsigned int h) override
 
virtual void SetBlendState (std::shared_ptr< BlendState > const &state) override
 
virtual void SetDepthRange (float zmin, float zmax) override
 
virtual void SetDepthStencilState (std::shared_ptr< DepthStencilState > const &state) override
 
virtual void SetRasterizerState (std::shared_ptr< RasterizerState > const &state) override
 
virtual void SetViewport (int x, int y, int w, int h) override
 
virtual bool Update (std::shared_ptr< Buffer > const &buffer) override
 
virtual bool Update (std::shared_ptr< TextureSingle > const &texture) override
 
virtual bool Update (std::shared_ptr< TextureSingle > const &texture, unsigned int level) override
 
virtual bool Update (std::shared_ptr< TextureArray > const &textureArray) override
 
virtual bool Update (std::shared_ptr< TextureArray > const &textureArray, unsigned int item, unsigned int level) override
 
virtual void WaitForFinish () override
 
virtual ~GL4Engine ()
 
- Public Member Functions inherited from gte::GraphicsEngine
void AllowOcclusionQuery (bool allow)
 
GEObjectBind (std::shared_ptr< GraphicsObject > const &object)
 
GEDrawTargetBind (std::shared_ptr< DrawTarget > const &target)
 
uint64_t Draw (Visual *visual)
 
uint64_t Draw (std::vector< Visual * > const &visuals)
 
uint64_t Draw (std::shared_ptr< Visual > const &visual)
 
uint64_t Draw (std::vector< std::shared_ptr< Visual >> const &visuals)
 
uint64_t Draw (int x, int y, std::array< float, 4 > const &color, std::string const &message)
 
virtual uint64_t Draw (std::shared_ptr< OverlayEffect > const &overlay) override
 
GEObjectGet (std::shared_ptr< GraphicsObject > const &object) const
 
GEDrawTargetGet (std::shared_ptr< DrawTarget > const &target) const
 
void GetTotalAllocation (size_t &numBytes, size_t &numObjects) const
 
virtual void SetFont (std::shared_ptr< Font > const &font) override
 
bool Unbind (std::shared_ptr< GraphicsObject > const &object)
 
bool Unbind (std::shared_ptr< DrawTarget > const &target)
 
void WarnOnNonemptyBridges (bool warn)
 
virtual ~GraphicsEngine ()
 
- Public Member Functions inherited from gte::BaseEngine
std::shared_ptr< BlendState > const & GetBlendState () const
 
std::array< float, 4 > const & GetClearColor () const
 
float GetClearDepth () const
 
unsigned int GetClearStencil () const
 
std::shared_ptr< BlendState > const & GetDefaultBlendState () const
 
std::shared_ptr< DepthStencilState > const & GetDefaultDepthStencilState () const
 
std::shared_ptr< Font > const & GetDefaultFont () const
 
std::shared_ptr< RasterizerState > const & GetDefaultRasterizerState () const
 
std::shared_ptr< DepthStencilState > const & GetDepthStencilState () const
 
std::shared_ptr< Font > const & GetFont () const
 
std::shared_ptr< RasterizerState > const & GetRasterizerState () const
 
void SetClearColor (std::array< float, 4 > const &clearColor)
 
void SetClearDepth (float clearDepth)
 
void SetClearStencil (unsigned int clearStencil)
 
void SetDefaultBlendState ()
 
void SetDefaultDepthStencilState ()
 
void SetDefaultFont ()
 
void SetDefaultRasterizerState ()
 
virtual ~BaseEngine ()
 

Private Member Functions

virtual bool Initialize (int requiredMajor, int requiredMinor, bool saveDriverInfo) override
 
void Terminate ()
 

Private Attributes

ATOM mComputeWindowAtom
 
std::wstring mComputeWindowClass
 
HDC mDevice
 
HWND mHandle
 
HGLRC mImmediate
 

Additional Inherited Members

- Protected Types inherited from gte::GraphicsEngine
typedef std::shared_ptr< GEDrawTarget >(* CreateGEDrawTarget) (DrawTarget const *, std::vector< GEObject * > &, GEObject *)
 
typedef std::shared_ptr< GEObject >(* CreateGEObject) (void *, GraphicsObject const *)
 
- Protected Member Functions inherited from gte::GL4Engine
void CreateDefaultFont ()
 
void DestroyDefaultFont ()
 
void Terminate ()
 
- Protected Member Functions inherited from gte::GraphicsEngine
virtual void DestroyDefaultGlobalState ()
 
 GraphicsEngine ()
 
 GraphicsEngine (GraphicsEngine const &)=delete
 
GraphicsEngineoperator= (GraphicsEngine const &)=delete
 
bool Unbind (GraphicsObject const *object)
 
bool Unbind (DrawTarget const *target)
 
- Protected Member Functions inherited from gte::BaseEngine
 BaseEngine ()
 
 BaseEngine (BaseEngine const &)=delete
 
void CreateDefaultGlobalState ()
 
BaseEngineoperator= (BaseEngine const &)=delete
 
- Protected Attributes inherited from gte::GL4Engine
int mMajor
 
bool mMeetsRequirements
 
int mMinor
 
- Protected Attributes inherited from gte::GraphicsEngine
bool mAllowOcclusionQuery
 
CreateGEDrawTarget mCreateGEDrawTarget
 
std::array< CreateGEObject, GT_NUM_TYPES > mCreateGEObject
 
std::shared_ptr< DTListenermDTListener
 
ThreadSafeMap< DrawTarget const *, std::shared_ptr< GEDrawTarget > > mDTMap
 
voidmGEObjectCreator
 
std::shared_ptr< GOListenermGOListener
 
ThreadSafeMap< GraphicsObject const *, std::shared_ptr< GEObject > > mGOMap
 
std::unique_ptr< GEInputLayoutManagermILMap
 
bool mWarnOnNonemptyBridges
 
- Protected Attributes inherited from gte::BaseEngine
std::shared_ptr< BlendStatemActiveBlendState
 
std::shared_ptr< DepthStencilStatemActiveDepthStencilState
 
std::shared_ptr< FontmActiveFont
 
std::shared_ptr< RasterizerStatemActiveRasterizerState
 
std::array< float, 4 > mClearColor
 
float mClearDepth
 
unsigned int mClearStencil
 
std::shared_ptr< BlendStatemDefaultBlendState
 
std::shared_ptr< DepthStencilStatemDefaultDepthStencilState
 
std::shared_ptr< FontmDefaultFont
 
std::shared_ptr< RasterizerStatemDefaultRasterizerState
 
unsigned int mXSize
 
unsigned int mYSize
 

Detailed Description

Definition at line 15 of file GteWGLEngine.h.

Constructor & Destructor Documentation

WGLEngine::~WGLEngine ( )
virtual

Definition at line 12 of file GteWGLEngine.cpp.

WGLEngine::WGLEngine ( HWND  handle,
bool  saveDriverInfo,
int  requiredMajor = 4,
int  requiredMinor = 3 
)

Definition at line 17 of file GteWGLEngine.cpp.

WGLEngine::WGLEngine ( bool  saveDriverInfo,
int  requiredMajor = 4,
int  requiredMinor = 3 
)

Definition at line 28 of file GteWGLEngine.cpp.

Member Function Documentation

void WGLEngine::DisplayColorBuffer ( unsigned int  syncInterval)
overridevirtual

Implements gte::BaseEngine.

Definition at line 82 of file GteWGLEngine.cpp.

HDC gte::WGLEngine::GetDevice ( ) const
inline

Definition at line 55 of file GteWGLEngine.h.

HGLRC gte::WGLEngine::GetImmediate ( ) const
inline

Definition at line 60 of file GteWGLEngine.h.

bool WGLEngine::Initialize ( int  requiredMajor,
int  requiredMinor,
bool  saveDriverInfo 
)
overrideprivatevirtual

Reimplemented from gte::GL4Engine.

Definition at line 88 of file GteWGLEngine.cpp.

bool WGLEngine::IsActive ( ) const
overridevirtual

Implements gte::GL4Engine.

Definition at line 69 of file GteWGLEngine.cpp.

void WGLEngine::MakeActive ( )
overridevirtual

Implements gte::GL4Engine.

Definition at line 74 of file GteWGLEngine.cpp.

void WGLEngine::Terminate ( )
private

Definition at line 187 of file GteWGLEngine.cpp.

Member Data Documentation

ATOM gte::WGLEngine::mComputeWindowAtom
private

Definition at line 52 of file GteWGLEngine.h.

std::wstring gte::WGLEngine::mComputeWindowClass
private

Definition at line 51 of file GteWGLEngine.h.

HDC gte::WGLEngine::mDevice
private

Definition at line 49 of file GteWGLEngine.h.

HWND gte::WGLEngine::mHandle
private

Definition at line 46 of file GteWGLEngine.h.

HGLRC gte::WGLEngine::mImmediate
private

Definition at line 50 of file GteWGLEngine.h.


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


geometric_tools_engine
Author(s): Yijiang Huang
autogenerated on Thu Jul 18 2019 04:00:07