diff options
author | Holger Zickner <[email protected]> | 2004-07-08 20:24:48 +0000 |
---|---|---|
committer | Holger Zickner <[email protected]> | 2004-07-08 20:24:48 +0000 |
commit | 252832999fa43bce63ca4b643fab5d9dd51fccc4 (patch) | |
tree | 98570c65819059d14f0809ae964aa1c6c93684a0 /src/jake2/render/msurface_t.java | |
parent | 4f13ea26c4f47e54e66926f0700cf631e7bb3352 (diff) |
import of Jake2 version cebit
Diffstat (limited to 'src/jake2/render/msurface_t.java')
-rw-r--r-- | src/jake2/render/msurface_t.java | 43 |
1 files changed, 40 insertions, 3 deletions
diff --git a/src/jake2/render/msurface_t.java b/src/jake2/render/msurface_t.java index a43ddbd..c6247d9 100644 --- a/src/jake2/render/msurface_t.java +++ b/src/jake2/render/msurface_t.java @@ -19,13 +19,14 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ // Created on 20.11.2003 by RST. -// $Id: msurface_t.java,v 1.1 2004-07-07 19:59:35 hzi Exp $ +// $Id: msurface_t.java,v 1.2 2004-07-08 20:24:29 hzi Exp $ package jake2.render; import java.nio.ByteBuffer; import jake2.game.*; +import jake2.qcommon.texinfo_t; import jake2.*; public class msurface_t @@ -50,7 +51,8 @@ public class msurface_t public msurface_t texturechain; public msurface_t lightmapchain; - public mtexinfo_t texinfo; + // TODO check this + public mtexinfo_t texinfo = new mtexinfo_t(); // lighting info public int dlightframe; @@ -62,5 +64,40 @@ public class msurface_t // values currently used in lightmap //public byte samples[]; // [numstyles*surfsize] public ByteBuffer samples; // [numstyles*surfsize] - + + public void clear() { + visframe = 0; + //plane = null; + flags = 0; + + firstedge = 0; + numedges = 0; + + texturemins[0] = texturemins[1] = 0; + extents[0] = extents[1] = 0; + + light_s = light_t = 0; + dlight_s = dlight_t = 0; + + //polys = null; + texturechain = null; + lightmapchain = null; + + //texinfo = null; + + dlightframe = 0; + dlightbits = 0; + + lightmaptexturenum = 0; + + for (int i = 0; i < styles.length; i++) + { + styles[i] = 0; + } + for (int i = 0; i < cached_light.length; i++) + { + cached_light[i] = 0; + } + //samples = null; + } } |