Copyright | (c) Sven Panne 2006-2016 |
---|---|
License | BSD3 |
Maintainer | Sven Panne <svenpanne@gmail.com> |
Stability | stable |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
This module corresponds to section 7.1 (Shader Objects) and 7.13 (Shader, Program, and Program Pipeline Queries) of the OpenGL 4.4 spec.
- shaderCompiler :: GettableStateVar Bool
- data ShaderType
- data Shader
- createShader :: ShaderType -> IO Shader
- shaderSourceBS :: Shader -> StateVar ByteString
- shaderSource :: Shader -> StateVar [String]
- compileShader :: Shader -> IO ()
- releaseShaderCompiler :: IO ()
- shaderType :: Shader -> GettableStateVar ShaderType
- shaderDeleteStatus :: Shader -> GettableStateVar Bool
- compileStatus :: Shader -> GettableStateVar Bool
- shaderInfoLog :: Shader -> GettableStateVar String
- data PrecisionType
- shaderPrecisionFormat :: ShaderType -> PrecisionType -> GettableStateVar ((GLint, GLint), GLint)
- packUtf8 :: String -> ByteString
- unpackUtf8 :: ByteString -> String
Shader Objects
data ShaderType Source #
createShader :: ShaderType -> IO Shader Source #
shaderSourceBS :: Shader -> StateVar ByteString Source #
UTF8 encoded.
shaderSource :: Shader -> StateVar [String] Source #
Deprecated: Use a combination of shaderSourceBS
and packUtf8
or unpackUtf8
instead.
compileShader :: Shader -> IO () Source #
releaseShaderCompiler :: IO () Source #
Shader Queries
data PrecisionType Source #
shaderPrecisionFormat :: ShaderType -> PrecisionType -> GettableStateVar ((GLint, GLint), GLint) Source #
Bytestring utilities
packUtf8 :: String -> ByteString Source #
unpackUtf8 :: ByteString -> String Source #