On 10/14/08, josch <[EMAIL PROTECTED]> wrote: > > On Oct 13, 11:16 pm, "Alex Holkner" <[EMAIL PROTECTED]> wrote: > > Bilinear filtering is in texture fetch, not a raster op -- the only > > way to do it is to draw your tiles at 1:1 scale with no rotation, copy > > the framebuffer into a texture, then redraw that texture with the > > desired transformation and bilinear filtering. > > > > Alex. > > > Yes!! Great idea!! > How do I copy my batch (only a part of what i draw - not the whole > scene) into a texture? > something like > pyglet.image.get_buffer_manager().get_color_buffer() ?
Yep. The fixed_resolution.py example demonstrates this (albeit with filtering deliberately disabled). There are also faster paths for newer hardware using framebuffer objects (AFAIK cocos2d has an implementation of this that you could use/borrow). 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 -~----------~----~----~----~------~----~------~--~---
