Free Electron
|
Configuration for rendering such as line width and backface culling. More...
#include <DrawMode.h>
Public Types | |
enum | DrawStyle { e_defaultStyle, e_pointCloud, e_wireframe, e_outline, e_solid, e_edgedSolid, e_foreshadow, e_ghost, e_drawStyleCount } |
Rendering schemes that an an implementation may recognize. More... | |
enum | Coloring { e_color, e_normal, e_tangent, e_uv, e_partition, e_coloringCount } |
Public Member Functions | |
void | copy (sp< DrawMode > a_spDrawMode) |
void | setTextureImage (sp< ImageI > spImageI) |
Set raster for texture mapping. More... | |
sp< ImageI > | textureImage (void) const |
Get raster for texture mapping. More... | |
void | setTextureImageID (I32 a_imageId) |
Set raster for texture mapping. More... | |
I32 | textureImageID (void) const |
Get raster for texture mapping. More... | |
void | setDrawStyle (DrawStyle style) |
Set rendering scheme (see DrawStyle) More... | |
DrawStyle | drawStyle (void) const |
Get rendering scheme (see DrawStyle) More... | |
void | setColoring (Coloring coloring) |
Set color source (see Coloring) More... | |
Coloring | coloring (void) const |
Get color source (see Coloring) More... | |
void | setGroup (String a_group) |
Set named group. More... | |
String | group (void) const |
Get named group. More... | |
void | setLayer (I32 set) |
Set rendering ordering (highest last) More... | |
I32 | layer (void) const |
Get rendering ordering (highest last) More... | |
void | setPointSize (Real pixels) |
Set diameter of all following drawn points. More... | |
Real | pointSize (void) const |
Get diameter of all following drawn points. More... | |
void | setLineWidth (Real pixels) |
Set width of all following drawn lines. More... | |
Real | lineWidth (void) const |
Get width of all following drawn lines. More... | |
void | setRefinement (I32 level) |
Set subvision level of all following drawn polys. More... | |
I32 | refinement (void) const |
Get subvision level of all following drawn polys. More... | |
void | setAntialias (BWORD antialias) |
Set rasterization anti-aliasing. More... | |
BWORD | antialias (void) const |
Get whether anti-aliasing is used. More... | |
void | setFrontfaceCulling (BWORD frontfaceCulling) |
Set whether frontfaces are removed. More... | |
BWORD | frontfaceCulling (void) const |
Get whether frontfaces are removed. More... | |
void | setBackfaceCulling (BWORD backfaceCulling) |
Set whether backfaces are removed. More... | |
BWORD | backfaceCulling (void) const |
Get whether backfaces are removed. More... | |
void | setTwoSidedLighting (BWORD twoSidedLighting) |
Set whether backfaces have an independent material. More... | |
BWORD | twoSidedLighting (void) const |
Get whether backfaces have an independent material. More... | |
void | setZBuffering (BWORD zBuffering) |
Set whether z-buffering is used. More... | |
BWORD | zBuffering (void) const |
Get whether z-buffering is used. More... | |
void | setLit (BWORD lit) |
Set lit. More... | |
BWORD | lit (void) const |
Get whether lit. More... | |
void | setShadows (BWORD shadows) |
Set shadows. More... | |
BWORD | shadows (void) const |
Get whether shadows. More... | |
void | setUvSpace (BWORD uvSpace) |
Set whether in UV space. More... | |
BWORD | uvSpace (void) const |
Get whether in UV space. More... | |
Public Member Functions inherited from fe::Counted | |
virtual void | acquire (void) |
Increment the reference count. More... | |
virtual void | acquire (int &rCount) |
Increment the reference count (and get the count) More... | |
virtual void | release (void) |
Decrement the reference count. More... | |
virtual void | abandon (void) |
Decrement the reference count. More... | |
int | count (void) const |
Return the count of references. More... | |
void | setName (const String &) |
void | trackReference (void *pReference, String what) |
void | untrackReference (void *pReference) |
void | registerRegion (void *pT, U32 bytes) |
Static Public Member Functions | |
static DrawStyle | stringToStyle (const String &a_styleName) |
static Coloring | stringToColoring (const String &a_coloringName) |
Static Public Member Functions inherited from fe::Counted | |
static String | reportTracker (void) |
static U32 | trackerCount (void) |
Private Attributes | |
sp< ImageI > | m_spTextureImage |
I32 | m_textureImageID |
DrawStyle | m_drawStyle |
Coloring | m_coloring |
String | m_group |
I32 | m_layer |
Real | m_pointSize |
Real | m_lineWidth |
I32 | m_refinement |
BWORD | m_antialias |
BWORD | m_frontfaceCulling |
BWORD | m_backfaceCulling |
BWORD | m_twoSidedLighting |
BWORD | m_zBuffering |
BWORD | m_lit |
BWORD | m_shadows |
BWORD | m_uvSpace |
Additional Inherited Members | |
Protected Member Functions inherited from fe::Counted | |
int | releaseInternal (void) |
Decrement the reference count. More... | |
void | suppressReport (void) |
Configuration for rendering such as line width and backface culling.
An instance of a DrawMode is shared between all draw operations that occur while it is the current DrawMode to a DrawI. Changing a DrawMode at any time can affect all elements that are associated with that DrawMode.
It is intended for these modes to be configured and left alone prior to being used. They are not an indirect interface extension to DrawI.
The DrawMode is an optimization for cached rendering. Without them, either every draw operation would have to cache an entire drawing state or there would be an extraordinary amount of cross checking to match up coincidentally identical states.
Rendering schemes that an an implementation may recognize.
Not all methods may be available in a particular situation.
|
inline |
Get whether anti-aliasing is used.
|
inline |
Get whether backfaces are removed.
|
inline |
Get color source (see Coloring)
|
inline |
Get rendering scheme (see DrawStyle)
|
inline |
Get whether frontfaces are removed.
|
inline |
Get named group.
|
inline |
Get rendering ordering (highest last)
|
inline |
Get width of all following drawn lines.
|
inline |
Get whether lit.
|
inline |
Get diameter of all following drawn points.
|
inline |
Get subvision level of all following drawn polys.
|
inline |
Set rasterization anti-aliasing.
|
inline |
Set whether backfaces are removed.
|
inline |
Set color source (see Coloring)
|
inline |
Set rendering scheme (see DrawStyle)
|
inline |
Set whether frontfaces are removed.
|
inline |
Set named group.
|
inline |
Set rendering ordering (highest last)
|
inline |
Set width of all following drawn lines.
|
inline |
Set lit.
|
inline |
Set diameter of all following drawn points.
|
inline |
Set subvision level of all following drawn polys.
|
inline |
Set shadows.
Set raster for texture mapping.
|
inline |
Set raster for texture mapping.
An id less than zero indicates to just use the currently selected image id for the ImageI.
|
inline |
Set whether backfaces have an independent material.
|
inline |
Set whether in UV space.
|
inline |
Set whether z-buffering is used.
|
inline |
Get whether shadows.
|
inline |
Get raster for texture mapping.
|
inline |
Get whether backfaces have an independent material.
|
inline |
Get whether in UV space.
|
inline |
Get whether z-buffering is used.