21 #ifndef _SCENERY3DDIALOG_P_HPP_ 22 #define _SCENERY3DDIALOG_P_HPP_ 24 #include "S3DEnum.hpp" 25 #include "Scenery3dMgr.hpp" 27 #include "StelApp.hpp" 28 #include "StelModuleMgr.hpp" 31 #include <QAbstractListModel> 47 int rowCount(
const QModelIndex &parent)
const 54 if(!mgr->getIsGeometryShaderSupported())
61 QVariant data(
const QModelIndex &index,
int role)
const 63 if(role == Qt::DisplayRole || role == Qt::EditRole)
68 return QVariant(QString(
q_(
"6 Textures")));
70 return QVariant(QString(
q_(
"Cubemap")));
72 return QVariant(QString(
q_(
"Geometry shader")));
Uses 6 textures, one for each side of the cube. Seems to be the best for old Intel drivers...
Uses a single GL_TEXTURE_CUBEMAP, seems to work a bit better on "modern" GPUs.
#define q_(str)
Return the gettext translated english text str using the current global translator.
Uses a single GL_TEXTURE_CUBEMAP and a geometry shader to render all 6 sides in one pass...
Main class of the module, inherits from StelModule.
Define some translation macros.