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.103 by root, Sun Jun 4 23:05:05 2006 UTC vs.
Revision 1.104 by root, Mon Jun 5 00:17:47 2006 UTC

720new (SV *class, int rgba = 0) 720new (SV *class, int rgba = 0)
721 CODE: 721 CODE:
722#if _WIN32 722#if _WIN32
723 //rgba = 0;//D makes text nicer, breaks TextView 723 //rgba = 0;//D makes text nicer, breaks TextView
724#endif 724#endif
725 rgba=1;//D
725 New (0, RETVAL, 1, struct cf_layout); 726 New (0, RETVAL, 1, struct cf_layout);
726 727
727 RETVAL->pl = pango_layout_new (rgba ? cairo_context : ft2_context); 728 RETVAL->pl = pango_layout_new (rgba ? cairo_context : ft2_context);
728 RETVAL->rgba = rgba; 729 RETVAL->rgba = rgba;
729 RETVAL->r = 1.; 730 RETVAL->r = 1.;
990 991
991 if (ix == 2) 992 if (ix == 2)
992 glBlendFunc (GL_ONE, GL_ONE_MINUS_SRC_ALPHA); 993 glBlendFunc (GL_ONE, GL_ONE_MINUS_SRC_ALPHA);
993 else 994 else
994 gl_BlendFuncSeparate (GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, 995 gl_BlendFuncSeparate (GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA,
995 GL_ONE_MINUS_DST_ALPHA, GL_ONE); 996 GL_ONE , GL_ONE_MINUS_SRC_ALPHA);
996 997
997 glEnable (GL_ALPHA_TEST); 998 glEnable (GL_ALPHA_TEST);
998 glAlphaFunc (GL_GREATER, 0.01f); 999 glAlphaFunc (GL_GREATER, 0.01f);
999 } 1000 }
1000 1001
1557 const_iv (GL_RESCALE_NORMAL), 1558 const_iv (GL_RESCALE_NORMAL),
1558 const_iv (GL_AND), 1559 const_iv (GL_AND),
1559 const_iv (GL_ONE), 1560 const_iv (GL_ONE),
1560 const_iv (GL_ZERO), 1561 const_iv (GL_ZERO),
1561 const_iv (GL_SRC_ALPHA), 1562 const_iv (GL_SRC_ALPHA),
1562 const_iv (GL_SRC_ALPHA_SATURATE), 1563 const_iv (GL_DST_ALPHA),
1563 const_iv (GL_ONE_MINUS_SRC_ALPHA), 1564 const_iv (GL_ONE_MINUS_SRC_ALPHA),
1564 const_iv (GL_ONE_MINUS_DST_ALPHA), 1565 const_iv (GL_ONE_MINUS_DST_ALPHA),
1566 const_iv (GL_SRC_ALPHA_SATURATE),
1565 const_iv (GL_RGB), 1567 const_iv (GL_RGB),
1566 const_iv (GL_RGBA), 1568 const_iv (GL_RGBA),
1567 const_iv (GL_UNSIGNED_BYTE), 1569 const_iv (GL_UNSIGNED_BYTE),
1568 const_iv (GL_UNSIGNED_SHORT), 1570 const_iv (GL_UNSIGNED_SHORT),
1569 const_iv (GL_UNSIGNED_INT), 1571 const_iv (GL_UNSIGNED_INT),

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines