I'm still waiting for my F200, but that's not going to stop me compiling my test program for gp2x.
But a few silly questions..
If I do a printf("Hello World\n"); - where does it go?? Can I telnet in and get the output?
What's the best way to init SDL? - I'm currently using
CODE
SDL_Surface* screen = SDL_SetVideoMode(320, 200, 16, SDL_SWSURFACE );
Is that OK for gp2x?
And what's the best way to draw to the screen - my current code is ripped straight from a tutorial and does:
CODE
// screen is main SDL surface, DrawSky / DrawBitmap both write 16bit pixels directly to it.
DrawSky(mazesky, screen, angle, (int)sky_xpos, (int)sky_ypos);
DrawBitmap(mazegfx, screen, heightmap, angle, (int)xpos, (int)ypos);
// Update the screen
SDL_UpdateRect(screen, 0, 0, 0, 0);
Thanks for your help - on the PC my simple 3d Voxel thingy does around 600fps - so will be interesting to see what the gp2x can get.
But a few silly questions..
If I do a printf("Hello World\n"); - where does it go?? Can I telnet in and get the output?
What's the best way to init SDL? - I'm currently using
CODE
SDL_Surface* screen = SDL_SetVideoMode(320, 200, 16, SDL_SWSURFACE );
Is that OK for gp2x?
And what's the best way to draw to the screen - my current code is ripped straight from a tutorial and does:
CODE
// screen is main SDL surface, DrawSky / DrawBitmap both write 16bit pixels directly to it.
DrawSky(mazesky, screen, angle, (int)sky_xpos, (int)sky_ypos);
DrawBitmap(mazegfx, screen, heightmap, angle, (int)xpos, (int)ypos);
// Update the screen
SDL_UpdateRect(screen, 0, 0, 0, 0);
Thanks for your help - on the PC my simple 3d Voxel thingy does around 600fps - so will be interesting to see what the gp2x can get.