in openGL how can I make the left of the screen = 0 and the right to = 10 or somthing, and the top = 0 and the bottom = -10. because i dont like working with numbers only ranging from -1.0 to 1.0. i read here that the coordinate system could be whatever you wanted it to be but so far i have not found a command that changes it.

Recommended Answers

All 3 Replies

For 2d use gluOrtho2d(...);

With 3d you will just have to adjust.

thats good because im only doing 2d at the moment, but and how do i 'adjust'?

Adjust by using glTranslatef, to the whole screen.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.