aboutsummaryrefslogtreecommitdiffstats
path: root/src/jake2/render/fastjogl/Model.java
diff options
context:
space:
mode:
authorHolger Zickner <[email protected]>2004-07-09 08:38:30 +0000
committerHolger Zickner <[email protected]>2004-07-09 08:38:30 +0000
commit76230d5ab9be20bfc25de6f3e50504a4287575d0 (patch)
tree8ec5a6485478c7fde8944e6477e466e3adceab36 /src/jake2/render/fastjogl/Model.java
parent1e132c95409d6a7f3baf499b50f0bc7d22969b07 (diff)
import of Jake2 version v_0_9_2v_0_9_2
Diffstat (limited to 'src/jake2/render/fastjogl/Model.java')
-rw-r--r--src/jake2/render/fastjogl/Model.java21
1 files changed, 12 insertions, 9 deletions
diff --git a/src/jake2/render/fastjogl/Model.java b/src/jake2/render/fastjogl/Model.java
index 4b781be..fed6f81 100644
--- a/src/jake2/render/fastjogl/Model.java
+++ b/src/jake2/render/fastjogl/Model.java
@@ -2,7 +2,7 @@
* Model.java
* Copyright (C) 2003
*
- * $Id: Model.java,v 1.1 2004-07-09 06:50:49 hzi Exp $
+ * $Id: Model.java,v 1.1.2.1 2004-07-09 08:38:27 hzi Exp $
*/
/*
Copyright (C) 1997-2001 Id Software, Inc.
@@ -509,9 +509,6 @@ public abstract class Model extends Surf {
count = l.filelen / texinfo_t.SIZE;
// out = Hunk_Alloc ( count*sizeof(*out));
out = new mtexinfo_t[count];
- for ( i=0 ; i<count ; i++) {
- out[i] = new mtexinfo_t();
- }
loadmodel.texinfo = out;
loadmodel.numtexinfo = count;
@@ -519,10 +516,13 @@ public abstract class Model extends Surf {
ByteBuffer bb = ByteBuffer.wrap(mod_base, l.fileofs, l.filelen);
bb.order(ByteOrder.LITTLE_ENDIAN);
- for ( i=0 ; i<count ; i++) {
-
+ for ( i=0 ; i<count ; i++)
+ {
in = new texinfo_t(bb);
- out[i].vecs = in.vecs;
+ out[i] = new mtexinfo_t();
+ //for (j=0 ; j<8 ; j++)
+ out[i].vecs = in.vecs;
+
out[i].flags = in.flags;
next = in.nexttexinfo;
if (next > 0)
@@ -533,14 +533,17 @@ public abstract class Model extends Surf {
name = "textures/" + in.texture + ".wal";
out[i].image = GL_FindImage(name, it_wall);
- if (out[i].image == null) {
+ if (out[i].image == null)
+ {
ri.Con_Printf(Defines.PRINT_ALL, "Couldn't load " + name + '\n');
out[i].image = r_notexture;
}
}
// count animation frames
- for (i=0 ; i<count ; i++) {
+ for (i=0 ; i<count ; i++)
+ {
+ // out = &loadmodel.texinfo[i];
out[i].numframes = 1;
for (step = out[i].next ; (step != null) && (step != out[i]) ; step=step.next)
out[i].numframes++;