OGLWrappers Extension’s Free Functions¶
Boolean CheckOGLContextValidity ( io Ref<OGLContext> context )
UInt16 FloatToNormalizedUInt16 ( in Float32 value )
GLSLPreprocessor_debugPrintInsertionPoint ( in GLSLInsertionPoint insertionPoint[] )
GLSLPreprocessor_debugPrintLines ( in String lines[] )
GLSLPreprocessor_debugPrintMappings ( in GLSLLineMapping mappings[] )
GLSLPreprocessor_debugPrintParams ( in GLSLParam params[] )
String GLSLPreprocessor_errorMessageParser ( in String glslErrorMessage, in GLSLLineMapping mappings[] )
GLSLPreprocessor_extractMetaData ( in String glslCode, io GLSLParam params[], io GLSLInsertionPoint insertionPoints[] )
GLSLPreprocessor_extractMetaData ( in String lines[], io GLSLParam params[], io GLSLInsertionPoint insertionPoints[] )
Integer GLSLPreprocessor_findOpeningBlockCommentBrace ( in String lines[], in UInt32 closeBraceLine, io Integer openBracePos )
GLSLPreprocessor_findSourceLocation ( in Integer lineNumber, in GLSLLineMapping mappings[], io Integer mappingIndex, io Integer mappingLineIndex )
String GLSLPreprocessor_gatherValueMetadata ( in String lines[], in Integer lineNumber )
GLSLParam GLSLPreprocessor_generateGLSLParam ( in String parts[], in String metadata )
Boolean GLSLPreprocessor_getInsertionPoint ( in String line, io String label, io Boolean fetch, io String tag )
GLSLPreprocessor_insertCode ( io GLSLInsertionPoint insertionPoints[], in GLSLCodeInsertion insertionsPerPoint[][], io String lines[], io GLSLLineMapping mappings[] )
Boolean GLSLPreprocessor_isIncluded ( in String glslFilePath, in GLSLLineMapping mappings[] )
Float32[] GLSLPreprocessor_parseScalarArray ( in String defaultValueStr )
String[] GLSLPreprocessor_preProcess ( in String glslFilePath, in String glslCode, in String searchPaths<>, io GLSLLineMapping mappings[], in Integer outputLineIndex, in Boolean reportFilenamesOnly )
String GLSLPreprocessor_preProcess ( in String glslFilePath, in String glslCode, in String searchPaths<>, io String glslVersion, io GLSLLineMapping mappings[], in Boolean reportFilenamesOnly )
String GLSLPreprocessor_preProcess ( in String glslFilePath, in String glslCode, in String searchPaths<>, io String glslVersion, io GLSLLineMapping mappings[], io String splitCodeLines[], in Boolean reportFilenamesOnly )
String[] GLSLPreprocessor_splitOnWhitepspace_ignoreComments ( in String str )
SInt32 GLSLTypeNameToGLType ( in String typeName )
UInt32 GLShaderTypeToIndex ( in Integer glShaderType )
String GLShaderTypeToString ( in Integer glShaderType )
Ref<OGLContext> GetCurrentContext ( in Boolean canCreate )
Ref<OGLContext> GetCurrentContext ()
UInt32 GetOpenGLColorProfileFromChannels ( in Size nbChannels )
String KLTypeToGLSLBaseType ( in Type type )
UInt32 KLTypeToOpenGLBaseType ( in Type type )
OGLProgram_glTypeInfo ( in Integer glType, io Integer glComponentType, io UInt32 componentPerItem, io Type klType, io Size bytes, io Boolean isSampler, io UInt32 expectedTextureType, io Boolean shadowTexture, io Boolean isMatrix )
paramCategory | OGLProgram_[x]:ref:Param <param> constant |
String OGLProgram_glTypeToString ( in Integer glType )
paramCategory | OGLProgram_[x]:ref:Param <param> constant |
String OGLProgram_paramCategoryToString ( in UInt32 paramCategory )
paramCategory | OGLProgram_[x]:ref:Param <param> constant |
Type OpenGLBaseTypeToKLType ( in UInt32 glType )
Boolean SearchGLSLShader ( in String directory, in String namePrefix, in String includePath )
Open a group of files following this name convention: directory/[namePrefix]_[shaderType].glsl
SetOGLWrappersTracing ( in Boolean enableTrace, in Boolean tracingProgramParameterValues )
_RemoveGLParamNameArraySuffix ( io String name )
UInt64 _getTextureApproximateGPUMemoryUsage ( in UInt64 size, in Integer glInternalFormat )
_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 ( 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 )
getTypeInformation ( in UInt32 glInternalFormat, io UInt32 componentType, io UInt32 redBits, io UInt32 greenBits, io UInt32 blueBits, io UInt32 alphaBits, io UInt32 depthBits, io UInt32 stencilBits )