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.198 by root, Sun Jul 15 21:42:02 2007 UTC vs.
Revision 1.199 by root, Tue Jul 17 13:53:02 2007 UTC

1242 flags 1242 flags
1243 ); 1243 );
1244 1244
1245MODULE = CFPlus PACKAGE = CFPlus::Texture 1245MODULE = CFPlus PACKAGE = CFPlus::Texture
1246 1246
1247int minpot (int n)
1248
1247void 1249void
1248pad2pot (SV *data_, SV *w_, SV *h_) 1250pad2pot (SV *data_, SV *w_, SV *h_)
1249 CODE: 1251 CODE:
1250{ 1252{
1251 int ow = SvIV (w_); 1253 int ow = SvIV (w_);
1327 { 1329 {
1328 glDisable (GL_ALPHA_TEST); 1330 glDisable (GL_ALPHA_TEST);
1329 glDisable (GL_BLEND); 1331 glDisable (GL_BLEND);
1330 } 1332 }
1331} 1333}
1334
1335IV texture_valid_2d (GLint internalformat, GLsizei w, GLsizei h, GLenum format, GLenum type)
1336 CODE:
1337{
1338 GLint width;
1339 glTexImage2D (GL_PROXY_TEXTURE_2D, 0, internalformat, w, h, 0, format, type, 0);
1340 glGetTexLevelParameteriv (GL_PROXY_TEXTURE_2D, 0, GL_TEXTURE_WIDTH, &width);
1341 RETVAL = width > 0;
1342}
1343 OUTPUT:
1344 RETVAL
1332 1345
1333MODULE = CFPlus PACKAGE = CFPlus::Map 1346MODULE = CFPlus PACKAGE = CFPlus::Map
1334 1347
1335CFPlus::Map 1348CFPlus::Map
1336new (SV *class) 1349new (SV *class)
2205 static const struct { 2218 static const struct {
2206 const char *name; 2219 const char *name;
2207 IV iv; 2220 IV iv;
2208 } *civ, const_iv[] = { 2221 } *civ, const_iv[] = {
2209# define const_iv(name) { # name, (IV)name } 2222# define const_iv(name) { # name, (IV)name }
2223 const_iv (GL_VENDOR),
2224 const_iv (GL_VERSION),
2225 const_iv (GL_EXTENSIONS),
2210 const_iv (GL_COLOR_MATERIAL), 2226 const_iv (GL_COLOR_MATERIAL),
2211 const_iv (GL_SMOOTH), 2227 const_iv (GL_SMOOTH),
2212 const_iv (GL_FLAT), 2228 const_iv (GL_FLAT),
2213 const_iv (GL_DITHER), 2229 const_iv (GL_DITHER),
2214 const_iv (GL_BLEND), 2230 const_iv (GL_BLEND),
2241 const_iv (GL_LUMINANCE), 2257 const_iv (GL_LUMINANCE),
2242 const_iv (GL_LUMINANCE_ALPHA), 2258 const_iv (GL_LUMINANCE_ALPHA),
2243 const_iv (GL_FLOAT), 2259 const_iv (GL_FLOAT),
2244 const_iv (GL_UNSIGNED_INT_8_8_8_8_REV), 2260 const_iv (GL_UNSIGNED_INT_8_8_8_8_REV),
2245 const_iv (GL_COMPILE), 2261 const_iv (GL_COMPILE),
2262 const_iv (GL_PROXY_TEXTURE_1D),
2263 const_iv (GL_PROXY_TEXTURE_2D),
2246 const_iv (GL_TEXTURE_1D), 2264 const_iv (GL_TEXTURE_1D),
2247 const_iv (GL_TEXTURE_2D), 2265 const_iv (GL_TEXTURE_2D),
2248 const_iv (GL_TEXTURE_ENV), 2266 const_iv (GL_TEXTURE_ENV),
2249 const_iv (GL_TEXTURE_MAG_FILTER), 2267 const_iv (GL_TEXTURE_MAG_FILTER),
2250 const_iv (GL_TEXTURE_MIN_FILTER), 2268 const_iv (GL_TEXTURE_MIN_FILTER),
2316 CODE: 2334 CODE:
2317 RETVAL = (char *)glGetString (GL_EXTENSIONS); 2335 RETVAL = (char *)glGetString (GL_EXTENSIONS);
2318 OUTPUT: 2336 OUTPUT:
2319 RETVAL 2337 RETVAL
2320 2338
2339char *glGetString (GLenum pname)
2340
2341GLint glGetInteger (GLenum pname)
2342 CODE:
2343 glGetIntegerv (pname, &RETVAL);
2344 OUTPUT:
2345 RETVAL
2346
2347GLdouble glGetDouble (GLenum pname)
2348 CODE:
2349 glGetDoublev (pname, &RETVAL);
2350 OUTPUT:
2351 RETVAL
2352
2321int glGetError () 2353int glGetError ()
2322 2354
2323void glFinish () 2355void glFinish ()
2324 2356
2325void glClear (int mask) 2357void glClear (int mask)
2447 2479
2448void glCopyTexImage2D (int target, int level, int internalformat, int x, int y, int width, int height, int border) 2480void glCopyTexImage2D (int target, int level, int internalformat, int x, int y, int width, int height, int border)
2449 2481
2450void glDrawPixels (int width, int height, int format, int type, char *pixels) 2482void glDrawPixels (int width, int height, int format, int type, char *pixels)
2451 2483
2484void glPixelZoom (float x, float y)
2485
2452void glCopyPixels (int x, int y, int width, int height, int type = GL_COLOR) 2486void glCopyPixels (int x, int y, int width, int height, int type = GL_COLOR)
2453 2487
2454int glGenTexture () 2488int glGenTexture ()
2455 CODE: 2489 CODE:
2456 RETVAL = gen_texture (); 2490 RETVAL = gen_texture ();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines