BlankMat 0.1.0
Free open-source 3D texture creation application
Loading...
Searching...
No Matches
SceneIO Class Reference

Class that handles all scene input and output operations by opening popups to select files and passing all read/write operations to the appropriate classes. More...

Public Member Functions

const std::string GetFullPath () const
 Returns the full path of the currently open savefile.
 
void SaveScene ()
 Saves the scene to a .blank file.
 
void SaveSceneAs ()
 Saves the scene to a .blank file of the chosen name.
 
void SaveSceneIncrement ()
 Saves the scene to a .blank file, incrementing the name of the previously saved scene.
 
void OpenScene ()
 Opens the chosen .blank scene file.
 
void NewScene ()
 Creates a new empty .blank scene.
 
void Import ()
 Imports any 3D scene or model, including .blank.
 
void Export ()
 Exports the selected node to any 3D scene, including .blank.
 
bool PromptSaveChanges (GLFWwindow *window, State *state)
 Prompts to save changes if there are any unsaved changes.
 
 SceneIO (State *state, Scene *scene, GLFWwindow *window)
 Creates a new scene reader/writer.
 

Detailed Description

Class that handles all scene input and output operations by opening popups to select files and passing all read/write operations to the appropriate classes.

Constructor & Destructor Documentation

◆ SceneIO()

SceneIO::SceneIO ( State state,
Scene scene,
GLFWwindow *  window 
)
inlineexplicit

Creates a new scene reader/writer.

Parameters
stateGlobal state of the application
sceneCurrent scene
windowCurrent window

Member Function Documentation

◆ Export()

void SceneIO::Export ( )
inline

Exports the selected node to any 3D scene, including .blank.

◆ GetFullPath()

const std::string SceneIO::GetFullPath ( ) const
inline

Returns the full path of the currently open savefile.

Returns

◆ Import()

void SceneIO::Import ( )
inline

Imports any 3D scene or model, including .blank.

◆ NewScene()

void SceneIO::NewScene ( )
inline

Creates a new empty .blank scene.

◆ OpenScene()

void SceneIO::OpenScene ( )
inline

Opens the chosen .blank scene file.

◆ PromptSaveChanges()

bool SceneIO::PromptSaveChanges ( GLFWwindow *  window,
State state 
)
inline

Prompts to save changes if there are any unsaved changes.

Parameters
windowThe current window of the app
stateGlobal state of the app
Returns
Whether to continue with the prompting operation

◆ SaveScene()

void SceneIO::SaveScene ( )
inline

Saves the scene to a .blank file.

◆ SaveSceneAs()

void SceneIO::SaveSceneAs ( )
inline

Saves the scene to a .blank file of the chosen name.

◆ SaveSceneIncrement()

void SceneIO::SaveSceneIncrement ( )
inline

Saves the scene to a .blank file, incrementing the name of the previously saved scene.