#include <shader_map.h>
Public Member Functions | |
virtual void | release () const =0 |
deletes the object | |
virtual miUint | size () const =0 |
returns the number of fields (excluding position) | |
virtual bool | is_empty () const =0 |
returns true if the declaration is empty, excluding the position which is always there | |
virtual miUint | get_dimension () const =0 |
returns the dimension of the position | |
virtual bool | is_equivalent (const Map_declaration *other, Map_status *status=0) const =0 |
returns true if the declaration is equivalent to the given one, that is same field types and in the same order. Names can be different, though | |
virtual bool | matches (const Map_declaration *other, Map_status *status=0) const =0 |
returns true if the declaration matches exactly the given one, that is same field types, in the same order and with the same names | |
virtual bool | has_field (const char *name, Map_status *status=0) const =0 |
returns true if the declaration has a field with the given name | |
virtual Map_status | add (const char *name, const Map_field_type type, const miUint dim=0)=0 |
adds a field with given name, type and (possible) dimension (ignored in case of non-array types) | |
virtual Map_status | add_scalar (const char *name)=0 |
adds a scalar field with given name | |
virtual Map_status | add_integer (const char *name)=0 |
adds an integer field with given name | |
virtual Map_status | add_vector (const char *name)=0 |
adds a vector field with given name | |
virtual Map_status | add_color (const char *name)=0 |
adds a color field with given name | |
virtual Map_status | add_transform (const char *name)=0 |
adds a transform field with given name | |
virtual Map_status | add_scalar_array (const char *name, const miUint dim)=0 |
adds a scalar array field with given name | |
virtual Map_status | add_integer_array (const char *name, const miUint dim)=0 |
adds an integer array field with given name | |
virtual const char * | get_field_name (const Map_field_id field_id, Map_status *status=0) const =0 |
returns the name of the desired field | |
virtual Map_field_id | get_field_id (const char *field_name, Map_status *status=0) const =0 |
returns the id of the field with the given name | |
virtual Map_status | get_field_type_dim (const Map_field_id field_id, Map_field_type &field_type, miUint &field_dimension) const =0 |
returns the type and the dimension of the desired field | |
virtual Map_status | get_field_type_dim (const char *field_name, Map_field_type &field_type, miUint &field_dimension) const =0 |
returns the type and the dimension of the desired field |
The Map_declaration class is an abstract class which provides ways to add/query map field names and ids
|
adds a field with given name, type and (possible) dimension (ignored in case of non-array types)
|
|
adds a color field with given name
|
|
adds an integer field with given name
|
|
adds an integer array field with given name
|
|
adds a scalar field with given name
|
|
adds a scalar array field with given name
|
|
adds a transform field with given name
|
|
adds a vector field with given name
|
|
returns the id of the field with the given name
|
|
returns the name of the desired field
|
|
returns the type and the dimension of the desired field
|
|
returns the type and the dimension of the desired field
|
Copyright © 1986-2008 by
mental images GmbH