Class GLShortCuts
- java.lang.Object
-
- org.scilab.forge.scirenderer.implementation.jogl.utils.GLShortCuts
-
public final class GLShortCuts extends java.lang.ObjectUtility class for common OpenGl calls.- Author:
- Pierre Lando
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidsetEnable(com.jogamp.opengl.GL2 gl, int option, boolean status)Enable or disable GL option.static voiduseColor(com.jogamp.opengl.GL2 gl, Color color)Set the OpenGl context color to the given color.static voiduseLineAppearance(com.jogamp.opengl.GL2 gl, Appearance appearance)Set the OpenGl context line appearance from the given appearance.
-
-
-
Method Detail
-
useLineAppearance
public static void useLineAppearance(com.jogamp.opengl.GL2 gl, Appearance appearance)Set the OpenGl context line appearance from the given appearance. If appearance is null, default value are used..- Parameters:
gl- the OpenGl context.appearance- the appearance to use.
-
useColor
public static void useColor(com.jogamp.opengl.GL2 gl, Color color)Set the OpenGl context color to the given color.- Parameters:
gl- the OpenGl context.color- the color to use.
-
setEnable
public static void setEnable(com.jogamp.opengl.GL2 gl, int option, boolean status)Enable or disable GL option.- Parameters:
gl- the current gl.option- the option to change.status- the new option status.
-
-