GP2X Gpu940...how To Start, And Compiling For Pc


You have to add "/path/to/gpu940/GL/.libs/libGL.a /path/to/gpu940/libs/.libs/libgpu940.a" and the -I/include/GL should be -I/path/to/gpu940/include

Try that :)
 
if the libgpu940.a is compiled with C, and you use C++ to compile your own program you have to let the compiler know that the functions of libgpu940 are compiled with C.

When you include <GL/gl.h> and <GL/gl_float.h> do it like this:

Code:
extern "C" 
{
#include <GL/gl.h>
#include <GL/gl_float.h>
}
 
Arggh.. Can someone please give me step by step instructions about how to sucessfully set this up with devkitGP2X? >_> I just can't seem to get it right and I'm itching to get some nice GL code running.

I just want to get the gpugears to work for now O_O
 
Back
Top