glPushAttrib(GL_CULL_FACE);
glDisable(GL_CULL_FACE);
.....
glPopAttrib();
and then cull facing was disabled. Why? Isn't it suppose to be enabled or
did I miss something somewhere.
V-man
Is there a difference between GL_ENABLE_BIT and GL_POLYGON_BIT, both of
which show a GL_CULL_FACE component, or is it the same?
zin
--
For PC & Mac 3-D graphics shareware & more: http://www.zintel.com
glPushAttrib(GL_POLYGON_BIT);
The current face culling mode is saved in the polygon bit.
Jason A.
DelphiGL (http://delphigl.cfxweb.net)
"V-man" <v_me...@alcor.concordia.ca> wrote in message
news:Pine.OSF.4.31.01022...@alcor.concordia.ca...
The GL_ENABLE_BIT just saves whether back face culling is enabled. The
GL_POLYGON_BIT saves the face culling method (front or back).
Jason A.
DelphiGL (http://delphigl.cfxweb.net)
"George Ziniewicz" <zi...@home.com> wrote in message
news:3A95C08C...@home.com...
GL_CULL_FACE is not a valid argument to glPushAttrib().
If you run glError() and test the results, you are more likely to catch
stupid errors. I've sprinkled calls all over my code, throwing exceptions
when a glError has occured and I'm able to pinpoint runtime errors quite
fast.
/Marcus
one sure fire way is GL_ALL_ATTRIB_BITS
--
lets hear it 4 billy bollux and his AMAZING bouuuncing balls
zed zeek - big bollucked king of the world , messiah , and all round nice guy.
GET IT HERE http://members.xoom.com/myBollux FREE BOLLUX
"V-man" <v_me...@alcor.concordia.ca> wrote in message
news:Pine.OSF.4.31.01022...@alcor.concordia.ca...
>
V-man
Correct. The OP could have determined this quite quickly with a call to
glGetError(), which would have retuend GL_INVALID_ENUM.
--
-Paul Martz (paul_...@hp.com)
Hewlett Packard TCD Personal Workstations Lab
OpenGL FAQ: http://www.opengl.org/developers/faqs/technical.html
http://www.frii.com/~martz/oglfaq
> "Jason Allen" <jra...@home.com> wrote in message
> news:WIll6.601$z_3.14...@den-news1.rmi.net...
> > GL_CULL_FACE isn't an attribute that glPushAttrib takes as a parameter.
>
> Correct. The OP could have determined this quite quickly with a call to
> glGetError(), which would have retuend GL_INVALID_ENUM.
GL_CULL_FACE is equal to 0x0B44, which is the
same as:
GL_LINE_BIT | GL_LIGHTING_BIT | GL_DEPTH_BUFFER_BIT | GL_ACCUM_BUFFER_BIT |
GL_VIEWPORT_BIT
So this is a perfectly good call to glPushAttrib, although the "spelling" isn't
correct.
--
Andy V (OpenGL Alpha Geek)
"In order to make progress, one must leave the door to the unknown ajar."
Richard P. Feynman, quoted by Jagdish Mehra in _The Beat of a Different Drum_.
Paul Martz's OpenGL FAQ: http://www.opengl.org/developers/faqs/technical.html
V-man
There goes my authority. :)
GL seriously need a C++ wrapper with stronger type checking.
(And function overloads, dammit!) Perhaps something like this
already exists?
/Marcus