Stellarium 0.12.4
List of all members | Public Member Functions | Static Public Member Functions | Public Attributes
StelVertexAttribute Struct Reference

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

#include <StelVertexAttribute.hpp>

Public Member Functions

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

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. More...
 

Public Attributes

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

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)
inlinestatic

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.

AttributeType StelVertexAttribute::type

Data type of the attribute.

Definition at line 97 of file StelVertexAttribute.hpp.


The documentation for this struct was generated from the following file: