… | |
… | |
1635 | |
1635 | |
1636 | void glPopMatrix () |
1636 | void glPopMatrix () |
1637 | |
1637 | |
1638 | void glLoadIdentity () |
1638 | void glLoadIdentity () |
1639 | |
1639 | |
1640 | # near and far are due to microsofts buggy c compiler |
1640 | # near_ and far_ are due to microsofts buggy "c" compiler |
|
|
1641 | void glFrustum (double left, double right, double bottom, double top, double near_, double far_) |
|
|
1642 | |
|
|
1643 | # near_ and far_ are due to microsofts buggy "c" compiler |
1641 | void glOrtho (double left, double right, double bottom, double top, double near_, double far_) |
1644 | void glOrtho (double left, double right, double bottom, double top, double near_, double far_) |
1642 | |
1645 | |
1643 | void glViewport (int x, int y, int width, int height) |
1646 | void glViewport (int x, int y, int width, int height) |
1644 | |
1647 | |
1645 | void glScissor (int x, int y, int width, int height) |
1648 | void glScissor (int x, int y, int width, int height) |
… | |
… | |
1661 | void glEnd () |
1664 | void glEnd () |
1662 | |
1665 | |
1663 | void glColor (float r, float g, float b, float a = 1.0) |
1666 | void glColor (float r, float g, float b, float a = 1.0) |
1664 | PROTOTYPE: @ |
1667 | PROTOTYPE: @ |
1665 | CODE: |
1668 | CODE: |
|
|
1669 | // microsoft visual "c" rounds instead of truncating... |
1666 | glColor4ub (MIN ((int)(r * 255.f), 255), |
1670 | glColor4ub (MIN ((int)(r * 255.f), 255), |
1667 | MIN ((int)(g * 255.f), 255), |
1671 | MIN ((int)(g * 255.f), 255), |
1668 | MIN ((int)(b * 255.f), 255), |
1672 | MIN ((int)(b * 255.f), 255), |
1669 | MIN ((int)(a * 255.f), 255)); |
1673 | MIN ((int)(a * 255.f), 255)); |
1670 | |
1674 | |