Stellarium  0.90.0
List of all members | Public Member Functions | Public Attributes
Planet::PlanetOBJModel Struct Reference
+ Collaboration diagram for Planet::PlanetOBJModel:

Public Member Functions

bool loadGL ()
 Loads the data from the StelOBJ into the StelOpenGLArray. More...
 
void performScaling (double scale)
 

Public Attributes

AABBox bbox
 The BBox of the original model before any transformations. More...
 
QVector< Vec3fposArray
 Contains the original positions in model space in km, they need scaling and projection. More...
 
bool needsRescale
 True when the positions need to be rescaled before drawing. More...
 
QVector< Vec3fscaledArray
 Contains the scaled positions (sphere scale in AU), need StelProjector transformation for display. More...
 
QVector< Vec3fprojectedPosArray
 Used to store the projected array data, avoids re-allocation each frame. More...
 
QOpenGLBuffer * projPosBuffer
 An OpenGL buffer for the projected positions. More...
 
StelTextureSP texture
 The single texture to use. More...
 
StelOBJobj
 The original StelOBJ data, deleted after loading to GL. More...
 
StelOpenGLArrayarr
 The opengl array, created by loadObjModel() but filled later in main thread. More...
 

Detailed Description

Definition at line 430 of file Planet.hpp.

Member Function Documentation

bool Planet::PlanetOBJModel::loadGL ( )

Loads the data from the StelOBJ into the StelOpenGLArray.

Member Data Documentation

StelOpenGLArray* Planet::PlanetOBJModel::arr

The opengl array, created by loadObjModel() but filled later in main thread.

Definition at line 457 of file Planet.hpp.

AABBox Planet::PlanetOBJModel::bbox

The BBox of the original model before any transformations.

Definition at line 441 of file Planet.hpp.

bool Planet::PlanetOBJModel::needsRescale

True when the positions need to be rescaled before drawing.

Definition at line 445 of file Planet.hpp.

StelOBJ* Planet::PlanetOBJModel::obj

The original StelOBJ data, deleted after loading to GL.

Definition at line 455 of file Planet.hpp.

QVector<Vec3f> Planet::PlanetOBJModel::posArray

Contains the original positions in model space in km, they need scaling and projection.

Definition at line 443 of file Planet.hpp.

QVector<Vec3f> Planet::PlanetOBJModel::projectedPosArray

Used to store the projected array data, avoids re-allocation each frame.

Definition at line 449 of file Planet.hpp.

QOpenGLBuffer* Planet::PlanetOBJModel::projPosBuffer

An OpenGL buffer for the projected positions.

Definition at line 451 of file Planet.hpp.

QVector<Vec3f> Planet::PlanetOBJModel::scaledArray

Contains the scaled positions (sphere scale in AU), need StelProjector transformation for display.

Definition at line 447 of file Planet.hpp.

StelTextureSP Planet::PlanetOBJModel::texture

The single texture to use.

Definition at line 453 of file Planet.hpp.


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