Starshatter_Open
Open source Starshatter engine
|
#include <VideoDX9.h>
Public Member Functions | |
VideoDX9 (const HWND &window, VideoSettings *vs) | |
virtual | ~VideoDX9 () |
virtual const VideoSettings * | GetVideoSettings () const |
virtual bool | SetVideoSettings (const VideoSettings *vs) |
virtual bool | SetBackgroundColor (Color c) |
virtual bool | SetGammaLevel (int g) |
virtual bool | SetObjTransform (const Matrix &o, const Point &l) |
virtual bool | SetupParams () |
virtual bool | Reset (const VideoSettings *vs) |
virtual bool | StartFrame () |
virtual bool | EndFrame () |
virtual int | Width () const |
virtual int | Height () const |
virtual int | Depth () const |
virtual void | RecoverSurfaces () |
virtual bool | ClearAll () |
virtual bool | ClearDepthBuffer () |
virtual bool | Present () |
virtual bool | Pause () |
virtual bool | Resume () |
virtual IDirect3D9 * | Direct3D () const |
virtual IDirect3DDevice9 * | D3DDevice () const |
virtual bool | IsModeSupported (int width, int height, int bpp) const |
virtual bool | IsHardware () const |
virtual int | ZDepth () const |
virtual DWORD | VidMemFree () const |
virtual int | D3DLevel () const |
virtual int | MaxTexSize () const |
virtual int | MaxTexAspect () const |
virtual int | GammaLevel () const |
virtual bool | Capture (Bitmap &bmp) |
virtual bool | GetWindowRect (Rect &r) |
virtual bool | SetWindowRect (const Rect &r) |
virtual bool | SetViewport (int x, int y, int w, int h) |
virtual bool | SetCamera (const Camera *cam) |
virtual bool | SetEnvironment (Bitmap **faces) |
virtual bool | SetAmbient (Color c) |
virtual bool | SetLights (const List< Light > &lights) |
virtual bool | SetProjection (float fov, float znear=1.0f, float zfar=1.0e6f, DWORD type=PROJECTION_PERSPECTIVE) |
virtual bool | SetRenderState (RENDER_STATE state, DWORD value) |
virtual bool | SetBlendType (int blend_type) |
virtual bool | DrawPolys (int npolys, Poly *p) |
virtual bool | DrawScreenPolys (int npolys, Poly *p, int blend=0) |
virtual bool | DrawSolid (Solid *s, DWORD blend_modes=0xf) |
virtual bool | DrawShadow (Solid *s, int nverts, Vec3 *verts, bool vis=false) |
virtual bool | DrawLines (int nlines, Vec3 *v, Color c, int blend=0) |
virtual bool | DrawScreenLines (int nlines, float *v, Color c, int blend=0) |
virtual bool | DrawPoints (VertexSet *v) |
virtual bool | DrawPolyOutline (Poly *p) |
virtual bool | UseMaterial (Material *m) |
virtual bool | UseXFont (const char *name, int size, bool b, bool i) |
virtual bool | DrawText (const char *text, int count, const Rect &rect, DWORD format, Color c) |
virtual void | PreloadTexture (Bitmap *bmp) |
virtual void | PreloadSurface (Surface *s) |
virtual void | InvalidateCache () |
VideoDX9 (const HWND &window, VideoSettings *vs) | |
virtual | ~VideoDX9 () |
virtual const VideoSettings * | GetVideoSettings () const |
virtual bool | SetVideoSettings (const VideoSettings *vs) |
virtual bool | SetBackgroundColor (Color c) |
virtual bool | SetGammaLevel (int g) |
virtual bool | SetObjTransform (const Matrix &o, const Point &l) |
virtual bool | SetupParams () |
virtual bool | Reset (const VideoSettings *vs) |
virtual bool | StartFrame () |
virtual bool | EndFrame () |
virtual int | Width () const |
virtual int | Height () const |
virtual int | Depth () const |
virtual void | RecoverSurfaces () |
virtual bool | ClearAll () |
virtual bool | ClearDepthBuffer () |
virtual bool | Present () |
virtual bool | Pause () |
virtual bool | Resume () |
virtual IDirect3D9 * | Direct3D () const |
virtual IDirect3DDevice9 * | D3DDevice () const |
virtual bool | IsModeSupported (int width, int height, int bpp) const |
virtual bool | IsHardware () const |
virtual int | ZDepth () const |
virtual DWORD | VidMemFree () const |
virtual int | D3DLevel () const |
virtual int | MaxTexSize () const |
virtual int | MaxTexAspect () const |
virtual int | GammaLevel () const |
virtual bool | Capture (Bitmap &bmp) |
virtual bool | GetWindowRect (Rect &r) |
virtual bool | SetWindowRect (const Rect &r) |
virtual bool | SetViewport (int x, int y, int w, int h) |
virtual bool | SetCamera (const Camera *cam) |
virtual bool | SetEnvironment (Bitmap **faces) |
virtual bool | SetAmbient (Color c) |
virtual bool | SetLights (const List< Light > &lights) |
virtual bool | SetProjection (float fov, float znear=1.0f, float zfar=1.0e6f, DWORD type=PROJECTION_PERSPECTIVE) |
virtual bool | SetRenderState (RENDER_STATE state, DWORD value) |
virtual bool | SetBlendType (int blend_type) |
virtual bool | DrawPolys (int npolys, Poly *p) |
virtual bool | DrawScreenPolys (int npolys, Poly *p, int blend=0) |
virtual bool | DrawSolid (Solid *s, DWORD blend_modes=0xf) |
virtual bool | DrawShadow (Solid *s, int nverts, Vec3 *verts, bool vis=false) |
virtual bool | DrawLines (int nlines, Vec3 *v, Color c, int blend=0) |
virtual bool | DrawScreenLines (int nlines, float *v, Color c, int blend=0) |
virtual bool | DrawPoints (VertexSet *v) |
virtual bool | DrawPolyOutline (Poly *p) |
virtual bool | UseMaterial (Material *m) |
virtual bool | UseXFont (const char *name, int size, bool b, bool i) |
virtual bool | DrawText (const char *text, int count, const Rect &rect, DWORD format, Color c) |
virtual void | PreloadTexture (Bitmap *bmp) |
virtual void | PreloadSurface (Surface *s) |
virtual void | InvalidateCache () |
Public Member Functions inherited from Video | |
Video () | |
virtual | ~Video () |
STATUS | Status () const |
virtual bool | IsWindowed () const |
virtual bool | IsFullScreen () const |
virtual bool | IsHardwareTL () const |
virtual bool | IsShadowEnabled () const |
virtual bool | IsBumpMapEnabled () const |
virtual bool | IsSpecMapEnabled () const |
virtual void | SetShadowEnabled (bool e) |
virtual void | SetBumpMapEnabled (bool e) |
virtual void | SetSpecMapEnabled (bool e) |
const Camera * | GetCamera () const |
const RenderStats & | GetStats () const |
Static Public Member Functions | |
static IDirect3DDevice9 * | GetD3DDevice9 () |
static void | CreateD3DMatrix (D3DMATRIX &result, const Matrix &m, const Point &p) |
static void | CreateD3DMatrix (D3DMATRIX &result, const Matrix &m, const Vec3 &v) |
static void | CreateD3DMaterial (D3DMATERIAL9 &result, const Material &mtl) |
static IDirect3DDevice9 * | GetD3DDevice9 () |
static void | CreateD3DMatrix (D3DMATRIX &result, const Matrix &m, const Point &p) |
static void | CreateD3DMatrix (D3DMATRIX &result, const Matrix &m, const Vec3 &v) |
static void | CreateD3DMaterial (D3DMATERIAL9 &result, const Material &mtl) |
Static Public Member Functions inherited from Video | |
static Video * | GetInstance () |
Definition at line 40 of file VideoDX9.h.
VideoDX9::VideoDX9 | ( | const HWND & | window, |
VideoSettings * | vs | ||
) |
Definition at line 244 of file VideoDX9.cpp.
|
virtual |
Definition at line 425 of file VideoDX9.cpp.
VideoDX9::VideoDX9 | ( | const HWND & | window, |
VideoSettings * | vs | ||
) |
|
virtual |
|
virtual |
Reimplemented from Video.
Definition at line 1095 of file VideoDX9.cpp.
|
virtual |
Reimplemented from Video.
|
virtual |
Reimplemented from Video.
Definition at line 911 of file VideoDX9.cpp.
|
virtual |
Reimplemented from Video.
|
virtual |
Reimplemented from Video.
Definition at line 934 of file VideoDX9.cpp.
|
static |
Definition at line 1081 of file VideoDX9.cpp.
|
static |
Definition at line 1033 of file VideoDX9.cpp.
|
static |
|
static |
Definition at line 1057 of file VideoDX9.cpp.
|
inlinevirtual |
Definition at line 73 of file VideoDX9.h.
|
inlinevirtual |
Definition at line 73 of file VideoDX9.h.
|
inlinevirtual |
Reimplemented from Video.
Definition at line 80 of file VideoDX9.h.
|
inlinevirtual |
Reimplemented from Video.
Definition at line 80 of file VideoDX9.h.
|
inlinevirtual |
Reimplemented from Video.
Definition at line 62 of file VideoDX9.h.
|
inlinevirtual |
Reimplemented from Video.
Definition at line 62 of file VideoDX9.h.
|
inlinevirtual |
Definition at line 72 of file VideoDX9.h.
|
inlinevirtual |
Definition at line 72 of file VideoDX9.h.
Reimplemented from Video.
Definition at line 2688 of file VideoDX9.cpp.
Reimplemented from Video.
|
virtual |
Reimplemented from Video.
Definition at line 2824 of file VideoDX9.cpp.
|
virtual |
Reimplemented from Video.
Definition at line 2507 of file VideoDX9.cpp.
|
virtual |
Reimplemented from Video.
Definition at line 1745 of file VideoDX9.cpp.
|
virtual |
Reimplemented from Video.
Definition at line 2753 of file VideoDX9.cpp.
|
virtual |
Reimplemented from Video.
|
virtual |
Reimplemented from Video.
Definition at line 1949 of file VideoDX9.cpp.
|
virtual |
Reimplemented from Video.
Reimplemented from Video.
Definition at line 2560 of file VideoDX9.cpp.
Reimplemented from Video.
|
virtual |
Reimplemented from Video.
Definition at line 2073 of file VideoDX9.cpp.
|
virtual |
Reimplemented from Video.
|
virtual |
Reimplemented from Video.
Definition at line 2916 of file VideoDX9.cpp.
|
virtual |
Reimplemented from Video.
|
virtual |
Reimplemented from Video.
|
virtual |
Reimplemented from Video.
Definition at line 1668 of file VideoDX9.cpp.
|
inlinevirtual |
Reimplemented from Video.
Definition at line 83 of file VideoDX9.h.
|
inlinevirtual |
Reimplemented from Video.
Definition at line 83 of file VideoDX9.h.
|
static |
|
static |
Definition at line 450 of file VideoDX9.cpp.
|
inlinevirtual |
Reimplemented from Video.
Definition at line 47 of file VideoDX9.h.
|
inlinevirtual |
Reimplemented from Video.
Definition at line 47 of file VideoDX9.h.
|
virtual |
Reimplemented from Video.
Definition at line 1253 of file VideoDX9.cpp.
|
inlinevirtual |
Reimplemented from Video.
Definition at line 61 of file VideoDX9.h.
|
inlinevirtual |
Reimplemented from Video.
Definition at line 61 of file VideoDX9.h.
|
virtual |
Reimplemented from Video.
Definition at line 1014 of file VideoDX9.cpp.
|
virtual |
Reimplemented from Video.
|
inlinevirtual |
Reimplemented from Video.
Definition at line 77 of file VideoDX9.h.
|
inlinevirtual |
Reimplemented from Video.
Definition at line 77 of file VideoDX9.h.
|
virtual |
Reimplemented from Video.
|
virtual |
Reimplemented from Video.
Definition at line 517 of file VideoDX9.cpp.
|
virtual |
Reimplemented from Video.
|
virtual |
Reimplemented from Video.
Definition at line 761 of file VideoDX9.cpp.
|
virtual |
Reimplemented from Video.
Definition at line 747 of file VideoDX9.cpp.
|
virtual |
Reimplemented from Video.
|
virtual |
Reimplemented from Video.
Definition at line 984 of file VideoDX9.cpp.
|
virtual |
Reimplemented from Video.
|
virtual |
Reimplemented from Video.
Definition at line 1000 of file VideoDX9.cpp.
|
virtual |
Reimplemented from Video.
Definition at line 1007 of file VideoDX9.cpp.
|
virtual |
Reimplemented from Video.
Definition at line 959 of file VideoDX9.cpp.
|
virtual |
Reimplemented from Video.
|
virtual |
Reimplemented from Video.
|
virtual |
Reimplemented from Video.
Definition at line 777 of file VideoDX9.cpp.
|
virtual |
Reimplemented from Video.
|
virtual |
Reimplemented from Video.
Definition at line 547 of file VideoDX9.cpp.
|
virtual |
Reimplemented from Video.
Definition at line 992 of file VideoDX9.cpp.
|
virtual |
Reimplemented from Video.
|
virtual |
Reimplemented from Video.
Definition at line 1324 of file VideoDX9.cpp.
|
virtual |
Reimplemented from Video.
Definition at line 818 of file VideoDX9.cpp.
|
virtual |
Reimplemented from Video.
|
virtual |
Reimplemented from Video.
Definition at line 1586 of file VideoDX9.cpp.
|
virtual |
Reimplemented from Video.
Definition at line 1411 of file VideoDX9.cpp.
|
virtual |
Reimplemented from Video.
Definition at line 1490 of file VideoDX9.cpp.
|
virtual |
Reimplemented from Video.
Definition at line 859 of file VideoDX9.cpp.
|
virtual |
Reimplemented from Video.
Reimplemented from Video.
Definition at line 1331 of file VideoDX9.cpp.
Reimplemented from Video.
Definition at line 892 of file VideoDX9.cpp.
Reimplemented from Video.
|
virtual |
Reimplemented from Video.
Definition at line 1428 of file VideoDX9.cpp.
|
virtual |
Reimplemented from Video.
|
virtual |
Reimplemented from Video.
|
virtual |
Reimplemented from Video.
Definition at line 1515 of file VideoDX9.cpp.
|
virtual |
Definition at line 461 of file VideoDX9.cpp.
|
virtual |
|
virtual |
Reimplemented from Video.
Definition at line 526 of file VideoDX9.cpp.
|
virtual |
Reimplemented from Video.
|
virtual |
Reimplemented from Video.
|
virtual |
Reimplemented from Video.
Definition at line 1281 of file VideoDX9.cpp.
|
virtual |
Reimplemented from Video.
Definition at line 1273 of file VideoDX9.cpp.
|
virtual |
Reimplemented from Video.
|
virtual |
Reimplemented from Video.
Definition at line 1622 of file VideoDX9.cpp.
|
virtual |
Reimplemented from Video.
Definition at line 2866 of file VideoDX9.cpp.
|
virtual |
Reimplemented from Video.
Definition at line 2875 of file VideoDX9.cpp.
|
virtual |
Reimplemented from Video.
|
virtual |
Reimplemented from Video.
Definition at line 736 of file VideoDX9.cpp.
|
virtual |
Reimplemented from Video.
|
inlinevirtual |
Reimplemented from Video.
Definition at line 60 of file VideoDX9.h.
|
inlinevirtual |
Reimplemented from Video.
Definition at line 60 of file VideoDX9.h.
|
inlinevirtual |
Reimplemented from Video.
Definition at line 78 of file VideoDX9.h.
|
inlinevirtual |
Reimplemented from Video.
Definition at line 78 of file VideoDX9.h.