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

#include <GteGLXEngine.h>

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

Public Member Functions

virtual void DisplayColorBuffer (unsigned int syncInterval) override
 
_XDisplay * GetDisplay () const
 
__GLXcontextRec * GetImmediate () const
 
unsigned long GetWindow () const
 
 GLXEngine (_XDisplay *display, unsigned long window, __GLXcontextRec *context, int xSize, int ySize, bool saveDriverInfo, int requiredMajor=4, int requiredMinor=3)
 
 GLXEngine (bool saveDriverInfo, int requiredMajor=4, int requiredMinor=3)
 
virtual bool IsActive () const override
 
virtual void MakeActive () override
 
virtual ~GLXEngine ()
 
- 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

_XDisplay * mDisplay
 
__GLXcontextRec * mImmediate
 
bool mIsComputeWindow
 
unsigned long mWindow
 

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 20 of file GteGLXEngine.h.

Constructor & Destructor Documentation

GLXEngine::~GLXEngine ( )
virtual

Definition at line 15 of file GteGLXEngine.cpp.

gte::GLXEngine::GLXEngine ( _XDisplay *  display,
unsigned long  window,
__GLXcontextRec *  context,
int  xSize,
int  ySize,
bool  saveDriverInfo,
int  requiredMajor = 4,
int  requiredMinor = 3 
)
GLXEngine::GLXEngine ( bool  saveDriverInfo,
int  requiredMajor = 4,
int  requiredMinor = 3 
)

Definition at line 34 of file GteGLXEngine.cpp.

Member Function Documentation

void GLXEngine::DisplayColorBuffer ( unsigned int  syncInterval)
overridevirtual

Implements gte::BaseEngine.

Definition at line 62 of file GteGLXEngine.cpp.

_XDisplay* gte::GLXEngine::GetDisplay ( ) const
inline

Definition at line 35 of file GteGLXEngine.h.

__GLXcontextRec* gte::GLXEngine::GetImmediate ( ) const
inline

Definition at line 37 of file GteGLXEngine.h.

unsigned long gte::GLXEngine::GetWindow ( ) const
inline

Definition at line 36 of file GteGLXEngine.h.

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

Reimplemented from gte::GL4Engine.

Definition at line 70 of file GteGLXEngine.cpp.

bool GLXEngine::IsActive ( ) const
overridevirtual

Implements gte::GL4Engine.

Definition at line 49 of file GteGLXEngine.cpp.

void GLXEngine::MakeActive ( )
overridevirtual

Implements gte::GL4Engine.

Definition at line 54 of file GteGLXEngine.cpp.

void GLXEngine::Terminate ( )
private

Definition at line 87 of file GteGLXEngine.cpp.

Member Data Documentation

_XDisplay* gte::GLXEngine::mDisplay
private

Definition at line 52 of file GteGLXEngine.h.

__GLXcontextRec* gte::GLXEngine::mImmediate
private

Definition at line 54 of file GteGLXEngine.h.

bool gte::GLXEngine::mIsComputeWindow
private

Definition at line 55 of file GteGLXEngine.h.

unsigned long gte::GLXEngine::mWindow
private

Definition at line 53 of file GteGLXEngine.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:06