|
GFXCardProfilerAPI Class Reference
[GFX]
This class is the interface between TorqueScript and GFXCardProfiler. More...
Static Public Member Functions | |
static String | getCard () |
Returns the card name. | |
static String | getRenderer () |
Returns the renderer name. For example D3D9 or OpenGL. | |
static String | getVendor () |
Returns the card vendor name. | |
static String | getVersion () |
Returns the driver version string. | |
static int | getVideoMemoryMB () |
Returns the amount of video memory in megabytes. | |
static int | queryProfile (string name, int defaultValue) |
Used to query the value of a specific card capability. | |
static void | setCapability (string name, int value) |
Used to set the value for a specific card capability. |
Detailed Description
This class is the interface between TorqueScript and GFXCardProfiler.
You will not actually declare GFXCardProfilerAPI in TorqueScript. It exists solely to give access to the GFXCardProfiler's querying functions, such as GFXCardProfiler::getRenderer.
- Example:
// Example of accessing GFXCardProfiler function from script // Notice you are not using the API version %videoMem = GFXCardProfiler::getVideoMemoryMB();
- See also:
- GFXCardProfiler for more information
Member Function Documentation
static String GFXCardProfilerAPI::getCard | ( | ) | [static] |
Returns the card name.
static String GFXCardProfilerAPI::getRenderer | ( | ) | [static] |
Returns the renderer name. For example D3D9 or OpenGL.
static String GFXCardProfilerAPI::getVendor | ( | ) | [static] |
Returns the card vendor name.
static String GFXCardProfilerAPI::getVersion | ( | ) | [static] |
Returns the driver version string.
static int GFXCardProfilerAPI::getVideoMemoryMB | ( | ) | [static] |
Returns the amount of video memory in megabytes.
static int GFXCardProfilerAPI::queryProfile | ( | string | name, | |
int | defaultValue | |||
) | [static] |
Used to query the value of a specific card capability.
- Parameters:
-
name The name of the capability being queried. defaultValue The value to return if the capability is not defined.
static void GFXCardProfilerAPI::setCapability | ( | string | name, | |
int | value | |||
) | [static] |
Used to set the value for a specific card capability.
- Parameters:
-
name The name of the capability being set. value The value to set for that capability.
Copyright © GarageGames, LLC. All Rights Reserved.