Parent Directory | Revision Log | Patch
revision 1.14 by jvk, Sun Sep 15 11:41:40 2002 UTC | revision 1.15 by tjl, Tue Sep 17 06:46:45 2002 UTC | |
---|---|---|
# | Line 60 def quad(): | Line 60 def quad(): |
60 | End | End |
61 | """) | """) |
62 | ||
63 | def partialquad(x0, y0, x1, y1, texid = None): | |
64 | texcode = "" | |
65 | if texid: | |
66 | texcode = "BindTexture TEXTURE_2D %s"%texid | |
67 | return getDList(""" | |
68 | PushAttrib TEXTURE_BIT | |
69 | """+texcode+""" | |
70 | Begin QUADS | |
71 | TexCoord %(x0)s %(y0)s | |
72 | Vertex -1 -1 | |
73 | TexCoord %(x0)s %(y1)s | |
74 | Vertex -1 1 | |
75 | TexCoord %(x1)s %(y1)s | |
76 | Vertex 1 1 | |
77 | TexCoord %(x1)s %(y0)s | |
78 | Vertex 1 -1 | |
79 | End | |
80 | PopAttrib | |
81 | """ % locals()) | |
82 | ||
83 | def getFont(): | def getFont(): |
84 | global font | global font |
85 | try: | try: |
|
savannah-hackers-public@gnu.org | ViewVC Help |
Powered by ViewVC 1.1.26 |