mirror of
https://github.com/CrispyPin/sinpin-vr.git
synced 2024-09-20 06:36:19 +02:00
37 lines
No EOL
552 B
C++
37 lines
No EOL
552 B
C++
#pragma once
|
|
#include "overlay.h"
|
|
#define GL_GLEXT_PROTOTYPES
|
|
|
|
#include "util.h"
|
|
#include <GLFW/glfw3.h>
|
|
|
|
const VRMat DEFAULT_POSE = {{{1, 0, 0, 0}, {0, 1, 0, 1}, {0, 0, 1, 0}}};
|
|
|
|
class App;
|
|
class Overlay;
|
|
|
|
class Panel
|
|
{
|
|
public:
|
|
Panel(App *app, int index, int xmin, int xmax, int ymin, int ymax);
|
|
|
|
void Update();
|
|
void SetHidden(bool state);
|
|
|
|
Overlay *GetOverlay();
|
|
|
|
private:
|
|
void Render();
|
|
void UpdateCursor();
|
|
|
|
App *_app;
|
|
int _index;
|
|
|
|
int _x, _y;
|
|
int _width, _height;
|
|
|
|
Overlay _overlay;
|
|
|
|
vr::Texture_t _texture;
|
|
GLuint _gl_texture;
|
|
}; |