… | |
… | |
1084 | |
1084 | |
1085 | int |
1085 | int |
1086 | ox (CFClient::Map self) |
1086 | ox (CFClient::Map self) |
1087 | ALIAS: |
1087 | ALIAS: |
1088 | oy = 1 |
1088 | oy = 1 |
|
|
1089 | x = 2 |
|
|
1090 | y = 3 |
1089 | CODE: |
1091 | CODE: |
1090 | switch (ix) |
1092 | switch (ix) |
1091 | { |
1093 | { |
1092 | case 0: RETVAL = self->ox; break; |
1094 | case 0: RETVAL = self->ox; break; |
1093 | case 1: RETVAL = self->oy; break; |
1095 | case 1: RETVAL = self->oy; break; |
|
|
1096 | case 2: RETVAL = self->x; break; |
|
|
1097 | case 3: RETVAL = self->y; break; |
1094 | } |
1098 | } |
1095 | OUTPUT: |
1099 | OUTPUT: |
1096 | RETVAL |
1100 | RETVAL |
1097 | |
1101 | |
1098 | void |
1102 | void |
… | |
… | |
1682 | |
1686 | |
1683 | void glColor (float r, float g, float b, float a = 1.0) |
1687 | void glColor (float r, float g, float b, float a = 1.0) |
1684 | PROTOTYPE: @ |
1688 | PROTOTYPE: @ |
1685 | CODE: |
1689 | CODE: |
1686 | // microsoft visual "c" rounds instead of truncating... |
1690 | // microsoft visual "c" rounds instead of truncating... |
1687 | glColor4ub (MIN ((int)(r * 255.f), 255), |
1691 | glColor4ub (MIN ((int)(r * 256.f), 255), |
1688 | MIN ((int)(g * 255.f), 255), |
1692 | MIN ((int)(g * 256.f), 255), |
1689 | MIN ((int)(b * 255.f), 255), |
1693 | MIN ((int)(b * 256.f), 255), |
1690 | MIN ((int)(a * 255.f), 255)); |
1694 | MIN ((int)(a * 256.f), 255)); |
1691 | |
1695 | |
1692 | void glInterleavedArrays (int format, int stride, char *data) |
1696 | void glInterleavedArrays (int format, int stride, char *data) |
1693 | |
1697 | |
1694 | void glDrawElements (int mode, int count, int type, char *indices) |
1698 | void glDrawElements (int mode, int count, int type, char *indices) |
1695 | |
1699 | |