Stellarium 0.12.0
Home · All Namespaces · All Classes · Functions · Coding Style · Scripting · Plugins · Renderer · File Structure

StelVertexAttribute Struct Reference

Describes a single vertex attribute (e.g. More...

#include <StelVertexAttribute.hpp>

List of all members.

Public Member Functions

 StelVertexAttribute ()
 Default constructor so vectors can reallocate.
 StelVertexAttribute (const QString &attributeString)
 Construct a StelVertexAttribute from a string.

Static Public Member Functions

static QVector
< StelVertexAttribute
parseAttributes (const char *const attribsCString)
 Parse a string of comma separated vertex attributes to a vector of StelVertexAttribute.

Public Attributes

AttributeType type
 Data type of the attribute.
AttributeInterpretation interpretation
 Specifies how Renderer should interpret this attribute.

Detailed Description

Describes a single vertex attribute (e.g.

2D vertex, 3D normal and so on).

Note:
This is an internal struct of the Renderer subsystem and should not be used elsewhere.

Definition at line 94 of file StelVertexAttribute.hpp.


Constructor & Destructor Documentation

StelVertexAttribute::StelVertexAttribute (  )  [inline]

Default constructor so vectors can reallocate.

Definition at line 102 of file StelVertexAttribute.hpp.

StelVertexAttribute::StelVertexAttribute ( const QString &  attributeString  )  [inline]

Construct a StelVertexAttribute from a string.

The string must be in format "Type Interpretation" where Type matches a value of AttributeType enum without the "AttributeType_" prefix, and Interpretation matches a value of AttributeInterpretation enum without the "AttributeInterpretation_" prefix.

Definition at line 110 of file StelVertexAttribute.hpp.


Member Function Documentation

static QVector<StelVertexAttribute> StelVertexAttribute::parseAttributes ( const char *const   attribsCString  )  [inline, static]

Parse a string of comma separated vertex attributes to a vector of StelVertexAttribute.

Definition at line 152 of file StelVertexAttribute.hpp.


Member Data Documentation

AttributeInterpretation StelVertexAttribute::interpretation

Specifies how Renderer should interpret this attribute.

Definition at line 99 of file StelVertexAttribute.hpp.

Data type of the attribute.

Definition at line 97 of file StelVertexAttribute.hpp.


The documentation for this struct was generated from the following file:
Generated on Thu Jan 31 14:05:47 2013 for Stellarium by  doxygen 1.6.3