… | |
… | |
731 | |
731 | |
732 | CFClient::Layout |
732 | CFClient::Layout |
733 | new (SV *class, int rgba = 0) |
733 | new (SV *class, int rgba = 0) |
734 | CODE: |
734 | CODE: |
735 | #if _WIN32 |
735 | #if _WIN32 |
736 | rgba = 0;//D |
736 | //rgba = 0;//D make stext nicer, breaks TextView |
737 | #endif |
737 | #endif |
738 | New (0, RETVAL, 1, struct cf_layout); |
738 | New (0, RETVAL, 1, struct cf_layout); |
739 | |
739 | |
740 | RETVAL->pl = pango_layout_new (rgba ? cairo_context : ft2_context); |
740 | RETVAL->pl = pango_layout_new (rgba ? cairo_context : ft2_context); |
741 | RETVAL->rgba = rgba; |
741 | RETVAL->rgba = rgba; |
… | |
… | |
1097 | tex->r = r; |
1097 | tex->r = r; |
1098 | tex->g = g; |
1098 | tex->g = g; |
1099 | tex->b = b; |
1099 | tex->b = b; |
1100 | tex->a = a; |
1100 | tex->a = a; |
1101 | } |
1101 | } |
|
|
1102 | |
|
|
1103 | // somewhat hackish, but for textures that require it, it really |
|
|
1104 | // improves the look, and most others don't suffer. |
|
|
1105 | glBindTexture (GL_TEXTURE_2D, name); |
|
|
1106 | glTexParameteri (GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT); |
|
|
1107 | glTexParameteri (GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT); |
1102 | } |
1108 | } |
1103 | |
1109 | |
1104 | int |
1110 | int |
1105 | ox (CFClient::Map self) |
1111 | ox (CFClient::Map self) |
1106 | ALIAS: |
1112 | ALIAS: |