Coordinate System

Hi!

I am a very beginner in programming OpenGL applications.
The problem is that how to change the default coordinate system. The default is
(-1,1;1,-1) as I suppose.
But I want
(-8;8;8;-8).
How to change the default coordinate system?

And one more thing: why can’t I use glVertex2d function? glVertex3f and glVertex2i functions work just fine. Maybe you know where is the trick.

Thanks, bye!

Do you mean the window corrdinates?
You set that when setting the viewing area.
glViewport() and glortho2d().

The vertex qestion:
glvertex2f has to be a float (0.0, -1.0, 1.0)
glvertex2i has to be an int(0,1, 5, 100)
glvertex2d has to be a double.

When you use the glvertex2d do you use a variable that is a double?

Originally posted by Anvar:
[b]Hi!

I am a very beginner in programming OpenGL applications.
The problem is that how to change the default coordinate system. The default is
(-1,1;1,-1) as I suppose.
But I want
(-8;8;8;-8).
How to change the default coordinate system?

And one more thing: why can’t I use glVertex2d function? glVertex3f and glVertex2i functions work just fine. Maybe you know where is the trick.

Thanks, bye![/b]