Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
gte::BaseEngine Class Referenceabstract

#include <GteBaseEngine.h>

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

Public Member Functions

virtual void DisplayColorBuffer (unsigned int syncInterval)=0
 
virtual uint64_t Draw (std::shared_ptr< OverlayEffect > const &effect)=0
 
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
 
virtual void GetDepthRange (float &zmin, float &zmax) const =0
 
std::shared_ptr< DepthStencilState > const & GetDepthStencilState () const
 
std::shared_ptr< Font > const & GetFont () const
 
std::shared_ptr< RasterizerState > const & GetRasterizerState () const
 
virtual void GetViewport (int &x, int &y, int &w, int &h) const =0
 
virtual bool Resize (unsigned int w, unsigned int h)=0
 
virtual void SetBlendState (std::shared_ptr< BlendState > const &state)=0
 
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 void SetDepthRange (float zmin, float zmax)=0
 
virtual void SetDepthStencilState (std::shared_ptr< DepthStencilState > const &state)=0
 
virtual void SetFont (std::shared_ptr< Font > const &font)
 
virtual void SetRasterizerState (std::shared_ptr< RasterizerState > const &state)=0
 
virtual void SetViewport (int x, int y, int w, int h)=0
 
virtual bool Update (std::shared_ptr< Buffer > const &buffer)=0
 
virtual bool Update (std::shared_ptr< TextureSingle > const &texture)=0
 
virtual ~BaseEngine ()
 

Protected Member Functions

 BaseEngine ()
 
 BaseEngine (BaseEngine const &)=delete
 
void CreateDefaultGlobalState ()
 
virtual void DestroyDefaultGlobalState ()
 
BaseEngineoperator= (BaseEngine const &)=delete
 

Protected Attributes

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 23 of file GteBaseEngine.h.

Constructor & Destructor Documentation

BaseEngine::~BaseEngine ( )
virtual

Definition at line 12 of file GteBaseEngine.cpp.

BaseEngine::BaseEngine ( )
protected

Definition at line 16 of file GteBaseEngine.cpp.

gte::BaseEngine::BaseEngine ( BaseEngine const &  )
protecteddelete

Member Function Documentation

void BaseEngine::CreateDefaultGlobalState ( )
protected

Definition at line 31 of file GteBaseEngine.cpp.

void BaseEngine::DestroyDefaultGlobalState ( )
protectedvirtual

Reimplemented in gte::GraphicsEngine.

Definition at line 48 of file GteBaseEngine.cpp.

virtual void gte::BaseEngine::DisplayColorBuffer ( unsigned int  syncInterval)
pure virtual
virtual uint64_t gte::BaseEngine::Draw ( std::shared_ptr< OverlayEffect > const &  effect)
pure virtual

Implemented in gte::GraphicsEngine.

std::shared_ptr< BlendState > const & gte::BaseEngine::GetBlendState ( ) const
inline

Definition at line 161 of file GteBaseEngine.h.

std::array< float, 4 > const & gte::BaseEngine::GetClearColor ( ) const
inline

Definition at line 131 of file GteBaseEngine.h.

float gte::BaseEngine::GetClearDepth ( ) const
inline

Definition at line 136 of file GteBaseEngine.h.

unsigned int gte::BaseEngine::GetClearStencil ( ) const
inline

Definition at line 141 of file GteBaseEngine.h.

std::shared_ptr< BlendState > const & gte::BaseEngine::GetDefaultBlendState ( ) const
inline

Definition at line 171 of file GteBaseEngine.h.

std::shared_ptr< DepthStencilState > const & gte::BaseEngine::GetDefaultDepthStencilState ( ) const
inline

Definition at line 186 of file GteBaseEngine.h.

std::shared_ptr< Font > const & gte::BaseEngine::GetDefaultFont ( ) const
inline

Definition at line 156 of file GteBaseEngine.h.

std::shared_ptr< RasterizerState > const & gte::BaseEngine::GetDefaultRasterizerState ( ) const
inline

Definition at line 201 of file GteBaseEngine.h.

virtual void gte::BaseEngine::GetDepthRange ( float &  zmin,
float &  zmax 
) const
pure virtual

Implemented in gte::DX11Engine, and gte::GL4Engine.

std::shared_ptr< DepthStencilState > const & gte::BaseEngine::GetDepthStencilState ( ) const
inline

Definition at line 176 of file GteBaseEngine.h.

std::shared_ptr< Font > const & gte::BaseEngine::GetFont ( ) const
inline

Definition at line 146 of file GteBaseEngine.h.

std::shared_ptr< RasterizerState > const & gte::BaseEngine::GetRasterizerState ( ) const
inline

