WoW:GxApi: Difference between revisions
Created page with "GxApi is a high-level graphics API used in World of Warcraft." |
No edit summary |
||
| Line 1: | Line 1: | ||
GxApi is a high-level graphics API | GxApi is a high-level graphics API that is part of the World of Warcraft engine. | ||
GxApi: | |||
* Creates/destroys the window in which the game runs, which starts the game being able to read input events | |||
* Loads/unloads texture and geometry data | |||
* Creates/destroys textures | |||
* Draws to the window. | |||
== Devices == | |||
GxApi supports multiple low-level graphics APIs such as OpenGL and Direct3D (DirectX) 9. It does this by wrapping an base interface class, <code>CGxDevice</code>, whose | |||
virtual member functions handle the actual calls to the graphics driver. | |||
On Windows, the derived classes include: | |||
* <code>CGxDeviceOpenGl</code> | |||
OpenGL implementation. | |||
* <code>CGxDeviceD3d</code> | |||
Direct3D 9 (DirectX) implementation. | |||
* <code>CGxDeviceD3d9Ex</code> | |||
Direct3D 9Ex (DirectX) implementation | |||