› Foros › Multiplataforma › Desarrollo
/*===========================================
GRRLIB (GX version) 3.0.1 alpha
Code : NoNameNo
GX hints : RedShade
Http://grrlib.santo.fr
Tutorial : Day 7 (Print text)
============================================*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <malloc.h>
#include <math.h>
#include <ogcsys.h>
#include <gccore.h>
#include <wiiuse/wpad.h>
#include <fat.h>
#include <GRRLIB/GRRLIB.h>
#include "fuente/font5.h"
Mtx GXmodelView2D;
int main(){
u8 *tex_font1 = GRRLIB_LoadTexture(font5);
int var=55;
VIDEO_Init();
WPAD_Init();
GRRLIB_InitVideo();
GRRLIB_Start();
while(1){
WPAD_ScanPads();
u32 wpaddown = WPAD_ButtonsDown(0);
GRRLIB_FillScreen(0xFF000000);
GRRLIB_Printf(100,100,tex_font1,0xFFFFFFFF,1,"var value : %d",var);
GRRLIB_Render();
if (wpaddown & WPAD_BUTTON_A) exit(0);
}
return 0;
}
> "make"
Prueba.c
c:/Devprojects/source/Prueba.c: In function 'main':
c:/Devprojects/source/Prueba.c:25: warning: passing argument 1 of 'GRRLIB_LoadTexture' from incompatible pointer type
c:/Devprojects/source/Prueba.c:46:2: warning: no newline at end of file
linking ... Devprojects.elf
Prueba.o: In function `main':
c:/Devprojects/source/Prueba.c:25: undefined reference to `GRRLIB_LoadTexture'
c:/Devprojects/source/Prueba.c:32: undefined reference to `GRRLIB_InitVideo'
c:/Devprojects/source/Prueba.c:33: undefined reference to `GRRLIB_Start'
c:/Devprojects/source/Prueba.c:39: undefined reference to `GRRLIB_FillScreen'
c:/Devprojects/source/Prueba.c:40: undefined reference to `GRRLIB_Printf'
c:/Devprojects/source/Prueba.c:41: undefined reference to `GRRLIB_Render'
collect2: ld returned 1 exit status
make[1]: *** [/c/Devprojects/Devprojects.elf] Error 1
"make": *** [build] Error 2
> Process Exit Code: 2
> Time Taken: 00:02