Parent Directory | Revision Log | Patch
revision 1.7 by tjl, Thu Jun 26 08:54:18 2003 UTC | revision 1.8 by tjl, Wed Aug 13 16:56:28 2003 UTC | |
---|---|---|
# | Line 69 public class PoolManager implements GL.S | Line 69 public class PoolManager implements GL.S |
69 | public float getRealY(float spany) { | public float getRealY(float spany) { |
70 | return h * (spany-sy0) / (sy1-sy0); | return h * (spany-sy0) / (sy1-sy0); |
71 | } | } |
72 | public int getSpanX(float vobx) { | |
73 | return (int)(vobx * (sx1-sx0) / w + sx0); | |
74 | } | |
75 | public int getSpanY(float voby) { | |
76 | return (int)(voby * (sy1-sy0) / h + sy0); | |
77 | } | |
78 | } | } |
79 | ||
80 | /** Make a SpanImageVob whose SingleImage's texture allocation will | /** Make a SpanImageVob whose SingleImage's texture allocation will |
|
savannah-hackers-public@gnu.org | ViewVC Help |
Powered by ViewVC 1.1.26 |