/[gzz]/gzz/gfx/demo/gldemo.py
ViewVC logotype

Diff of /gzz/gfx/demo/gldemo.py

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

revision 1.25 by benja, Thu Sep 26 11:54:07 2002 UTC revision 1.26 by tjl, Sun Sep 29 14:51:27 2002 UTC
# Line 9  sys.path.insert(0, ".") Line 9  sys.path.insert(0, ".")
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
# Line 106  def js(list): Line 106  def js(list):
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 = { }

Legend:
Removed from v.1.25  
changed lines
  Added in v.1.26

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