Add some initial font support.
This commit is contained in:
parent
71b5e8d4b1
commit
ce11c52ae5
4 changed files with 72 additions and 25 deletions
|
@ -20,14 +20,15 @@ void OpenGlPainter::paint(DrawingContext* context)
|
|||
const auto height = double(surface->getHeight());
|
||||
const auto num_mesh = context->getScene()->getNumMeshes();
|
||||
|
||||
glClearColor(1.0, 1.0, 1.0, 0.0);
|
||||
glClear(GL_COLOR_BUFFER_BIT);
|
||||
|
||||
glViewport(0, 0, width, height);
|
||||
glOrtho(0, width, 0, height, -1.0, 1.0);
|
||||
glScissor(0, 0, width, height);
|
||||
glMatrixMode(GL_PROJECTION);
|
||||
glLoadIdentity();
|
||||
|
||||
glClearColor(0.5, 0.5, 1.0, 0.0);
|
||||
glClear(GL_COLOR_BUFFER_BIT);
|
||||
|
||||
//glMatrixMode(GL_MODELVIEW);
|
||||
//glLoadIdentity();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue