|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jogamp.opengl.FBObject.Attachment
com.jogamp.opengl.FBObject.TextureAttachment
public static class FBObject.TextureAttachment
Texture attachment
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.jogamp.opengl.FBObject.Attachment |
---|
FBObject.Attachment.Type |
Field Summary | |
---|---|
int |
dataFormat
details of the texture setup |
int |
dataType
details of the texture setup |
int |
magFilter
details of the texture setup |
int |
minFilter
details of the texture setup |
int |
wrapS
details of the texture setup |
int |
wrapT
details of the texture setup |
Fields inherited from class com.jogamp.opengl.FBObject.Attachment |
---|
format, type |
Constructor Summary | |
---|---|
FBObject.TextureAttachment(FBObject.Attachment.Type type,
int iFormat,
int width,
int height,
int dataFormat,
int dataType,
int magFilter,
int minFilter,
int wrapS,
int wrapT,
int name)
|
Method Summary | |
---|---|
void |
free(GL gl)
Releases the attachment buffer if initialized, i.e. |
void |
initialize(GL gl)
Initializes the texture and set it's parameter, if uninitialized, i.e. |
Methods inherited from class com.jogamp.opengl.FBObject.Attachment |
---|
equals, getHeight, getInitCounter, getName, getType, getWidth, hashCode, toString |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public final int dataFormat
public final int dataType
public final int magFilter
public final int minFilter
public final int wrapS
public final int wrapT
Constructor Detail |
---|
public FBObject.TextureAttachment(FBObject.Attachment.Type type, int iFormat, int width, int height, int dataFormat, int dataType, int magFilter, int minFilter, int wrapS, int wrapT, int name)
type
- allowed types are [ FBObject.Attachment.Type.COLOR_TEXTURE
, FBObject.Attachment.Type.DEPTH_TEXTURE
, FBObject.Attachment.Type.STENCIL_TEXTURE
]iFormat
- width
- height
- dataFormat
- dataType
- magFilter
- minFilter
- wrapS
- wrapT
- name
- Method Detail |
---|
public void initialize(GL gl) throws GLException
zero
.
initialize
in class FBObject.Attachment
GLException
- if texture generation and setup fails. The just created texture name will be deleted in this case.public void free(GL gl)
FBObject.Attachment
zero
.
Implementation employs an initialization counter, hence it can be paired recursively with FBObject.Attachment.initialize(GL)
.
free
in class FBObject.Attachment
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |