gov.nasa.worldwind.util
Class OGLStateSupport
java.lang.Object
gov.nasa.worldwind.util.OGLStateSupport
public class OGLStateSupport
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
color
protected Color color
COLOR_NO_PREMULTIPLIED_ALPHA
public static String COLOR_NO_PREMULTIPLIED_ALPHA
COLOR_PREMULTIPLIED_ALPHA
public static String COLOR_PREMULTIPLIED_ALPHA
colorMode
protected String colorMode
enableAlphaTest
protected boolean enableAlphaTest
enableBlending
protected boolean enableBlending
enableColor
protected boolean enableColor
enableLighting
protected boolean enableLighting
EXT_BLEND_FUNC_SEPARATE_STRING
protected static final String EXT_BLEND_FUNC_SEPARATE_STRING
- See Also:
- Constant Field Values
LIGHT_DIRECTIONAL_FROM_VIEWER_POSITION
public static String LIGHT_DIRECTIONAL_FROM_VIEWER_POSITION
lightPosition
protected Vec4 lightPosition
lightType
protected String lightType
opacity
protected double opacity
OGLStateSupport
public OGLStateSupport()
apply
public void apply(GL gl)
getAttributeBits
public int getAttributeBits()
getColor
public Color getColor()
getColorMode
public String getColorMode()
getDefaultLightDirection
protected static Vec4 getDefaultLightDirection()
getLightPosition
public Vec4 getLightPosition()
getLightType
public String getLightType()
getOpacity
public double getOpacity()
isEnableAlphaTest
public boolean isEnableAlphaTest()
isEnableBlending
public boolean isEnableBlending()
isEnableColor
public boolean isEnableColor()
isEnableLighting
public boolean isEnableLighting()
setColor
public void setColor(Color color)
setColor
public void setColor(Color color,
double opacity)
setColorMode
public void setColorMode(String type)
setEnableAlphaTest
public void setEnableAlphaTest(boolean enable)
setEnableBlending
public void setEnableBlending(boolean enable)
setEnableColor
public void setEnableColor(boolean enable)
setEnableLighting
public void setEnableLighting(boolean enable)
setLightPosition
public void setLightPosition(Vec4 lightPosition)
setLightType
public void setLightType(String type)
setupAlphaTestState
protected void setupAlphaTestState(GL gl)
setupBlendingState
protected void setupBlendingState(GL gl,
String colorMode)
setupColorState
protected void setupColorState(GL gl,
String colorMode,
Color color,
double opacity)
setupLightingState
protected void setupLightingState(GL gl,
String lightType,
Vec4 lightPosition)