Skip to content

Commit b65bb6b

Browse files
committed
2 parents 49ec24e + 4034e30 commit b65bb6b

File tree

123 files changed

+229
-229
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

123 files changed

+229
-229
lines changed

chapter07/c07-p2/src/main/java/org/lwjglb/engine/graph/Mesh.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public Mesh(float[] positions, float[] textCoords, int[] indices, Texture textur
2828
try {
2929
this.texture = texture;
3030
vertexCount = indices.length;
31-
vboIdList = new ArrayList();
31+
vboIdList = new ArrayList<>();
3232

3333
vaoId = glGenVertexArrays();
3434
glBindVertexArray(vaoId);

chapter08/src/main/java/org/lwjglb/engine/graph/Mesh.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public Mesh(float[] positions, float[] textCoords, int[] indices, Texture textur
2828
try {
2929
this.texture = texture;
3030
vertexCount = indices.length;
31-
vboIdList = new ArrayList();
31+
vboIdList = new ArrayList<>();
3232

3333
vaoId = glGenVertexArrays();
3434
glBindVertexArray(vaoId);

chapter09/src/main/java/org/lwjglb/engine/graph/Mesh.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public Mesh(float[] positions, float[] textCoords, float[] normals, int[] indice
3434
try {
3535
colour = DEFAULT_COLOUR;
3636
vertexCount = indices.length;
37-
vboIdList = new ArrayList();
37+
vboIdList = new ArrayList<>();
3838

3939
vaoId = glGenVertexArrays();
4040
glBindVertexArray(vaoId);

chapter09/src/main/java/org/lwjglb/engine/graph/OBJLoader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public static Mesh loadMesh(String fileName) throws Exception {
5757
private static Mesh reorderLists(List<Vector3f> posList, List<Vector2f> textCoordList,
5858
List<Vector3f> normList, List<Face> facesList) {
5959

60-
List<Integer> indices = new ArrayList();
60+
List<Integer> indices = new ArrayList<>();
6161
// Create position array in the order it has been declared
6262
float[] posArr = new float[posList.size() * 3];
6363
int i = 0;

chapter10/src/main/java/org/lwjglb/engine/graph/Mesh.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public Mesh(float[] positions, float[] textCoords, float[] normals, int[] indice
2828
IntBuffer indicesBuffer = null;
2929
try {
3030
vertexCount = indices.length;
31-
vboIdList = new ArrayList();
31+
vboIdList = new ArrayList<>();
3232

3333
vaoId = glGenVertexArrays();
3434
glBindVertexArray(vaoId);

chapter10/src/main/java/org/lwjglb/engine/graph/OBJLoader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public static Mesh loadMesh(String fileName) throws Exception {
5757
private static Mesh reorderLists(List<Vector3f> posList, List<Vector2f> textCoordList,
5858
List<Vector3f> normList, List<Face> facesList) {
5959

60-
List<Integer> indices = new ArrayList();
60+
List<Integer> indices = new ArrayList<>();
6161
// Create position array in the order it has been declared
6262
float[] posArr = new float[posList.size() * 3];
6363
int i = 0;

chapter11/c11-p1/src/main/java/org/lwjglb/engine/graph/Mesh.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public Mesh(float[] positions, float[] textCoords, float[] normals, int[] indice
2828
IntBuffer indicesBuffer = null;
2929
try {
3030
vertexCount = indices.length;
31-
vboIdList = new ArrayList();
31+
vboIdList = new ArrayList<>();
3232

3333
vaoId = glGenVertexArrays();
3434
glBindVertexArray(vaoId);

chapter11/c11-p1/src/main/java/org/lwjglb/engine/graph/OBJLoader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public static Mesh loadMesh(String fileName) throws Exception {
5757
private static Mesh reorderLists(List<Vector3f> posList, List<Vector2f> textCoordList,
5858
List<Vector3f> normList, List<Face> facesList) {
5959

60-
List<Integer> indices = new ArrayList();
60+
List<Integer> indices = new ArrayList<>();
6161
// Create position array in the order it has been declared
6262
float[] posArr = new float[posList.size() * 3];
6363
int i = 0;

chapter11/c11-p2/src/main/java/org/lwjglb/engine/graph/Mesh.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public Mesh(float[] positions, float[] textCoords, float[] normals, int[] indice
2828
IntBuffer indicesBuffer = null;
2929
try {
3030
vertexCount = indices.length;
31-
vboIdList = new ArrayList();
31+
vboIdList = new ArrayList<>();
3232

3333
vaoId = glGenVertexArrays();
3434
glBindVertexArray(vaoId);

chapter11/c11-p2/src/main/java/org/lwjglb/engine/graph/OBJLoader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public static Mesh loadMesh(String fileName) throws Exception {
5757
private static Mesh reorderLists(List<Vector3f> posList, List<Vector2f> textCoordList,
5858
List<Vector3f> normList, List<Face> facesList) {
5959

60-
List<Integer> indices = new ArrayList();
60+
List<Integer> indices = new ArrayList<>();
6161
// Create position array in the order it has been declared
6262
float[] posArr = new float[posList.size() * 3];
6363
int i = 0;

0 commit comments

Comments
 (0)