Urho3D
Public Member Functions | Private Attributes | Friends | List of all members
Urho3D::GraphicsImpl_OGL Class Reference

Graphics subsystem implementation. Holds API-specific objects. More...

#include </home/runner/work/rurho3d.github.io/rurho3d.github.io/urho3d_repo/Source/Urho3D/GraphicsAPI/OpenGL/OGLGraphicsImpl.h>

Public Member Functions

 GraphicsImpl_OGL ()=default
 Construct.
 
const SDL_GLContext & GetGLContext ()
 Return the GL Context.
 

Private Attributes

SDL_GLContext context_ {}
 SDL OpenGL context.
 
unsigned systemFBO_ {}
 iOS/tvOS system framebuffer handle.
 
unsigned activeTexture_ {}
 Active texture unit.
 
unsigned enabledVertexAttributes_ {}
 Enabled vertex attributes bitmask.
 
unsigned usedVertexAttributes_ {}
 Vertex attributes bitmask used by the current shader program.
 
unsigned instancingVertexAttributes_ {}
 Vertex attribute instancing bitmask for keeping track of divisors.
 
const HashMap< Pair< i8, i8 >, unsigned > * vertexAttributes_ {}
 Current mapping of vertex attribute locations by semantic. The map is owned by the shader program, so care must be taken to switch a null shader program when it's destroyed.
 
unsigned boundFBO_ {}
 Currently bound frame buffer object.
 
unsigned boundVBO_ {}
 Currently bound vertex buffer object.
 
unsigned boundUBO_ {}
 Currently bound uniform buffer object.
 
unsigned resolveSrcFBO_ {}
 Read frame buffer for multisampled texture resolves.
 
unsigned resolveDestFBO_ {}
 Write frame buffer for multisampled texture resolves.
 
int pixelFormat_ {}
 Current pixel format.
 
HashMap< hash64, FrameBufferObjectframeBuffers_
 Map for FBO's per resolution and format.
 
unsigned textureTypes_ [MAX_TEXTURE_UNITS] {}
 OpenGL texture types in use.
 
ConstantBufferMap allConstantBuffers_
 Constant buffer search map.
 
ConstantBufferconstantBuffers_ [MAX_SHADER_PARAMETER_GROUPS *2] {}
 Currently bound constant buffers.
 
Vector< ConstantBuffer * > dirtyConstantBuffers_
 Dirty constant buffers.
 
unsigned lastInstanceOffset_ {}
 Last used instance data offset.
 
HashMap< unsigned, SharedPtr< Texture2D > > depthTextures_
 Map for additional depth textures, to emulate Direct3D9 ability to mix render texture and backbuffer rendering.
 
ShaderProgram_OGLshaderProgram_ {}
 Shader program in use.
 
ShaderProgramMap_OGL shaderPrograms_
 Linked shader programs.
 
bool fboDirty_ {}
 Need FBO commit flag.
 
bool vertexBuffersDirty_ {}
 Need vertex attribute pointer update flag.
 
bool sRGBWrite_ {}
 sRGB write mode flag.
 

Friends

class Graphics
 

Detailed Description

Graphics subsystem implementation. Holds API-specific objects.


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