Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: "Daniel Bünzli" <daniel.buenzli@epfl.ch>
To: Caml List <caml-list@inria.fr>
Subject: Re: [Caml-list] glGetInteger not in lablGL?
Date: Tue, 1 May 2007 09:24:57 +0200	[thread overview]
Message-ID: <5E2634ED-6684-470A-A25D-FD4890B71805@epfl.ch> (raw)
In-Reply-To: <463663AA.7020109@sci.utah.edu>


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




      reply	other threads:[~2007-05-01  7:24 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-30 21:46 Carlos Scheidegger
2007-05-01  7:24 ` Daniel Bünzli [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5E2634ED-6684-470A-A25D-FD4890B71805@epfl.ch \
    --to=daniel.buenzli@epfl.ch \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox