33 lines
819 B
C++
Executable File

#pragma once
#include "DeerCore/Tools/TypeDefs.h"
namespace Deer {
class EntityEnvironment;
class SceneCamera;
class GizmoRenderer;
// A scene is a 3d simulation with its environment and voxel world in case
// of initialized, here things can be simulated
namespace Scene {
// Clears all the assets and memory the Scene had conained
void clear();
// This is the cycle to execution of scripts and physics
void initExecution();
void tickExecution();
void endExecution();
bool getExecutingState();
uint32_t getCurrentExTick();
#ifdef DEER_RENDER
// This function renders with the default camera in the environment
void render();
void render(const SceneCamera&);
extern GizmoRenderer gizmoRenderer;
#endif
extern EntityEnvironment environment;
} // namespace Scene
} // namespace Deer