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 1094 of file VideoDX9.cpp.
|
virtual |
Reimplemented from Video.
|
virtual |
Reimplemented from Video.
Definition at line 910 of file VideoDX9.cpp.
|
virtual |
Reimplemented from Video.
|
virtual |
Reimplemented from Video.
Definition at line 933 of file VideoDX9.cpp.
|
static |
Definition at line 1080 of file VideoDX9.cpp.
|
static |
Definition at line 1032 of file VideoDX9.cpp.
|
static |
|
static |
Definition at line 1056 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 2687 of file VideoDX9.cpp.
Reimplemented from Video.
|
virtual |
Reimplemented from Video.
Definition at line 2823 of file VideoDX9.cpp.
|
virtual |
Reimplemented from Video.
Definition at line 2506 of file VideoDX9.cpp.
|
virtual |
Reimplemented from Video.
Definition at line 1744 of file VideoDX9.cpp.
|
virtual |
Reimplemented from Video.
Definition at line 2752 of file VideoDX9.cpp.
|
virtual |
Reimplemented from Video.
|
virtual |
Reimplemented from Video.
Definition at line 1948 of file VideoDX9.cpp.
|
virtual |
Reimplemented from Video.
Reimplemented from Video.
Definition at line 2559 of file VideoDX9.cpp.
Reimplemented from Video.
|
virtual |
Reimplemented from Video.
Definition at line 2072 of file VideoDX9.cpp.
|
virtual |
Reimplemented from Video.
|
virtual |
Reimplemented from Video.
Definition at line 2915 of file VideoDX9.cpp.
|
virtual |
Reimplemented from Video.
|
virtual |
Reimplemented from Video.
|
virtual |
Reimplemented from Video.
Definition at line 1667 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 1252 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 1013 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 760 of file VideoDX9.cpp.
|
virtual |
Reimplemented from Video.
Definition at line 746 of file VideoDX9.cpp.
|
virtual |
Reimplemented from Video.
|
virtual |
Reimplemented from Video.
Definition at line 983 of file VideoDX9.cpp.
|
virtual |
Reimplemented from Video.
|
virtual |
Reimplemented from Video.
Definition at line 999 of file VideoDX9.cpp.
|
virtual |
Reimplemented from Video.
Definition at line 1006 of file VideoDX9.cpp.
|
virtual |
Reimplemented from Video.
Definition at line 958 of file VideoDX9.cpp.
|
virtual |
Reimplemented from Video.
|
virtual |
Reimplemented from Video.
|
virtual |
Reimplemented from Video.
Definition at line 776 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 991 of file VideoDX9.cpp.
|
virtual |
Reimplemented from Video.
|
virtual |
Reimplemented from Video.
Definition at line 1323 of file VideoDX9.cpp.
|
virtual |
Reimplemented from Video.
Definition at line 817 of file VideoDX9.cpp.
|
virtual |
Reimplemented from Video.
|
virtual |
Reimplemented from Video.
Definition at line 1585 of file VideoDX9.cpp.
|
virtual |
Reimplemented from Video.
Definition at line 1410 of file VideoDX9.cpp.
|
virtual |
Reimplemented from Video.
Definition at line 1489 of file VideoDX9.cpp.
|
virtual |
Reimplemented from Video.
Definition at line 858 of file VideoDX9.cpp.
|
virtual |
Reimplemented from Video.
Reimplemented from Video.
Definition at line 1330 of file VideoDX9.cpp.
Reimplemented from Video.
Definition at line 891 of file VideoDX9.cpp.
Reimplemented from Video.
|
virtual |
Reimplemented from Video.
Definition at line 1427 of file VideoDX9.cpp.
|
virtual |
Reimplemented from Video.
|
virtual |
Reimplemented from Video.
|
virtual |
Reimplemented from Video.
Definition at line 1514 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 1280 of file VideoDX9.cpp.
|
virtual |
Reimplemented from Video.
Definition at line 1272 of file VideoDX9.cpp.
|
virtual |
Reimplemented from Video.
|
virtual |
Reimplemented from Video.
Definition at line 1621 of file VideoDX9.cpp.
|
virtual |
Reimplemented from Video.
Definition at line 2865 of file VideoDX9.cpp.
|
virtual |
Reimplemented from Video.
Definition at line 2874 of file VideoDX9.cpp.
|
virtual |
Reimplemented from Video.
|
virtual |
Reimplemented from Video.
Definition at line 735 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.