sdl-opengl

c++: how can i use sdl to load a bitmap into a cube in opengl ?

Hiya. I'm learning OpenGL and SDL and so far I've been able to properly draw and rotate 3d polygons ( yay for me! :) ) how can I load an image file using SDL and load that texture on the 3d shapes that i draw on screen using OpenGL. thanks!!! update I tried the following code that draw a cube, rotates it and adds a bitmap, but I don...

mac, netbeans 6.8, c++, sdl, opengl: compilation problems

Hiya. I'm trying to properly compile a c++ opengl+sdl application using netbeans 6.8 under Snow Leopard 64-bit. I have libSDL 1.2.14 installed using macports. The script that I try to compile is the following: #ifdef WIN32 #define WIN32_LEAN_AND_MEAN #include <windows.h> #endif #if defined(__APPLE__) && defined(__MACH__) #include <Ope...

c++ sdl: can i have an sdl-opengl window inside a menu and buttons i created with glade?

Hiya. I used glade to create some gtk buttons. is it possible to add an sdl-opengl window to a glade application ? if so, how ? how can I interact between the gtk events and the sdl events inside the gtk window ? thanks ...