-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathRendererLinux.hpp
More file actions
executable file
·59 lines (36 loc) · 1.18 KB
/
RendererLinux.hpp
File metadata and controls
executable file
·59 lines (36 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#ifndef ALLOCORE_RENDERER_NATIVE_LINUX_AGF
#define ALLOCORE_RENDERER_NATIVE_LINUX_AGF
#include <Aluminum/Includes.hpp>
#include <string>
//namespace Aluminum {
class RendererLinux {
public:
RendererLinux();
//basic windowing
void start();
void start(std::string name);
virtual void onCreate();
virtual void onFrame();
int width;
int height;
int frameCount = 0;
long startTick;
long currentTick;
// FreeGlutGLView* view;
void accessView();
long setStartTick(); //set base nanos - called by Cocoa at init
long tick(); //calculate amount of time passed since start of program - called by Cocoa prior to each onFrame
long now(); //get amount of time passed, assumes calculated already with tick()
long nowPlusMillis(long millis);
long millisToNano(long millis);
virtual void mouseDragged(int px, int py);
virtual void mouseDown(int px, int py);
virtual void mouseUp(int px, int py);
virtual void mouseMoved(int px, int py);
virtual void keyboard(unsigned char key, int x, int y);
virtual void specialkeys(int key, int x, int y);
protected:
private:
};
//}
#endif