9 |
from java.lang import System,Runnable |
from java.lang import System,Runnable |
10 |
import java |
import java |
11 |
from gzz.client import * |
from gzz.client import * |
12 |
from gzz.gfx.gl import GL, GLRen, GLSpans, Paper |
from gzz.gfx.gl import GL, GLRen, GLSpans, Paper, GLCache |
13 |
import math |
import math |
14 |
import getopt |
import getopt |
15 |
import gzz.util |
import gzz.util |
106 |
def rotatelist(list): |
def rotatelist(list): |
107 |
list.append(list.pop(0)) |
list.append(list.pop(0)) |
108 |
|
|
|
clists = { } |
|
|
clists2 = { } |
|
109 |
def getDList(s): |
def getDList(s): |
110 |
if not clists.has_key(s): |
return GLCache.getCallListCoorded(s) |
|
clists[s] = GLRen.createCallListCoorded(s) |
|
|
return clists[s] |
|
111 |
|
|
112 |
def getDListNocoords(s): |
def getDListNocoords(s): |
113 |
global w |
return GLCache.getCallList(s) |
|
if not clists2.has_key(s): |
|
|
clists2[s] = GLRen.createCallList(s) |
|
|
return clists2[s] |
|
114 |
|
|
115 |
imgs = { } |
imgs = { } |
116 |
texs = { } |
texs = { } |