| org.apache.harmony.awt.gl.opengl.OGLContextManager
All known Subclasses: org.apache.harmony.awt.gl.windows.WGLGraphicsConfiguration, org.apache.harmony.awt.gl.linux.GLXGraphicsConfiguration,
OGLContextManager | public interface OGLContextManager (Code) | | |
Inner Class :public static class OffscreenBufferObject | |
Method Summary | |
public OffscreenBufferObject | createOffscreenBuffer(int w, int h) | public void | destroyOGLContext(long oglContext) | public void | freeOffscreenBuffer(OffscreenBufferObject buffer) | public void | freeOffscreenBuffer(long id, long hdc) | public long | getOGLContext(long drawable, long hdc) | public boolean | makeContextCurrent(long oglContext, long draw, long read, long drawHDC, long readHDC) | public boolean | makeCurrent(long oglContext, long drawable, long hdc) | public void | swapBuffers(long drawable, long hdc) |
createOffscreenBuffer | public OffscreenBufferObject createOffscreenBuffer(int w, int h)(Code) | | |
destroyOGLContext | public void destroyOGLContext(long oglContext)(Code) | | Destroys existing OpenGL context
Parameters: oglContext - - context |
freeOffscreenBuffer | public void freeOffscreenBuffer(OffscreenBufferObject buffer)(Code) | | |
freeOffscreenBuffer | public void freeOffscreenBuffer(long id, long hdc)(Code) | | |
getOGLContext | public long getOGLContext(long drawable, long hdc)(Code) | | Creates OpenGL context based on GraphicsConfiguration
Parameters: drawable - - window handle, pbuffer, or linux drawable Parameters: hdc - - if drawable is offscreen context handle |
makeContextCurrent | public boolean makeContextCurrent(long oglContext, long draw, long read, long drawHDC, long readHDC)(Code) | | |
makeCurrent | public boolean makeCurrent(long oglContext, long drawable, long hdc)(Code) | | Makes OpenGL context current
Parameters: oglContext - - OpenGL context handle Parameters: drawable - - window handle, pbuffer, or linux drawable Parameters: hdc - - if drawable is offscreen false if context was alrady current, true otherwise |
swapBuffers | public void swapBuffers(long drawable, long hdc)(Code) | | |
|
|