public static class GLPixelBuffer.GLPixelAttributes extends Object
Modifier and Type | Field and Description |
---|---|
int |
bytesPerPixel
The OpenGL pixel size in bytes
|
int |
componentCount
Pixel source component count, i.e.
|
int |
format
The OpenGL pixel data format
|
int |
type
The OpenGL pixel data type
|
static GLPixelBuffer.GLPixelAttributes |
UNDEF
Undefined instance of
GLPixelBuffer.GLPixelAttributes , having componentCount:=0, format:=0 and type:= 0. |
Constructor and Description |
---|
GLPixelBuffer.GLPixelAttributes(int dataFormat,
int dataType)
Deriving
componentCount via GL dataFormat , i.e. |
GLPixelBuffer.GLPixelAttributes(int componentCount,
int dataFormat,
int dataType)
Using user specified source
componentCount . |
Modifier and Type | Method and Description |
---|---|
static GLPixelBuffer.GLPixelAttributes |
convert(PixelFormat pixFmt,
GLProfile glp)
Returns the matching
GLPixelBuffer.GLPixelAttributes for the given PixelFormat and GLProfile if exists,
otherwise returns null . |
PixelFormat |
getPixelFormat()
Returns the matching
PixelFormat of this GLPixelBuffer.GLPixelAttributes if exists,
otherwise returns null . |
String |
toString() |
public static final GLPixelBuffer.GLPixelAttributes UNDEF
GLPixelBuffer.GLPixelAttributes
, having componentCount:=0, format:=0 and type:= 0.public final int componentCount
public final int format
public final int type
public final int bytesPerPixel
public GLPixelBuffer.GLPixelAttributes(int dataFormat, int dataType)
dataFormat
- GL data formatdataType
- GL data typepublic GLPixelBuffer.GLPixelAttributes(int componentCount, int dataFormat, int dataType)
componentCount
.componentCount
- source component countdataFormat
- GL data formatdataType
- GL data typepublic static final GLPixelBuffer.GLPixelAttributes convert(PixelFormat pixFmt, GLProfile glp)
GLPixelBuffer.GLPixelAttributes
for the given PixelFormat
and GLProfile
if exists,
otherwise returns null
.public final PixelFormat getPixelFormat()
PixelFormat
of this GLPixelBuffer.GLPixelAttributes
if exists,
otherwise returns null
.Copyright 2010 JogAmp Community.