On Fri, Sep 4, 2009 at 3:01 PM, Lenny <[email protected]> wrote: > Im wondering how to scale all renderings twice its size in pyglet. I > basically want to allow the user to be able to scale the window/pixels > up to twice the original. The original window size may be 320x240. > Scaled twice the pyglet window would be 640x480, and the pixels twice > as large now. > > Must i use an opengl FBO?
Depending on the effect you want to achieve, a glScalef(0.5, 0.5, 0.5) or a glOrtho(width/2, height/2) would be a lot simpler. This generally won't give you the pixelated effect (which you may or may not want), but by keeping your textures at a low resolution and setting the texture magnification filter to GL_NEAREST, the effect can be emulated. -- 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] For more options, visit this group at http://groups.google.com/group/pyglet-users?hl=en -~----------~----~----~----~------~----~------~--~---
