… | |
… | |
1577 | void glEnd () |
1577 | void glEnd () |
1578 | |
1578 | |
1579 | void glColor (float r, float g, float b, float a = 1.0) |
1579 | void glColor (float r, float g, float b, float a = 1.0) |
1580 | PROTOTYPE: @ |
1580 | PROTOTYPE: @ |
1581 | CODE: |
1581 | CODE: |
|
|
1582 | // 255.999 is close enough to correctness (256 and clamp) |
1582 | glColor4ub (r * 255., g * 255., b * 255., a * 255.); |
1583 | glColor4ub (r * 255.999, g * 255.999, b * 255.999, a * 255.999); |
1583 | |
1584 | |
1584 | void glVertex (float x, float y, float z = 0.) |
1585 | void glVertex (float x, float y, float z = 0.) |
1585 | CODE: |
1586 | CODE: |
1586 | glVertex3f (x, y, z); |
1587 | glVertex3f (x, y, z); |
1587 | |
1588 | |