Yes, this works perfectly. I have one giant image called screen, and 
whenever I draw any other image, I do this:

screen.blit_into(image, x, y, 0)

In on_draw, I call

screen.blit(0, 0)

On Wednesday, April 22, 2015 at 1:41:12 PM UTC-4, pyglet_has_bugs wrote:
>
> I think this might be a good solution: 
> http://stackoverflow.com/questions/11814179/pyglet-drawing-a-set-of-images-to-a-larger-one
>
> In the top answer, multiple images are drawn to a single image using 
> blit_into, and only the resulting image is drawn using blit.
>
> On Tuesday, April 21, 2015 at 4:35:38 PM UTC-4, claudio canepa wrote:
>>
>>
>>
>> On Tue, Apr 21, 2015 at 3:33 PM, pyglet_has_bugs <[email protected]> 
>> wrote:
>> ...
>>
>> ALL my application does graphically is blit images once in a while, and 
>>> blit them again when the images become modified, so it seems like there 
>>> should be a very simple solution.
>>>
>>
>> Yes, sounds as it should be simple, so some questions
>>
>> If you were drawing using window.clear , how much images would need to be 
>> drawn ?
>>
>> An idea about the size of the images ?
>>
>> How looks your on_draw method when using window.clear ?
>>
>> Whats your video hardware ? ( very old Intel gpus were incredibly slow to 
>> draw textures with non power of two dimensions )
>>
>>
>>
>>
>>

-- 
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to