Working toward render timing

This commit is contained in:
Joshua Granick
2014-06-09 14:44:02 -07:00
parent 0f6adf39d7
commit e491460630
21 changed files with 498 additions and 33 deletions

View File

@@ -2,6 +2,9 @@
#define LIME_APP_APPLICATION_H
#include <hx/CFFI.h>
namespace lime {
@@ -10,6 +13,10 @@ namespace lime {
public:
static double GetTicks ();
static AutoGCRoot* callback;
virtual int Exec () = 0;

View File

@@ -0,0 +1,37 @@
#ifndef LIME_APP_RENDER_EVENT_H
#define LIME_APP_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

View File

@@ -13,6 +13,8 @@ namespace lime {
public:
virtual void Flip () = 0;
Window* currentWindow;

View File

@@ -0,0 +1,38 @@
#ifndef LIME_APP_UPDATE_EVENT_H
#define LIME_APP_UPDATE_EVENT_H
#include <hx/CFFI.h>
namespace lime {
enum UpdateEventType {
UPDATE
};
class UpdateEvent {
public:
static AutoGCRoot* callback;
static AutoGCRoot* eventObject;
UpdateEvent ();
static void Dispatch (UpdateEvent* event);
int deltaTime;
UpdateEventType type;
};
}
#endif