Interface ThreeBridge
- All Superinterfaces:
org.teavm.jso.JSObject
public interface ThreeBridge
extends org.teavm.jso.JSObject
TeaVM interface for the
three-bridge.js JavaScript implementation.
Includes TeaVM stubs for Three.js classes.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interface -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyColor(ThreeBridge.ThreeObject model, String color) voidapplyTexture(ThreeBridge.ThreeObject model, org.teavm.jso.dom.html.HTMLImageElement image, int x, int y, int w, int h) booleancastPickRay(float pointX, float pointY, float x0, float y0, float z0, float x1, float y1, float z1) voidchangeBackgroundColor(String color) cloneObject(ThreeBridge.ThreeObject original) createLight(String color, float intensity) createSphere(float radius, String color) getScene()voidinit()voidloadGLTF(String url, ThreeBridge.ModelCallback callback) voidloadOBJ(String url, ThreeBridge.ModelCallback callback) voidmoveCamera(float x, float y, float z, float focusX, float focusY, float focusZ) project(float x, float y, float z) voidrender()Methods inherited from interface org.teavm.jso.JSObject
cast
-
Method Details
-
getScene
ThreeBridge.ThreeObject getScene() -
getAmbientLight
ThreeBridge.ThreeLight getAmbientLight() -
init
void init() -
render
void render() -
changeBackgroundColor
-
moveCamera
void moveCamera(float x, float y, float z, float focusX, float focusY, float focusZ) -
createBox
-
createSphere
-
createLight
-
applyColor
-
applyTexture
void applyTexture(ThreeBridge.ThreeObject model, org.teavm.jso.dom.html.HTMLImageElement image, int x, int y, int w, int h) -
cloneObject
-
loadGLTF
-
loadOBJ
-
project
-
castPickRay
boolean castPickRay(float pointX, float pointY, float x0, float y0, float z0, float x1, float y1, float z1)
-