Test 2???
This commit is contained in:
@@ -37,7 +37,6 @@ void FreeCam::pre_render() {
|
||||
|
||||
if (engine->window->isKeyDown(Keys::E))
|
||||
setAngle(getAngle().x, getAngle().y, getAngle().z + 75.0f * engine->frameDelta);
|
||||
|
||||
}
|
||||
|
||||
void FreeCam::jglRenderPass() {
|
||||
@@ -49,19 +48,11 @@ void FreeCam::jglRenderPass() {
|
||||
|
||||
// HOLY SHYT!!!!
|
||||
|
||||
glMatrixMode(GL_PROJECTION);
|
||||
glPushMatrix();
|
||||
glLoadIdentity();
|
||||
glOrtho(0.0f, engine->window->getWidth(), engine->window->getHeight(), 0.0f, -1.f, 1.f);
|
||||
glMatrixMode(GL_MODELVIEW);
|
||||
glPushMatrix();
|
||||
glLoadIdentity();
|
||||
|
||||
JGL::J2D::DrawString2D(JGL::Colors::White, "FPS: " + std::to_string((int) engine->framerate()), 200, 50, 1, 16, Fonts::ModeSeven);
|
||||
JGL::J2D::DrawString2D(JGL::Colors::White, "Framecount: " + std::to_string(engine->frameCount), 200, 75, 1,16, Fonts::Jupiteroid);
|
||||
JGL::J2D::DrawString2D(JGL::Colors::White, "FPS: " + std::to_string((int) engine->framerate()), 200, 50, 1, 16, Fonts::ModeSeven);
|
||||
JGL::J2D::DrawString2D(JGL::Colors::White, "Framecount: " + std::to_string(engine->frameCount), 200, 75, 1,16, Fonts::Jupiteroid);
|
||||
|
||||
|
||||
JGL::J2D::FillRect2D({255,0,0}, {25.f, 25.f}, {50, 50});
|
||||
JGL::J2D::FillRect2D({255,0,0}, {25.f, 25.f}, {50, 50});
|
||||
|
||||
//glMatrixMode(GL_MODELVIEW);
|
||||
|
||||
|
Reference in New Issue
Block a user