summaryrefslogtreecommitdiffstats
path: root/src/jogamp/graph/curve/opengl/VBORegion2PGL3.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2011-03-30 15:25:18 +0200
committerSven Gothel <[email protected]>2011-03-30 15:25:18 +0200
commit630a9ea52b16da6badb31a98b70893f8d294b4e8 (patch)
tree8ab07c2ff6a670381e2592c09a83bd7cf60a1f2c /src/jogamp/graph/curve/opengl/VBORegion2PGL3.java
parentd06d5596d18101c876c869a514e42e795ee9357c (diff)
Remove generics notion of Type<Vertex>, since Vertex _is_ the lowest denominator for our implementation and curve API
Diffstat (limited to 'src/jogamp/graph/curve/opengl/VBORegion2PGL3.java')
-rw-r--r--src/jogamp/graph/curve/opengl/VBORegion2PGL3.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/jogamp/graph/curve/opengl/VBORegion2PGL3.java b/src/jogamp/graph/curve/opengl/VBORegion2PGL3.java
index baca05dc7..a17809d79 100644
--- a/src/jogamp/graph/curve/opengl/VBORegion2PGL3.java
+++ b/src/jogamp/graph/curve/opengl/VBORegion2PGL3.java
@@ -53,7 +53,7 @@ public class VBORegion2PGL3 implements Region{
private IntBuffer t_vboIds;
- private ArrayList<Triangle<Vertex>> triangles = new ArrayList<Triangle<Vertex>>();
+ private ArrayList<Triangle> triangles = new ArrayList<Triangle>();
private ArrayList<Vertex> vertices = new ArrayList<Vertex>();
private GLContext context;
@@ -85,7 +85,7 @@ public class VBORegion2PGL3 implements Region{
GL3 gl = context.getGL().getGL3();
ShortBuffer indicies = Buffers.newDirectShortBuffer(triangles.size() * 3);
- for(Triangle<Vertex> t:triangles){
+ for(Triangle t:triangles){
if(t.getVertices()[0].getId() == Integer.MAX_VALUE){
t.getVertices()[0].setId(numVertices++);
t.getVertices()[1].setId(numVertices++);
@@ -338,7 +338,7 @@ public class VBORegion2PGL3 implements Region{
gl.glBindBuffer(GL3.GL_ARRAY_BUFFER, 0);
}
- public void addTriangles(ArrayList<Triangle<Vertex>> tris) {
+ public void addTriangles(ArrayList<Triangle> tris) {
triangles.addAll(tris);
dirty = true;
}