From 8cd5add2323583ca2c9ea55f9d743494e7dc6bf5 Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Sun, 17 Nov 2013 18:41:31 -0500 Subject: [PATCH] testing drawing logo character, but it aint working right --- src/gss.d | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/gss.d b/src/gss.d index 9c4f01e..c0787c6 100644 --- a/src/gss.d +++ b/src/gss.d @@ -95,6 +95,13 @@ void display(SDL_Window * window) glUniformMatrix4fv(view_idx, 1, GL_TRUE, view_matrix.value_ptr); glDrawElements(GL_TRIANGLE_FAN, 4, GL_UNSIGNED_SHORT, null); + view_matrix.make_identity(); + view_matrix.scale(HEIGHT / cast(float)WIDTH, 1.0, 1.0); + + program2.bind(); + glUniformMatrix4fv(view_idx, 1, GL_TRUE, view_matrix.value_ptr); + logo.draw(logo.WIRE, logo.GENTEX, 2, position2_idx); + SDL_GL_SwapWindow(window); }