aboutsummaryrefslogtreecommitdiffstats
path: root/src/ru/olamedia/vbo/VBO.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/ru/olamedia/vbo/VBO.java')
-rw-r--r--src/ru/olamedia/vbo/VBO.java29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/ru/olamedia/vbo/VBO.java b/src/ru/olamedia/vbo/VBO.java
new file mode 100644
index 0000000..6f6c508
--- /dev/null
+++ b/src/ru/olamedia/vbo/VBO.java
@@ -0,0 +1,29 @@
+package ru.olamedia.vbo;
+
+import javax.media.opengl.GL2ES2;
+import javax.media.opengl.GLAutoDrawable;
+import javax.media.opengl.GLUniformData;
+
+import com.jogamp.opengl.util.PMVMatrix;
+
+public class VBO {
+ private GLAutoDrawable drawable;
+ private PMVMatrix pmvMatrix;
+ private GLUniformData pmvMatrixUniform;
+ private GLUniformData colorUniform;
+ private int[] vboIda = new int[10];
+
+ public VBO(GLAutoDrawable drawable) {
+ this.drawable = drawable;
+ GL2ES2 gl = drawable.getGL().getGL2ES2();
+ // gl.glGenBuffersARB(1, vboIda, 0);
+ }
+
+ public void setDrawable(GLAutoDrawable drawable) {
+ this.drawable = drawable;
+ }
+
+ public void render() {
+
+ }
+}