Hi Alex, Thanks for the prompt response.
I will definitely look in this, but at the moment I'm just trying to find my feet. Could you tell me if the following theory is correct ... 1/ Set up X and Y variables, initially at say 0, 0 - this should render a view of 0 + window.width and 0 + window.height 2/ Set up a scheduled event to fire say 5 times a second, in it incrementing/decrementing X and/or Y as required but testing to make sure we don't go of the edge of the overall screen 3/ In the on_draw event use glTranslatef using my X and Y variables and 0 as the Z option as we are dealing with 2D, which will actually render the view In theory if I've understood you correctly this should move the 'view' or 'camera' around as I need ? Thanks -Mic 2008/12/12 Alex Holkner <[email protected]>: > > On 12/12/08, Mic Pringle <[email protected]> wrote: >> >> Hi, >> >> Thanks for the response. >> >> This is what I can't seem to get my head around ... how does the >> window know what area to draw ? If I pass it the x and y value, does >> it draw x + window width and y + window width, so by incrementing, >> decremeting x and y it actually moves the 'view' or 'camera' around ? > > You can think of it that way if you like. I'd suggest picking up any > book (or web page) on graphics programming, or even specifically > OpenGL, to really understand it. > > Alex. > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
