… | |
… | |
1682 | |
1682 | |
1683 | void glColor (float r, float g, float b, float a = 1.0) |
1683 | void glColor (float r, float g, float b, float a = 1.0) |
1684 | PROTOTYPE: @ |
1684 | PROTOTYPE: @ |
1685 | CODE: |
1685 | CODE: |
1686 | // microsoft visual "c" rounds instead of truncating... |
1686 | // microsoft visual "c" rounds instead of truncating... |
1687 | glColor4ub (MIN ((int)(r * 255.f), 255), |
1687 | glColor4ub (MIN ((int)(r * 256.f), 255), |
1688 | MIN ((int)(g * 255.f), 255), |
1688 | MIN ((int)(g * 256.f), 255), |
1689 | MIN ((int)(b * 255.f), 255), |
1689 | MIN ((int)(b * 256.f), 255), |
1690 | MIN ((int)(a * 255.f), 255)); |
1690 | MIN ((int)(a * 256.f), 255)); |
1691 | |
1691 | |
1692 | void glInterleavedArrays (int format, int stride, char *data) |
1692 | void glInterleavedArrays (int format, int stride, char *data) |
1693 | |
1693 | |
1694 | void glDrawElements (int mode, int count, int type, char *indices) |
1694 | void glDrawElements (int mode, int count, int type, char *indices) |
1695 | |
1695 | |