aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/makamys/neodymium/renderer/Mesh.java
diff options
context:
space:
mode:
authormakamys <makamys@outlook.com>2022-06-24 10:17:50 +0200
committermakamys <makamys@outlook.com>2022-06-25 07:27:50 +0200
commite5f18be985bac742cc9bbcdf0427187d666a304a (patch)
treebac86f278a1f2cf95c6de4e0a0af5821f38b90d5 /src/main/java/makamys/neodymium/renderer/Mesh.java
parentd5d08eb64a91c1a5b74e401037628260cfd8059c (diff)
downloadNeodymium-e5f18be985bac742cc9bbcdf0427187d666a304a.tar.gz
Neodymium-e5f18be985bac742cc9bbcdf0427187d666a304a.tar.bz2
Neodymium-e5f18be985bac742cc9bbcdf0427187d666a304a.zip
Clean up in ChunkMesh
Diffstat (limited to 'src/main/java/makamys/neodymium/renderer/Mesh.java')
-rw-r--r--src/main/java/makamys/neodymium/renderer/Mesh.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/main/java/makamys/neodymium/renderer/Mesh.java b/src/main/java/makamys/neodymium/renderer/Mesh.java
index 6db523d..f73bb51 100644
--- a/src/main/java/makamys/neodymium/renderer/Mesh.java
+++ b/src/main/java/makamys/neodymium/renderer/Mesh.java
@@ -42,11 +42,10 @@ public abstract class Mesh {
UNSENT, SENT, PENDING_DELETE
}
- public void writeToIndexBuffer(IntBuffer piFirst, IntBuffer piCount, int[] renderedMeshesReturn,
- int[] renderedQuadsReturn, int cameraXDiv, int cameraYDiv, int cameraZDiv) {
- renderedMeshesReturn[0] = 1;
- renderedQuadsReturn[0] = quadCount;
+ public int writeToIndexBuffer(IntBuffer piFirst, IntBuffer piCount, int cameraXDiv, int cameraYDiv, int cameraZDiv) {
piFirst.put(iFirst);
piCount.put(iCount);
+
+ return 1;
}
}