OpenShaderDesigner
0.0.1
Loading...
Searching...
No Matches
Include
Project
Project.h
1
// =====================================================================================================================
2
// OpenShaderDesigner, an open source software utility to create materials and shaders.
3
// Copyright (C) 2024 Medusa Slockbower
4
//
5
// This program is free software: you can redistribute it and/or modify
6
// it under the terms of the GNU General Public License as published by
7
// the Free Software Foundation, either version 3 of the License, or
8
// (at your option) any later version.
9
//
10
// This program is distributed in the hope that it will be useful,
11
// but WITHOUT ANY WARRANTY; without even the implied warranty of
12
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
// GNU General Public License for more details.
14
//
15
// You should have received a copy of the GNU General Public License
16
// along with this program. If not, see <https://www.gnu.org/licenses/>.
17
// =====================================================================================================================
18
19
#ifndef PROJECT_H
20
#define PROJECT_H
21
22
#include <Editor/MainMenuBar.h>
23
#include <FileSystem/FileManager.h>
24
25
namespace
OpenShaderDesigner
26
{
27
28
class
Project
:
public
MainMenuBar
,
public
FileManager::Asset
29
{
30
public
:
31
Project
();
32
virtual
~Project
();
33
34
void
DrawMenuBar()
override
;
35
36
void
Open()
override
;
37
void
Save(
const
FileManager::Path& path)
override
;
38
39
static
Asset* Create(
const
FileManager::Path& path);
40
static
Asset* Load(
const
FileManager::Path& path);
41
static
Asset* Import(
const
FileManager::Path& src,
const
FileManager::Path& dst);
42
43
private
:
44
void
Reset();
45
46
FileManager::FileID ProjectFile_;
47
};
48
49
}
50
51
#endif
//PROJECT_H
OpenShaderDesigner::FileManager::Asset
Definition
FileManager.h:77
OpenShaderDesigner::MainMenuBar
Definition
MainMenuBar.h:14
OpenShaderDesigner::Project
Definition
Project.h:29
Generated by
1.11.0