Mercurial > mm7
changeset 2526:b1c516bf1102
IRender c-tor
author | a.parshin |
---|---|
date | Fri, 10 Oct 2014 19:23:27 +0300 |
parents | 4cc81f981afb |
children | 8f12e6a1fcc2 |
files | Engine/Graphics/IRender.h Engine/Graphics/Render.cpp Engine/Graphics/RenderD3D11.cpp |
diffstat | 3 files changed, 23 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/Engine/Graphics/IRender.h Fri Oct 10 18:28:04 2014 +0300 +++ b/Engine/Graphics/IRender.h Fri Oct 10 19:23:27 2014 +0300 @@ -140,6 +140,26 @@ + inline IRender() + { + pActiveZBuffer = 0; + pDirectDraw4 = 0; + pFrontBuffer4 = 0; + pBackBuffer4 = 0; + pTargetSurface = 0; + uTargetSurfacePitch = 0; + bUseColoredLights = 0; + bTinting = 0; + bUsingSpecular = 0; + uFogColor = 0; + memset(pHDWaterBitmapIDs, 0, sizeof(pHDWaterBitmapIDs)); + hd_water_current_frame = 0; + hd_water_tile_id = 0; + pBeforePresentFunction = 0; + bFogEnabled; + memset(pBillboardRenderListD3D, 0, sizeof(pBillboardRenderListD3D)); + uNumBillboardsToDraw = 0; + } int *pActiveZBuffer; IDirectDraw4 *pDirectDraw4;
--- a/Engine/Graphics/Render.cpp Fri Oct 10 18:28:04 2014 +0300 +++ b/Engine/Graphics/Render.cpp Fri Oct 10 19:23:27 2014 +0300 @@ -2132,7 +2132,7 @@ //----- (0049E992) -------------------------------------------------------- -Render::Render() +Render::Render(): IRender() { //Render *v1; // esi@1 // int v2; // eax@1
--- a/Engine/Graphics/RenderD3D11.cpp Fri Oct 10 18:28:04 2014 +0300 +++ b/Engine/Graphics/RenderD3D11.cpp Fri Oct 10 19:23:27 2014 +0300 @@ -19,7 +19,7 @@ } -RenderD3D11::RenderD3D11() {} +RenderD3D11::RenderD3D11(): IRender() {} RenderD3D11::~RenderD3D11() {} @@ -45,7 +45,7 @@ void RenderD3D11::RestoreBackBuffer() {} void RenderD3D11::BltToFront(RECT *pDstRect, IDirectDrawSurface *pSrcSurface, RECT *pSrcRect, unsigned int uBltFlags) {__debugbreak();} void RenderD3D11::BltBackToFontFast(int a2, int a3, RECT *a4) {__debugbreak();} -void RenderD3D11::BeginSceneD3D() {__debugbreak();} +void RenderD3D11::BeginSceneD3D() {} unsigned int RenderD3D11::GetActorTintColor(float a2, int tint, int a4, int a5, RenderBillboard *a6) {__debugbreak(); return 0;} void RenderD3D11::DrawPolygon(unsigned int uNumVertices, struct Polygon *a3, ODMFace *a4, IDirect3DTexture2 *pTexture) {__debugbreak();} void RenderD3D11::DrawTerrainPolygon(unsigned int uNumVertices, struct Polygon *a4, IDirect3DTexture2 *a5, bool transparent, bool clampAtTextureBorders) {__debugbreak();}