I know you can do the same in lrrlicht, but I want to use the SDL code / functions to draw text, images inside Irrlicht (for 2d processing) and use Irrlicht to work with hardcore 3D, how can you apply text or images from sdl to this irrlicht engine, can you show me simple code so i can understand?
In the SDL, you can do the following:
// I start by declare the SDL video Name SDL_Surface *screen; // set the video mode: screen = SDL_SetVideoMode(640, 480, 32, SDL_DOUBLEBUF | SDL_FULLSCREEN); if (screen == NULL) { printf("Unable to set video mode: %s\n", SDL_GetError()); return 1; } // I can now display data, image, text on the screen by using the declared SDL video Name " screen " SDL_BlitSurface(my_image, &src, screen, &dest);
source share