OGLWrappers.kl

Interfaces

DoubleBuffer (interface)

DoubleBuffer DoubleBuffer DoubleBuffer

Functions

  copyBuffer ! ( in Size from, in Size to )

Functions in detail

DoubleBuffer.copyBuffer! ( in Size from, in Size to )

[from,to] can be [0,1] or [1,0]

Types

DoubleBufferState (struct)

Members

UInt32 iteration  
Ref<DoubleBuffer> doubleBuffer  
UInt32 index  
Boolean readOnly  
UInt32 readIndex  

Methods

  DoubleBufferState ( in DoubleBufferState other )
  DoubleBufferState ()
  beginIteration ! ( in UInt32 iteration, in Boolean needDoubleBuffering )
DoubleBufferState clone ? ()
  init ! ( in Ref<DoubleBuffer> doubleBuffer )
Boolean isReadOnly ? ()
  makeWritable ! ()

OGLWrapperGlobals (object)

Members

Boolean tracingEnabled  
Boolean tracingProgramParameterValues  
OGLPerThreadContexts perThreadContexts  
OGLCapabilities capabilities  
LockedInitialize capabilitiesLockedInit  
IndexPool contextIDs  
Ref<OGLContext>[] contexts  
UInt32 nextGlobalFramebufferID  
UInt32 nextGlobalVertexArrayID  

Functions

SetOGLWrappersTracing

SetOGLWrappersTracing ( in Boolean enableTrace, in Boolean tracingProgramParameterValues )

_getTextureApproximateGPUMemoryUsage

UInt64 _getTextureApproximateGPUMemoryUsage ( in UInt64 size, in Integer glInternalFormat )

_getTextureTypeBits

_getTextureTypeBits ( in UInt32 glInternalFormat, io UInt32 componentType, io UInt32 redBits, io UInt32 greenBits, io UInt32 blueBits, io UInt32 alphaBits, io UInt32 depthBits, io UInt32 stencilBits )

_getTextureTypeFromBits

_getTextureTypeFromBits ( in UInt32 componentType, in UInt32 redBits, in UInt32 greenBits, in UInt32 blueBits, in UInt32 alphaBits, in UInt32 depthBits, in UInt32 stencilBits, io UInt32 glInternalFormat, io UInt32 glFormat )

GetOpenGLColorProfileFromChannels

UInt32 GetOpenGLColorProfileFromChannels ( in Size nbChannels )

GLSLTypeNameToGLType

SInt32 GLSLTypeNameToGLType ( in String typeName )

KLTypeToGLSLBaseType

String KLTypeToGLSLBaseType ( in Type type )

KLTypeToOpenGLBaseType

UInt32 KLTypeToOpenGLBaseType ( in Type type )

OpenGLBaseTypeToKLType

Type OpenGLBaseTypeToKLType ( in UInt32 glType )