[Mesa-dev] [PATCH 3/4] queryobj: Add IsQuery flag, making ISQuery() return false before BeginQuery()

Paul Berry stereotype441 at gmail.com
Wed Dec 19 21:40:04 PST 2012


On 19 December 2012 20:17, Matt Turner <mattst88 at gmail.com> wrote:

> On Mon, Dec 17, 2012 at 2:24 PM, Carl Worth <cworth at cworth.org> wrote:
> > +   GLboolean IsQuery;  /**< query object is an actual query (see spec.)
> */
>
> I don't mean to bikeshed this, but I'm doing this patch for the other
> Is* functions and I'm thinking that Is* is a really bad name for this
> field. Vertex array objects already have a _Used field, since ARB vs
> Apple semantics are determined by which bind call is used. Can we come
> up with a better naming convention? Maybe _Used/Used/EverBound or
> something?
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
>

I'd like to put in a vote for EverBound--it makes it immediately clear (a)
what action causes it to become true, and (b) that it thereafter remains
true for the lifetime of the object.  (Neither of those two things are
quite so obvious with Used or IsQuery).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20121219/89a852ea/attachment-0001.html>


More information about the mesa-dev mailing list