Semi-Working Text

This commit is contained in:
2024-02-16 15:43:35 -05:00
parent f676ef5332
commit 29a64160e9
2 changed files with 24 additions and 18 deletions

View File

@@ -68,7 +68,7 @@ public:
glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
glEnable(GL_CULL_FACE);
//glEnable(GL_CULL_FACE);
glEnable(GL_BLEND);
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
glEnable(GL_TEXTURE_2D);
@@ -79,10 +79,15 @@ public:
void display()
{
glClear(GL_COLOR_BUFFER_BIT);
//JGL::RenderText("WHATS BOPPIN muth ~~~ niger ~~~ aphuqqa____?", 0.f, -100.f, 2.f);
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
JGL::J2D::FillRect2D(JGL::Colors::Yellow, {32, 32}, {100.5, 100.5});
JGL::RenderText("WHATS BOPPIN muth ~~~ niger ~~~ aphuqqa____?", 0.f, -100.f, 2.f);
JGL::RenderText("Chinese characters don't work", 0.f, -120.f, 1.f);
JGL::J2D::FillRect2D(JGL::Colors::Yellow, {32, 32}, {100.5, 100.5});
JGL::Triangle2D tri
{
{10, -200},
@@ -90,7 +95,6 @@ public:
{-105, 10}
};
JGL::J2D::FillTriangle2D(JGL::Colors::Yellow, tri);
JGL::J2D::FillRect2D(JGL::Colors::Yellow, {32, 32}, {100.5, 100.5});
//glFlush();
}