Roi Atalla avatar Roi Atalla committed b8314df

Typo in the 7.1 example that caused the top of each column to fail to render.

Comments (0)

Files changed (2)

src/main/java/com/ra4king/opengl/arcsynthesis/gl33/chapter7/example1/Example7_1.java

 		{
 			modelMatrix.pushMatrix();
 			
-			modelMatrix.getTop().translate(0, parthenonColumnHeight, 0).scale(1,columnBaseHeight,1).translate(0,0.5f,0);
+			modelMatrix.getTop().translate(0, parthenonColumnHeight - columnBaseHeight, 0).scale(1,columnBaseHeight,1).translate(0,0.5f,0);
 			
 			uniformColorTint.program.begin();
 			glUniformMatrix4(uniformColorTint.modelToWorldMatrixUniform, false, modelMatrix.getTop().getBuffer());

src/main/java/com/ra4king/opengl/util/Mesh.java

 								
 								break;
 							}
-							case "mesh":
-								break;
 							default:
 								throw new IllegalArgumentException("Invalid TAG name: " + xml.getName());
 						}
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.