Start visualisation in the middle.
This commit is contained in:
@@ -55,6 +55,10 @@ static void handleKeys(unsigned char key, int, int)
|
|||||||
// Utility quit function.
|
// Utility quit function.
|
||||||
exit(0);
|
exit(0);
|
||||||
|
|
||||||
|
case 'h':
|
||||||
|
camera.reset();
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
// Do nothing.
|
// Do nothing.
|
||||||
break;
|
break;
|
||||||
|
|||||||
@@ -56,6 +56,7 @@ static void render()
|
|||||||
camera.configureRenderingContext();
|
camera.configureRenderingContext();
|
||||||
|
|
||||||
glPushMatrix();
|
glPushMatrix();
|
||||||
|
glTranslatef(5 * rendererData.currentData->size(), 0, 0);
|
||||||
for (auto& layer : *rendererData.currentData) {
|
for (auto& layer : *rendererData.currentData) {
|
||||||
glPushMatrix();
|
glPushMatrix();
|
||||||
renderLayer(layer);
|
renderLayer(layer);
|
||||||
@@ -128,7 +129,7 @@ static void renderLayer(const LayerData& data)
|
|||||||
glColor3f(0.5, 0.5, 0.5);
|
glColor3f(0.5, 0.5, 0.5);
|
||||||
renderText(data.name());
|
renderText(data.name());
|
||||||
|
|
||||||
glTranslatef(0, 0, -2);
|
glTranslatef(0, 0, -10);
|
||||||
switch (shape.size()) {
|
switch (shape.size()) {
|
||||||
case 4:
|
case 4:
|
||||||
// TODO: implement this.
|
// TODO: implement this.
|
||||||
|
|||||||
Reference in New Issue
Block a user