SDL is the easiest way to load up a jpeg, using SDL_image, because you can just say
SDL_Surface *img;
img=IMG_Load("something.jpg");
there is an sdl/linux tutorial on nehe.com if you like sdl get...
Type: Posts; User: scriptlord
SDL is the easiest way to load up a jpeg, using SDL_image, because you can just say
SDL_Surface *img;
img=IMG_Load("something.jpg");
there is an sdl/linux tutorial on nehe.com if you like sdl get...
The best way to get communicate directly to X is through x86 Assembly
I used the SDL/linux tutorial on nehe for texture mapping, unfortunately, the program compiled successfully but the texture didn't load. Does anyone else have the same problem, and if so how do I get...
You can cd /usr/include and make sure that all your opengl headers are in /usr/include/GL, and if they are not you can copy them like cp glut.h /usr/include/GL/glut.h, or something like that, you...
My opengl book uses windows specific functions to load an image file, and map it to an object, How would I do this in linux, please send me a simple source using GLUT, or SDL
I compile all of my glut programs like this
g++ something.c -o something -lGL -lGLU -lglut -lm
I have windows 2000, and the glut toolkit. My dll won't work is their a specific version I need.
Well as for accessing such things as hardware with direct input, opengl allows you to access the key board, mouse, and a joystick, and opengl was around before directx, so it is possible for SDL to...
I use linux at home, and linux at school, consequently I have programmed on both systems, and on windows SDL may use some directx, but there is no directx at all on linux. Over all SDL is not just an...
I bought the book "Programming linux game" and it was good. I would like to learn more SDL, what is a good book on SDL. Also I hear in the next few years SDL may surpass directx, because of it's...
Thanx those to those of you willing to post useful messages. I think I have an idea as to how to do it now.
This is how I create a good opengl window.
Full screen:
int main(int argc, char **argv){
glutInitWindow(&argc, argv);
glutInitDisplayMode(GLUT_DEPTH | GLUT_RGBA);...
I am obviously not making myself clear. I am use to using glOrhto, and glFrustum, when I am programming, but I am trying to use gluPerspective, inorder to generate a more 3D experiene than glFrustum,...
don't be an arschloch, I have plenty of C/opengl experience, I am just having trouble in the perpective part.
glFrontFace(GL_CW);
This tells the comp that all clockwise-wound triangles are facing front
I am trying to create a navigatable universe consisting of stars and planets, but moving through the universe, and placing the planets/stars in perspective using gluPerspective(60, w/h, 1, 400);
but...
#include <GL/glut.h>
then make sure you have
int main(int argc, char **argv){
then just type GlutInit(&argc, argv);
then you need glutGameModeString("640x480:16@16");
then use ...
I have wrote some screensavers, but I can't figure out how to make them close when the mouse is moved.
Is this book begining, intermediate, or advanced? Also what kind of topics does the book cover?
Can someone please post a small glut source code that uses glutEnterGameMode, so I can achieve fullscreen with it.
I have become aware that the code that was given to me doesn't work do to a lack of declarations which I do not have the values to please give me some better, or more extensive code.
I need your class, or header with the m_ and the std::string stuff
How do you make your window full screen with this statement
I have used many search engines, and yes I did try fmod.org, I need A site with some good tutorials.
Where can I learn how to use fmod in my opengl programs to play music during games I write