Using embedded images May 04, 2010 06:03PM | Registered: 14 years ago Posts: 34 |
#include "grrlib_logo_jpg.h" // ... GRRLIB_texImg* img = GRRLIB_LoadTexture(grrlib_logo_jpg); while (/*...*/) { GRRLIB_DrawImg(0, 0, img, 0, 1, 1, 0xFFFFFFFF); GRRLIB_Render(); }
Re: Using embedded images May 04, 2010 07:41PM | Registered: 16 years ago Posts: 175 |
Re: Using embedded images May 04, 2010 08:20PM | Registered: 14 years ago Posts: 34 |
extern const u8 grrlib_logo_jpg_end[]; extern const u8 grrlib_logo_jpg[]; extern const u32 grrlib_logo_jpg_size;
Re: Using embedded images May 04, 2010 08:53PM | Registered: 14 years ago Posts: 34 |
Re: Using embedded images May 04, 2010 09:20PM | Registered: 16 years ago Posts: 175 |
GRRLIB_texImg* img = GRRLIB_LoadTextureJPGEx(grrlib_logo_jpg, grrlib_logo_jpg_size);The JPEG format does not include the size in the file header. PNG and Bitmap have that.
Re: Using embedded images May 05, 2010 04:27PM | Registered: 14 years ago Posts: 34 |