Browse Source

Clean up old code

tags/v0.3.2
Andrew Belt 7 years ago
parent
commit
2a21261d7d
3 changed files with 0 additions and 8 deletions
  1. +0
    -1
      include/app.hpp
  2. +0
    -4
      src/app/ModuleWidget.cpp
  3. +0
    -3
      src/gui.cpp

+ 0
- 1
include/app.hpp View File

@@ -57,7 +57,6 @@ struct ModuleWidget : OpaqueWidget {
bool requested = false; bool requested = false;
Vec requestedPos; Vec requestedPos;
Vec dragPos; Vec dragPos;
Widget *onMouseMove(Vec pos, Vec mouseRel);
Widget *onHoverKey(Vec pos, int key); Widget *onHoverKey(Vec pos, int key);
void onDragStart(); void onDragStart();
void onDragMove(Vec mouseRel); void onDragMove(Vec mouseRel);


+ 0
- 4
src/app/ModuleWidget.cpp View File

@@ -152,10 +152,6 @@ void ModuleWidget::draw(NVGcontext *vg) {
nvgResetScissor(vg); nvgResetScissor(vg);
} }


Widget *ModuleWidget::onMouseMove(Vec pos, Vec mouseRel) {
return OpaqueWidget::onMouseMove(pos, mouseRel);
}

Widget *ModuleWidget::onHoverKey(Vec pos, int key) { Widget *ModuleWidget::onHoverKey(Vec pos, int key) {
switch (key) { switch (key) {
case GLFW_KEY_DELETE: case GLFW_KEY_DELETE:


+ 0
- 3
src/gui.cpp View File

@@ -207,9 +207,6 @@ void guiInit() {
err = glfwInit(); err = glfwInit();
assert(err); assert(err);


const char *glVersion = (const char *)glGetString(GL_VERSION);
printf("OpenGL version %s\n", glVersion);

glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 2); glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 2);
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 0); glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 0);
// glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3); // glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3);


Loading…
Cancel
Save