Mercurial > mm7
comparison Render.h @ 1512:af57b3b76fe4
Clean and decouple. (1)
author | yoctozepto |
---|---|
date | Mon, 02 Sep 2013 15:23:09 +0200 |
parents | ab6bf38b2940 |
children | 75fafd8ced59 |
comparison
equal
deleted
inserted
replaced
1511:948191fca433 | 1512:af57b3b76fe4 |
---|---|
1 #pragma once | 1 #pragma once |
2 #include <stdio.h> | 2 |
3 #include <cstdint> | |
4 #include <cstdio> | |
3 | 5 |
4 #include "lib\legacy_dx\d3d.h" | 6 #include "lib\legacy_dx\d3d.h" |
5 #include "OSAPI.h" | 7 #include "OSAPI.h" |
6 | 8 |
7 #include "VectorTypes.h" | 9 #include "VectorTypes.h" |
167 bool Release(); | 169 bool Release(); |
168 | 170 |
169 HWLTexture *LoadTexture(const char *pName, int bMipMaps); | 171 HWLTexture *LoadTexture(const char *pName, int bMipMaps); |
170 | 172 |
171 FILE *pFile; | 173 FILE *pFile; |
172 uint uSignature; | 174 uint32_t uSignature; |
173 unsigned int uDataOffset; | 175 unsigned int uDataOffset; |
174 unsigned int uNumItems; | 176 unsigned int uNumItems; |
175 char *pSpriteNames[50000]; | 177 char *pSpriteNames[50000]; |
176 int pSpriteOffsets[50000]; | 178 int pSpriteOffsets[50000]; |
177 int bDumpDebug; | 179 int bDumpDebug; |
265 Render(); | 267 Render(); |
266 ~Render(); | 268 ~Render(); |
267 | 269 |
268 static Render *Create() {return new Render;} | 270 static Render *Create() {return new Render;} |
269 | 271 |
270 bool Initialize(bool bWindowed, uint uDefaultDevice, | 272 bool Initialize(bool bWindowed, uint32_t uDefaultDevice, |
271 bool bColoredLights, uint uDetailLevel, uint bTinting); | 273 bool bColoredLights, uint32_t uDetailLevel, bool bTinting); |
272 | 274 |
273 | 275 |
274 bool IsColorKeySupported(IDirectDraw4 *); | 276 bool IsColorKeySupported(IDirectDraw4 *); |
275 void _49EBF1(); | 277 void _49EBF1(); |
276 void ClearBlack(); | 278 void ClearBlack(); |
433 unsigned int uLevelOfDetail; | 435 unsigned int uLevelOfDetail; |
434 unsigned int uMaxDeviceTextureDim; | 436 unsigned int uMaxDeviceTextureDim; |
435 unsigned int uMinDeviceTextureDim; | 437 unsigned int uMinDeviceTextureDim; |
436 int field_10365C; | 438 int field_10365C; |
437 unsigned int bUsingSpecular; | 439 unsigned int bUsingSpecular; |
438 uint uFogColor; | 440 uint32_t uFogColor; |
439 int field_103668; | 441 int field_103668; |
440 unsigned int pHDWaterBitmapIDs[7]; | 442 unsigned int pHDWaterBitmapIDs[7]; |
441 char field_103688[32]; | 443 char field_103688[32]; |
442 int hd_water_current_frame; | 444 int hd_water_current_frame; |
443 int hd_water_tile_id; | 445 int hd_water_tile_id; |
445 IDirect3DTexture2 *pTexture; | 447 IDirect3DTexture2 *pTexture; |
446 int field_1036B8; | 448 int field_1036B8; |
447 int _gpu_memory_used; | 449 int _gpu_memory_used; |
448 void ( *pBeforePresentFunction)(); | 450 void ( *pBeforePresentFunction)(); |
449 int field_1036C4; | 451 int field_1036C4; |
450 uint bFogEnabled; | 452 uint32_t bFogEnabled; |
451 int field_1036CC; | 453 int field_1036CC; |
452 RenderBillboardD3D pBillboardRenderListD3D[1000]; | 454 RenderBillboardD3D pBillboardRenderListD3D[1000]; |
453 unsigned int uNumBillboardsToDraw; | 455 unsigned int uNumBillboardsToDraw; |
454 int field_129834; | 456 int field_129834; |
455 unsigned int uCurrentlyLockedSurfacePitch; | 457 unsigned int uCurrentlyLockedSurfacePitch; |