#include <builderAttrib.h>
Inheritance diagram for BuilderAttrib:
Public Types | |
typedef BuilderV | VType |
typedef BuilderN | NType |
typedef BuilderTC | TType |
typedef BuilderC | CType |
Public Member Functions | |
BuilderAttrib () | |
void | set_normal_value (const BuilderN *array, ushort index) |
Reassigns the normal, without knowing whether the attribute is indexed or nonindexed. | |
void | set_color_value (const BuilderC *array, ushort index) |
Reassigns the color, without knowing whether the attribute is indexed or nonindexed. | |
BuilderAttribTempl & | clear () |
bool | has_normal () const |
NType | get_normal () const |
BuilderAttribTempl & | set_normal (const NType &n) |
BuilderAttribTempl & | clear_normal () |
bool | has_color () const |
CType | get_color () const |
BuilderAttribTempl & | set_color (const CType &c) |
BuilderAttribTempl & | clear_color () |
bool | has_pixel_size () const |
float | get_pixel_size () const |
BuilderAttribTempl & | set_pixel_size (float s) |
BuilderAttribTempl & | clear_pixel_size () |
bool | operator== (const BuilderAttribTempl &other) const |
bool | operator!= (const BuilderAttribTempl &other) const |
bool | operator< (const BuilderAttribTempl &other) const |
int | compare_to (const BuilderAttribTempl &other) const |
ostream & | output (ostream &out) const |
Protected Attributes | |
NType | _normal |
CType | _color |
float | _pixel_size |
int | _flags |
|
Reimplemented in BuilderVertexTempl< BuilderV, BuilderN, BuilderTC, BuilderC >. Definition at line 52 of file builderAttribTempl.h. |
|
Reimplemented in BuilderVertexTempl< BuilderV, BuilderN, BuilderTC, BuilderC >. Definition at line 50 of file builderAttribTempl.h. |
|
Reimplemented in BuilderVertexTempl< BuilderV, BuilderN, BuilderTC, BuilderC >. Definition at line 51 of file builderAttribTempl.h. |
|
Reimplemented in BuilderVertexTempl< BuilderV, BuilderN, BuilderTC, BuilderC >. Definition at line 49 of file builderAttribTempl.h. |
|
Definition at line 55 of file builderAttrib.h. References EXPCL_PANDAEGG. |
|
Resets the attribute flags to their original, empty state--where no attributes have been applied.
Reimplemented in BuilderVertexTempl< BuilderV, BuilderN, BuilderTC, BuilderC >. |
|
Removes the attribute's color.
Reimplemented in BuilderVertexTempl< BuilderV, BuilderN, BuilderTC, BuilderC >. |
|
Removes the attribute's normal.
Reimplemented in BuilderVertexTempl< BuilderV, BuilderN, BuilderTC, BuilderC >. |
|
Removes the attribute's pixel_size.
Reimplemented in BuilderVertexTempl< BuilderV, BuilderN, BuilderTC, BuilderC >. |
|
Returns a number less than zero if this object sorts before the indicated object, greater than zero if it sorts after, and zero if the objects are equivalent.
|
|
Returns the attribute's color. It is an error to call this without first verifying that has_color() is true. |
|
Returns the attribute's normal. It is an error to call this without first verifying that has_normal() is true. Referenced by BuilderVertex::set_color_value(). |
|
Returns the attribute's pixel_size. It is an error to call this without first verifying that has_pixel_size() is true. |
|
Returns true if the attribute has a color.
|
|
Returns true if the attribute has a normal.
|
|
Returns true if the attribute has a pixel_size.
|
|
Assigns an ordering to the vertices. This is used by the Mesher to group identical vertices. This assumes that all vertices in the locus of consideration will share the same state: with or without normals, texcoords, etc. |
|
Assigns an ordering to the vertices. This is used by the Mesher to group identical vertices. This assumes that all vertices in the locus of consideration will share the same state: with or without normals, texcoords, etc. |
|
Assigns an ordering to the vertices. This is used by the Mesher to group identical vertices. This assumes that all vertices in the locus of consideration will share the same state: with or without normals, texcoords, etc. |
|
Formats the attribs for output in some sensible way.
Reimplemented in BuilderVertexTempl< BuilderV, BuilderN, BuilderTC, BuilderC >. |
|
Resets the attribute's color.
Reimplemented in BuilderVertexTempl< BuilderV, BuilderN, BuilderTC, BuilderC >. Referenced by set_color_value(), and set_normal_value(). |
|
Reassigns the color, without knowing whether the attribute is indexed or nonindexed. A nonindexed attribute will look up the index in the array and store the resulting value, while an indexed attribute will just store the index number (which assumes the array is the same one it's indexing on). Definition at line 67 of file builderAttrib.I. References INLINE, and BuilderAttribTempl< BuilderV, BuilderN, BuilderTC, BuilderC >::set_color(). |
|
Resets the attribute's normal.
Reimplemented in BuilderVertexTempl< BuilderV, BuilderN, BuilderTC, BuilderC >. |
|
Reassigns the normal, without knowing whether the attribute is indexed or nonindexed. A nonindexed attribute will look up the index in the array and store the resulting value, while an indexed attribute will just store the index number (which assumes the array is the same one it's indexing on). Definition at line 43 of file builderAttrib.I. References INLINE, and BuilderAttribTempl< BuilderV, BuilderN, BuilderTC, BuilderC >::set_color(). |
|
Resets the attribute's pixel_size.
Reimplemented in BuilderVertexTempl< BuilderV, BuilderN, BuilderTC, BuilderC >. |
|
Definition at line 84 of file builderAttribTempl.h. |
|
Definition at line 86 of file builderAttribTempl.h. |
|
Definition at line 83 of file builderAttribTempl.h. |
|
Definition at line 85 of file builderAttribTempl.h. |