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.102 by root, Sat Jun 3 23:47:46 2006 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines