|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.neovisionaries.android.opengl.RenderBuffer
public class RenderBuffer
OpenGL ES render buffer.
Constructor Summary | |
---|---|
RenderBuffer()
A constructor. |
|
RenderBuffer(RenderBufferFormat format,
int width,
int height)
A constructor with format parameters. |
Method Summary | |
---|---|
RenderBuffer |
bind()
Bind this render buffer using glBindRenderbuffer(). |
RenderBuffer |
delete()
Delete the render buffer object using glDeleteRenderbuffers(). |
int |
getId()
Get the ID of the render buffer object assigned to this instance. |
RenderBufferState |
getState()
Get the state of this render buffer. |
boolean |
isBound()
Check if this render buffer is bound. |
RenderBuffer |
setFormat(RenderBufferFormat format,
int width,
int height)
Set format, width and height of this render buffer using glRenderbufferStorage(). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RenderBuffer() throws GLESException
RenderBufferState.CREATED
.
GLESException
- glGenRenderbuffers() failed.public RenderBuffer(RenderBufferFormat format, int width, int height) throws GLESException
RenderBufferState.CREATED
.
This constructor does the same thing as follows.
newRenderBuffer()
.setFormat
(format, width, height);
format
- width
- height
-
IllegalArgumentException
- GLESException
- glGenRenderbuffers() failed.Method Detail |
---|
public int getId()
public RenderBufferState getState()
public RenderBuffer bind()
IllegalStateException
- This render buffer has already been deleted.public boolean isBound()
This method returns true if the value returned from
GLESState.getRenderbufferBinding()
and
the value returned from getId()
are identical.
GLESState.getRenderbufferBinding()
public RenderBuffer delete()
RenderBufferState.DELETED
.
public RenderBuffer setFormat(RenderBufferFormat format, int width, int height)
If this render buffer is not bound when this method is called,
bind()
is called before glRenderbufferStorage().
format
- width
- height
-
IllegalArgumentException
- IllegalStateException
- This render buffer has already been deleted.GLESState.getMaxRenderbufferSize()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |