aboutsummaryrefslogtreecommitdiffstats
path: root/make/gl-impl-CustomJavaCode-gl2es12.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2008-08-04 12:11:21 +0000
committerSven Gothel <[email protected]>2008-08-04 12:11:21 +0000
commitdc5883b13f157586dd2d89a84f9ea91d945edf70 (patch)
treed94df2e293bc24529b632514dfde6e73e22545fb /make/gl-impl-CustomJavaCode-gl2es12.java
parent3224cf710cd4eaaca51d42dfd7302579be412498 (diff)
../jogl.log
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/branches/JOGL_2_SANDBOX@1741 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'make/gl-impl-CustomJavaCode-gl2es12.java')
-rw-r--r--make/gl-impl-CustomJavaCode-gl2es12.java32
1 files changed, 32 insertions, 0 deletions
diff --git a/make/gl-impl-CustomJavaCode-gl2es12.java b/make/gl-impl-CustomJavaCode-gl2es12.java
index 4f5dbae1c..237e0f7e4 100644
--- a/make/gl-impl-CustomJavaCode-gl2es12.java
+++ b/make/gl-impl-CustomJavaCode-gl2es12.java
@@ -340,3 +340,35 @@ native private long dispatch_glMapBuffer(int target, int access, long glProcAddr
return buf.toString();
}
+ public void glVertexPointer(GLArrayData array) {
+ if(array.isVBO()) {
+ glVertexPointer(array.getComponents(), array.getDataType(), array.getStride(), array.getOffset());
+ } else {
+ glVertexPointer(array.getComponents(), array.getDataType(), array.getStride(), array.getBuffer());
+ }
+ }
+ public void glColorPointer(GLArrayData array) {
+ if(array.isVBO()) {
+ glColorPointer(array.getComponents(), array.getDataType(), array.getStride(), array.getOffset());
+ } else {
+ glColorPointer(array.getComponents(), array.getDataType(), array.getStride(), array.getBuffer());
+ }
+
+ }
+ public void glNormalPointer(GLArrayData array) {
+ if(array.getComponents()!=3) {
+ throw new GLException("Only 3 components per normal allowed");
+ }
+ if(array.isVBO()) {
+ glNormalPointer(array.getDataType(), array.getStride(), array.getOffset());
+ } else {
+ glNormalPointer(array.getDataType(), array.getStride(), array.getBuffer());
+ }
+ }
+ public void glTexCoordPointer(GLArrayData array) {
+ if(array.isVBO()) {
+ glTexCoordPointer(array.getComponents(), array.getDataType(), array.getStride(), array.getOffset());
+ } else {
+ glTexCoordPointer(array.getComponents(), array.getDataType(), array.getStride(), array.getBuffer());
+ }
+ }