|
JOGL v2.6.0-rc-20250712
JOGL, High-Performance Graphics Binding for Java (public API).
|
Pixel attributes. More...
Public Member Functions | |
| final int | hashCode () |
| final boolean | equals (final Object obj) |
| GLPixelAttributes (final int dataFormat, final int dataType) throws GLException | |
Create a new GLPixelAttributes instance based on GL format and type. More... | |
| GLPixelAttributes (final GLProfile glp, final PixelFormat pixFmt, final boolean pack) throws GLException | |
Create a new GLPixelAttributes instance based on GLProfile, PixelFormat and pack. More... | |
| String | toString () |
Static Public Member Functions | |
| static final PixelFormat | getPixelFormat (final int glFormat, final int glDataType) |
Returns the matching PixelFormat for the given GL format and type if exists, otherwise returns null. More... | |
| static GLPixelAttributes | convert (final GL gl, final int componentCount, final boolean pack) |
Returns the matching GLPixelAttributes for the given byte sized RGBA componentCount and GL if exists, otherwise returns null. More... | |
| static final GLPixelAttributes | convert (final GLProfile glp, final PixelFormat pixFmt, final boolean pack) |
Returns the matching GLPixelAttributes for the given GLProfile, PixelFormat and pack if exists, otherwise returns null. More... | |
Public Attributes | |
| final int | format |
| The OpenGL pixel data format. More... | |
| final int | type |
| The OpenGL pixel data type More... | |
| final PixelFormat | pfmt |
PixelFormat describing the component layout More... | |
Static Public Attributes | |
| static final GLPixelAttributes | UNDEF = new GLPixelAttributes(null, PixelFormat.LUMINANCE, 0, 0, true, false) |
Undefined instance of GLPixelAttributes, having componentCount:=0, format:=0 and type:= 0. More... | |
Pixel attributes.
Definition at line 227 of file GLPixelBuffer.java.
| com.jogamp.opengl.util.GLPixelBuffer.GLPixelAttributes.GLPixelAttributes | ( | final int | dataFormat, |
| final int | dataType | ||
| ) | throws GLException |
Create a new GLPixelAttributes instance based on GL format and type.
| GLException | if PixelFormat could not be determined, see getPixelFormat(int, int). |
Definition at line 473 of file GLPixelBuffer.java.
| com.jogamp.opengl.util.GLPixelBuffer.GLPixelAttributes.GLPixelAttributes | ( | final GLProfile | glp, |
| final PixelFormat | pixFmt, | ||
| final boolean | pack | ||
| ) | throws GLException |
Create a new GLPixelAttributes instance based on GLProfile, PixelFormat and pack.
| glp | the corresponding GLProfile |
| pixFmt | the to be matched pixel format |
| pack | true for read mode GPU -> CPU, e.g. glReadPixels. false for write mode CPU -> GPU, e.g. glTexImage2D. |
| GLException | if GL format or type could not be determined, see convert(GLProfile, PixelFormat, boolean). |
Definition at line 485 of file GLPixelBuffer.java.
|
static |
Returns the matching GLPixelAttributes for the given byte sized RGBA componentCount and GL if exists, otherwise returns null.
| gl | the corresponding current GL context object |
| componentCount | RGBA component count, i.e. 1 (luminance, alpha or red), 3 (RGB) or 4 (RGBA) |
| pack | true for read mode GPU -> CPU, e.g. glReadPixels. false for write mode CPU -> GPU, e.g. glTexImage2D. |
Definition at line 305 of file GLPixelBuffer.java.
|
static |
Returns the matching GLPixelAttributes for the given GLProfile, PixelFormat and pack if exists, otherwise returns null.
| glp | the corresponding GLProfile |
| pixFmt | the to be matched pixel format |
| pack | true for read mode GPU -> CPU, e.g. glReadPixels. false for write mode CPU -> GPU, e.g. glTexImage2D. |
Definition at line 356 of file GLPixelBuffer.java.
| final boolean com.jogamp.opengl.util.GLPixelBuffer.GLPixelAttributes.equals | ( | final Object | obj | ) |
|
static |
Returns the matching PixelFormat for the given GL format and type if exists, otherwise returns null.
Definition at line 235 of file GLPixelBuffer.java.
| final int com.jogamp.opengl.util.GLPixelBuffer.GLPixelAttributes.hashCode | ( | ) |
Definition at line 447 of file GLPixelBuffer.java.
| String com.jogamp.opengl.util.GLPixelBuffer.GLPixelAttributes.toString | ( | ) |
Definition at line 520 of file GLPixelBuffer.java.
| final int com.jogamp.opengl.util.GLPixelBuffer.GLPixelAttributes.format |
The OpenGL pixel data format.
Definition at line 439 of file GLPixelBuffer.java.
| final PixelFormat com.jogamp.opengl.util.GLPixelBuffer.GLPixelAttributes.pfmt |
PixelFormat describing the component layout
Definition at line 444 of file GLPixelBuffer.java.
| final int com.jogamp.opengl.util.GLPixelBuffer.GLPixelAttributes.type |
The OpenGL pixel data type
Definition at line 441 of file GLPixelBuffer.java.
|
static |
Undefined instance of GLPixelAttributes, having componentCount:=0, format:=0 and type:= 0.
Definition at line 229 of file GLPixelBuffer.java.