#include <stdio.h>
#include <stdlib.h>
#include </usr/local/openxdk/include/hal/xbox.h>
#include </usr/local/openxdk/include/hal/fileio.h>
#include </usr/local/openxdk/include/openxdk/debug.h>
#include </usr/local/openxdk/include/SDL/SDL.h>
int width = 640;
int height = 480;
int bpp = 32;
void XBoxStartup()
{
SDL_Init(SDL_INIT_VIDEO);
SDL_Surface *screen = SDL_SetVideoMode(width, height, bpp, SDL_HWSURFACE);
SDL_Surface *picture = SDL_LoadBMP("E:/Apps/main/image.bmp");
SDL_BlitSurface(picture, NULL, screen, NULL);
XSleep(5000);
XReboot();
}
Am I doing something incorrect here? once complied, I'd normally transfer this .xbe over to it's respective directory. However, no image shows. The image is indeed in the directory, however. After 5 seconds the xbox reboots as it should. Please, if at all possible, i'd appreciate some help, hehe - Or possibly a sound example illustrating how one of you ( the elite xbox devers ) would go about loading an image and blitting it.
Much thanks!