Modifier and Type | Field and Description |
---|---|
static int |
COLORCHANNEL_RENDERING_BIT
Rendering-Mode bit for
Region |
static int |
COLORTEXTURE_RENDERING_BIT
Rendering-Mode bit for
Region |
static boolean |
DEBUG
Debug flag for region impl (graph.curve)
|
static boolean |
DEBUG_INSTANCE |
static int |
DEFAULT_TWO_PASS_TEXTURE_UNIT |
static int |
MAX_QUALITY
Default maximum
quality , 1. |
static int |
MSAA_RENDERING_BIT
Rendering-Mode bit for
Region |
static int |
VARWEIGHT_RENDERING_BIT
Rendering-Mode bit for
Region |
static int |
VBAA_RENDERING_BIT
Rendering-Mode bit for
Region |
Modifier and Type | Method and Description |
---|---|
void |
addOutlineShape(OutlineShape shape,
jogamp.graph.geom.plane.AffineTransform t,
float[] rgbaColor)
Add the given
OutlineShape to this region with the given optional AffineTransform . |
void |
addOutlineShapes(List<OutlineShape> shapes,
jogamp.graph.geom.plane.AffineTransform transform,
float[] rgbaColor) |
AABBox |
getBounds() |
Frustum |
getFrustum()
|
int |
getQuality()
See
MAX_QUALITY |
int |
getRenderModes()
Return bit-field of render modes, see
GLRegion.create(int, TextureSequence) . |
static String |
getRenderModeString(int renderModes) |
boolean |
hasColorChannel()
Returns true if render mode has a color channel,
i.e.
|
static boolean |
hasColorChannel(int renderModes)
Returns true if render mode has a color channel,
i.e.
|
boolean |
hasColorTexture()
Returns true if render mode has a color texture,
i.e.
|
static boolean |
hasColorTexture(int renderModes)
Returns true if render mode has a color texture,
i.e.
|
boolean |
hasVariableWeight()
Returns true if capable of variable weights, otherwise false.
|
static boolean |
hasVariableWeight(int renderModes)
Returns true if render mode capable of variable weights,
i.e.
|
boolean |
isMSAA()
Returns true if capable of two pass rendering - MSAA, otherwise false.
|
static boolean |
isMSAA(int renderModes) |
boolean |
isShapeDirty()
Returns true if this region's shape are dirty, see
markShapeDirty() . |
boolean |
isStateDirty()
Returns true if this region's state is dirty, see
markStateDirty() . |
static boolean |
isTwoPass(int renderModes) |
boolean |
isVBAA()
Returns true if capable of two pass rendering - VBAA, otherwise false.
|
static boolean |
isVBAA(int renderModes) |
void |
markShapeDirty()
Mark this region's shape dirty, i.e.
|
void |
markStateDirty()
Mark this region's state dirty, i.e.
|
void |
setFrustum(Frustum frustum)
Set
Frustum culling for addOutlineShape(OutlineShape, AffineTransform, float[]) . |
void |
setQuality(int q)
See
MAX_QUALITY |
String |
toString() |
public static final boolean DEBUG
public static final boolean DEBUG_INSTANCE
public static final int MSAA_RENDERING_BIT
Region
MSAA based Anti-Aliasing, a two pass region rendering, slower and more resource hungry (FBO), but providing fast MSAA in case the whole scene is not rendered with MSAA.
public static final int VBAA_RENDERING_BIT
Region
View based Anti-Aliasing, a two pass region rendering, slower and more resource hungry (FBO), but AA is perfect. Otherwise the default fast one pass MSAA region rendering is being used.
public static final int VARWEIGHT_RENDERING_BIT
Region
Use non uniform weights [0.0 .. 1.9] for curve region rendering. Otherwise the default weight 1.0 for uniform curve region rendering is being applied.
public static final int COLORCHANNEL_RENDERING_BIT
Region
If set, a color channel attribute per vertex is added to the stream,
otherwise only the
static color
is being used.
public static final int COLORTEXTURE_RENDERING_BIT
Region
If set, a color texture is used to determine the color.
public static final int MAX_QUALITY
quality
, 1.public static final int DEFAULT_TWO_PASS_TEXTURE_UNIT
public static boolean isVBAA(int renderModes)
public static boolean isMSAA(int renderModes)
public static boolean isTwoPass(int renderModes)
public static boolean hasVariableWeight(int renderModes)
VARWEIGHT_RENDERING_BIT
is set,
otherwise false.public static boolean hasColorChannel(int renderModes)
COLORCHANNEL_RENDERING_BIT
is set,
otherwise false.public static boolean hasColorTexture(int renderModes)
COLORTEXTURE_RENDERING_BIT
is set,
otherwise false.public static String getRenderModeString(int renderModes)
public final int getRenderModes()
GLRegion.create(int, TextureSequence)
.public final int getQuality()
MAX_QUALITY
public final void setQuality(int q)
MAX_QUALITY
public final boolean isVBAA()
public final boolean isMSAA()
public final boolean hasVariableWeight()
public boolean hasColorChannel()
COLORCHANNEL_RENDERING_BIT
is set,
otherwise false.public boolean hasColorTexture()
COLORTEXTURE_RENDERING_BIT
is set,
otherwise false.public final Frustum getFrustum()
public final void setFrustum(Frustum frustum)
Frustum
culling for addOutlineShape(OutlineShape, AffineTransform, float[])
.public final void addOutlineShape(OutlineShape shape, jogamp.graph.geom.plane.AffineTransform t, float[] rgbaColor)
OutlineShape
to this region with the given optional AffineTransform
.
In case frustum culling is set
, the OutlineShape
is dropped if it's bounding-box
is fully outside of the frustum.
The optional AffineTransform
is applied to the bounding-box beforehand.
rgbaColor
- TODOpublic final void addOutlineShapes(List<OutlineShape> shapes, jogamp.graph.geom.plane.AffineTransform transform, float[] rgbaColor)
public final AABBox getBounds()
public final void markShapeDirty()
public final boolean isShapeDirty()
markShapeDirty()
.public final void markStateDirty()
public final boolean isStateDirty()
markStateDirty()
.Copyright 2010 JogAmp Community.