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.92 by elmex, Tue May 23 17:30:18 2006 UTC

559#ifndef _WIN32 559#ifndef _WIN32
560 setsockopt (fd, IPPROTO_TCP, TCP_NODELAY, &val, sizeof (val)); 560 setsockopt (fd, IPPROTO_TCP, TCP_NODELAY, &val, sizeof (val));
561#endif 561#endif
562 562
563char * 563char *
564gl_vendor ()
565 CODE:
566 RETVAL = (char *)glGetString (GL_VENDOR);
567 OUTPUT:
568 RETVAL
569
570char *
564gl_version () 571gl_version ()
565 CODE: 572 CODE:
566 RETVAL = (char *)glGetString (GL_VERSION); 573 RETVAL = (char *)glGetString (GL_VERSION);
567 OUTPUT: 574 OUTPUT:
568 RETVAL 575 RETVAL
1635 1642
1636void glPopMatrix () 1643void glPopMatrix ()
1637 1644
1638void glLoadIdentity () 1645void glLoadIdentity ()
1639 1646
1640# near and far are due to microsofts buggy c compiler 1647# near_ and far_ are due to microsofts buggy "c" compiler
1648void glFrustum (double left, double right, double bottom, double top, double near_, double far_)
1649
1650# near_ and far_ are due to microsofts buggy "c" compiler
1641void glOrtho (double left, double right, double bottom, double top, double near_, double far_) 1651void glOrtho (double left, double right, double bottom, double top, double near_, double far_)
1642 1652
1643void glViewport (int x, int y, int width, int height) 1653void glViewport (int x, int y, int width, int height)
1644 1654
1645void glScissor (int x, int y, int width, int height) 1655void glScissor (int x, int y, int width, int height)
1661void glEnd () 1671void glEnd ()
1662 1672
1663void glColor (float r, float g, float b, float a = 1.0) 1673void glColor (float r, float g, float b, float a = 1.0)
1664 PROTOTYPE: @ 1674 PROTOTYPE: @
1665 CODE: 1675 CODE:
1676 // microsoft visual "c" rounds instead of truncating...
1666 glColor4ub (MIN ((int)(r * 255.f), 255), 1677 glColor4ub (MIN ((int)(r * 255.f), 255),
1667 MIN ((int)(g * 255.f), 255), 1678 MIN ((int)(g * 255.f), 255),
1668 MIN ((int)(b * 255.f), 255), 1679 MIN ((int)(b * 255.f), 255),
1669 MIN ((int)(a * 255.f), 255)); 1680 MIN ((int)(a * 255.f), 255));
1670 1681
1672 1683
1673void glDrawElements (int mode, int count, int type, char *indices) 1684void glDrawElements (int mode, int count, int type, char *indices)
1674 1685
1675# 1.2 void glDrawRangeElements (int mode, int start, int end 1686# 1.2 void glDrawRangeElements (int mode, int start, int end
1676 1687
1688void glRasterPos (float x, float y, float z = 0.)
1689 CODE:
1690 glRasterPos3f (0, 0, z);
1691 glBitmap (0, 0, 0, 0, x, y, 0);
1692
1677void glVertex (float x, float y, float z = 0.) 1693void glVertex (float x, float y, float z = 0.)
1678 CODE: 1694 CODE:
1679 glVertex3f (x, y, z); 1695 glVertex3f (x, y, z);
1680 1696
1681void glTexCoord (float s, float t) 1697void glTexCoord (float s, float t)
1708 1724
1709void glTexImage2D (int target, int level, int internalformat, int width, int height, int border, int format, int type, char *data) 1725void glTexImage2D (int target, int level, int internalformat, int width, int height, int border, int format, int type, char *data)
1710 1726
1711void glCopyTexImage2D (int target, int level, int internalformat, int x, int y, int width, int height, int border) 1727void glCopyTexImage2D (int target, int level, int internalformat, int x, int y, int width, int height, int border)
1712 1728
1713void glRasterPos (int x, int y) 1729void glDrawPixels (int width, int height, int format, int type, char *pixels)
1714 CODE:
1715 glRasterPos2i (x, y);
1716 1730
1717void glCopyPixels (int x, int y, int width, int height, int type = GL_COLOR) 1731void glCopyPixels (int x, int y, int width, int height, int type = GL_COLOR)
1718 1732
1719int glGenTexture () 1733int glGenTexture ()
1720 CODE: 1734 CODE:

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines