NASA World Wind

gov.nasa.worldwind.util
Class OGLStateSupport

java.lang.Object
  extended by gov.nasa.worldwind.util.OGLStateSupport

public class OGLStateSupport
extends Object


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

Field Detail

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
Constructor Detail

OGLStateSupport

public OGLStateSupport()
Method Detail

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)

NASA World Wind