Yage3D.net
 

yage.system.graphics.probe

Authors:
Eric Poggel

License:
LGPL v3

abstract class Probe ;
Provides hardware probing capabilities for Yage.

enum Feature ;
Options for Probe.feature()

MAX_LIGHTS
Maximum number of lights that can be used at one time (isn't this always 8?)

MAX_TEXTURE_SIZE
Maximum allowed size for a texture

MAX_TEXTURE_UNITS
Maximum number of textures that can be used in multitexturing

FBO
Hardware support for rendering directly to a texture (Frame Buffer Object); first available in GeForce FX and Radeon 9x00

MULTITEXTURE
Hardware support for using multiple textures in a single rendering pass; first available on Voodoo2?

NON_2_TEXTURE
Hardware support for textures of arbitrary size; first available in GeForce FX and Radeon 9500

SHADER
Hardware support for openGl vertex and fragment shaders; first available in GeForce FX and Radeon 9x00

VBO
Hardware support for caching vertex data in video memory (Vertex Buffer Object), first available in Riva TNT and Rage 128?

static int feature (Feature query);
Query the hardware to see if a feature is supported For OpenGL features, the window must first be created.

Params:
constant A value from the Feature enum defined above.

Returns:
1/0 for true /false queries or an integer value for numeric queries.

Example:
 Probe.feature(Probe.Feature.SHADER); // returns 1 if shaders are supported or 0 otherwise.


static bool checkExtension (char[] name);
Searches to see if the given extension is supported in hardware. Use feature() for a much faster cached version. Due to the nature of sdl, a window must first be created before calling this function.

static char[][] getExtensions ();
Return an array of all supported OpenGL extensions. Due to the nature of sdl, a window must first be created before calling this function.

Yage source files are copywritten by their specified authors and available under the terms of the GNU LGPL.
Documentation generated with CandyDoc on Wed Aug 11 11:14:29 2010