ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/Deliantra-Client/Client.xs
(Generate patch)

Comparing deliantra/Deliantra-Client/Client.xs (file contents):
Revision 1.99 by root, Mon May 29 02:11:03 2006 UTC vs.
Revision 1.100 by root, Wed May 31 17:16:47 2006 UTC

1682 1682
1683void glColor (float r, float g, float b, float a = 1.0) 1683void 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
1692void glInterleavedArrays (int format, int stride, char *data) 1692void glInterleavedArrays (int format, int stride, char *data)
1693 1693
1694void glDrawElements (int mode, int count, int type, char *indices) 1694void glDrawElements (int mode, int count, int type, char *indices)
1695 1695

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines