| OpenGL-2.2.1.1: A binding for the OpenGL graphics system | Source code | Contents | Index

Graphics.Rendering.OpenGL.GL.StringQueries

Portability | portable
Stability | stable
Maintainer | sven.panne@aedion.de

Description
This module corresponds to parts of section 6.1.11 (Pointer and String Queries) of the OpenGL 2.1 specs.
Synopsis

vendor :: GettableStateVar String
renderer :: GettableStateVar String
glVersion :: GettableStateVar String
glExtensions :: GettableStateVar [String]
shadingLanguageVersion :: GettableStateVar String
majorMinor :: GettableStateVar String -> GettableStateVar (Int, Int)

Documentation

vendor :: GettableStateVar String | Source

renderer :: GettableStateVar String | Source

glVersion :: GettableStateVar String | Source

glExtensions :: GettableStateVar [String] | Source

shadingLanguageVersion :: GettableStateVar String | Source

majorMinor :: GettableStateVar String -> GettableStateVar (Int, Int) | Source

A utility function to be used with e.g. `glVersion` or `shadingLanguageVersion`, transforming a variable containing a string of the form major.minor[optional rest] into a variable containing a numeric major/minor version. If the string is malformed, which should never happen with a sane OpenGL implementation, it is transformed to `(-1,-1)`.
Produced by Haddock version 0.9