mirror of
https://github.com/antopilo/Nuake.git
synced 2026-09-21 20:08:40 +03:00
Major cleanup.
Moved to namespace Cleanup includes
This commit is contained in:
@@ -1,10 +1,8 @@
|
||||
#pragma once
|
||||
|
||||
#include "src/Core/Core.h"
|
||||
#include "src/Window.h"
|
||||
#include "src/Scene/Scene.h"
|
||||
#include "src/Resource/Project.h"
|
||||
#include "src/Scripting/ScriptLoader.h"
|
||||
#include "src/Core/Logger.h"
|
||||
|
||||
/* TODOS:
|
||||
@@ -20,37 +18,40 @@
|
||||
*/
|
||||
|
||||
// Welcome to the Nuake source code. This is the entry point for the engine.
|
||||
namespace Nuake
|
||||
{
|
||||
class Engine {
|
||||
private:
|
||||
static Ref<Window> CurrentWindow;
|
||||
static Ref<Project> CurrentProject;
|
||||
static Ref<Scene> CurrentScene;
|
||||
|
||||
class Engine {
|
||||
private:
|
||||
static Ref<Window> CurrentWindow;
|
||||
static Ref<Project> CurrentProject;
|
||||
static Ref<Scene> CurrentScene;
|
||||
static float m_LastFrameTime;
|
||||
static float m_FixedUpdateRate;
|
||||
static float m_FixedUpdateDifference;
|
||||
public:
|
||||
static bool IsPlayMode; // True if currently playing the game.
|
||||
|
||||
static float m_LastFrameTime;
|
||||
static float m_FixedUpdateRate;
|
||||
static float m_FixedUpdateDifference;
|
||||
public:
|
||||
static bool IsPlayMode; // True if currently playing the game.
|
||||
static void Init(); // Initialize the engine.
|
||||
static void Tick(); // Updates everything, called everyframe.
|
||||
static void Close(); // Shutdown the engine.
|
||||
|
||||
static void Init(); // Initialize the engine.
|
||||
static void Tick(); // Updates everything, called everyframe.
|
||||
static void Close(); // Shutdown the engine.
|
||||
|
||||
static void EnterPlayMode(); // Start the game
|
||||
static void ExitPlayMode(); // Stops the game
|
||||
static void EnterPlayMode(); // Start the game
|
||||
static void ExitPlayMode(); // Stops the game
|
||||
|
||||
// Custom drawing should happen in between these two
|
||||
static void Draw(); // Start new frame
|
||||
static void EndDraw(); // Swap buffer
|
||||
// Custom drawing should happen in between these two
|
||||
static void Draw(); // Start new frame
|
||||
static void EndDraw(); // Swap buffer
|
||||
|
||||
static Ref<Window> GetCurrentWindow();
|
||||
static Ref<Window> GetCurrentWindow();
|
||||
|
||||
// Load a specific scene
|
||||
static bool LoadScene(Ref<Scene> scene);
|
||||
static Ref<Scene> GetCurrentScene();
|
||||
// Load a specific scene
|
||||
static bool LoadScene(Ref<Scene> scene);
|
||||
static Ref<Scene> GetCurrentScene();
|
||||
|
||||
// Loads a project and the default scene.
|
||||
static bool LoadProject(Ref<Project> project);
|
||||
static Ref<Project> GetProject();
|
||||
};
|
||||
}
|
||||
|
||||
// Loads a project and the default scene.
|
||||
static bool LoadProject(Ref<Project> project);
|
||||
static Ref<Project> GetProject();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user