[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| 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. Best, Daniel [1] http://www.mesa3d.org/brianp/sig97/perfopt.htm#Misc