WoW:GxApi: Difference between revisions

No edit summary
No edit summary
Line 9: Line 9:
* Draws to the window.
* Draws to the window.


== Devices ==
== Graphics device ==


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
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.
virtual member functions handle the actual calls to the graphics driver.
=== Windows device ===


On Windows, the derived classes include:
On Windows, the derived classes include:


;
;
; <code>CGxDeviceOpenGl</code> : OpenGL implementation.
; <code>CGxDeviceOpenGl</code> : OpenGL implementation. Enabled by passing <code>-opengl</code> as a launch parameter, or setting a CVar: <code>SET gxApi "OpenGL"</code>
; <code>CGxDeviceD3d</code> : Direct3D 9 (DirectX) implementation.
; <code>CGxDeviceD3d</code> : Direct3D 9 (DirectX) implementation.
; <code>CGxDeviceD3d9Ex</code> : Direct3D 9Ex (DirectX) implementation
; <code>CGxDeviceD3d9Ex</code> : Direct3D 9Ex (DirectX) implementation