LLGL 0.05 Beta
Loading...
Searching...
No Matches
LLGL::OpenGL Namespace Reference

Classes

struct  RenderSystemNativeHandle
 Android native handle structure for the OpenGL render system. More...
struct  NativeCommand
 Native command data structure as a workaround for backend differences. More...
struct  ResourceNativeHandle
 Native handle structure for an OpenGL resource. More...

Enumerations

enum class  RenderSystemNativeType { GLX , EGL }
 Native type enumeration for the OpenGL render system to distinguish between GLX (X11) and EGL (Wayland). More...
enum class  NativeCommandType { ClearCache = 1u }
 Enumeration of all native commands the OpenGL backend can execute. More...
enum class  ResourceNativeType {
  Buffer , Texture , Sampler , Renderbuffer ,
  ImmutableBuffer , ImmutableTexture , ImmutableRenderbuffer , EmulatedSampler
}
 Native OpenGL resource type enumeration. More...

Enumeration Type Documentation

◆ NativeCommandType

Enumeration of all native commands the OpenGL backend can execute.

See also
NativeCommand::type
Enumerator
ClearCache 

Clears the internal command buffer cache.

Remarks
This should be used when a native command buffer handle is retrieved and LLGL is supposed to continue dispatching graphics and compute commands after the native command buffer has been modified.
This is a slow operation because all internally managed OpenGL states will be retrieved from the current GL context, i.e. a large number of glGet* functions will be invoked by this operation.

◆ RenderSystemNativeType

Native type enumeration for the OpenGL render system to distinguish between GLX (X11) and EGL (Wayland).

See also
RenderSystemNativeHandle::type
Enumerator
GLX 
EGL 

◆ ResourceNativeType

Native OpenGL resource type enumeration.

See also
ResourceNativeHandle::type
Enumerator
Buffer 

Default buffer resource.

Remarks
Its identifier was created with glGenBuffers.
Texture 

Default texture resource.

Remarks
Its identifier was created with glGenTextures.
Sampler 

Sampler-state resource.

Remarks
Its identifier was created with glGenSamplers if the OpenGL extension GL_ARB_sampler_objects is available.
Renderbuffer 

Default renderbuffer resource.

Remarks
Its identifier was created with glGenRenderbuffers.
This is used for depth-stencil textures that cannot be read or written directly by shaders.
ImmutableBuffer 

Immutable buffer resource.

Remarks
Its identifier was created with glCreateBuffers if the OpenGL extension GL_ARB_direct_state_access is available.
ImmutableTexture 

Immutable texture resource.

Remarks
Its identifier was created with glCreateTextures if the OpenGL extension GL_ARB_direct_state_access is available.
ImmutableRenderbuffer 

Immutable renderbuffer resource.

Remarks
Its identifier was created with glCreateRenderbuffers if the OpenGL extension GL_ARB_direct_state_access is available.
This is used for depth-stencil textures that cannot be read or written directly by shaders.
EmulatedSampler 

Emulated sampler-state resource.

Remarks
This does not provide an identifier and is only used when the OpenGL extension GL_ARB_sampler_objects is not available.