Slight refactor
This commit is contained in:
37
project/include/graphics/RenderEvent.h
Normal file
37
project/include/graphics/RenderEvent.h
Normal file
@@ -0,0 +1,37 @@
|
||||
#ifndef LIME_GRAPHICS_RENDER_EVENT_H
|
||||
#define LIME_GRAPHICS_RENDER_EVENT_H
|
||||
|
||||
|
||||
#include <hx/CFFI.h>
|
||||
|
||||
|
||||
namespace lime {
|
||||
|
||||
|
||||
enum RenderEventType {
|
||||
|
||||
RENDER
|
||||
|
||||
};
|
||||
|
||||
|
||||
class RenderEvent {
|
||||
|
||||
public:
|
||||
|
||||
static AutoGCRoot* callback;
|
||||
static AutoGCRoot* eventObject;
|
||||
|
||||
RenderEvent ();
|
||||
|
||||
static void Dispatch (RenderEvent* event);
|
||||
|
||||
RenderEventType type;
|
||||
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
#endif
|
||||
30
project/include/graphics/Renderer.h
Normal file
30
project/include/graphics/Renderer.h
Normal file
@@ -0,0 +1,30 @@
|
||||
#ifndef LIME_GRAPHICS_RENDERER_H
|
||||
#define LIME_GRAPHICS_RENDERER_H
|
||||
|
||||
|
||||
#include <ui/Window.h>
|
||||
|
||||
|
||||
namespace lime {
|
||||
|
||||
|
||||
class Renderer {
|
||||
|
||||
|
||||
public:
|
||||
|
||||
virtual void Flip () = 0;
|
||||
|
||||
Window* currentWindow;
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
Renderer* CreateRenderer (Window* window);
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user