Clears the currently bound buffer (either a frame buffer, or the front (screen) buffer if none are bound).
Disables the capability.
Enables the capability.
Enable or disable VSYNC. If enabled, updating the display will cause the calling thread to hang until a new frame starts. In other words, it will lock the updating rate to the display refresh rate.
Gets the window size actually being used. This can be different from the one that was set when running in full screen mode, or if it was bigger than the display.
Returns the window height.
Gets the window size.
Returns the window title.
Returns the window width.
Returns true if an external process (such as the user) is requesting for the window to be closed. This value is reset once this method has been called.
Creates a new frame buffer.
Creates a new program.
Creates a new render buffer.
Creates a new shader.
Creates a new texture.
Creates a new vertex array.
Reads the current frame pixels and returns it as a byte buffer of the desired format. The size of the returned image data is the same as the current window dimensions.
Sets the blending functions for the source and destination buffers, for all buffers. Blending must be enabled with {@link #enableCapability(org.spout.renderer.api.gl.Context.Capability)}.
Sets the blending functions for the source and destination buffer at the index. Blending must be enabled with {@link #enableCapability(org.spout.renderer.api.gl.Context.Capability)}. <p/> Support for specifying the buffer index is only available in GL40.
Sets the renderer buffer clear color. This can be interpreted as the background color.
Enables or disables writing into the depth buffer.
Enable or disable full screen mode. The window size will be changed to the desktop size when enabled, and back to the original size when disabled.
Sets the user resizability of this window. This doesn't do anything if the window is in full screen mode.
Sets the render view port, which is the dimensions and position of the frame inside the window.
Sets the window size. Will be limited to the desktop size.
Sets the window title to the desired one.
Updates the display with the current front (screen) buffer.
Creates the resources. It can now be used.
Releases the resource. It can not longer be used.
Returns true if the resource was created and is ready for use, false if otherwise.
Throws an exception if the resource hasn't been created yet.
Throws an exception if the resource has been created already.
Returns the lowest OpenGL version required by this object's implementation.
Represents an OpenGL context. Creating context must be done before any other OpenGL object.