Browse Source

useBoxShader, component naming for easier debugging

pull/2/head
Odilitime 5 years ago
parent
commit
60b3f6baaf
  1. 4
      src/graphics/components/Component.h

4
src/graphics/components/Component.h

@ -4,6 +4,7 @@ @@ -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: @@ -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: @@ -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;

Loading…
Cancel
Save