Optimised render transformations.

Added documentation to ExtendedMOP.dist
Added expand function to CCModel.
This commit is contained in:
Chicken Bones committed 2013-09-10 18:22:44 +10:00
1 parent 6a29a2428f
commit f5bbe9d2da
3 files changed
+21 -4

No files matched your search

+11
View File
@@ -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);