Bob H
09-13-2005, 05:44 AM
I have only been using OpenGL for about 24 hours. I have a behavior which I don't understand. I was trying to draw a series of lines but got nothing to display so I switched to a simple filled rectangle.
This is my environment: Windows platform, 32 bit color, 32 bit depth, writing to a bitmap
With this code --
glColor3f(.5f, 0, 0);
glRectf(0, 25.0f, 25.0f, 0);
the lower left quadrant of the window fills with red.
The window is approx 800 wide by 500 high. I don't understand how (0, 25) x (25, 0) maps to the lower left quadrant.
This is my environment: Windows platform, 32 bit color, 32 bit depth, writing to a bitmap
With this code --
glColor3f(.5f, 0, 0);
glRectf(0, 25.0f, 25.0f, 0);
the lower left quadrant of the window fills with red.
The window is approx 800 wide by 500 high. I don't understand how (0, 25) x (25, 0) maps to the lower left quadrant.