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 buffer if initialized, i.e.
|
int |
getSamples()
number of samples, or zero for no multisampling
|
int |
hashCode()
|
void |
initialize(GL gl)
Initializes the attachment buffer and set it's parameter, if uninitialized, i.e.
|
String |
toString() |
getHeight, getInitCounter, 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
, 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 void initialize(GL gl) throws GLException
FBObject.Attachment
zero
.
Implementation employs an initialization counter, hence it can be paired recursively with FBObject.Attachment.free(GL)
.
initialize
in class FBObject.Attachment
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
.
Implementation employs an initialization counter, hence it can be paired recursively with FBObject.Attachment.initialize(GL)
.
free
in class FBObject.Attachment
public String toString()
toString
in class FBObject.Attachment
Copyright 2010 JogAmp Community.