public static class FBObject.TextureAttachment extends FBObject.Attachment implements FBObject.Colorbuffer
FBObject.Attachment.Type| Modifier and Type | Field and Description |
|---|---|
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
|
format, type| Constructor and Description |
|---|
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) |
| Modifier and Type | Method and Description |
|---|---|
void |
free(GL gl)
Releases the attachment if initialized, i.e.
|
FBObject.ColorAttachment |
getColorAttachment()
Casts this object to a
FBObject.ColorAttachment reference, see FBObject.Colorbuffer.isTextureAttachment(). |
FBObject.TextureAttachment |
getTextureAttachment()
Casts this object to a
FBObject.TextureAttachment reference, see FBObject.Colorbuffer.isTextureAttachment(). |
boolean |
initialize(GL gl)
Initializes the texture and set it's parameter, if uninitialized, i.e.
|
boolean |
isTextureAttachment()
Returns
true if instance is of type FBObject.TextureAttachment
and false if instance is of type FBObject.ColorAttachment. |
String |
toString() |
equals, formatToGLCapabilities, getFormat, getHeight, getName, getType, getWidth, hashCodeformatToGLCapabilities, getFormat, getHeight, getName, getWidthpublic final int dataFormat
public final int dataType
public final int magFilter
public final int minFilter
public final int wrapS
public final int wrapT
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 - public boolean initialize(GL gl) throws GLException
zero.initialize in interface FBObject.Colorbufferinitialize in class FBObject.Attachmenttrue if newly initialized, otherwise false.GLException - if texture generation and setup fails. The just created texture name will be deleted in this case.public void free(GL gl)
FBObject.Attachmentzero.
if(0 != name) {
do free ..
name = 0;
}
free in interface FBObject.Colorbufferfree in class FBObject.Attachmentpublic final boolean isTextureAttachment()
FBObject.Colorbuffertrue if instance is of type FBObject.TextureAttachment
and false if instance is of type FBObject.ColorAttachment.isTextureAttachment in interface FBObject.Colorbufferpublic final FBObject.TextureAttachment getTextureAttachment()
FBObject.ColorbufferFBObject.TextureAttachment reference, see FBObject.Colorbuffer.isTextureAttachment().getTextureAttachment in interface FBObject.ColorbufferFBObject.Colorbuffer.isTextureAttachment()public final FBObject.ColorAttachment getColorAttachment()
FBObject.ColorbufferFBObject.ColorAttachment reference, see FBObject.Colorbuffer.isTextureAttachment().getColorAttachment in interface FBObject.ColorbufferFBObject.Colorbuffer.isTextureAttachment()public String toString()
toString in class FBObject.AttachmentCopyright 2010 JogAmp Community.