public final class Projection
extends java.lang.Object
| Constructor and Description |
|---|
Projection() |
| Modifier and Type | Method and Description |
|---|---|
Mat4x4 |
getMatrix() |
Mat4x4 |
getOrthographicMatrix()
Select the perspective projection
|
Mat4x4 |
getPerspectiveMatrix()
Select the perspective projection
|
boolean |
isOrthographic() |
boolean |
isPerspective() |
void |
set(Projection src) |
void |
setOrthographic(float left,
float right,
float bottom,
float top,
float near,
float far)
Set the orthographic matrix.
|
void |
setPerspective(float fovy,
float aspect,
float zNear,
float zFar)
Set the perspective matrix.
|
public void set(Projection src)
public final void setPerspective(float fovy,
float aspect,
float zNear,
float zFar)
public final Mat4x4 getPerspectiveMatrix()
public final void setOrthographic(float left,
float right,
float bottom,
float top,
float near,
float far)
public final Mat4x4 getOrthographicMatrix()
public final Mat4x4 getMatrix()
public final boolean isPerspective()
public final boolean isOrthographic()
Bonzai Engine 1.4.1-20200831 - A Java OpenGL engine and tools for Windows/Mac/Linux/Android
Copyright © 2007-2019 Jérôme Jouvie bonzaiengine.com contact@bonzaiengine.com