Mercurial > mm7
diff Render.h @ 2153:d28d3c006077
Some Render decoupling.
author | Nomad |
---|---|
date | Thu, 09 Jan 2014 02:34:20 +0200 |
parents | d44b7775fc06 |
children | 9bd7522cdbbb |
line wrap: on
line diff
--- a/Render.h Thu Jan 09 01:37:34 2014 +0200 +++ b/Render.h Thu Jan 09 02:34:20 2014 +0200 @@ -382,6 +382,7 @@ void DrawBillboardList_BLV(); void __cdecl sub_4A19B0(); + //unsigned int bUserDirect3D; //unsigned int bStartInWindow; unsigned int uDesiredDirect3DDevice; @@ -455,8 +456,8 @@ int hd_water_tile_id; IDirectDrawSurface4 *pSurface; IDirect3DTexture2 *pTexture; - int field_1036B8; - int _gpu_memory_used; + //int field_1036B8; + //int _gpu_memory_used; void ( *pBeforePresentFunction)(); int field_1036C4; uint32_t bFogEnabled; @@ -468,6 +469,12 @@ //unsigned __int16 *pCurrentlyLockedSurfaceDataPtr; //void *pCurrentlyLockedSoftSurface; + protected: + void DoRenderBillboards_D3D(); + void SetBillboardBlendOptions(RenderBillboardD3D::OpacityType a1); + void DrawBorderTiles(struct Polygon *poly); + + public: inline void WritePixel16(int x, int y, unsigned __int16 color) { if (ddpfPrimarySuface.dwRGBBitCount == 32) @@ -499,6 +506,16 @@ } + inline void ToggleTint() {bTinting = !bTinting;} + inline void ToggleColoredLights() {bUseColoredLights = !bUseColoredLights;} + + inline void Sub01() + { + if (pRenderD3D && !bWindowMode) + _49FD3A(); + } + + //int windowed_mode_width; //int windowed_mode_height; };