|
Hymn to Beauty
C++ 3D Engine
|
Displays all the hymn's resources. More...
#include <ResourceView.hpp>
Public Member Functions | |
| ResourceView (Utility::Window *window, Video::LowLevelRenderer *lowLevelRenderer) | |
| Create new resource view. More... | |
| void | Show () |
| Show the resource list. More... | |
| bool | HasMadeChanges () const |
| Checks if any changes has been made to the current scene. More... | |
| bool | IsVisible () const |
| Get whether the resource list is visible. More... | |
| void | SetVisible (bool visible) |
| Set whether the resource list should be visible. More... | |
| void | HideEditors () |
| Hide all editors. More... | |
| void | SaveScene () const |
| Save the currently active scene. More... | |
| Json::Value | GetSceneJson (std::string *filename) const |
| Get a json representing the scene. More... | |
| void | ResetScene () |
| Reset which scene is open. More... | |
| SceneEditor & | GetScene () |
| Return Scene Editor. More... | |
| int | GetEditorWidth () const |
| Get the width of the right-side editor (entity, script, etc.). More... | |
Displays all the hymn's resources.
| ResourceView::ResourceView | ( | Utility::Window * | window, |
| Video::LowLevelRenderer * | lowLevelRenderer | ||
| ) |
Create new resource view.
| window | The window the display the resource view in. |
| lowLevelRenderer | The low-level renderer to use. |
| int ResourceView::GetEditorWidth | ( | ) | const |
Get the width of the right-side editor (entity, script, etc.).
| SceneEditor & ResourceView::GetScene | ( | ) |
Return Scene Editor.
| Json::Value ResourceView::GetSceneJson | ( | std::string * | filename | ) | const |
Get a json representing the scene.
| filename | The json file representing the scene. |
| bool ResourceView::HasMadeChanges | ( | ) | const |
Checks if any changes has been made to the current scene.
| void ResourceView::HideEditors | ( | ) |
Hide all editors.
Needs to be called before playing the game or old editors with stale pointers could be shown when returning to the editor.
| bool ResourceView::IsVisible | ( | ) | const |
Get whether the resource list is visible.
| void ResourceView::ResetScene | ( | ) |
Reset which scene is open.
| void ResourceView::SaveScene | ( | ) | const |
Save the currently active scene.
| void ResourceView::SetVisible | ( | bool | visible | ) |
Set whether the resource list should be visible.
| visible | Whether the resource list should be visible. |
| void ResourceView::Show | ( | ) |
Show the resource list.