• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Save an image into a buffer

M

Misu

Guest
Im new to buffers and was wondering how images are saved into buffers. Im pretty sure it is possible but I dont find any info on such.
 

CMAllen

Member
buffer_get_surface will write the RGBA information of a surface to the designated buffer for you. Draw what you want to said buffer and there you go.
 
H

Hieran_Del8

Guest
If you want a sprite texture, I learned recently you can first draw a sprite to a surface, which enables you to get sprite data following CMAllen's suggestion.
 
Top