diff options
Diffstat (limited to 'main.cpp')
-rw-r--r-- | main.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -133,7 +133,7 @@ int main(int, char**) { create_bullets(); TextureSDL texture1("foo.png"); - TextureSDL texture2("foo2.png"); + TextureSDL texture2("foo4.png"); GLFragmentShader shader1("bullet_fragment.glsl"); GLVertexShader shader2("bullet_vertex.glsl"); @@ -237,7 +237,9 @@ int main(int, char**) { b.pos.y += b.direction.y * step; b.pos.z += b.direction.z * step; } - + + glColor4f(0, 1, 0, 1); + glVertex4f(b.pos.x, b.pos.y, b.direction.x, b.direction.y); //glColor3f(b.color.r, b.color.g, b.color.b); /*glTexCoord2f(0, 0); @@ -261,6 +263,8 @@ int main(int, char**) { glUseProgram(0); + glColor4f(1, 1, 1, 1); + char s[0xff]; snprintf(s, 0xff, "Bullets: %d", (int)bullets.size()); |