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
Modifier and TypeInterfaceDescriptionstatic interface
static interface
static interface
static interface
static interface
static interface
static interface
-
Method Summary
Modifier and TypeMethodDescriptionvoid
applyColor
(ThreeBridge.ThreeObject model, String color) void
applyTexture
(ThreeBridge.ThreeObject model, org.teavm.jso.dom.html.HTMLImageElement image, int x, int y, int w, int h) boolean
castPickRay
(float pointX, float pointY, float x0, float y0, float z0, float x1, float y1, float z1) void
changeBackgroundColor
(String color) cloneObject
(ThreeBridge.ThreeObject original) createLight
(String color, float intensity) createSphere
(float radius, String color) getScene()
void
init()
void
loadGLTF
(String url, ThreeBridge.ModelCallback callback) void
loadOBJ
(String url, ThreeBridge.ModelCallback callback) void
moveCamera
(float x, float y, float z, float focusX, float focusY, float focusZ) project
(float x, float y, float z) void
render()
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)
-