… | |
… | |
1590 | void glEnd () |
1590 | void glEnd () |
1591 | |
1591 | |
1592 | void glColor (float r, float g, float b, float a = 1.0) |
1592 | void glColor (float r, float g, float b, float a = 1.0) |
1593 | PROTOTYPE: @ |
1593 | PROTOTYPE: @ |
1594 | CODE: |
1594 | CODE: |
1595 | glColor4ub (MIN ((int)r * 256., 255), |
1595 | glColor4ub (MIN ((int)(r * 255.f), 255), |
1596 | MIN ((int)g * 256., 255), |
1596 | MIN ((int)(g * 255.f), 255), |
1597 | MIN ((int)b * 256., 255), |
1597 | MIN ((int)(b * 255.f), 255), |
1598 | MIN ((int)a * 256., 255)); |
1598 | MIN ((int)(a * 255.f), 255)); |
1599 | |
1599 | |
1600 | void glVertex (float x, float y, float z = 0.) |
1600 | void glVertex (float x, float y, float z = 0.) |
1601 | CODE: |
1601 | CODE: |
1602 | glVertex3f (x, y, z); |
1602 | glVertex3f (x, y, z); |
1603 | |
1603 | |