#include <builderAttrib.h>
Inheritance diagram for BuilderAttribI:
Public Types | |
typedef ushort | VType |
typedef ushort | NType |
typedef ushort | TType |
typedef ushort | CType |
Public Member Functions | |
BuilderAttribI () | |
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 BuilderPrimTempl< BuilderVertexI >, BuilderPrimTempl< BuilderVertex >, and BuilderVertexTempl< ushort, ushort, ushort, ushort >. Definition at line 52 of file builderAttribTempl.h. |
|
Reimplemented in BuilderPrimTempl< BuilderVertexI >, BuilderPrimTempl< BuilderVertex >, and BuilderVertexTempl< ushort, ushort, ushort, ushort >. Definition at line 50 of file builderAttribTempl.h. |
|
Reimplemented in BuilderPrimTempl< BuilderVertexI >, BuilderPrimTempl< BuilderVertex >, and BuilderVertexTempl< ushort, ushort, ushort, ushort >. Definition at line 51 of file builderAttribTempl.h. |
|
Reimplemented in BuilderPrimTempl< BuilderVertexI >, BuilderPrimTempl< BuilderVertex >, and BuilderVertexTempl< ushort, ushort, ushort, ushort >. Definition at line 49 of file builderAttribTempl.h. |
|
Definition at line 64 of file builderAttrib.h. |
|
Resets the attribute flags to their original, empty state--where no attributes have been applied.
Reimplemented in BuilderPrimTempl< BuilderVertexI >, BuilderPrimTempl< BuilderVertex >, and BuilderVertexTempl< ushort, ushort, ushort, ushort >. |
|
Removes the attribute's color.
Reimplemented in BuilderVertexTempl< ushort, ushort, ushort, ushort >. |
|
Removes the attribute's normal.
Reimplemented in BuilderVertexTempl< ushort, ushort, ushort, ushort >. |
|
Removes the attribute's pixel_size.
Reimplemented in BuilderVertexTempl< ushort, ushort, ushort, ushort >. |
|
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. Reimplemented in BuilderPrimTempl< BuilderVertexI >, and BuilderPrimTempl< BuilderVertex >. |
|
Returns the attribute's normal. It is an error to call this without first verifying that has_normal() is true. Reimplemented in BuilderPrimTempl< BuilderVertexI >, and BuilderPrimTempl< BuilderVertex >. Referenced by BuilderVertexI::set_coord_value(). |
|
Returns the attribute's pixel_size. It is an error to call this without first verifying that has_pixel_size() is true. Reimplemented in BuilderPrimTempl< BuilderVertexI >, and BuilderPrimTempl< BuilderVertex >. |
|
Returns true if the attribute has a color.
Reimplemented in BuilderPrimTempl< BuilderVertexI >, and BuilderPrimTempl< BuilderVertex >. |
|
Returns true if the attribute has a normal.
Reimplemented in BuilderPrimTempl< BuilderVertexI >, and BuilderPrimTempl< BuilderVertex >. |
|
Returns true if the attribute has a pixel_size.
Reimplemented in BuilderPrimTempl< BuilderVertexI >, and BuilderPrimTempl< BuilderVertex >. |
|
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 BuilderPrimTempl< BuilderVertexI >, BuilderPrimTempl< BuilderVertex >, and BuilderVertexTempl< ushort, ushort, ushort, ushort >. |
|
Resets the attribute's color.
Reimplemented in BuilderPrimTempl< BuilderVertexI >, BuilderPrimTempl< BuilderVertex >, and BuilderVertexTempl< ushort, ushort, ushort, ushort >. |
|
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 115 of file builderAttrib.I. |
|
Resets the attribute's normal.
Reimplemented in BuilderPrimTempl< BuilderVertexI >, BuilderPrimTempl< BuilderVertex >, and BuilderVertexTempl< ushort, ushort, ushort, ushort >. |
|
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 91 of file builderAttrib.I. |
|
Resets the attribute's pixel_size.
Reimplemented in BuilderPrimTempl< BuilderVertexI >, BuilderPrimTempl< BuilderVertex >, and BuilderVertexTempl< ushort, ushort, ushort, ushort >. |
|
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. |