39 lines
459 B
C++
39 lines
459 B
C++
#ifndef LIME_GRAPHICS_RENDER_EVENT_H
|
|
#define LIME_GRAPHICS_RENDER_EVENT_H
|
|
|
|
|
|
#include <system/CFFI.h>
|
|
#include <system/ValuePointer.h>
|
|
|
|
|
|
namespace lime {
|
|
|
|
|
|
enum RenderEventType {
|
|
|
|
RENDER,
|
|
RENDER_CONTEXT_LOST,
|
|
RENDER_CONTEXT_RESTORED
|
|
|
|
};
|
|
|
|
|
|
struct RenderEvent {
|
|
|
|
hl_type* t;
|
|
RenderEventType type;
|
|
|
|
static ValuePointer* callback;
|
|
static ValuePointer* eventObject;
|
|
|
|
RenderEvent ();
|
|
|
|
static void Dispatch (RenderEvent* event);
|
|
|
|
};
|
|
|
|
|
|
}
|
|
|
|
|
|
#endif |