public static class FBObject.RenderAttachment extends FBObject.Attachment
FBObject.Attachment.Typeformat, type| Constructor and Description |
|---|
FBObject.RenderAttachment(FBObject.Attachment.Type type,
int iFormat,
int samples,
int width,
int height,
int name) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o)
Comparison by
FBObject.Attachment.type, FBObject.Attachment.format, samples, FBObject.width, FBObject.height and FBObject.Attachment.name. |
void |
free(GL gl)
Releases the attachment if initialized, i.e.
|
int |
getSamples()
number of samples, or zero for no multisampling
|
int |
hashCode()
|
boolean |
initialize(GL gl)
Initializes the attachment and set it's parameter, if uninitialized, i.e.
|
String |
toString() |
formatToGLCapabilities, getFormat, getHeight, getName, getType, getWidthpublic FBObject.RenderAttachment(FBObject.Attachment.Type type, int iFormat, int samples, int width, int height, int name)
type - allowed types are FBObject.Attachment.Type.DEPTH_STENCIL FBObject.Attachment.Type.DEPTH, FBObject.Attachment.Type.STENCIL or FBObject.Attachment.Type.COLORiFormat - samples - width - height - name - public final int getSamples()
public boolean equals(Object o)
Comparison by FBObject.Attachment.type, FBObject.Attachment.format, samples, FBObject.width, FBObject.height and FBObject.Attachment.name.
Comparison by FBObject.Attachment.type, FBObject.Attachment.format, FBObject.Attachment.width, FBObject.Attachment.height and FBObject.Attachment.name.
equals in class FBObject.Attachmentpublic int hashCode()
Hashed by FBObject.Attachment.type, FBObject.Attachment.format, samples, FBObject.width, FBObject.height and FBObject.Attachment.name.
Hashed by FBObject.Attachment.type, FBObject.Attachment.format, FBObject.Attachment.width, FBObject.Attachment.height and FBObject.Attachment.name.
hashCode in class FBObject.Attachmentpublic boolean initialize(GL gl) throws GLException
FBObject.Attachmentzero.
final boolean init = 0 == name;
if( init ) {
do init ..
}
return init;
initialize in class FBObject.Attachmenttrue if newly initialized, otherwise false.GLException - if buffer generation or setup fails. The just created buffer name will be deleted in this case.public void free(GL gl)
FBObject.Attachmentzero.
if(0 != name) {
do free ..
name = 0;
}
free in class FBObject.Attachmentpublic String toString()
toString in class FBObject.AttachmentCopyright 2010 JogAmp Community.