File: lightmapfile.h

package info (click to toggle)
qt6-quick3d 6.10.2-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 143,588 kB
  • sloc: cpp: 395,989; ansic: 41,469; xml: 288; sh: 242; makefile: 32
file content (37 lines) | stat: -rw-r--r-- 798 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// Copyright (C) 2025 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0

#ifndef LIGHTMAPFILE_H
#define LIGHTMAPFILE_H

#include <QObject>
#include <QList>
#include <QUrl>

class LightmapFile : public QObject
{
    Q_OBJECT
    Q_PROPERTY(QStringList dataList READ dataList NOTIFY dataListChanged)
    Q_PROPERTY(QUrl source READ source WRITE setSource NOTIFY sourceChanged FINAL)

public:
    explicit LightmapFile(QObject *parent = nullptr);

    QStringList dataList() const;

    Q_INVOKABLE void loadData();

    QUrl source() const;
    void setSource(const QUrl &newSource);

signals:
    void dataListChanged();

    void sourceChanged();

private:
    QStringList m_dataList;
    QUrl m_source;
};

#endif // LIGHTMAPFILE_H