Hello, firt of all i’m french so…don’t be careful about the mistakes !!
Well, for instance i draw a triangle that is filled with a texture, next, when i want to draw lines, they are also filled with the texture !!
So i would want to find a function that disable the “texture fill”
yes, last thing, i don’t know if it better to use Lookat or the rotation…or if it is the same (i speak about the speed…) in a game like a “quake-like”.
Thank you !
Forgot to answer the second part of your question !
Typically, if you decide not to use gluLookAt, you’ll end up building your own myLookAt function that will do exactly the same thing… Even worse: some people say they do not want to use GLU anymore so they stop using gluLookAt and rip the implementation of the function from MESA !
It’s up to you: if the only function you want to use from GLU is gluLookAt then you may as well implement your own…
Seeing that this function is typically used once a frame (OK, can be more if you are generating cube maps !), I don’t think there will be any speed difference…
if you are using lighting glColor3f(…) won’t work you need to either use
glEnable(GL_COLOR_MATERIAL);
or
glMaterialfv(GL_FRONT_AND_BACK, GL_AMBIENT_AND_DIFFUSE, x);
x is a pointer to an array containing the three values you want for a color, for a simple project GL_COLOR_MATERIAL is easier, but I would recommend you learn about glMaterial