Package engine.renderEngine
Class MasterRenderer
java.lang.Object
engine.renderEngine.MasterRenderer
The main renderer class which starts all individual renderers and prepares the array of objects for each.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
cleanUp()
Calls the cleanup methods for each shader.org.joml.Matrix4f
void
prepare()
Sets the OPENGL properties before rendering.void
processEntities
(Entity entity) Processes each entity into the entity HashMapvoid
processTerrain
(Terrain terrain) Processes each terrain into the terrain hashmapvoid
processZoneTiles
(ZoneTile zoneTile) void
Calls the render function of each renderer as well as loading the camera position and light to each shader.
-
Constructor Details
-
MasterRenderer
public MasterRenderer()Sets OPENGL Properties and starts all the renderers.
-
-
Method Details
-
render
Calls the render function of each renderer as well as loading the camera position and light to each shader.- Parameters:
selector
-camera
-light
-
-
processEntities
Processes each entity into the entity HashMap- Parameters:
entity
-
-
processTerrain
Processes each terrain into the terrain hashmap- Parameters:
terrain
-
-
processZoneTiles
-
prepare
public void prepare()Sets the OPENGL properties before rendering. -
cleanUp
public void cleanUp()Calls the cleanup methods for each shader. -
getProjectionMatrix
public org.joml.Matrix4f getProjectionMatrix()- Returns:
- the current projection matrix based on the screen
-