19 explicit Layers(QObject* parent =
nullptr);
32 bool load(
const QString& filepath,
const QStringList& layers = {});
Creates and holds the layers of the loaded drawings.
Definition Layers.h:13
VertexArrayBase * getVertexArray(QOpenGLShaderProgram *sp, const QString &layer, const QColor &color={0, 0, 0, 0})
Gets the vertex array from the specified layer for the given shader program.
QStringList getLayerNames(bool loaded=true) const
Gets the layer names from the file or the ones loaded.
bool load(const QString &filepath, const QStringList &layers={})
Generic method to load drawings.
Layers(QObject *parent=nullptr)
Default Qt constructor.
~Layers() override
Overridden destructor.
Base class for vertex-array derived classes.
Definition VertexArrayBase.h:15
Definition DemoRenderer.h:6
#define _XGL_CLASS
Definition xgl/global.h:35