Initial OpenGL bindings
This commit is contained in:
25
project/include/app/Application.h
Normal file
25
project/include/app/Application.h
Normal file
@@ -0,0 +1,25 @@
|
||||
#ifndef LIME_APP_APPLICATION_H
|
||||
#define LIME_APP_APPLICATION_H
|
||||
|
||||
|
||||
namespace lime {
|
||||
|
||||
|
||||
class Application {
|
||||
|
||||
|
||||
public:
|
||||
|
||||
virtual int Exec () = 0;
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
Application* CreateApplication ();
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
#endif
|
||||
28
project/include/app/Renderer.h
Normal file
28
project/include/app/Renderer.h
Normal file
@@ -0,0 +1,28 @@
|
||||
#ifndef LIME_APP_RENDERER_H
|
||||
#define LIME_APP_RENDERER_H
|
||||
|
||||
|
||||
#include <app/Window.h>
|
||||
|
||||
|
||||
namespace lime {
|
||||
|
||||
|
||||
class Renderer {
|
||||
|
||||
|
||||
public:
|
||||
|
||||
Window* currentWindow;
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
Renderer* CreateRenderer (Window* window);
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
#endif
|
||||
28
project/include/app/Window.h
Normal file
28
project/include/app/Window.h
Normal file
@@ -0,0 +1,28 @@
|
||||
#ifndef LIME_APP_WINDOW_H
|
||||
#define LIME_APP_WINDOW_H
|
||||
|
||||
|
||||
#include <app/Application.h>
|
||||
|
||||
|
||||
namespace lime {
|
||||
|
||||
|
||||
class Window {
|
||||
|
||||
|
||||
public:
|
||||
|
||||
Application* currentApplication;
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
Window* CreateWindow (Application* application);
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user