/[gzz]/gzz/gfx/librenderables/renderables.py
ViewVC logotype

Diff of /gzz/gfx/librenderables/renderables.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.98 by tjl, Sun Oct 6 13:44:42 2002 UTC revision 1.99 by tjl, Mon Oct 7 08:07:51 2002 UTC
# Line 26  idded = [ Line 26  idded = [
26  convert = {  convert = {
27      "String" : {      "String" : {
28          "JNI" : "jstring",          "JNI" : "jstring",
29          "CXX" : "unistring",          "CXX" : "unicodecharvector",
30          "pre" : (lambda v, p : "const jchar *jc_"+p\          "pre" : (lambda v, p : "const jchar *jc_"+p\
31              +" = env->GetStringChars("+p \              +" = env->GetStringChars("+p \
32              +", 0); unistring "+v+"(jc_"+p+");  \              +", 0); unicodecharvector "+v+"(jc_"+p+", jc_"+p+" + env->GetStringLength("+p+"));  \
33              env->ReleaseStringChars("+p+", jc_"+p+");\n"),              env->ReleaseStringChars("+p+", jc_"+p+");\n"),
34      },      },
35      "Font" : {      "Font" : {
# Line 983  rs = [ Line 983  rs = [
983      "Name": "HorizText",      "Name": "HorizText",
984      "Data": """      "Data": """
985          TextRenderer *r;          TextRenderer *r;
986          unistring txt;          unicodecharvector txt;
987          ZPt origin;          ZPt origin;
988          float heightmul;          float heightmul;
989          float widthmul;          float widthmul;
# Line 1014  rs = [ Line 1014  rs = [
1014      "RenderCode" : """      "RenderCode" : """
1015              if (dbg) {              if (dbg) {
1016                  cout << "HorizText:\\n";                  cout << "HorizText:\\n";
1017                  for (unistring::iterator it = txt.begin(); it != txt.end(); ++it)                  for (unicodecharvector::iterator it = txt.begin(); it != txt.end(); ++it)
1018                      cout << "'" << (char)*it << "' (" << (int)*it << ")\\n";                      cout << "'" << (char)*it << "' (" << (int)*it << ")\\n";
1019              }              }
1020            
# Line 1038  rs = [ Line 1038  rs = [
1038      "Name": "HorizText2",      "Name": "HorizText2",
1039      "Data": """      "Data": """
1040          TextRenderer *r;          TextRenderer *r;
1041          unistring txt;          unicodecharvector txt;
1042          float height, ascent, scale;          float height, ascent, scale;
1043          int magic;          int magic;
1044          """,          """,
# Line 1107  rs = [ Line 1107  rs = [
1107      "Name": "HorizText_Squished",      "Name": "HorizText_Squished",
1108      "Data": """      "Data": """
1109          TextRenderer *r;          TextRenderer *r;
1110          unistring txt;          unicodecharvector txt;
1111          ZPt origin;          ZPt origin;
1112          float heightmul;          float heightmul;
1113          float widthmul;          float widthmul;

Legend:
Removed from v.1.98  
changed lines
  Added in v.1.99

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26