|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jagatoo.loaders.models.bsp.BSPPrototypeLoader
public class BSPPrototypeLoader
Loads the Quake 3 BSP file according to spec. It is not expected that it would be rendered from this data structure, but used to convert into a better format for rendering via Xith3D.
| Field Summary | |
|---|---|
protected static java.lang.Boolean |
DEBUG
|
static boolean |
loadNormals
|
| Constructor Summary | |
|---|---|
BSPPrototypeLoader()
|
|
| Method Summary | |
|---|---|
static BSPScenePrototype |
load(java.io.InputStream in,
java.lang.String filename,
java.net.URL baseURL,
GeometryFactory geomFactory,
boolean convertZup2Yup,
float worldScale,
AppearanceFactory appFactory,
NodeFactory nodeFactory,
NamedObject sceneGroup,
GroupType mainGroupType,
SpecialItemsHandler siHandler)
Loads the BSP scene prototype. |
static BSPScenePrototype |
load(java.net.URL url,
GeometryFactory geomFactory,
boolean convertZup2Yup,
float worldScale,
AppearanceFactory appFactory,
NodeFactory nodeFactory,
NamedObject sceneGroup,
GroupType mainGroupType,
SpecialItemsHandler siHandler)
Loads the BSP scene prototype. |
protected static BSPBrush[] |
readBrushes(org.jagatoo.loaders.models.bsp.BSPFile file,
BSPDirectory bspDir)
|
protected static BSPBrushSide[] |
readBrushSides(org.jagatoo.loaders.models.bsp.BSPFile file,
BSPDirectory bspDir)
|
protected static BSPEdge[] |
readEdges(org.jagatoo.loaders.models.bsp.BSPFile file,
BSPDirectory bspDir)
Half-Life BSP only method, reads out Edge data from the bsp file. |
protected static BSPEntitiesParser.BSPEntity[] |
readEntities(org.jagatoo.loaders.models.bsp.BSPFile file,
BSPDirectory bspDir)
|
protected static BSPFace[] |
readFaces(org.jagatoo.loaders.models.bsp.BSPFile file,
BSPDirectory bspDir)
|
protected static int[] |
readLeafFaces(org.jagatoo.loaders.models.bsp.BSPFile file,
BSPDirectory bspDir)
|
protected static BSPLeaf[] |
readLeafs(org.jagatoo.loaders.models.bsp.BSPFile file,
BSPDirectory bspDir)
|
protected static byte[] |
readLightmapData(org.jagatoo.loaders.models.bsp.BSPFile file,
BSPDirectory bspDir)
|
protected static AbstractTexture[] |
readLightmaps(org.jagatoo.loaders.models.bsp.BSPFile file,
BSPDirectory bspDir,
AppearanceFactory appFactory)
|
protected static int[] |
readMeshVertices(org.jagatoo.loaders.models.bsp.BSPFile file,
BSPDirectory bspDir)
|
protected static BSPModel[] |
readModels(org.jagatoo.loaders.models.bsp.BSPFile file,
BSPDirectory bspDir)
|
protected static BSPNode[] |
readNodes(org.jagatoo.loaders.models.bsp.BSPFile file,
BSPDirectory bspDir)
|
protected static BSPPlane[] |
readPlanes(org.jagatoo.loaders.models.bsp.BSPFile file,
BSPDirectory bspDir,
float worldScale)
|
protected static int[] |
readSurfEdges(org.jagatoo.loaders.models.bsp.BSPFile file,
BSPDirectory bspDir)
|
protected static BSPTexInfo[] |
readTexInfos(org.jagatoo.loaders.models.bsp.BSPFile file,
BSPDirectory bspDir)
Half-Life BSP only method, reads out texture structure data from the bsp file. |
protected static AbstractTexture[][] |
readTextures(org.jagatoo.loaders.models.bsp.BSPFile file,
BSPDirectory bspDir,
WADFile[] wadFiles,
BSPEntitiesParser.BSPEntity[] entities,
AppearanceFactory appFactory)
|
protected static BSPVertex[] |
readVertices(org.jagatoo.loaders.models.bsp.BSPFile file,
BSPDirectory bspDir)
|
protected static BSPVisData |
readVisData(org.jagatoo.loaders.models.bsp.BSPFile file,
BSPDirectory bspDir,
int leafCount)
|
protected static WADFile[] |
readWADFiles(org.jagatoo.loaders.models.bsp.BSPFile file,
BSPEntitiesParser.BSPEntity[] entities)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static boolean loadNormals
protected static final java.lang.Boolean DEBUG
| Constructor Detail |
|---|
public BSPPrototypeLoader()
| Method Detail |
|---|
protected static BSPEntitiesParser.BSPEntity[] readEntities(org.jagatoo.loaders.models.bsp.BSPFile file,
BSPDirectory bspDir)
throws java.io.IOException
java.io.IOException
protected static WADFile[] readWADFiles(org.jagatoo.loaders.models.bsp.BSPFile file,
BSPEntitiesParser.BSPEntity[] entities)
throws java.io.IOException
java.io.IOException
protected static AbstractTexture[][] readTextures(org.jagatoo.loaders.models.bsp.BSPFile file,
BSPDirectory bspDir,
WADFile[] wadFiles,
BSPEntitiesParser.BSPEntity[] entities,
AppearanceFactory appFactory)
throws java.io.IOException
java.io.IOException
protected static AbstractTexture[] readLightmaps(org.jagatoo.loaders.models.bsp.BSPFile file,
BSPDirectory bspDir,
AppearanceFactory appFactory)
throws java.io.IOException
java.io.IOException
protected static byte[] readLightmapData(org.jagatoo.loaders.models.bsp.BSPFile file,
BSPDirectory bspDir)
throws java.io.IOException
java.io.IOException
protected static BSPTexInfo[] readTexInfos(org.jagatoo.loaders.models.bsp.BSPFile file,
BSPDirectory bspDir)
throws java.io.IOException
file - HL BSP file, the texture info are read frombspDir - HL BSP Lump Directory
java.io.IOException
protected static BSPVertex[] readVertices(org.jagatoo.loaders.models.bsp.BSPFile file,
BSPDirectory bspDir)
throws java.io.IOException
java.io.IOException
protected static int[] readMeshVertices(org.jagatoo.loaders.models.bsp.BSPFile file,
BSPDirectory bspDir)
throws java.io.IOException
java.io.IOException
protected static BSPEdge[] readEdges(org.jagatoo.loaders.models.bsp.BSPFile file,
BSPDirectory bspDir)
throws java.io.IOException
file - HL BSP file, the edges are read frombspDir - HL BSP Lump Directory
java.io.IOException
protected static int[] readSurfEdges(org.jagatoo.loaders.models.bsp.BSPFile file,
BSPDirectory bspDir)
throws java.io.IOException
java.io.IOException
protected static BSPFace[] readFaces(org.jagatoo.loaders.models.bsp.BSPFile file,
BSPDirectory bspDir)
throws java.io.IOException
java.io.IOException
protected static BSPVisData readVisData(org.jagatoo.loaders.models.bsp.BSPFile file,
BSPDirectory bspDir,
int leafCount)
throws java.io.IOException
java.io.IOException
protected static BSPPlane[] readPlanes(org.jagatoo.loaders.models.bsp.BSPFile file,
BSPDirectory bspDir,
float worldScale)
throws java.io.IOException
java.io.IOException
protected static BSPNode[] readNodes(org.jagatoo.loaders.models.bsp.BSPFile file,
BSPDirectory bspDir)
throws java.io.IOException
java.io.IOException
protected static BSPLeaf[] readLeafs(org.jagatoo.loaders.models.bsp.BSPFile file,
BSPDirectory bspDir)
throws java.io.IOException
java.io.IOException
protected static int[] readLeafFaces(org.jagatoo.loaders.models.bsp.BSPFile file,
BSPDirectory bspDir)
throws java.io.IOException
java.io.IOException
protected static BSPBrush[] readBrushes(org.jagatoo.loaders.models.bsp.BSPFile file,
BSPDirectory bspDir)
throws java.io.IOException
java.io.IOException
protected static BSPBrushSide[] readBrushSides(org.jagatoo.loaders.models.bsp.BSPFile file,
BSPDirectory bspDir)
throws java.io.IOException
java.io.IOException
protected static BSPModel[] readModels(org.jagatoo.loaders.models.bsp.BSPFile file,
BSPDirectory bspDir)
throws java.io.IOException
java.io.IOException
public static BSPScenePrototype load(java.io.InputStream in,
java.lang.String filename,
java.net.URL baseURL,
GeometryFactory geomFactory,
boolean convertZup2Yup,
float worldScale,
AppearanceFactory appFactory,
NodeFactory nodeFactory,
NamedObject sceneGroup,
GroupType mainGroupType,
SpecialItemsHandler siHandler)
throws java.io.IOException,
IncorrectFormatException,
ParsingException
java.io.IOException
IncorrectFormatException
ParsingException
public static BSPScenePrototype load(java.net.URL url,
GeometryFactory geomFactory,
boolean convertZup2Yup,
float worldScale,
AppearanceFactory appFactory,
NodeFactory nodeFactory,
NamedObject sceneGroup,
GroupType mainGroupType,
SpecialItemsHandler siHandler)
throws java.io.IOException,
IncorrectFormatException,
ParsingException
java.io.IOException
IncorrectFormatException
ParsingException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||