Stellarium  0.20.4
Public Member Functions | Data Fields
Planet::PlanetOBJModel Struct Reference

Public Member Functions

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

Data Fields

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