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.89 by root, Sun May 21 00:02:01 2006 UTC vs.
Revision 1.90 by root, Sun May 21 00:34:58 2006 UTC

1635 1635
1636void glPopMatrix () 1636void glPopMatrix ()
1637 1637
1638void glLoadIdentity () 1638void 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
1641void 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
1641void glOrtho (double left, double right, double bottom, double top, double near_, double far_) 1644void glOrtho (double left, double right, double bottom, double top, double near_, double far_)
1642 1645
1643void glViewport (int x, int y, int width, int height) 1646void glViewport (int x, int y, int width, int height)
1644 1647
1645void glScissor (int x, int y, int width, int height) 1648void glScissor (int x, int y, int width, int height)
1661void glEnd () 1664void glEnd ()
1662 1665
1663void glColor (float r, float g, float b, float a = 1.0) 1666void 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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines