Class RenderingEngine
Inheritance
java.lang.Object
RenderingEngine
Syntax
public class RenderingEngine extends MappedValues implements Expendable
Constructors
RenderingEngine()
Declaration
Fields
c
Declaration
public static Color c= Color.hex2Rgb("#b9bec1").normalize()
Field Value
depth_test
Declaration
public static boolean depth_test= false
Field Value
Methods
addCamera(Camera camera)
Declaration
public void addCamera(Camera camera)
Parameters
Type |
Name |
Description |
Camera |
camera |
|
clearScreen()
Declaration
public static void clearScreen()
dispose()
Declaration
Overrides
getActiveLight()
Declaration
public Light getActiveLight()
Returns
getMainCamera()
Declaration
public Camera getMainCamera()
Returns
getOpenGLVersion()
Declaration
public static String getOpenGLVersion()
Returns
getSamplerMap()
Declaration
public HashMap<String, Integer> getSamplerMap()
Returns
Type |
Description |
HashMap<String, Integer> |
|
getSamplerSlot(String uniformKey)
Declaration
public int getSamplerSlot(String uniformKey)
Parameters
Type |
Name |
Description |
String |
uniformKey |
|
Returns
initGraphics()
Declaration
public void initGraphics()
render(Scene scene)
Declaration
public void render(Scene scene)
Parameters
Type |
Name |
Description |
Scene |
scene |
|
setActiveLight(Light activeLight)
Declaration
public void setActiveLight(Light activeLight)
Parameters
Type |
Name |
Description |
Light |
activeLight |
|
setMainCamera(Camera mainCamera)
Declaration
public void setMainCamera(Camera mainCamera)
Parameters
Type |
Name |
Description |
Camera |
mainCamera |
|
setSamplerMap(HashMap<String, Integer> samplerMap)
Declaration
public void setSamplerMap(HashMap<String, Integer> samplerMap)
Parameters
Type |
Name |
Description |
HashMap<String, Integer> |
samplerMap |
|
toggleDepthTest()
Declaration
public static void toggleDepthTest()
unBindTextures()
Declaration
public static void unBindTextures()
Declaration
public void updateUniformStruct(Transform transform, Material mat, Shader shader, String uniformName, String uniformType)
Parameters