OpenGL-3.0.1.0: A binding for the OpenGL graphics system

Copyright(c) Sven Panne 2002-2016
LicenseBSD3
MaintainerSven Panne <svenpanne@gmail.com>
Stabilitystable
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

Graphics.Rendering.OpenGL.GL.StringQueries

Description

This module corresponds to parts of section 6.1.5 (String Queries) of the OpenGL 3.2 specs.

Synopsis

Documentation

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).