Upon inspection I realized I got my demos mixed up. This one is completely
Ortho; the other uses 3D. Therefore the body of _draw_menu() can be reduced
to:
glPushMatrix()
self.menu.draw()
glPopMatrix()
That removes many variables, and the problem still occurs. On the upside, it
rules out any error in changing the view.
Gumm
On Thu, Oct 21, 2010 at 5:27 PM, B W <[email protected]> wrote:
> Whoops, tried to get fancy with Gmail. That'll learn me.
>
>
> http://code.google.com/p/worldkit/downloads/detail?name=batch_vs_gl.zip&can=2&q=
>
> Thinking ahead, based on your response, Tristam: is there a way in OpenGL
> to query what view you are in? I am pretty sure the view is in perspective,
> but it would be handy to have GL tell me it is (or is not).
>
> bw
>
>
> On Thu, Oct 21, 2010 at 5:01 PM, Tristam MacDonald
> <[email protected]>wrote:
>
>> On Thu, Oct 21, 2010 at 7:30 PM, B W <[email protected]> wrote:
>>
>>> I reduced the problem to what I hope an easily digestible demo:
>>> batch_vs_gl.zip. Pyglet 1.1.4.128, OpenGL 2.1, PyOpenGL 3, Python 2.6.
>>>
>>
>> Your attachment/link failed.
>>
>> Working from the information you have given, I would guess the most
>> likely candidate is that your aren't resetting a perspective projection
>> after drawing the GUI.
>>
>> --
>> Tristam MacDonald
>> http://swiftcoder.wordpress.com/
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "pyglet-users" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected]<pyglet-users%[email protected]>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/pyglet-users?hl=en.
>>
>
>
--
You received this message because you are subscribed to the Google Groups
"pyglet-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/pyglet-users?hl=en.