Thanks, I discovered that thing a while ago! Sprite data are
references to palette colours, and I thought they were RGB triplets :)
On Thu, 24 Feb 2005 21:00:42 +, Philip Searle
[EMAIL PROTECTED] wrote:
Rodrigo 'r2d2rigo' Diaz wrote:
Hi, I want to load a SPR file to use it as a texture in
Hi, I want to load a SPR file to use it as a texture in one OpenGL
program. I have based my code from the one in sprgen.c. For testing,
I'm using a single frame 256*256 sprite, and I follow this order for
reading the data:
-1 struct dsprite_t (sprite header)
-1 short (# of palette indexes - 256)
Rodrigo 'r2d2rigo' Diaz wrote:
Hi, I want to load a SPR file to use it as a texture in one OpenGL
program. I have based my code from the one in sprgen.c. For testing,
I'm using a single frame 256*256 sprite, and I follow this order for
reading the data:
-1 struct dsprite_t (sprite header)
-1 short
3 matches
Mail list logo