20 lines
398 B
C++
20 lines
398 B
C++
#pragma once
|
|
#include "DeerCore/Engine.h"
|
|
#include "DeerRender/Events/Event.h"
|
|
|
|
namespace Deer {
|
|
using EventFunction = void (*)(Event&);
|
|
class World;
|
|
class Window;
|
|
|
|
namespace Engine {
|
|
void setRenderCallback(Function);
|
|
void setEventCallback(EventFunction);
|
|
|
|
void beginRender();
|
|
void endRender();
|
|
|
|
World& getMainWorld();
|
|
Window& getWindow();
|
|
} // namespace Engine
|
|
} // namespace Deer
|