olzbold.blogg.se

Opengl es 2.0 framebuffer multiple textures
Opengl es 2.0 framebuffer multiple textures








opengl es 2.0 framebuffer multiple textures

Init (const Aspect_Drawable theSurface, const Aspect_Display theDisplay, const Aspect_RenderingContext theContext, const Standard_Boolean theIsCoreProfile= Standard_False) Initialize class from currently bound OpenGL context. Init (const Standard_Boolean theIsCoreProfile= Standard_False) theShareCtx - handle to context to retrieve handles to shared resources. Release all resources, including shared ones.

opengl es 2.0 framebuffer multiple textures

You should call Init() to perform initialization with bound GL context. OpenGl_Context (const Handle &theCaps=NULL)Įmpty constructor. Returns a type descriptor about this object. void glGetInteger64v( GLenum pname, - GLint64 * data) -void glGetBooleani_v( GLenum target, - GLuint index, - GLboolean * data) - GL_INVALID_ENUM is generated if pname is not an accepted value.Public Types inherited from Standard_Transient Unsafe ( unsafePerformIO ) - * Extension detection hasExt :: String -> Bool hasExt ext = ext `elem` glExtensions -hasExt :: CString -> Bool -glGetString 0x1F03 >= indexOf ext /= -1 hasES3 :: Bool hasES3 = glEnv majorVersion > 2 extVAO :: Maybe ( GLsizei -> Ptr GLuint -> GL (), GLuint -> GL (), GLsizei -> Ptr GLuint -> GL () ) extVAO | hasES3 = Just ( glGenVertexArrays, glBindVertexArray, glDeleteVertexArrays ) | hasExt "GL_OES_vertex_array_object" = Just ( glGenVertexArraysOES, glBindVertexArrayOES, glDeleteVertexArraysOES ) | otherwise = Nothing - * String Parameters glVendor, glRenderer, glVersion, glShadingLanguageVersion :: String glVendor = unsafePerformIO $ glGetString 0x1F00 >= peekCString glRenderer = unsafePerformIO $ glGetString 0x1F01 >= peekCString glVersion = unsafePerformIO $ glGetString 0x1F02 >= peekCString glShadingLanguageVersion = unsafePerformIO $ glGetString 0x8B8C >= peekCString - * Integer Parameters newtype GLParam = GLParam GLenum - glGetBooleanv glGetFloatv glGetIntegerv glGetInteger64v - glGetBooleani_v glGetIntegeri_v glGetInteger64i_v - As of 3.1, 188 + ext parameters are queriable. (glGetString could return null pointer!) module Graphics.

opengl es 2.0 framebuffer multiple textures

Do NOT call below APIs out of OpenGL threads. Graphics/OpenGLES/Env.hs - | Retriving implementation depend constant values.










Opengl es 2.0 framebuffer multiple textures