› Foros › Multiplataforma › Desarrollo
#include "C:\gc\libogc\lib\video.h"#include "C:\gc\libogc\lib\pad.h"#include "C:\gc\libogc\lib\types.h"#define VIDEO_640x480_NTSC_YUV16 (0)#define PAD_CHANNEL_0 (0)#define COLOR_BLANCO 0xFF80FF80#define COLOR_BLUE 0x1DFF1D6Bvoid ClearScreen(int color);PAD control[2];u32* fb =(u32*)0xC0500000;int main(){VIDEO_Init(VIDEO_640x480_NTSC_YUV16); while(true){ PAD_ReadState(&control[0], PAD_CHANNEL_0); VIDEO_WaitVSync(); if(control[0].Analog.Y < 20) fb[500] = COLOR_BLUE }return 0;}
C:\GC>make.batc:/gc/main.c: In function 'main':c:/gc/main.c:21: error: parse error before '}' token[FATAL ERROR]C:\GC>