|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.hermetica.magician.GLCapabilities
The GLCapabilities class encapsulates the required format for a window that we wish to render onto, beit an X Visual, or a Win32 PIXELFORMATDESCRIPTOR. By using the GLCapabilities class, we can portably configure the settings for the required visual, which will then be tested to see if it is valid for the GLContext class it is attached to. The methods provided in this class need not all be used. Some methods may have no meaning under different types of window system, some are essentially X-specific, some Win32-specific. These will be ignored as required.
GLContext
Field Summary | |
static int |
COLOR_INDEX
Colour-index colour |
static int |
COLOUR_INDEX
Colour-index colour |
static int |
DOUBLEBUFFER
Specify we want double-buffering |
static int |
DRAW_TO_BITMAP
Specify that we want to render to a window |
static int |
DRAW_TO_WINDOW
Specify that we want to render to a window |
static int |
INDEXED
Colour-index colour |
static int |
MAIN_PLANE
Specifies the main rendering plane |
static int |
OVERLAY_PLANE
Specifies that an overlay plane should be used |
static int |
RGBA
RGBA colour. |
static int |
SINGLEBUFFER
Specify that we don't want double-buffering |
static int |
STEREO
Specify that we want stereo rendering |
static int |
STEREO_DONTCARE
Specify that we don't care whether or not the target component context supports stereo rendering or not. |
static int |
UNDERLAY_PLANE
Specifies that an underlay plane should be used |
static java.lang.String |
VERSION
Version information |
Constructor Summary | |
GLCapabilities()
|
Method Summary | |
static GLCapabilities[] |
enumerateCapabilities()
Queries the underlying OpenGL implementation for all the possible visuals that are supported for the particular graphics cards |
int |
getAccumAlphaBits()
Returns the number of alpha bit planes in the accumulation buffer |
int |
getAccumBits()
Returns the number of bits in the accumulation buffer |
int |
getAccumBlueBits()
Returns the number of blue bit planes in the accumulation buffer |
int |
getAccumGreenBits()
Returns the number of green bit planes in the accumulation buffer |
int |
getAccumRedBits()
Returns the number of red bit planes in the accumulation buffer |
int |
getAlphaBits()
Returns the number of red bit planes in each RGBA buffer |
int |
getAlphaShift()
Returns the alpha shift value |
int |
getAuxiliaryBuffers()
Returns the number of auxiliary buffers |
int |
getBlueBits()
Returns the number of blue bit planes in each RGBA buffer |
int |
getBlueShift()
Returns the blue shift value |
int |
getColourBits()
Returns the number of colour bit planes |
int |
getDepthBits()
Returns the number of bits in the depth buffer |
int |
getDevice()
Returns the device type that we have created a component with |
boolean |
getDirectRendering()
Returns whether or not a direct rendering context is being used |
int |
getDoubleBuffered()
Returns the current value of double-buffering in the component |
int |
getGreenBits()
Returns the number of green bit planes in each RGBA buffer |
int |
getGreenShift()
Returns the green shift value |
int |
getLayerType()
Returns the type of rendering layer used by this visual |
int |
getPixelType()
Returns the pixel type of the context |
int |
getRedBits()
Returns the number of red bit planes in each RGBA buffer |
int |
getRedShift()
Returns the red shift value |
int |
getStencilBits()
Returns the number of bits in the stencil buffer |
int |
getStereo()
Returns the current stereo rendering capabilities of the component |
boolean |
isLocked()
Returns whether or not this capability object is locked, ie, the context associated with it has been created successfully. |
void |
setAccumAlphaBits(int numBits)
Specifies the number of alpha bit planes in the accumulation buffer |
void |
setAccumBits(int numBits)
Specifies the number of bits in the accumulation buffer |
void |
setAccumBlueBits(int numBits)
Specifies the number of blue bit planes in the accumulation buffer |
void |
setAccumGreenBits(int numBits)
Specifies the number of green bit planes in the accumulation buffer |
void |
setAccumRedBits(int numBits)
Specifies the number of red bit planes in the accumulation buffer |
void |
setAlphaBits(int numBits)
Sets the number of alpha bit planes in each RGBA buffer |
void |
setAlphaShift(int shift)
Sets the shift count for alpha bit planes in each RGBA buffer. |
void |
setAuxiliaryBuffers(int numBuffers)
Sets the number of auxiliary buffers |
void |
setBlueBits(int numBits)
Sets the number of blue bit planes in each RGBA buffer |
void |
setBlueShift(int shift)
Sets the shift count for blue bit planes in each RGBA buffer. |
void |
setColourBits(int numBits)
Sets the number of desired colour bit planes |
void |
setDepthBits(int numBits)
Sets the number of bits in the depth buffer |
void |
setDevice(int flags)
Specifies to which device type we should render to |
void |
setDirectRendering(boolean isDirect)
Sets whether or not a direct rendering context should be used |
void |
setDoubleBuffered(int flags)
Specifies whether or not we want double-buffering |
void |
setGreenBits(int numBits)
Sets the number of green bit planes in each RGBA buffer |
void |
setGreenShift(int shift)
Sets the shift count for green bit planes in each RGBA buffer. |
void |
setLayerType(int layerType)
Sets the type of rendering layer this visual should use |
void |
setPixelType(int flags)
Specifies the pixel colour type for the component |
void |
setRedBits(int numBits)
Sets the number of red bit planes in each RGBA buffer |
void |
setRedShift(int shift)
Sets the shift count for red bit planes in each RGBA buffer. |
void |
setStencilBits(int numBits)
Specifies the number of stencil bit planes in the stencil buffer |
void |
setStereo(int flags)
Specifies the stereo rendering capabilities of the component |
java.lang.String |
toString()
Displays the current settings of the capabilities |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
public static final java.lang.String VERSION
public static final int RGBA
setPixelType(int)
,
getPixelType()
public static final int COLOUR_INDEX
setPixelType(int)
,
getPixelType()
public static final int COLOR_INDEX
setPixelType(int)
,
getPixelType()
public static final int INDEXED
setPixelType(int)
,
getPixelType()
public static final int DOUBLEBUFFER
setDoubleBuffered(int)
,
getDoubleBuffered()
,
SINGLEBUFFER
public static final int SINGLEBUFFER
setDoubleBuffered(int)
,
getDoubleBuffered()
,
DOUBLEBUFFER
public static final int STEREO
setStereo(int)
,
getStereo()
,
STEREO_DONTCARE
public static final int STEREO_DONTCARE
setStereo(int)
,
getStereo()
,
STEREO
public static final int DRAW_TO_WINDOW
setDevice(int)
,
getDevice()
,
DRAW_TO_BITMAP
public static final int DRAW_TO_BITMAP
setDevice(int)
,
getDevice()
,
DRAW_TO_WINDOW
public static final int MAIN_PLANE
public static final int OVERLAY_PLANE
public static final int UNDERLAY_PLANE
Constructor Detail |
public GLCapabilities()
Method Detail |
public final void setPixelType(int flags)
setPixelType(int)
,
COLOUR_INDEX
public final int getPixelType()
getPixelType()
,
RGBA
public final void setDoubleBuffered(int flags)
getDoubleBuffered()
,
DOUBLEBUFFER
,
com.hermetica.magician.GLCapabilities#DOUBLEBUFFER_DONTCARE
public final int getDoubleBuffered()
DOUBLEBUFFER
,
com.hermetica.magician.GLCapabilities#DOUBLEBUFFER_DONTCARE
,
getDoubleBuffered()
public final void setStereo(int flags)
STEREO
,
STEREO_DONTCARE
,
getStereo()
public final int getStereo()
STEREO
,
STEREO_DONTCARE
,
setStereo(int)
public final void setDevice(int flags)
DRAW_TO_WINDOW
,
DRAW_TO_BITMAP
,
getDevice()
public final int getDevice()
DRAW_TO_WINDOW
,
DRAW_TO_BITMAP
,
setDevice(int)
public final void setColourBits(int numBits)
getColourBits()
public final int getColourBits()
setColourBits(int)
public final void setRedBits(int numBits)
getRedBits()
public final int getRedBits()
setRedBits(int)
public final void setGreenBits(int numBits)
getGreenBits()
public final int getGreenBits()
setGreenBits(int)
public final void setBlueBits(int numBits)
getBlueBits()
public final int getBlueBits()
setBlueBits(int)
public final void setAlphaBits(int numBits)
getAlphaBits()
public final int getAlphaBits()
setRedBits(int)
public final void setRedShift(int shift)
getRedShift()
public final int getRedShift()
setRedShift(int)
public final void setGreenShift(int shift)
getGreenShift()
public final int getGreenShift()
setGreenShift(int)
public final void setBlueShift(int shift)
getBlueShift()
public final int getBlueShift()
setBlueShift(int)
public final void setAlphaShift(int shift)
getAlphaShift()
public final int getAlphaShift()
setAlphaShift(int)
public final void setAccumBits(int numBits)
getAccumBits()
public final int getAccumBits()
setAccumBits(int)
public final void setAccumRedBits(int numBits)
getAccumRedBits()
public final int getAccumRedBits()
setAccumRedBits(int)
public final void setAccumGreenBits(int numBits)
getAccumGreenBits()
public final int getAccumGreenBits()
setAccumGreenBits(int)
public final void setAccumBlueBits(int numBits)
getAccumBlueBits()
public final int getAccumBlueBits()
setAccumBlueBits(int)
public final void setAccumAlphaBits(int numBits)
getAccumAlphaBits()
public final int getAccumAlphaBits()
setAccumAlphaBits(int)
public final void setStencilBits(int numBits)
getStencilBits()
public final int getStencilBits()
setStencilBits(int)
public final void setDepthBits(int numBits)
getDepthBits()
public final int getDepthBits()
setDepthBits(int)
public final void setAuxiliaryBuffers(int numBuffers)
getAuxiliaryBuffers()
public final int getAuxiliaryBuffers()
setAuxiliaryBuffers(int)
public final void setLayerType(int layerType)
getLayerType()
,
MAIN_PLANE
,
OVERLAY_PLANE
,
UNDERLAY_PLANE
public final int getLayerType()
setLayerType(int)
,
MAIN_PLANE
,
OVERLAY_PLANE
,
UNDERLAY_PLANE
public final boolean isLocked()
GLContext
public final void setDirectRendering(boolean isDirect)
isDirect
- Specifies whether or not a direct rendering context should be usedpublic final boolean getDirectRendering()
public static final GLCapabilities[] enumerateCapabilities()
public java.lang.String toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |