#include <GteGL4Engine.h>
Classes | |
class | ProgramIndexUnitMap |
Public Member Functions | |
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 () | |
virtual bool | IsActive () const =0 |
virtual void | MakeActive ()=0 |
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) |
GEObject * | Bind (std::shared_ptr< GraphicsObject > const &object) |
GEDrawTarget * | Bind (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 |
GEObject * | Get (std::shared_ptr< GraphicsObject > const &object) const |
GEDrawTarget * | Get (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 | |
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 |
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 () |
Protected Member Functions | |
void | CreateDefaultFont () |
void | DestroyDefaultFont () |
virtual bool | Initialize (int requiredMajor, int requiredMinor, bool saveDriverInfo) |
void | Terminate () |
Protected Member Functions inherited from gte::GraphicsEngine | |
virtual void | DestroyDefaultGlobalState () |
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 |
Private Attributes | |
std::vector< std::shared_ptr< RawBuffer > > | mAtomicCounterRawBuffers |
ProgramIndexUnitMap | mShaderStorageUnitMap |
ProgramIndexUnitMap | mTextureImageUnitMap |
ProgramIndexUnitMap | mTextureSamplerUnitMap |
ProgramIndexUnitMap | mUniformUnitMap |
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 *) |
Definition at line 19 of file GteGL4Engine.h.
|
virtual |
Definition at line 39 of file GteGL4Engine.cpp.
GL4Engine::GL4Engine | ( | ) |
Definition at line 43 of file GteGL4Engine.cpp.
|
overridevirtual |
Implements gte::GraphicsEngine.
Definition at line 1267 of file GteGL4Engine.cpp.
|
overridevirtual |
Implements gte::GraphicsEngine.
Definition at line 931 of file GteGL4Engine.cpp.
|
overridevirtual |
Implements gte::GraphicsEngine.
Definition at line 913 of file GteGL4Engine.cpp.
|
overridevirtual |
Implements gte::GraphicsEngine.
Definition at line 919 of file GteGL4Engine.cpp.
|
overridevirtual |
Implements gte::GraphicsEngine.
Definition at line 925 of file GteGL4Engine.cpp.
|
overridevirtual |
Implements gte::GraphicsEngine.
Definition at line 1086 of file GteGL4Engine.cpp.
|
overridevirtual |
Implements gte::GraphicsEngine.
Definition at line 1098 of file GteGL4Engine.cpp.
|
overridevirtual |
Implements gte::GraphicsEngine.
Definition at line 1110 of file GteGL4Engine.cpp.
|
overridevirtual |
Implements gte::GraphicsEngine.
Definition at line 1122 of file GteGL4Engine.cpp.
|
overridevirtual |
Implements gte::GraphicsEngine.
Definition at line 1134 of file GteGL4Engine.cpp.
|
overridevirtual |
Implements gte::GraphicsEngine.
Definition at line 1146 of file GteGL4Engine.cpp.
|
overridevirtual |
Implements gte::GraphicsEngine.
Definition at line 1158 of file GteGL4Engine.cpp.
|
overridevirtual |
Implements gte::GraphicsEngine.
Definition at line 1170 of file GteGL4Engine.cpp.
|
overridevirtual |
Implements gte::GraphicsEngine.
Definition at line 1182 of file GteGL4Engine.cpp.
|
overridevirtual |
Implements gte::GraphicsEngine.
Definition at line 1194 of file GteGL4Engine.cpp.
|
overridevirtual |
Implements gte::GraphicsEngine.
Definition at line 1206 of file GteGL4Engine.cpp.
|
overridevirtual |
Implements gte::GraphicsEngine.
Definition at line 1215 of file GteGL4Engine.cpp.
|
overridevirtual |
Implements gte::GraphicsEngine.
Definition at line 1224 of file GteGL4Engine.cpp.
|
overridevirtual |
Implements gte::GraphicsEngine.
Definition at line 1235 of file GteGL4Engine.cpp.
|
overridevirtual |
Implements gte::GraphicsEngine.
Definition at line 1244 of file GteGL4Engine.cpp.
|
protected |
Definition at line 92 of file GteGL4Engine.cpp.
|
protected |
Definition at line 99 of file GteGL4Engine.cpp.
Definition at line 310 of file GteGL4Engine.cpp.
|
overridevirtual |
Implements gte::GraphicsEngine.
Definition at line 1017 of file GteGL4Engine.cpp.
Definition at line 351 of file GteGL4Engine.cpp.
Definition at line 548 of file GteGL4Engine.cpp.
Definition at line 747 of file GteGL4Engine.cpp.
Definition at line 489 of file GteGL4Engine.cpp.
|
private |
Definition at line 285 of file GteGL4Engine.cpp.
Definition at line 371 of file GteGL4Engine.cpp.
Definition at line 680 of file GteGL4Engine.cpp.
Definition at line 596 of file GteGL4Engine.cpp.
|
private |
Definition at line 190 of file GteGL4Engine.cpp.
|
overrideprivatevirtual |
Implements gte::GraphicsEngine.
Definition at line 1306 of file GteGL4Engine.cpp.
Definition at line 299 of file GteGL4Engine.cpp.
|
overridevirtual |
Implements gte::GraphicsEngine.
Definition at line 1011 of file GteGL4Engine.cpp.
Definition at line 321 of file GteGL4Engine.cpp.
Definition at line 543 of file GteGL4Engine.cpp.
Definition at line 721 of file GteGL4Engine.cpp.
Definition at line 376 of file GteGL4Engine.cpp.
|
private |
Definition at line 256 of file GteGL4Engine.cpp.
Definition at line 366 of file GteGL4Engine.cpp.
Definition at line 637 of file GteGL4Engine.cpp.
Definition at line 553 of file GteGL4Engine.cpp.
|
overridevirtual |
Implements gte::GraphicsEngine.
Definition at line 1273 of file GteGL4Engine.cpp.
|
overridevirtual |
Implements gte::GraphicsEngine.
Definition at line 1301 of file GteGL4Engine.cpp.
|
overridevirtual |
Implements gte::BaseEngine.
Definition at line 895 of file GteGL4Engine.cpp.
|
overridevirtual |
Implements gte::GraphicsEngine.
Definition at line 1256 of file GteGL4Engine.cpp.
Implements gte::BaseEngine.
Definition at line 880 of file GteGL4Engine.cpp.
|
protectedvirtual |
Reimplemented in gte::GLXEngine, and gte::WGLEngine.
Definition at line 108 of file GteGL4Engine.cpp.
|
pure virtual |
Implemented in gte::GLXEngine, and gte::WGLEngine.
|
pure virtual |
Implemented in gte::GLXEngine, and gte::WGLEngine.
|
inline |
Definition at line 228 of file GteGL4Engine.h.
Implements gte::BaseEngine.
Definition at line 903 of file GteGL4Engine.cpp.
|
overridevirtual |
Implements gte::BaseEngine.
Definition at line 939 of file GteGL4Engine.cpp.
|
overridevirtual |
Implements gte::BaseEngine.
Definition at line 890 of file GteGL4Engine.cpp.
|
overridevirtual |
Implements gte::BaseEngine.
Definition at line 963 of file GteGL4Engine.cpp.
|
overridevirtual |
Implements gte::BaseEngine.
Definition at line 987 of file GteGL4Engine.cpp.
Implements gte::BaseEngine.
Definition at line 875 of file GteGL4Engine.cpp.
|
protected |
Definition at line 140 of file GteGL4Engine.cpp.
|
overridevirtual |
Implements gte::GraphicsEngine.
Definition at line 1026 of file GteGL4Engine.cpp.
|
overridevirtual |
Implements gte::GraphicsEngine.
Definition at line 1038 of file GteGL4Engine.cpp.
|
overridevirtual |
Implements gte::GraphicsEngine.
Definition at line 1050 of file GteGL4Engine.cpp.
|
overridevirtual |
Implements gte::GraphicsEngine.
Definition at line 1062 of file GteGL4Engine.cpp.
|
overridevirtual |
Implements gte::GraphicsEngine.
Definition at line 1074 of file GteGL4Engine.cpp.
|
overridevirtual |
Implements gte::GraphicsEngine.
Definition at line 1296 of file GteGL4Engine.cpp.
|
private |
Definition at line 84 of file GteGL4Engine.h.
|
protected |
Definition at line 49 of file GteGL4Engine.h.
|
protected |
Definition at line 50 of file GteGL4Engine.h.
|
protected |
Definition at line 49 of file GteGL4Engine.h.
|
private |
Definition at line 114 of file GteGL4Engine.h.
|
private |
Definition at line 112 of file GteGL4Engine.h.
|
private |
Definition at line 111 of file GteGL4Engine.h.
|
private |
Definition at line 113 of file GteGL4Engine.h.