Class Scene
Inheritance
java.lang.Object
Scene
Syntax
Constructors
Scene(String name, GLFWWindow prnt)
Declaration
public Scene(String name, GLFWWindow prnt)
Parameters
Methods
addCamera(Camera cam)
Declaration
public void addCamera(Camera cam)
Parameters
Type |
Name |
Description |
Camera |
cam |
|
addChild(Entity child)
Declaration
public void addChild(Entity child)
Parameters
Type |
Name |
Description |
Entity |
child |
|
addComponent(SceneComponent component)
Declaration
public void addComponent(SceneComponent component)
Parameters
addLight(Light light)
Declaration
public void addLight(Light light)
Parameters
Type |
Name |
Description |
Light |
light |
|
addToSceneManager()
Declaration
public void addToSceneManager()
finalize()
Declaration
getCamera(String name)
Declaration
public Camera getCamera(String name)
Parameters
Type |
Name |
Description |
String |
name |
|
Returns
getCameras()
Declaration
public Map<String, Camera> getCameras()
Returns
Type |
Description |
Map<String, Camera> |
|
getId()
Declaration
Returns
Declaration
public <T extends GLFWInput> T getInputController()
Returns
getLights()
Declaration
public ArrayList<Light> getLights()
Returns
Type |
Description |
ArrayList<Light> |
|
getMainCamera()
Declaration
public Camera getMainCamera()
Returns
getName()
Declaration
Returns
getParentWindow()
Declaration
public GLFWWindow getParentWindow()
Returns
getRoot()
Declaration
Returns
getRootObject()
Declaration
public Entity getRootObject()
Returns
init()
Declaration
Declaration
public void input(float delta)
Parameters
Type |
Name |
Description |
float |
delta |
|
isInitialized()
Declaration
public boolean isInitialized()
Returns
render(RenderingEngine rndEng)
Declaration
public void render(RenderingEngine rndEng)
Parameters
setAsParentScene()
Declaration
public void setAsParentScene()
setCameras(Map<String, Camera> cameras)
Declaration
public void setCameras(Map<String, Camera> cameras)
Parameters
Type |
Name |
Description |
Map<String, Camera> |
cameras |
|
setId(UUID id)
Declaration
public void setId(UUID id)
Parameters
Type |
Name |
Description |
UUID |
id |
|
setInitialized(boolean initialized)
Declaration
public void setInitialized(boolean initialized)
Parameters
Type |
Name |
Description |
boolean |
initialized |
|
setLights(ArrayList<Light> lights)
Declaration
public void setLights(ArrayList<Light> lights)
Parameters
Type |
Name |
Description |
ArrayList<Light> |
lights |
|
setMainCamera(Camera mainCamera)
Declaration
public void setMainCamera(Camera mainCamera)
Parameters
Type |
Name |
Description |
Camera |
mainCamera |
|
setMainCamera(String name)
Declaration
public void setMainCamera(String name)
Parameters
Type |
Name |
Description |
String |
name |
|
setName(String name)
Declaration
public void setName(String name)
Parameters
Type |
Name |
Description |
String |
name |
|
setParentWindow(GLFWWindow parentWindow)
Declaration
public void setParentWindow(GLFWWindow parentWindow)
Parameters
setRoot(Entity root)
Declaration
public void setRoot(Entity root)
Parameters
Type |
Name |
Description |
Entity |
root |
|
toString()
Declaration
Returns
update(float delta)
Declaration
public void update(float delta)
Parameters
Type |
Name |
Description |
float |
delta |
|