annotate DirectX11.h @ 2459:e5c88c2b02ab

Audio_GetFirstHardwareDigitalDriver
author Ritor1
date Wed, 30 Jul 2014 11:19:53 +0600
parents 8b04ba723324
children
rev   line source
2416
8b04ba723324 misstake in LoadSound
Ritor1
parents: 2410
diff changeset
1 /*#pragma once
2402
8cee51ce4382 included directx 11
Ritor1
parents:
diff changeset
2 #define WIN32_LEAN_AND_MEAN
8cee51ce4382 included directx 11
Ritor1
parents:
diff changeset
3
2409
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
4 #include "OSWindow.h"
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
5 #include <cstdint>
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
6 #include <cstdio>
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
7
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
8 //#include "lib\legacy_dx\d3d.h"
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
9
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
10 #include "VectorTypes.h"
2402
8cee51ce4382 included directx 11
Ritor1
parents:
diff changeset
11
8cee51ce4382 included directx 11
Ritor1
parents:
diff changeset
12 #include <d3d11.h>
2410
2d3c3d1dff0c added RenderStruct.h
Ritor1
parents: 2409
diff changeset
13 #include "RenderStruct.h"
2402
8cee51ce4382 included directx 11
Ritor1
parents:
diff changeset
14 #pragma comment(lib, "d3d11.lib")
8cee51ce4382 included directx 11
Ritor1
parents:
diff changeset
15
8cee51ce4382 included directx 11
Ritor1
parents:
diff changeset
16 class D3D11
8cee51ce4382 included directx 11
Ritor1
parents:
diff changeset
17 {
8cee51ce4382 included directx 11
Ritor1
parents:
diff changeset
18 HINSTANCE g_hInst;
8cee51ce4382 included directx 11
Ritor1
parents:
diff changeset
19 HWND g_hWnd;
2410
2d3c3d1dff0c added RenderStruct.h
Ritor1
parents: 2409
diff changeset
20 D3D_DRIVER_TYPE g_driverType; //Этот параметр указывает, производить вычисления в видеокарте или в центральном процессоре.
2d3c3d1dff0c added RenderStruct.h
Ritor1
parents: 2409
diff changeset
21 D3D_FEATURE_LEVEL g_featureLevel; //параметр, указывающий, какую версию DirectX поддерживает наша видеокарта.
2d3c3d1dff0c added RenderStruct.h
Ritor1
parents: 2409
diff changeset
22 ID3D11Device* g_pd3dDevice; //устройство d3d11
2d3c3d1dff0c added RenderStruct.h
Ritor1
parents: 2409
diff changeset
23 ID3D11DeviceContext* g_pImmediateContext;// контекст устройства
2d3c3d1dff0c added RenderStruct.h
Ritor1
parents: 2409
diff changeset
24 IDXGISwapChain* g_pSwapChain; // цепочка обмена
2402
8cee51ce4382 included directx 11
Ritor1
parents:
diff changeset
25 ID3D11RenderTargetView* g_pRenderTargetView;
8cee51ce4382 included directx 11
Ritor1
parents:
diff changeset
26
8cee51ce4382 included directx 11
Ritor1
parents:
diff changeset
27
8cee51ce4382 included directx 11
Ritor1
parents:
diff changeset
28 public:
8cee51ce4382 included directx 11
Ritor1
parents:
diff changeset
29
2410
2d3c3d1dff0c added RenderStruct.h
Ritor1
parents: 2409
diff changeset
30 int *pActiveZBuffer;
2d3c3d1dff0c added RenderStruct.h
Ritor1
parents: 2409
diff changeset
31 //IDirectDraw4 *pDirectDraw4;
2d3c3d1dff0c added RenderStruct.h
Ritor1
parents: 2409
diff changeset
32 //IDirectDrawSurface4 *pFrontBuffer4;
2d3c3d1dff0c added RenderStruct.h
Ritor1
parents: 2409
diff changeset
33 //IDirectDrawSurface4 *pBackBuffer4;
2d3c3d1dff0c added RenderStruct.h
Ritor1
parents: 2409
diff changeset
34 ID3D11Texture2D* pBackBuffer;
2d3c3d1dff0c added RenderStruct.h
Ritor1
parents: 2409
diff changeset
35 void *pTargetSurface;
2d3c3d1dff0c added RenderStruct.h
Ritor1
parents: 2409
diff changeset
36 unsigned int uTargetSurfacePitch;
2d3c3d1dff0c added RenderStruct.h
Ritor1
parents: 2409
diff changeset
37 unsigned int bUseColoredLights;
2d3c3d1dff0c added RenderStruct.h
Ritor1
parents: 2409
diff changeset
38 unsigned int bTinting;
2d3c3d1dff0c added RenderStruct.h
Ritor1
parents: 2409
diff changeset
39 unsigned int bUsingSpecular;
2d3c3d1dff0c added RenderStruct.h
Ritor1
parents: 2409
diff changeset
40 uint32_t uFogColor;
2d3c3d1dff0c added RenderStruct.h
Ritor1
parents: 2409
diff changeset
41 unsigned int pHDWaterBitmapIDs[7];
2d3c3d1dff0c added RenderStruct.h
Ritor1
parents: 2409
diff changeset
42 int hd_water_current_frame;
2d3c3d1dff0c added RenderStruct.h
Ritor1
parents: 2409
diff changeset
43 int hd_water_tile_id;
2d3c3d1dff0c added RenderStruct.h
Ritor1
parents: 2409
diff changeset
44 void (*pBeforePresentFunction)();
2d3c3d1dff0c added RenderStruct.h
Ritor1
parents: 2409
diff changeset
45 uint32_t bFogEnabled;
2d3c3d1dff0c added RenderStruct.h
Ritor1
parents: 2409
diff changeset
46 RenderBillboardD3D pBillboardRenderListD3D[1000];
2d3c3d1dff0c added RenderStruct.h
Ritor1
parents: 2409
diff changeset
47 unsigned int uNumBillboardsToDraw;
2d3c3d1dff0c added RenderStruct.h
Ritor1
parents: 2409
diff changeset
48
2402
8cee51ce4382 included directx 11
Ritor1
parents:
diff changeset
49 D3D11():
8cee51ce4382 included directx 11
Ritor1
parents:
diff changeset
50 g_hInst(NULL), g_hWnd(NULL), g_driverType(D3D_DRIVER_TYPE_NULL), g_featureLevel(D3D_FEATURE_LEVEL_11_0),
8cee51ce4382 included directx 11
Ritor1
parents:
diff changeset
51 g_pd3dDevice(NULL), g_pImmediateContext(NULL), g_pSwapChain(NULL), g_pRenderTargetView(NULL){}
8cee51ce4382 included directx 11
Ritor1
parents:
diff changeset
52
8cee51ce4382 included directx 11
Ritor1
parents:
diff changeset
53 HRESULT InitDevice(); // Инициализация устройств DirectX
8cee51ce4382 included directx 11
Ritor1
parents:
diff changeset
54 void CleanupDevice(); // Удаление созданнных устройств DirectX
2409
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
55 //void Render(); // Функция рисования
2410
2d3c3d1dff0c added RenderStruct.h
Ritor1
parents: 2409
diff changeset
56
2409
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
57 bool Initialize(OSWindow *window, bool bColoredLights, uint32_t uDetailLevel, bool bTinting);
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
58
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
59
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
60 void ClearBlack();
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
61 void PresentBlackScreen();
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
62
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
63 void SaveWinnersCertificate(const char *a1);
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
64 void ClearTarget(unsigned int uColor);
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
65 void Present();
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
66
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
67 void _49FD3A_fullscreen();
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
68 bool InitializeFullscreen();
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
69
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
70 void CreateZBuffer();
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
71 void Release();
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
72
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
73 bool SwitchToWindow();
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
74 void RasterLine2D(signed int uX, signed int uY, signed int uZ, signed int uW, unsigned __int16 uColor);
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
75 void ClearZBuffer(int a2, int a3);
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
76 void SetRasterClipRect(unsigned int uX, unsigned int uY, unsigned int uZ, unsigned int uW);
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
77 bool LockSurface_DDraw4(IDirectDrawSurface4 *pSurface, DDSURFACEDESC2 *pDesc, unsigned int uLockFlags);
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
78 void GetTargetPixelFormat(DDPIXELFORMAT *pOut);
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
79 void LockRenderSurface(void **pOutSurfacePtr, unsigned int *pOutPixelsPerRow);
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
80
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
81 void UnlockBackBuffer();
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
82 void RestoreBackBuffer();
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
83
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
84 void LockFrontBuffer(void **pOutSurface, unsigned int *pOutPixelsPerRow);
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
85 void UnlockFrontBuffer();
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
86 void RestoreFrontBuffer();
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
87
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
88 void BltToFront(RECT *pDstRect, IDirectDrawSurface *pSrcSurface, RECT *pSrcRect, unsigned int uBltFlags);
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
89 void BltBackToFontFast(int a2, int a3, RECT *a4);
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
90 void BeginSceneD3D();
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
91
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
92 unsigned int GetActorTintColor(float a2, int tint, int a4, int a5, RenderBillboard *a6);
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
93
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
94 void DrawPolygon(unsigned int uNumVertices, struct Polygon *a3, ODMFace *a4, IDirect3DTexture2 *pTexture);
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
95 void DrawTerrainPolygon(unsigned int uNumVertices, struct Polygon *a4, IDirect3DTexture2 *a5, bool transparent, bool clampAtTextureBorders);
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
96 void DrawIndoorPolygon(unsigned int uNumVertices, struct BLVFace *a3, IDirect3DTexture2 *pHwTex, struct Texture *pTex, int uPackedID, unsigned int uColor, int a8);
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
97
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
98 void MakeParticleBillboardAndPush_BLV(RenderBillboardTransform_local0 *a2, IDirect3DTexture2 *a3, unsigned int uDiffuse, int angle);
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
99 void MakeParticleBillboardAndPush_ODM(RenderBillboardTransform_local0 *a2, IDirect3DTexture2 *a3, unsigned int uDiffuse, int angle);
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
100
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
101 void DrawBillboards_And_MaybeRenderSpecialEffects_And_EndScene();
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
102 void DrawBillboard_Indoor(RenderBillboardTransform_local0 *pSoftBillboard, Sprite *pSprite, int dimming_level);
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
103 void _4A4CC9_AddSomeBillboard(struct stru6_stru1_indoor_sw_billboard *a1, int diffuse);
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
104 void TransformBillboardsAndSetPalettesODM();
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
105 void DrawBillboardList_BLV();
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
106
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
107 void DrawProjectile(float srcX, float srcY, float a3, float a4, float dstX, float dstY, float a7, float a8, IDirect3DTexture2 *a9);
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
108 bool LoadTexture(const char *pName, unsigned int bMipMaps, IDirectDrawSurface4 **pOutSurface, IDirect3DTexture2 **pOutTexture);
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
109 bool MoveSpriteToDevice(Sprite *pSprite);
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
110
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
111 void BeginScene();
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
112 void EndScene();
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
113 void ScreenFade(unsigned int color, float t);
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
114
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
115 void SetTextureClipRect(unsigned int uX, unsigned int uY, unsigned int uZ, unsigned int uW);
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
116 void ResetTextureClipRect();
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
117 void DrawTextureRGB(unsigned int uOutX, unsigned int uOutY, RGBTexture *a4);
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
118 void CreditsTextureScroll(unsigned int pX, unsigned int pY, int move_X, int move_Y, RGBTexture *pTexture);
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
119 void DrawTextureIndexed(unsigned int uX, unsigned int uY, struct Texture *a4);
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
120
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
121 void ZBuffer_Fill_2(signed int a2, signed int a3, struct Texture *pTexture, int a5);
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
122 void DrawMaskToZBuffer(signed int uOutX, unsigned int uOutY, struct Texture *pTexture, int zVal);
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
123 void DrawTextureTransparent(unsigned int uX, unsigned int uY, struct Texture *pTexture);
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
124 void DrawAura(unsigned int a2, unsigned int a3, struct Texture *a4, struct Texture *a5, int a6, int a7, int a8);
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
125 void _4A65CC(unsigned int x, unsigned int y, struct Texture *a4, struct Texture *a5, int a6, int a7, int a8);
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
126
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
127 void DrawTransparentRedShade(unsigned int a2, unsigned int a3, struct Texture *a4);
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
128 void DrawTransparentGreenShade(signed int a2, signed int a3, struct Texture *pTexture);
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
129 void DrawFansTransparent(const RenderVertexD3D3 *vertices, unsigned int num_vertices);
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
130
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
131 void DrawMasked(signed int a2, signed int a3, struct Texture *pTexture, unsigned __int16 mask);
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
132 void GetLeather(unsigned int a2, unsigned int a3, struct Texture *a4, __int16 height);
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
133
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
134 void DrawTextPalette(int x, int y, unsigned char* font_pixels, int a5, unsigned int uFontHeight, unsigned __int16 *pPalette, int a8);
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
135 void DrawText(signed int uOutX, signed int uOutY, unsigned __int8 *pFontPixels, unsigned int uCharWidth, unsigned int uCharHeight, unsigned __int16 *pFontPalette, unsigned __int16 uFaceColor, unsigned __int16 uShadowColor);
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
136
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
137 void FillRectFast(unsigned int uX, unsigned int uY, unsigned int uWidth, unsigned int uHeight, unsigned int uColor16);
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
138 void _4A6DF5(unsigned __int16 *pBitmap, unsigned int uBitmapPitch, struct Vec2_int_ *pBitmapXY, void *pTarget, unsigned int uTargetPitch, Vec4_int_ *a7);
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
139 void DrawTranslucent(unsigned int a2, unsigned int a3, struct Texture *a4);
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
140
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
141 void DrawBuildingsD3D();
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
142 //struct BSPModel *DrawBuildingsSW();
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
143 //int OnOutdoorRedrawSW();
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
144
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
145 void DrawIndoorSky(unsigned int uNumVertices, unsigned int uFaceID);
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
146 void DrawOutdoorSkyD3D();
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
147 //int DrawSkySW(struct Span *a1, Polygon *a2, int a3);
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
148 void DrawOutdoorSkyPolygon(unsigned int uNumVertices, struct Polygon *pSkyPolygon, IDirect3DTexture2 *pTexture);
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
149 void DrawIndoorSkyPolygon(signed int uNumVertices, struct Polygon *pSkyPolygon, IDirect3DTexture2 *pTexture);
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
150
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
151 void PrepareDecorationsRenderList_ODM();
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
152 void DrawSpriteObjects_ODM();
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
153
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
154 //float DrawBezierTerrain();
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
155 void RenderTerrainD3D();
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
156 void DrawTerrainD3D(int a1, int edx0, int a3, int unk4);
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
157 //void DrawTerrainSW(int a1, int a2, int a3, int a4);
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
158
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
159 //void ExecOutdoorDrawSW();
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
160 void ChangeBetweenWinFullscreenModes();
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
161 bool AreRenderSurfacesOk();
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
162 bool IsGammaSupported();
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
163
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
164 void SaveScreenshot(const char *pFilename, unsigned int width, unsigned int height);
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
165 void PackScreenshot(unsigned int width, unsigned int height, void *out_data, unsigned int data_size, unsigned int *screenshot_size);
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
166 void SavePCXScreenshot();
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
167
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
168 int _46А6АС_GetActorsInViewport(int pDepth);
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
169
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
170 void BeginLightmaps();
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
171 void EndLightmaps();
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
172 void BeginLightmaps2();
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
173 void EndLightmaps2();
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
174 bool DrawLightmap(struct Lightmap *pLightmap, struct Vec3_float_ *pColorMult, float z_bias);
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
175
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
176 void BeginDecals();
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
177 void EndDecals();
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
178 void DrawDecal(struct Decal *pDecal, float z_bias);
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
179
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
180 void do_draw_debug_line_d3d(const RenderVertexD3D3 *pLineBegin, signed int sDiffuseBegin, const RenderVertexD3D3 *pLineEnd, signed int sDiffuseEnd, float z_stuff);
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
181 void DrawLines(const RenderVertexD3D3 *vertices, unsigned int num_vertices);
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
182
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
183 void DrawSpecialEffectsQuad(const RenderVertexD3D3 *vertices, IDirect3DTexture2 *texture);
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
184
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
185 void am_Blt_Copy(RECT *pSrcRect, POINT *pTargetXY, int a3);
b29880e9ee79 function prototypes
Ritor1
parents: 2402
diff changeset
186 void am_Blt_Chroma(RECT *pSrcRect, POINT *pTargetPoint, int a3, int blend_mode);
2410
2d3c3d1dff0c added RenderStruct.h
Ritor1
parents: 2409
diff changeset
187
2d3c3d1dff0c added RenderStruct.h
Ritor1
parents: 2409
diff changeset
188 inline void ToggleTint() {bTinting = !bTinting;}
2d3c3d1dff0c added RenderStruct.h
Ritor1
parents: 2409
diff changeset
189 inline void ToggleColoredLights() {bUseColoredLights = !bUseColoredLights;}
2d3c3d1dff0c added RenderStruct.h
Ritor1
parents: 2409
diff changeset
190
2d3c3d1dff0c added RenderStruct.h
Ritor1
parents: 2409
diff changeset
191 inline unsigned int GetRenderWidth() {return window->GetWidth();}
2d3c3d1dff0c added RenderStruct.h
Ritor1
parents: 2409
diff changeset
192 inline unsigned int GetRenderHeight() {return window->GetHeight();}
2d3c3d1dff0c added RenderStruct.h
Ritor1
parents: 2409
diff changeset
193
2d3c3d1dff0c added RenderStruct.h
Ritor1
parents: 2409
diff changeset
194
2d3c3d1dff0c added RenderStruct.h
Ritor1
parents: 2409
diff changeset
195 friend void Present_NoColorKey();
2d3c3d1dff0c added RenderStruct.h
Ritor1
parents: 2409
diff changeset
196
2402
8cee51ce4382 included directx 11
Ritor1
parents:
diff changeset
197 };
2416
8b04ba723324 misstake in LoadSound
Ritor1
parents: 2410
diff changeset
198 */