#include <GteGraphicsEngine.h>
Classes | |
class | DTListener |
class | GOListener |
Public Member Functions | |
void | AllowOcclusionQuery (bool allow) |
GEObject * | Bind (std::shared_ptr< GraphicsObject > const &object) |
GEDrawTarget * | Bind (std::shared_ptr< DrawTarget > const &target) |
virtual bool | BindProgram (std::shared_ptr< ComputeProgram > const &program)=0 |
virtual void | ClearBuffers ()=0 |
virtual void | ClearColorBuffer ()=0 |
virtual void | ClearDepthBuffer ()=0 |
virtual void | ClearStencilBuffer ()=0 |
virtual bool | CopyCpuToGpu (std::shared_ptr< Buffer > const &buffer)=0 |
virtual bool | CopyCpuToGpu (std::shared_ptr< TextureSingle > const &texture)=0 |
virtual bool | CopyCpuToGpu (std::shared_ptr< TextureSingle > const &texture, unsigned int level)=0 |
virtual bool | CopyCpuToGpu (std::shared_ptr< TextureArray > const &textureArray)=0 |
virtual bool | CopyCpuToGpu (std::shared_ptr< TextureArray > const &textureArray, unsigned int item, unsigned int level)=0 |
virtual bool | CopyGpuToCpu (std::shared_ptr< Buffer > const &buffer)=0 |
virtual bool | CopyGpuToCpu (std::shared_ptr< TextureSingle > const &texture)=0 |
virtual bool | CopyGpuToCpu (std::shared_ptr< TextureSingle > const &texture, unsigned int level)=0 |
virtual bool | CopyGpuToCpu (std::shared_ptr< TextureArray > const &textureArray)=0 |
virtual bool | CopyGpuToCpu (std::shared_ptr< TextureArray > const &textureArray, unsigned int item, unsigned int level)=0 |
virtual void | CopyGpuToGpu (std::shared_ptr< Buffer > const &buffer0, std::shared_ptr< Buffer > const &buffer1)=0 |
virtual void | CopyGpuToGpu (std::shared_ptr< TextureSingle > const &texture0, std::shared_ptr< TextureSingle > const &texture1)=0 |
virtual void | CopyGpuToGpu (std::shared_ptr< TextureSingle > const &texture0, std::shared_ptr< TextureSingle > const &texture1, unsigned int level)=0 |
virtual void | CopyGpuToGpu (std::shared_ptr< TextureArray > const &textureArray0, std::shared_ptr< TextureArray > const &textureArray1)=0 |
virtual void | CopyGpuToGpu (std::shared_ptr< TextureArray > const &textureArray0, std::shared_ptr< TextureArray > const &textureArray1, unsigned int item, unsigned int level)=0 |
virtual void | Disable (std::shared_ptr< DrawTarget > const &target)=0 |
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 |
virtual void | Enable (std::shared_ptr< DrawTarget > const &target)=0 |
virtual void | Execute (std::shared_ptr< ComputeProgram > const &program, unsigned int numXGroups, unsigned int numYGroups, unsigned int numZGroups)=0 |
virtual void | Flush ()=0 |
GEObject * | Get (std::shared_ptr< GraphicsObject > const &object) const |
GEDrawTarget * | Get (std::shared_ptr< DrawTarget > const &target) const |
virtual bool | GetNumActiveElements (std::shared_ptr< StructuredBuffer > const &buffer)=0 |
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) |
virtual bool | Update (std::shared_ptr< Buffer > const &buffer)=0 |
virtual bool | Update (std::shared_ptr< TextureSingle > const &texture)=0 |
virtual bool | Update (std::shared_ptr< TextureSingle > const &texture, unsigned int level)=0 |
virtual bool | Update (std::shared_ptr< TextureArray > const &textureArray)=0 |
virtual bool | Update (std::shared_ptr< TextureArray > const &textureArray, unsigned int item, unsigned int level)=0 |
virtual void | WaitForFinish ()=0 |
void | WarnOnNonemptyBridges (bool warn) |
virtual | ~GraphicsEngine () |
Public Member Functions inherited from gte::BaseEngine | |
virtual void | DisplayColorBuffer (unsigned int syncInterval)=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 | SetRasterizerState (std::shared_ptr< RasterizerState > const &state)=0 |
virtual void | SetViewport (int x, int y, int w, int h)=0 |
virtual | ~BaseEngine () |
Protected Types | |
typedef std::shared_ptr< GEDrawTarget >(* | CreateGEDrawTarget) (DrawTarget const *, std::vector< GEObject * > &, GEObject *) |
typedef std::shared_ptr< GEObject >(* | CreateGEObject) (void *, GraphicsObject const *) |
Protected Member Functions | |
virtual void | DestroyDefaultGlobalState () |
virtual uint64_t | DrawPrimitive (std::shared_ptr< VertexBuffer > const &vbuffer, std::shared_ptr< IndexBuffer > const &ibuffer, std::shared_ptr< VisualEffect > const &effect)=0 |
GraphicsEngine () | |
GraphicsEngine (GraphicsEngine const &)=delete | |
GraphicsEngine & | operator= (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 () |
BaseEngine & | operator= (BaseEngine const &)=delete |
Definition at line 28 of file GteGraphicsEngine.h.
|
protected |
Definition at line 193 of file GteGraphicsEngine.h.
|
protected |
Definition at line 192 of file GteGraphicsEngine.h.
|
virtual |
Definition at line 12 of file GteGraphicsEngine.cpp.
|
protected |
Definition at line 16 of file GteGraphicsEngine.cpp.
|
protecteddelete |
|
inline |
Definition at line 242 of file GteGraphicsEngine.h.
GEObject * GraphicsEngine::Bind | ( | std::shared_ptr< GraphicsObject > const & | object | ) |
Definition at line 164 of file GteGraphicsEngine.cpp.
GEDrawTarget * GraphicsEngine::Bind | ( | std::shared_ptr< DrawTarget > const & | target | ) |
Definition at line 198 of file GteGraphicsEngine.cpp.
|
pure virtual |
Implemented in gte::DX11Engine, and gte::GL4Engine.
|
pure virtual |
Implemented in gte::DX11Engine, and gte::GL4Engine.
|
pure virtual |
Implemented in gte::DX11Engine, and gte::GL4Engine.
|
pure virtual |
Implemented in gte::DX11Engine, and gte::GL4Engine.
|
pure virtual |
Implemented in gte::DX11Engine, and gte::GL4Engine.
|
pure virtual |
Implemented in gte::DX11Engine, and gte::GL4Engine.
|
pure virtual |
Implemented in gte::DX11Engine, and gte::GL4Engine.
|
pure virtual |
Implemented in gte::DX11Engine, and gte::GL4Engine.
|
pure virtual |
Implemented in gte::DX11Engine, and gte::GL4Engine.
|
pure virtual |
Implemented in gte::DX11Engine, and gte::GL4Engine.
|
pure virtual |
Implemented in gte::DX11Engine, and gte::GL4Engine.
|
pure virtual |
Implemented in gte::DX11Engine, and gte::GL4Engine.
|
pure virtual |
Implemented in gte::DX11Engine, and gte::GL4Engine.
|
pure virtual |
Implemented in gte::DX11Engine, and gte::GL4Engine.
|
pure virtual |
Implemented in gte::DX11Engine, and gte::GL4Engine.
|
pure virtual |
Implemented in gte::DX11Engine, and gte::GL4Engine.
|
pure virtual |
Implemented in gte::DX11Engine, and gte::GL4Engine.
|
pure virtual |
Implemented in gte::DX11Engine, and gte::GL4Engine.
|
pure virtual |
Implemented in gte::DX11Engine, and gte::GL4Engine.
|
pure virtual |
Implemented in gte::DX11Engine, and gte::GL4Engine.
|
protectedvirtual |
Reimplemented from gte::BaseEngine.
Definition at line 270 of file GteGraphicsEngine.cpp.
|
pure virtual |
Implemented in gte::DX11Engine, and gte::GL4Engine.
uint64_t GraphicsEngine::Draw | ( | Visual * | visual | ) |
Definition at line 67 of file GteGraphicsEngine.cpp.
uint64_t GraphicsEngine::Draw | ( | std::vector< Visual * > const & | visuals | ) |
Definition at line 84 of file GteGraphicsEngine.cpp.
uint64_t GraphicsEngine::Draw | ( | std::shared_ptr< Visual > const & | visual | ) |
Definition at line 94 of file GteGraphicsEngine.cpp.
uint64_t GraphicsEngine::Draw | ( | std::vector< std::shared_ptr< Visual >> const & | visuals | ) |
Definition at line 99 of file GteGraphicsEngine.cpp.
uint64_t GraphicsEngine::Draw | ( | int | x, |
int | y, | ||
std::array< float, 4 > const & | color, | ||
std::string const & | message | ||
) |
Definition at line 109 of file GteGraphicsEngine.cpp.
|
overridevirtual |
Implements gte::BaseEngine.
Definition at line 147 of file GteGraphicsEngine.cpp.
|
protectedpure virtual |
Implemented in gte::DX11Engine, and gte::GL4Engine.
|
pure virtual |
Implemented in gte::DX11Engine, and gte::GL4Engine.
|
pure virtual |
Implemented in gte::DX11Engine, and gte::GL4Engine.
|
pure virtual |
Implemented in gte::DX11Engine, and gte::GL4Engine.
GEObject * GraphicsEngine::Get | ( | std::shared_ptr< GraphicsObject > const & | object | ) | const |
Definition at line 228 of file GteGraphicsEngine.cpp.
GEDrawTarget * GraphicsEngine::Get | ( | std::shared_ptr< DrawTarget > const & | target | ) | const |
Definition at line 239 of file GteGraphicsEngine.cpp.
|
pure virtual |
Implemented in gte::DX11Engine, and gte::GL4Engine.
void GraphicsEngine::GetTotalAllocation | ( | size_t & | numBytes, |
size_t & | numObjects | ||
) | const |
Definition at line 250 of file GteGraphicsEngine.cpp.
|
protecteddelete |
Reimplemented from gte::BaseEngine.
Definition at line 32 of file GteGraphicsEngine.cpp.
|
inline |
Definition at line 232 of file GteGraphicsEngine.h.
|
inline |
Definition at line 237 of file GteGraphicsEngine.h.
|
protected |
Definition at line 290 of file GteGraphicsEngine.cpp.
|
protected |
Definition at line 313 of file GteGraphicsEngine.cpp.
|
pure virtual |
Implements gte::BaseEngine.
Implemented in gte::DX11Engine, and gte::GL4Engine.
|
pure virtual |
Implements gte::BaseEngine.
Implemented in gte::DX11Engine, and gte::GL4Engine.
|
pure virtual |
Implemented in gte::DX11Engine, and gte::GL4Engine.
|
pure virtual |
Implemented in gte::DX11Engine, and gte::GL4Engine.
|
pure virtual |
Implemented in gte::DX11Engine, and gte::GL4Engine.
|
pure virtual |
Implemented in gte::DX11Engine, and gte::GL4Engine.
|
inline |
Definition at line 247 of file GteGraphicsEngine.h.
|
protected |
Definition at line 227 of file GteGraphicsEngine.h.
|
protected |
Definition at line 196 of file GteGraphicsEngine.h.
|
protected |
Definition at line 195 of file GteGraphicsEngine.h.
|
protected |
Definition at line 225 of file GteGraphicsEngine.h.
|
protected |
Definition at line 187 of file GteGraphicsEngine.h.
|
protected |
Definition at line 197 of file GteGraphicsEngine.h.
|
protected |
Definition at line 211 of file GteGraphicsEngine.h.
|
protected |
Definition at line 186 of file GteGraphicsEngine.h.
|
protected |
Definition at line 188 of file GteGraphicsEngine.h.
|
protected |
Definition at line 228 of file GteGraphicsEngine.h.