Skip to content
Browse files

final patches to make everything look like unmessed with code

  • Loading branch information...
1 parent 1624586 commit 3e73deb9366ec11e76cd9c764b63c350775cbd3d @alihelmy committed Sep 26, 2011
View
1 LessonTwo/com/onehandstand/lwjgltutorial/lessontwo/Main.java
@@ -51,6 +51,7 @@ public void start() {
// close down
Display.destroy();
+ System.exit(0);
}
private void init() {
View
4 LessonTwo/com/onehandstand/lwjgltutorial/lessontwo/ShaderTriangle.java
@@ -60,9 +60,11 @@ private void initBuffers() {
//put int vertex position data
vertexPositionAttributes.putFloat(0.0f);
vertexPositionAttributes.putFloat(0.8f);
- vertexPositionAttributes.putFloat(0.8f);
+
vertexPositionAttributes.putFloat(-0.8f);
vertexPositionAttributes.putFloat(-0.8f);
+
+ vertexPositionAttributes.putFloat(0.8f);
vertexPositionAttributes.putFloat(-0.8f);
//flip buffer, unmap and unbind
vertexPositionAttributes.flip();

0 comments on commit 3e73deb

Please sign in to comment.
Something went wrong with that request. Please try again.