Hi all,
I try to use SDL lib in a Qt Project using a Visual Studio 2008, but i cant use SDL with QT.
In SDL i make this function
	
	void setpixel(SDL_Surface *screen, int x, int y, Uint8 r, Uint8 g, Uint8 b)
{
    Uint32 *pixmem32;
    Uint32 colour; 
 
    colour = SDL_MapRGB( screen->format, r, g, b );
 
    pixmem32 = (Uint32*) screen->pixels  + y + x;
    *pixmem32 = colour;
}
        void setpixel(SDL_Surface *screen, int x, int y, Uint8 r, Uint8 g, Uint8 b)
{
    Uint32 *pixmem32;
    Uint32 colour; 
    colour = SDL_MapRGB( screen->format, r, g, b );
    pixmem32 = (Uint32*) screen->pixels  + y + x;
    *pixmem32 = colour;
}
To copy to clipboard, switch view to plain text mode 
  
now i cant use this function on Qt, does anyone know how i can use SDL with Qt or how i can modify this function to work on Qt?
Thanks for all!
				
			
Bookmarks