Offscreen rendering in opengl can be done with RTT and VBOs

http://www.opengl-tutorial.org/intermediate-tutorials/tutorial-14-render-to-texture/


On Tue, May 7, 2013 at 1:11 AM, Gerardo Marset <[email protected]> wrote:

> It is my understanding that the blit method usually blits to the current
> OpenGL Context.
> Can I do something like this?
>
>
> window = pyglet.window.Window()
> canvas = OpenGLContext()
>
> @window.event
> def on_draw():
>     pyglet.gl.Context.set_current(canvas)
>     some_function_that_blits_stuff()
>     window.switch_to()
>     canvas.blit(0, 0)
>
>
> Otherwise is there any class I can use to blit everything into, before
> blitting it to the window? I don't want my game objects to blit to the
> window directly.
>
> --
> You received this message because you are subscribed to the Google Groups
> "pyglet-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/pyglet-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pyglet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to