Class Scene
java.lang.Object
javaforce.gl.Scene
Scene is a primitive 3D framework.
Holds all loaded 3D meshes and related resources.
-
Field Summary
FieldsModifier and TypeFieldDescriptionintbooleanintintintintint[]intintint -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleancloneModel(String fn) Clones a pre-loaded model.intindexOfModel(Model mod) voidLoads a .3DS file into the template array.Loads a .blend file into the template array.Loads a .JF3D file into the template array.booleanintvoidmodelRotate(int idx, float angle, float x, float y, float z) voidmodelScale(int idx, float x, float y, float z) voidmodelTranslate(int idx, float x, float y, float z) voidnextFrame(int objidx) voidvoidreleaseModel(int idx) Release a cloned model @ index.voidvoidremoveModel(int idx) voidremoveModel(Model mod) voidreset()voidsetFrame(int objidx, int frame) booleansetTexture(String fn, int[] px, int w, int h, int idx) booleansetTexture(String fn, Texture tex) voidunloadModel(Model mod)
-
Field Details
-
inited
public boolean inited -
texturePath
-
fragShader
public int fragShader -
vertexShader
public int vertexShader -
program
public int program -
vpa
public int vpa -
tca
public int[] tca -
uUVMaps
public int uUVMaps -
mpu
public int mpu -
mmu
public int mmu -
mvu
public int mvu
-
-
Constructor Details
-
Scene
public Scene()
-
-
Method Details
-
init
-
reset
public void reset() -
loadTextures
public boolean loadTextures() -
setTexture
-
setTexture
-
releaseUnusedTextures
public void releaseUnusedTextures() -
releaseModel
public void releaseModel(int idx) Release a cloned model @ index. -
modelCount
public int modelCount() -
addModel
-
addModel
-
indexOfModel
-
removeModel
public void removeModel(int idx) -
removeModel
-
nextFrame
public void nextFrame(int objidx) -
setFrame
public void setFrame(int objidx, int frame) -
modelTranslate
public void modelTranslate(int idx, float x, float y, float z) -
modelRotate
public void modelRotate(int idx, float angle, float x, float y, float z) -
modelScale
public void modelScale(int idx, float x, float y, float z) -
load3DS
-
loadBlend
-
loadJF3D
-
cloneModel
-
unloadModel
-
releaseModel
public void releaseModel()
-