JOGL v2.6.0-rc-20250712
JOGL, High-Performance Graphics Binding for Java™ (public API).
GLPointerFunc.java
Go to the documentation of this file.
1/*
2 * Copyright 2009 Sun Microsystems, Inc. All Rights Reserved.
3 * Copyright 2010 JogAmp Community. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without modification, are
6 * permitted provided that the following conditions are met:
7 *
8 * 1. Redistributions of source code must retain the above copyright notice, this list of
9 * conditions and the following disclaimer.
10 *
11 * 2. Redistributions in binary form must reproduce the above copyright notice, this list
12 * of conditions and the following disclaimer in the documentation and/or other materials
13 * provided with the distribution.
14 *
15 * THIS SOFTWARE IS PROVIDED BY JogAmp Community ``AS IS'' AND ANY EXPRESS OR IMPLIED
16 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
17 * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL JogAmp Community OR
18 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
19 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
20 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
21 * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
22 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
23 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 *
25 * The views and conclusions contained in the software and documentation are those of the
26 * authors and should not be interpreted as representing official policies, either expressed
27 * or implied, of JogAmp Community.
28 */
29
30package com.jogamp.opengl.fixedfunc;
31
32import com.jogamp.opengl.*;
33
34public interface GLPointerFunc {
35 public static final int GL_VERTEX_ARRAY = 0x8074;
36 public static final int GL_NORMAL_ARRAY = 0x8075;
37 public static final int GL_COLOR_ARRAY = 0x8076;
38 public static final int GL_TEXTURE_COORD_ARRAY = 0x8078;
39
40 public void glEnableClientState(int arrayName);
41 public void glDisableClientState(int arrayName);
42
43 public void glVertexPointer(GLArrayData array);
44 public void glVertexPointer(int size, int type, int stride, java.nio.Buffer pointer);
45 public void glVertexPointer(int size, int type, int stride, long pointer_buffer_offset);
46
47 public void glColorPointer(GLArrayData array);
48 public void glColorPointer(int size, int type, int stride, java.nio.Buffer pointer);
49 public void glColorPointer(int size, int type, int stride, long pointer_buffer_offset);
50 public void glColor4f(float red, float green, float blue, float alpha);
51
52 public void glNormalPointer(GLArrayData array);
53 public void glNormalPointer(int type, int stride, java.nio.Buffer pointer);
54 public void glNormalPointer(int type, int stride, long pointer_buffer_offset);
55
56 public void glTexCoordPointer(GLArrayData array);
57 public void glTexCoordPointer(int size, int type, int stride, java.nio.Buffer pointer);
58 public void glTexCoordPointer(int size, int type, int stride, long pointer_buffer_offset);
59
60}
61
The total number of bytes hold by the referenced buffer is: getComponentSize()* getComponentNumber() ...
void glNormalPointer(GLArrayData array)
void glNormalPointer(int type, int stride, long pointer_buffer_offset)
void glTexCoordPointer(GLArrayData array)
void glColorPointer(int size, int type, int stride, long pointer_buffer_offset)
void glColor4f(float red, float green, float blue, float alpha)
void glTexCoordPointer(int size, int type, int stride, java.nio.Buffer pointer)
void glVertexPointer(int size, int type, int stride, java.nio.Buffer pointer)
void glColorPointer(GLArrayData array)
void glVertexPointer(int size, int type, int stride, long pointer_buffer_offset)
void glColorPointer(int size, int type, int stride, java.nio.Buffer pointer)
void glNormalPointer(int type, int stride, java.nio.Buffer pointer)
void glTexCoordPointer(int size, int type, int stride, long pointer_buffer_offset)
void glVertexPointer(GLArrayData array)