Definition at line 191 of file GteBaseEngine.h.

virtual void gte::BaseEngine::GetViewport ( int x,
int y,
int w,
int h 
) const
pure virtual

Implemented in gte::DX11Engine, and gte::GL4Engine.

BaseEngine& gte::BaseEngine::operator= ( BaseEngine const &  )
protecteddelete
virtual bool gte::BaseEngine::Resize ( unsigned int  w,
unsigned int  h 
)
pure virtual

Implemented in gte::DX11Engine, and gte::GL4Engine.

virtual void gte::BaseEngine::SetBlendState ( std::shared_ptr< BlendState > const &  state)
pure virtual

Implemented in gte::DX11Engine, and gte::GL4Engine.

void gte::BaseEngine::SetClearColor ( std::array< float, 4 > const &  clearColor)
inline

Definition at line 116 of file GteBaseEngine.h.

void gte::BaseEngine::SetClearDepth ( float  clearDepth)
inline

Definition at line 121 of file GteBaseEngine.h.

void gte::BaseEngine::SetClearStencil ( unsigned int  clearStencil)
inline

Definition at line 126 of file GteBaseEngine.h.

void gte::BaseEngine::SetDefaultBlendState ( )
inline

Definition at line 166 of file GteBaseEngine.h.

void gte::BaseEngine::SetDefaultDepthStencilState ( )
inline

Definition at line 181 of file GteBaseEngine.h.

void gte::BaseEngine::SetDefaultFont ( )
inline

Definition at line 151 of file GteBaseEngine.h.

void gte::BaseEngine::SetDefaultRasterizerState ( )
inline

Definition at line 196 of file GteBaseEngine.h.

virtual void gte::BaseEngine::SetDepthRange ( float  zmin,
float  zmax 
)
pure virtual

Implemented in gte::DX11Engine, and gte::GL4Engine.

virtual void gte::BaseEngine::SetDepthStencilState ( std::shared_ptr< DepthStencilState > const &  state)
pure virtual

Implemented in gte::DX11Engine, and gte::GL4Engine.

void BaseEngine::SetFont ( std::shared_ptr< Font > const &  font)
virtual

Reimplemented in gte::GraphicsEngine.

Definition at line 26 of file GteBaseEngine.cpp.

virtual void gte::BaseEngine::SetRasterizerState ( std::shared_ptr< RasterizerState > const &  state)
pure virtual

Implemented in gte::DX11Engine, and gte::GL4Engine.

virtual void gte::BaseEngine::SetViewport ( int  x,
int  y,
int  w,
int  h 
)
pure virtual

Implemented in gte::DX11Engine, and gte::GL4Engine.

virtual bool gte::BaseEngine::Update ( std::shared_ptr< Buffer > const &  buffer)
pure virtual
virtual bool gte::BaseEngine::Update ( std::shared_ptr< TextureSingle > const &  texture)
pure virtual

Member Data Documentation

std::shared_ptr<BlendState> gte::BaseEngine::mActiveBlendState
protected

Definition at line 108 of file GteBaseEngine.h.

std::shared_ptr<DepthStencilState> gte::BaseEngine::mActiveDepthStencilState
protected

Definition at line 110 of file GteBaseEngine.h.

std::shared_ptr<Font> gte::BaseEngine::mActiveFont
protected

Definition at line 104 of file GteBaseEngine.h.

std::shared_ptr<RasterizerState> gte::BaseEngine::mActiveRasterizerState
protected

Definition at line 112 of file GteBaseEngine.h.

std::array<float, 4> gte::BaseEngine::mClearColor
protected

Definition at line 98 of file GteBaseEngine.h.

float gte::BaseEngine::mClearDepth
protected

Definition at line 99 of file GteBaseEngine.h.

unsigned int gte::BaseEngine::mClearStencil
protected

Definition at line 100 of file GteBaseEngine.h.

std::shared_ptr<BlendState> gte::BaseEngine::mDefaultBlendState
protected

Definition at line 107 of file GteBaseEngine.h.

std::shared_ptr<DepthStencilState> gte::BaseEngine::mDefaultDepthStencilState
protected

Definition at line 109 of file GteBaseEngine.h.

std::shared_ptr<Font> gte::BaseEngine::mDefaultFont
protected

Definition at line 103 of file GteBaseEngine.h.

std::shared_ptr<RasterizerState> gte::BaseEngine::mDefaultRasterizerState
protected

Definition at line 111 of file GteBaseEngine.h.

unsigned int gte::BaseEngine::mXSize
protected

Definition at line 95 of file GteBaseEngine.h.

unsigned int gte::BaseEngine::mYSize
protected

Definition at line 95 of file GteBaseEngine.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:05