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.91 by root, Mon May 22 03:28:54 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
1672 1676
1673void glDrawElements (int mode, int count, int type, char *indices) 1677void glDrawElements (int mode, int count, int type, char *indices)
1674 1678
1675# 1.2 void glDrawRangeElements (int mode, int start, int end 1679# 1.2 void glDrawRangeElements (int mode, int start, int end
1676 1680
1681void glRasterPos (float x, float y, float z = 0.)
1682 CODE:
1683 glRasterPos3f (0, 0, z);
1684 glBitmap (0, 0, 0, 0, x, y, 0);
1685
1677void glVertex (float x, float y, float z = 0.) 1686void glVertex (float x, float y, float z = 0.)
1678 CODE: 1687 CODE:
1679 glVertex3f (x, y, z); 1688 glVertex3f (x, y, z);
1680 1689
1681void glTexCoord (float s, float t) 1690void glTexCoord (float s, float t)
1708 1717
1709void glTexImage2D (int target, int level, int internalformat, int width, int height, int border, int format, int type, char *data) 1718void glTexImage2D (int target, int level, int internalformat, int width, int height, int border, int format, int type, char *data)
1710 1719
1711void glCopyTexImage2D (int target, int level, int internalformat, int x, int y, int width, int height, int border) 1720void glCopyTexImage2D (int target, int level, int internalformat, int x, int y, int width, int height, int border)
1712 1721
1713void glRasterPos (int x, int y) 1722void glDrawPixels (int width, int height, int format, int type, char *pixels)
1714 CODE:
1715 glRasterPos2i (x, y);
1716 1723
1717void glCopyPixels (int x, int y, int width, int height, int type = GL_COLOR) 1724void glCopyPixels (int x, int y, int width, int height, int type = GL_COLOR)
1718 1725
1719int glGenTexture () 1726int glGenTexture ()
1720 CODE: 1727 CODE:

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines