More resizing
This commit is contained in:
parent
9ade0e2d4b
commit
be94bf0185
11 changed files with 44 additions and 3 deletions
|
@ -19,6 +19,8 @@ void OpenGlPainter::paint(DrawingContext* context)
|
|||
const auto width = double(surface->getWidth());
|
||||
const auto height = double(surface->getHeight());
|
||||
|
||||
std::cout << "Painting into width " << width << " and height " << height << std::endl;
|
||||
|
||||
const auto num_mesh = context->getScene()->getNumMeshes();
|
||||
|
||||
glClearColor(1.0, 1.0, 1.0, 0.0);
|
||||
|
@ -55,6 +57,11 @@ void OpenGlPainter::paint(DrawingContext* context)
|
|||
glVertex3f(x1, y1, 0);
|
||||
glVertex3f(x2, y2, 0);
|
||||
|
||||
// std::cout << "Verts0| " << x0 << " | " << y0 << " | "<< std::endl;
|
||||
// std::cout << "Verts1| " << x1 << " | " << y1 << " | "<< std::endl;
|
||||
// std::cout << "Verts2| " << x2 << " | " << y2 << " | "<< std::endl;
|
||||
// std::cout << "****************" << std::endl;
|
||||
|
||||
glEnd();
|
||||
|
||||
counter++;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue