Re: GRRLIB Help March 23, 2009 01:10AM | Registered: 15 years ago Posts: 444 |
GRRLIB_texImg GRRLIB_LoadTexture(const unsigned char my_img[]); inline void GRRLIB_DrawImg(f32 xpos, f32 ypos, GRRLIB_texImg tex, float degrees, float scaleX, f32 scaleY, u32 color );
u8 *tex_ready=GRRLIB_LoadTexture(ready); GRRLIB_DrawImg(0,0,tex_ready,0,1,1,0x00ff00ff);I Want to show a pic the size of the entire screen
Re: GRRLIB Help March 23, 2009 05:00AM | Registered: 15 years ago Posts: 83 |
Re: GRRLIB Help March 23, 2009 05:33PM | Registered: 15 years ago Posts: 444 |
u8 *tex_ready=GRRLIB_LoadTexture(ready);once i get this i know that the next line will work. in my ready.h file
#ifndef _Ready_h_ #define _Ready_h_ //--------------------------------------------------------------------------------- const unsigned char Ready[] = { A bunch of hex values }; const int Ready_size = 63773; //--------------------------------------------------------------------------------- #endif //_Ready_h_
Re: GRRLIB Help March 23, 2009 10:18PM | Registered: 15 years ago Posts: 83 |
#include "gfx/Ready.h" u8 *tex_ready=GRRLIB_LoadTexture(Ready);
Re: GRRLIB Help March 24, 2009 04:12PM | Registered: 15 years ago Posts: 444 |
Re: GRRLIB Help March 25, 2009 06:32AM | Registered: 16 years ago Posts: 175 |
Re: GRRLIB Help March 25, 2009 04:22PM | Registered: 15 years ago Posts: 444 |
linking ... pong.elf GRRLIB.o: In function `GRRLIB_LoadTexturePNG': d:/homebrew/mystuff/pong/source/GRRLIB/GRRLIB.c:138: undefined reference to `PNGU_SelectImageFromBuffer' d:/homebrew/mystuff/pong/source/GRRLIB/GRRLIB.c:139: undefined reference to `PNGU_GetImageProperties' d:/homebrew/mystuff/pong/source/GRRLIB/GRRLIB.c:141: undefined reference to `PNGU_DecodeTo4x4RGBA8' d:/homebrew/mystuff/pong/source/GRRLIB/GRRLIB.c:142: undefined reference to `PNGU_ReleaseImageContext' collect2: ld returned 1 exit status make[1]: *** [/d/homebrew/mystuff/pong/pong.elf] Error 1 "make": *** [build] Error 2If you need any of my code just tell me which part and i will post it
Re: GRRLIB Help March 26, 2009 02:34AM | Registered: 16 years ago Posts: 175 |
Re: GRRLIB Help March 26, 2009 03:02AM | Registered: 15 years ago Posts: 444 |
Re: GRRLIB Help March 26, 2009 04:23AM | Registered: 16 years ago Posts: 175 |
Re: GRRLIB Help March 26, 2009 06:56AM | Registered: 15 years ago Posts: 444 |
GRRLIB_Printf(0,0,tex_font,0xffffff,0,"Hello World of GRRLIB");