2010-04-23 01:21:48 +02:00
|
|
|
package org.lwjgl.opengl;
|
|
|
|
|
|
|
|
|
|
import org.lwjgl.LWJGLException;
|
|
|
|
|
|
|
|
|
|
/**
|
2011-05-17 18:53:57 +02:00
|
|
|
* [INTERNAL USE ONLY]
|
|
|
|
|
*
|
2010-04-23 01:21:48 +02:00
|
|
|
* @author Spasi
|
|
|
|
|
*/
|
|
|
|
|
interface DrawableLWJGL extends Drawable {
|
|
|
|
|
|
2011-05-17 18:53:57 +02:00
|
|
|
void setPixelFormat(PixelFormatLWJGL pf) throws LWJGLException;
|
|
|
|
|
|
|
|
|
|
PixelFormatLWJGL getPixelFormat();
|
|
|
|
|
|
2010-04-23 01:21:48 +02:00
|
|
|
/**
|
|
|
|
|
* [INTERNAL USE ONLY] Returns the Drawable's Context.
|
|
|
|
|
*
|
|
|
|
|
* @return the Drawable's Context
|
|
|
|
|
*/
|
|
|
|
|
Context getContext();
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* [INTERNAL USE ONLY] Creates a new Context that is shared with the Drawable's Context.
|
|
|
|
|
*
|
|
|
|
|
* @return a Context shared with the Drawable's Context.
|
|
|
|
|
*/
|
|
|
|
|
Context createSharedContext() throws LWJGLException;
|
|
|
|
|
|
2011-05-17 18:53:57 +02:00
|
|
|
void checkGLError();
|
|
|
|
|
|
|
|
|
|
void setSwapInterval(int swap_interval);
|
|
|
|
|
|
|
|
|
|
void swapBuffers() throws LWJGLException;
|
|
|
|
|
|
|
|
|
|
void initContext(final float r, final float g, final float b);
|
|
|
|
|
|
|
|
|
|
}
|