… | |
… | |
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 | |
… | |
… | |
1672 | |
1676 | |
1673 | void glDrawElements (int mode, int count, int type, char *indices) |
1677 | void glDrawElements (int mode, int count, int type, char *indices) |
1674 | |
1678 | |
1675 | # 1.2 void glDrawRangeElements (int mode, int start, int end |
1679 | # 1.2 void glDrawRangeElements (int mode, int start, int end |
1676 | |
1680 | |
|
|
1681 | void glRasterPos (float x, float y, float z = 0.) |
|
|
1682 | CODE: |
|
|
1683 | glRasterPos3f (0, 0, z); |
|
|
1684 | glBitmap (0, 0, 0, 0, x, y, 0); |
|
|
1685 | |
1677 | void glVertex (float x, float y, float z = 0.) |
1686 | void glVertex (float x, float y, float z = 0.) |
1678 | CODE: |
1687 | CODE: |
1679 | glVertex3f (x, y, z); |
1688 | glVertex3f (x, y, z); |
1680 | |
1689 | |
1681 | void glTexCoord (float s, float t) |
1690 | void glTexCoord (float s, float t) |
… | |
… | |
1708 | |
1717 | |
1709 | void glTexImage2D (int target, int level, int internalformat, int width, int height, int border, int format, int type, char *data) |
1718 | void glTexImage2D (int target, int level, int internalformat, int width, int height, int border, int format, int type, char *data) |
1710 | |
1719 | |
1711 | void glCopyTexImage2D (int target, int level, int internalformat, int x, int y, int width, int height, int border) |
1720 | void glCopyTexImage2D (int target, int level, int internalformat, int x, int y, int width, int height, int border) |
1712 | |
1721 | |
1713 | void glRasterPos (int x, int y) |
1722 | void glDrawPixels (int width, int height, int format, int type, char *pixels) |
1714 | CODE: |
|
|
1715 | glRasterPos2i (x, y); |
|
|
1716 | |
1723 | |
1717 | void glCopyPixels (int x, int y, int width, int height, int type = GL_COLOR) |
1724 | void glCopyPixels (int x, int y, int width, int height, int type = GL_COLOR) |
1718 | |
1725 | |
1719 | int glGenTexture () |
1726 | int glGenTexture () |
1720 | CODE: |
1727 | CODE: |