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

useBoxShader

parent 2c78301b
No related branches found
No related tags found
No related merge requests found
......@@ -10,7 +10,8 @@ BoxComponent::BoxComponent(const float rawX, const float rawY, const float rawWi
//std::cout << "BoxComponent::BoxComponent - data" << std::endl;
//std::cout << "BoxComponent::BoxComponent - window: " << windowWidth << "x" << windowHeight << " passed " << passedWindowWidth << "x" << passedWindowHeight << std::endl;
boundToPage = false;
//boundToPage = false;
useBoxShader = true;
// set up state
windowWidth = passedWindowWidth;
......@@ -158,6 +159,17 @@ void BoxComponent::resize(const int passedWindowWidth, const int passedWindowHei
windowWidth = passedWindowWidth;
windowHeight = passedWindowHeight;
/*
if (!boundToPage) {
// ok because box shader is anchored to the bottom of the screen
// if we resize Y (increase height), we need to rebind
int yDiff = windowHeight - lastRenderedWindowHeight;
//std::cout << "BoxComponent::resize - Adjusting y: " << y << " by " << yDiff << std::endl;
this->y += yDiff;
lastRenderedWindowHeight = windowHeight;
}
*/
//std::cout << "BoxComponent::resize - boundToPage " << boundToPage << std::endl;
// figure out new vertices
}
......
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