Skip to content
Snippets Groups Projects
Commit 60b3f6ba authored by Odilitime's avatar Odilitime
Browse files

useBoxShader, component naming for easier debugging

parent fb586bb2
No related branches found
No related tags found
No related merge requests found
......@@ -4,6 +4,7 @@
#include <functional>
#include <memory>
#include <vector>
#include <string>
#include <GL/glew.h>
const unsigned int indices[6] = {
......@@ -72,6 +73,7 @@ public:
int windowWidth;
int windowHeight;
bool boundToPage = true;
bool useBoxShader = true;
bool verticesDirty = false;
std::shared_ptr<Component> parent = nullptr;
std::shared_ptr<Component> previous = nullptr;
......@@ -119,6 +121,8 @@ public:
bool isInline = false; // text-only thing but there maybe other non-text inline
bool isPickable = true;
bool textureSetup = false;
// debug
std::string name;
// probably shoudl be vector (or maybe use the event emitter)
std::function<void(int x, int y)> onMousedown = nullptr;
std::function<void(int x, int y)> onMouseup = nullptr;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment