mirror of
https://github.com/GTNewHorizons/CodeChickenCore.git
synced 2026-11-15 09:34:53 +00:00
Optimised render transformations.
Added documentation to ExtendedMOP.dist Added expand function to CCModel.
This commit is contained in:
1 parent
6a29a2428f
commit
f5bbe9d2da
3 files changed
+21
-4
No files matched your search
@@ -355,6 +355,17 @@ public class CCModel
|
||||
return this;
|
||||
}
|
||||
|
||||
public CCModel expand(int extraVerts)
|
||||
{
|
||||
int newLen = verts.length+extraVerts;
|
||||
verts = Arrays.copyOf(verts, newLen);
|
||||
if(normals != null)
|
||||
normals = Arrays.copyOf(normals, newLen);
|
||||
if(colours != null)
|
||||
colours = Arrays.copyOf(colours, newLen);
|
||||
return this;
|
||||
}
|
||||
|
||||
public void render()
|
||||
{
|
||||
render(0, verts.length, null, null, null);
|
||||
|
||||
Reference in new issue
Block a user