public final class GLc
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static boolean |
android
true in Android os
|
static int |
TYPE_BATCH_HW
Internal
|
static int |
TYPE_CONTEXT_VAO
Internal
|
static int |
TYPE_MATERIAL_STANDARD
Internal
|
static int |
TYPE_SHADER_DIFFUSE
Internal
|
static int |
TYPE_SHADER_DIFFUSE_ALPHATEST
Internal
|
static int |
TYPE_SHADER_DIFFUSE_CUBE
Internal
|
static int |
TYPE_SHADER_DIFFUSE_VERTEXCOLOR
Internal
|
static int |
TYPE_SHADER_DIFFUSE_VERTEXCOLOR_ALPHATEST
Internal
|
static int |
TYPE_SHADER_FONT
Internal
|
static int |
TYPE_SHADER_UNIFORMCOLOR
Internal
|
static int[] |
TYPE_SHADER_UNIFORMCOLOR_LIGHTING
Internal
|
static int |
TYPE_SHADER_VERTEXCOLOR
Internal
|
static int |
TYPE_TEX_ANISO_MAX
Internal
|
static int |
TYPE_TEX_SAMPLES_MAX
Internal
|
| Modifier and Type | Method and Description |
|---|---|
void |
flush(IGL gl,
Lights<?> lights)
Flush for fixed pipeline
|
byte[] |
getColor() |
Color4 |
getColor(Color4 dst) |
float |
getMaterialAlpha() |
Vec3 |
getMaterialAmbient(Vec3 dst) |
Vec3 |
getMaterialDiffuse(Vec3 dst) |
Vec3 |
getMaterialEmission(Vec3 dst) |
float |
getMaterialShininess() |
Vec3 |
getMaterialSpecular(Vec3 dst) |
MatrixStack |
getModelview() |
java.lang.Object |
getObjectByType(int type)
Internal
|
MatrixStack |
getProjection() |
void |
onContextLost()
Should be called when OpenGL context is lost.
|
void |
setColor(Color4 color) |
void |
setColor(float r,
float g,
float b,
float a)
Set the current OpenGL color state
|
void |
setColor(int rgba) |
void |
setMaterialAlpha(float a)
Set the current OpenGL material alpha value
|
void |
setMaterialAmbient(float r,
float g,
float b)
Set the current OpenGL material ambient value
|
void |
setMaterialDiffuse(float r,
float g,
float b)
Set the current OpenGL material diffuse value
|
void |
setMaterialEmission(float r,
float g,
float b)
Set the current OpenGL material emission value
|
void |
setMaterialShininess(float shininess)
Set the current OpenGL material shininess state
|
void |
setMaterialSpecular(float r,
float g,
float b)
Set the current OpenGL material specular value
|
void |
setObjectByType(int type,
java.lang.Object object)
Internal
|
void |
syncFromContext(IGL gl)
Synchronize engine matrix stack with specified OpenGL context matrix stack.
|
void |
syncFromMatrices(Mat4x4 projectionMatrix,
Mat4x4 modelviewMatrix)
Synchronize engine matrix stack (
getModelview() and getProjection())
other matrix stack implementation. |
void |
unsyncLights() |
java.nio.FloatBuffer |
wrapMat3(Mat4x4 mat) |
java.nio.FloatBuffer |
wrapMat4(Mat4x4 mat) |
public static boolean android
public static final int TYPE_CONTEXT_VAO
public static final int TYPE_TEX_ANISO_MAX
public static final int TYPE_TEX_SAMPLES_MAX
public static final int TYPE_BATCH_HW
public static final int TYPE_SHADER_UNIFORMCOLOR
public static final int[] TYPE_SHADER_UNIFORMCOLOR_LIGHTING
public static final int TYPE_SHADER_VERTEXCOLOR
public static final int TYPE_SHADER_DIFFUSE
public static final int TYPE_SHADER_DIFFUSE_VERTEXCOLOR
public static final int TYPE_SHADER_DIFFUSE_VERTEXCOLOR_ALPHATEST
public static final int TYPE_SHADER_DIFFUSE_ALPHATEST
public static final int TYPE_SHADER_DIFFUSE_CUBE
public static final int TYPE_SHADER_FONT
public static final int TYPE_MATERIAL_STANDARD
public GLc(GLc sharedGLc)
public final MatrixStack getProjection()
public final MatrixStack getModelview()
public final void setColor(float r,
float g,
float b,
float a)
public final void setColor(int rgba)
public final void setColor(Color4 color)
public final byte[] getColor()
public final void setMaterialAlpha(float a)
public final float getMaterialAlpha()
public final void setMaterialAmbient(float r,
float g,
float b)
public final void setMaterialDiffuse(float r,
float g,
float b)
public final void setMaterialSpecular(float r,
float g,
float b)
public final void setMaterialEmission(float r,
float g,
float b)
public final void setMaterialShininess(float shininess)
public final float getMaterialShininess()
public final void syncFromContext(IGL gl)
getModelview() and getProjection() stacks.
(OpenGL matrix stack is deprecated by recent OpenGL spec, the engine does not use it anymore).public final void syncFromMatrices(Mat4x4 projectionMatrix, Mat4x4 modelviewMatrix)
getModelview() and getProjection())
other matrix stack implementation.public final void unsyncLights()
public final void onContextLost()
ISceneTarget class,
if you're not using it you should call this method.public final java.nio.FloatBuffer wrapMat3(Mat4x4 mat)
public final java.nio.FloatBuffer wrapMat4(Mat4x4 mat)
public final java.lang.Object getObjectByType(int type)
public final void setObjectByType(int type,
java.lang.Object object)
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