Geometry description to be used with GeometryResource. More...
#include <sceneview/geometry_resource.hpp>
Public Attributes | |
std::vector< QVector3D > | vertices |
Vertices of the geometry. | |
std::vector< QVector3D > | normals |
Normal vectors. More... | |
std::vector< QVector4D > | diffuse |
Diffuse color component. More... | |
std::vector< QVector4D > | specular |
Specular color component. More... | |
std::vector< float > | shininess |
Shininess component. More... | |
std::vector< QVector2D > | tex_coords_0 |
Texture coordinates. More... | |
std::vector< uint32_t > | indices |
Vertex indices. More... | |
GLenum | gl_mode |
The OpenGL primitive type. More... | |
Geometry description to be used with GeometryResource.
This struct contains the raw data for describing geometry.
std::vector<QVector4D> sv::GeometryData::diffuse |
Diffuse color component.
This must be either empty or the same size as vertices.
GLenum sv::GeometryData::gl_mode |
The OpenGL primitive type.
Must be one of GL_TRIANGLES, GL_POINTS, GL_LINES, etc ...
std::vector<uint32_t> sv::GeometryData::indices |
Vertex indices.
If specified, then the geometry is drawn using glDrawElements(). If not, then the geometry is drawn with glDrawArrays().
std::vector<QVector3D> sv::GeometryData::normals |
Normal vectors.
This must be either empty or the same size as vertices.
std::vector<float> sv::GeometryData::shininess |
Shininess component.
This must be either empty or the same size as vertices.
std::vector<QVector4D> sv::GeometryData::specular |
Specular color component.
This must be either empty or the same size as vertices.
std::vector<QVector2D> sv::GeometryData::tex_coords_0 |
Texture coordinates.
This must be either empty or the same size as vertices.