English version
Accueil     Ŕ propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis ŕ jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml ŕ l'adresse ocaml.org.

Browse thread
glGetInteger not in lablGL?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2007-05-01 (07:24)
From: Daniel_Bünzli <daniel.buenzli@e...>
Subject: Re: [Caml-list] glGetInteger not in lablGL?

Le 30 avr. 07 ŕ 23:46, Carlos Scheidegger a écrit :

> (and I'm not even sure whether caml-list is the right place for this)

There's no other list so I think it's right.

> but has anyone ever needed to
> do the equivalent of glGetInteger(GL_VIEWPORT, x) in OCaml using  
> lablGL?

Usually I don't need it because unless the viewport is specified by a  
third party library, this information is usually setup by you, hence  
you can store it somewhere for yourself if needed.

> Is this unimplemented?

Yes it is unimplemented. I don't think it is worth implementing  
because in general querying OpenGL state with glGet (e.g. to get the  
current matrix) should be avoided, it is too slow [1]. It's faster to  
have a mirror of this information on your side.



[1] http://www.mesa3d.org/brianp/sig97/perfopt.htm#Misc