public static class FBObject.RenderAttachment extends FBObject.Attachment
FBObject.Attachment.Type
format, 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, getWidth
public 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.COLOR
iFormat
- 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.Attachment
public 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.Attachment
public boolean initialize(GL gl) throws GLException
FBObject.Attachment
zero
.
final boolean init = 0 == name; if( init ) { do init .. } return init;
initialize
in class FBObject.Attachment
true
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.Attachment
zero
.
if(0 != name) { do free .. name = 0; }
free
in class FBObject.Attachment
public String toString()
toString
in class FBObject.Attachment
Copyright 2010 JogAmp Community.