World of Might and Magic  0.2.0
Open reimplementation of Might and Magic 6 7 8 game engine
Render.h
См. документацию.
1 #pragma once
2 
3 #include <d3d.h>
4 #include <ddraw.h>
5 
6 #include <GdiPlus.h>
7 #undef DrawText
8 
9 #include <memory>
10 
11 #include "Engine/Strings.h"
12 #include "Engine/VectorTypes.h"
13 
15 
16 struct ODMFace;
17 class RenderD3D;
18 class Image;
19 
20 class Render : public RenderBase {
21  public:
22  Render();
23  virtual ~Render();
24 
25  virtual bool Initialize(OSWindow *window);
26 
27  virtual Texture *CreateTexture_ColorKey(const String &name, uint16_t colorkey);
28  virtual Texture *CreateTexture_Solid(const String &name);
29  virtual Texture *CreateTexture_Alpha(const String &name);
30 
34 
35  virtual Texture *CreateTexture_Blank(unsigned int width, unsigned int height,
36  IMAGE_FORMAT format, const void *pixels = nullptr);
37 
38  virtual Texture *CreateTexture(const String &name);
39  virtual Texture *CreateSprite(const String &name, unsigned int palette_id,
40  unsigned int lod_sprite_id);
41 
42  virtual void ClearBlack();
43  virtual void PresentBlackScreen();
44 
45  virtual void SaveWinnersCertificate(const char *a1);
46  virtual void ClearTarget(unsigned int uColor);
47  virtual void Present();
48 
49  virtual bool InitializeFullscreen();
50 
51  virtual void CreateZBuffer();
52  virtual void Release();
53 
54  virtual bool SwitchToWindow();
55  virtual void RasterLine2D(int uX, int uY, int uZ, int uW, uint16_t uColor);
56  virtual void ClearZBuffer(int a2, int a3);
57  virtual void RestoreFrontBuffer();
58  virtual void RestoreBackBuffer();
59  virtual void BltBackToFontFast(int a2, int a3, Rect *pSrcRect);
60  virtual void BeginSceneD3D();
61 
62  virtual unsigned int GetActorTintColor(int DimLevel, int tint, float WorldViewX, int a5, RenderBillboard *Billboard);
63 
64  virtual void DrawPolygon(struct Polygon *a3);
65  virtual void DrawTerrainPolygon(struct Polygon *a4, bool transparent,
66  bool clampAtTextureBorders);
67  virtual void DrawIndoorPolygon(unsigned int uNumVertices,
68  struct BLVFace *a3, int uPackedID,
69  unsigned int uColor, int a8);
70 
72  virtual void DrawBillboard_Indoor(SoftwareBillboard *pSoftBillboard,
73  RenderBillboard *billboard);
74  virtual void _4A4CC9_AddSomeBillboard(
75  struct SpellFX_Billboard *a1, int diffuse);
76  virtual void DrawBillboardList_BLV();
77 
78  virtual void DrawProjectile(float srcX, float srcY, float a3, float a4,
79  float dstX, float dstY, float a7, float a8,
80  Texture *texture);
82  virtual bool MoveTextureToDevice(Texture *texture);
83 
84  virtual void Update_Texture(Texture *texture);
85 
86  virtual void DeleteTexture(Texture *texture);
87 
88  virtual void BeginScene();
89  virtual void EndScene();
90  virtual void ScreenFade(unsigned int color, float t);
91 
92  virtual void SetUIClipRect(unsigned int uX, unsigned int uY,
93  unsigned int uZ, unsigned int uW);
94  virtual void ResetUIClipRect();
95 
96  virtual void DrawTextureNew(float u, float v, class Image *);
97  virtual void DrawTextureAlphaNew(float u, float v, class Image *);
98  virtual void DrawTextureCustomHeight(float u, float v, class Image *,
99  int height);
100  virtual void DrawTextureOffset(int x, int y, int offset_x, int offset_y,
101  Image *);
102  virtual void DrawImage(Image *, const Rect &rect);
103 
104  virtual void ZBuffer_Fill_2(signed int a2, signed int a3, Image *pTexture,
105  int a5);
106  virtual void ZDrawTextureAlpha(float u, float v, Image *pTexture, int zVal);
107  virtual void BlendTextures(int x, int y, Image *imgin, Image *imgblend,
108  int time, int start_opacity, int end_opacity);
109  virtual void DrawMonsterPortrait(Rect rc, SpriteFrame *Portrait, int Y_Offset);
110 
111  virtual void DrawMasked(float u, float v, class Image *img,
112  unsigned int color_dimming_level, uint16_t mask);
113  virtual void TexturePixelRotateDraw(float u, float v, Image * img, int time);
114  virtual void DrawTextureGrayShade(float u, float v, class Image *a4);
115  virtual void DrawTransparentRedShade(float u, float v, class Image *a4);
116  virtual void DrawTransparentGreenShade(float u, float v,
117  class Image *pTexture);
118  virtual void DrawFansTransparent(const RenderVertexD3D3 *vertices,
119  unsigned int num_vertices);
120 
121  virtual void DrawTextAlpha(int x, int y, uint8_t *font_pixels, int a5,
122  unsigned int uFontHeight, uint8_t *pPalette,
123  bool present_time_transparency);
124  virtual void DrawText(int uOutX, int uOutY, uint8_t *pFontPixels,
125  unsigned int uCharWidth, unsigned int uCharHeight,
126  uint8_t *pFontPalette, uint16_t uFaceColor,
127  uint16_t uShadowColor);
128 
129  virtual void FillRectFast(unsigned int uX, unsigned int uY,
130  unsigned int uWidth, unsigned int uHeight,
131  unsigned int uColor16);
132 
133  virtual void DrawBuildingsD3D();
134 
135  virtual void DrawIndoorSky(unsigned int uNumVertices, unsigned int uFaceID);
136  virtual void DrawOutdoorSkyD3D();
137 
138  virtual void PrepareDecorationsRenderList_ODM();
139 
140  virtual void RenderTerrainD3D();
141 
142  virtual bool AreRenderSurfacesOk();
143 
144  virtual Image *TakeScreenshot(unsigned int width, unsigned int height);
145  virtual void SaveScreenshot(const String &filename, unsigned int width,
146  unsigned int height);
147  virtual void PackScreenshot(unsigned int width, unsigned int height,
148  void *out_data, unsigned int data_size,
149  unsigned int *screenshot_size);
150  virtual void SavePCXScreenshot();
151 
152  virtual int GetActorsInViewport(int pDepth);
153 
154  virtual void BeginLightmaps();
155  virtual void EndLightmaps();
156  virtual void BeginLightmaps2();
157  virtual void EndLightmaps2();
158  virtual bool DrawLightmap(struct Lightmap *pLightmap,
159  struct Vec3_float_ *pColorMult, float z_bias);
160 
161  virtual void BeginDecals();
162  virtual void EndDecals();
163  virtual void DrawDecal(struct Decal *pDecal, float z_bias);
164 
165  virtual void do_draw_debug_line_d3d(const RenderVertexD3D3 *pLineBegin,
166  signed int sDiffuseBegin,
167  const RenderVertexD3D3 *pLineEnd,
168  signed int sDiffuseEnd, float z_stuff);
169  virtual void DrawLines(const RenderVertexD3D3 *vertices,
170  unsigned int num_vertices);
171 
172  virtual void DrawSpecialEffectsQuad(const RenderVertexD3D3 *vertices,
173  Texture *texture);
174 
175  virtual void am_Blt_Chroma(Rect *pSrcRect, Point *pTargetPoint, int a3,
176  int blend_mode);
177 
178  virtual HWLTexture *LoadHwlBitmap(const char *name);
179  virtual HWLTexture *LoadHwlSprite(const char *name);
180 
181  public:
182  virtual void WritePixel16(int x, int y, uint16_t color);
183 
184  virtual unsigned int GetRenderWidth() const;
185  virtual unsigned int GetRenderHeight() const;
186 
187  friend void Present_NoColorKey();
188 
189  void GetTargetPixelFormat(DDPIXELFORMAT *pOut);
190 
191  protected:
192  IDirectDraw4 *pDirectDraw4;
193  IDirectDrawSurface4 *pFrontBuffer4;
194  IDirectDrawSurface4 *pBackBuffer4;
195 
198  unsigned int bWindowMode;
200  unsigned int uTargetRBits;
201  unsigned int uTargetGBits;
202  unsigned int uTargetBBits;
203  unsigned int uNumD3DSceneBegins;
205  unsigned int uMaxDeviceTextureDim;
206  unsigned int uMinDeviceTextureDim;
207 
208  // 2D drawing
209  Gdiplus::GdiplusStartupInput gdiplusStartupInput;
210  ULONG_PTR gdiplusToken;
211  Gdiplus::Bitmap *p2DSurface;
212  Gdiplus::Graphics *p2DGraphics;
213 
214  void DoRenderBillboards_D3D();
216  unsigned int GetParentBillboardID(unsigned int uBillboardID);
217  unsigned int GetBillboardDrawListSize();
218 
219  void DrawBorderTiles(struct Polygon *poly);
220 
221  unsigned short *MakeScreenshot(signed int width, signed int height);
222  bool CheckTextureStages();
223  void ParseTargetPixelFormat();
224 
225  void CreateClipper(OSWindow *);
226 
227  void SavePCXImage16(const String &filename, uint16_t *picture_data,
228  int width, int height);
229  void SavePCXImage32(const String &filename, uint16_t *picture_data,
230  int width, int height);
231 
232  Gdiplus::Bitmap *BitmapWithImage(Image *image);
233 
234  bool LockSurface_DDraw4(IDirectDrawSurface4 *pSurface,
235  DDSURFACEDESC2 *pDesc, unsigned int uLockFlags);
236  void DrawOutdoorSkyPolygon(struct Polygon *pSkyPolygon);
237  void DrawIndoorSkyPolygon(int uNumVertices, struct Polygon *pSkyPolygon);
238 };
uint16_t
unsigned __int16 uint16_t
Definition: SDL_config.h:37
Render::RemoveTextureFromDevice
virtual void RemoveTextureFromDevice(Texture *texture)
Definition: Render.cpp:2455
Render::DrawTextureGrayShade
virtual void DrawTextureGrayShade(float u, float v, class Image *a4)
Definition: Render.cpp:2841
Render::GetActorTintColor
virtual unsigned int GetActorTintColor(int DimLevel, int tint, float WorldViewX, int a5, RenderBillboard *Billboard)
Definition: Render.cpp:1810
Vec3_float_
Definition: VectorTypes.h:74
Render::gdiplusStartupInput
Gdiplus::GdiplusStartupInput gdiplusStartupInput
Definition: Render.h:209
Render::RenderTerrainD3D
virtual void RenderTerrainD3D()
Definition: Render.cpp:214
SpellFX_Billboard
Definition: SpellFxRenderer.h:13
mask
GLenum GLint GLuint mask
Definition: SDL_opengl_glext.h:660
Render::RasterLine2D
virtual void RasterLine2D(int uX, int uY, int uZ, int uW, uint16_t uColor)
Definition: Render.cpp:1638
Render::SavePCXImage16
void SavePCXImage16(const String &filename, uint16_t *picture_data, int width, int height)
Definition: Render.cpp:1157
v
const GLdouble * v
Definition: SDL_opengl.h:2064
Render::SavePCXScreenshot
virtual void SavePCXScreenshot()
Definition: Render.cpp:1126
VectorTypes.h
Render::ClearTarget
virtual void ClearTarget(unsigned int uColor)
Definition: Render.cpp:1174
Render::CreateTexture_Alpha
virtual Texture * CreateTexture_Alpha(const String &name)
Definition: Render.cpp:88
Render::DrawBuildingsD3D
virtual void DrawBuildingsD3D()
Definition: Render.cpp:3510
Render::DrawTextureCustomHeight
virtual void DrawTextureCustomHeight(float u, float v, class Image *, int height)
Definition: Render.cpp:2795
dstX
GLenum GLint GLint GLint GLint GLuint GLenum GLint GLint dstX
Definition: SDL_opengl_glext.h:2453
Render::GetBillboardDrawListSize
unsigned int GetBillboardDrawListSize()
Definition: Render.cpp:1768
Render::AreRenderSurfacesOk
virtual bool AreRenderSurfacesOk()
Definition: Render.cpp:210
Polygon
Definition: Polygon.h:14
Render::do_draw_debug_line_d3d
virtual void do_draw_debug_line_d3d(const RenderVertexD3D3 *pLineBegin, signed int sDiffuseBegin, const RenderVertexD3D3 *pLineEnd, signed int sDiffuseEnd, float z_stuff)
Definition: Render.cpp:3876
Render::ClearZBuffer
virtual void ClearZBuffer(int a2, int a3)
Definition: Render.cpp:1648
Render::uNumD3DSceneBegins
unsigned int uNumD3DSceneBegins
Definition: Render.h:203
Render::PresentBlackScreen
virtual void PresentBlackScreen()
Definition: Render.cpp:1115
height
EGLSurface EGLint EGLint EGLint EGLint height
Definition: SDL_egl.h:1596
Render::DrawTextureOffset
virtual void DrawTextureOffset(int x, int y, int offset_x, int offset_y, Image *)
Definition: Render.cpp:2815
Render::DrawDecal
virtual void DrawDecal(struct Decal *pDecal, float z_bias)
Definition: Render.cpp:3968
Render::DrawBorderTiles
void DrawBorderTiles(struct Polygon *poly)
Definition: Render.cpp:701
Render::Update_Texture
virtual void Update_Texture(Texture *texture)
Definition: Render.cpp:2448
Render::DrawBillboards_And_MaybeRenderSpecialEffects_And_EndScene
virtual void DrawBillboards_And_MaybeRenderSpecialEffects_And_EndScene()
Definition: Render.cpp:1800
Render::EndLightmaps2
virtual void EndLightmaps2()
Definition: Render.cpp:3864
Decal
Definition: DecalBuilder.h:98
Render::EndScene
virtual void EndScene()
Definition: Render.cpp:2512
Render::BitmapWithImage
Gdiplus::Bitmap * BitmapWithImage(Image *image)
Definition: Render.cpp:2742
Render::TexturePixelRotateDraw
virtual void TexturePixelRotateDraw(float u, float v, Image *img, int time)
Definition: Render.cpp:2947
Render::bWindowMode
unsigned int bWindowMode
Definition: Render.h:198
Texture
Definition: Texture.h:4
Render::DrawSpecialEffectsQuad
virtual void DrawSpecialEffectsQuad(const RenderVertexD3D3 *vertices, Texture *texture)
Definition: Render.cpp:4044
Render::Present_NoColorKey
friend void Present_NoColorKey()
Definition: Render.cpp:1245
Render::MoveTextureToDevice
virtual bool MoveTextureToDevice(Texture *texture)
Definition: Render.cpp:2465
Render::pRenderD3D
RenderD3D * pRenderD3D
Definition: Render.h:199
Render::DrawIndoorSky
virtual void DrawIndoorSky(unsigned int uNumVertices, unsigned int uFaceID)
Definition: Render.cpp:5795
RenderBillboardD3D::OpacityType
OpacityType
Definition: IRender.h:149
srcX
GLenum GLint GLint srcX
Definition: SDL_opengl_glext.h:2453
Render::EndLightmaps
virtual void EndLightmaps()
Definition: Render.cpp:3832
Render
Definition: Render.h:20
Render::DrawImage
virtual void DrawImage(Image *, const Rect &rect)
Definition: Render.cpp:2829
Render::DrawTransparentGreenShade
virtual void DrawTransparentGreenShade(float u, float v, class Image *pTexture)
Definition: Render.cpp:2916
Render::SaveScreenshot
virtual void SaveScreenshot(const String &filename, unsigned int width, unsigned int height)
Definition: Render.cpp:3757
Render::CreateTexture_Blank
virtual Texture * CreateTexture_Blank(unsigned int width, unsigned int height, IMAGE_FORMAT format, const void *pixels=nullptr)
Definition: Render.cpp:104
RenderVertexD3D3
Definition: IRender.h:129
Render::WritePixel16
virtual void WritePixel16(int x, int y, uint16_t color)
Definition: Render.cpp:122
Render::ScreenFade
virtual void ScreenFade(unsigned int color, float t)
Definition: Render.cpp:2514
Render::SetBillboardBlendOptions
void SetBillboardBlendOptions(RenderBillboardD3D::OpacityType a1)
Definition: Render.cpp:3253
Render::DrawLightmap
virtual bool DrawLightmap(struct Lightmap *pLightmap, struct Vec3_float_ *pColorMult, float z_bias)
Definition: Render.cpp:1395
texture
GLenum GLenum GLuint texture
Definition: SDL_opengl_glext.h:1181
Render::CreateTexture_ColorKey
virtual Texture * CreateTexture_ColorKey(const String &name, uint16_t colorkey)
Definition: Render.cpp:80
Lightmap
Definition: LightmapBuilder.h:12
HWLTexture
Definition: HWLContainer.h:9
Render::ResetUIClipRect
virtual void ResetUIClipRect()
Definition: Render.cpp:2728
Render::DrawMasked
virtual void DrawMasked(float u, float v, class Image *img, unsigned int color_dimming_level, uint16_t mask)
Definition: Render.cpp:2924
Render::~Render
virtual ~Render()
Definition: Render.cpp:1095
Render::RestoreBackBuffer
virtual void RestoreBackBuffer()
Definition: Render.cpp:1754
Render::BeginScene
virtual void BeginScene()
Definition: Render.cpp:2510
Render::GetParentBillboardID
unsigned int GetParentBillboardID(unsigned int uBillboardID)
Definition: Render.cpp:1772
OSWindow
Definition: OSWindow.h:12
Render::Present
virtual void Present()
Definition: Render.cpp:1178
format
SDL_AudioFormat format
Definition: SDL_audio.h:194
Render::BeginSceneD3D
virtual void BeginSceneD3D()
Definition: Render.cpp:1776
y
EGLSurface EGLint EGLint y
Definition: SDL_egl.h:1596
Render::LockSurface_DDraw4
bool LockSurface_DDraw4(IDirectDrawSurface4 *pSurface, DDSURFACEDESC2 *pDesc, unsigned int uLockFlags)
Definition: Render.cpp:1678
Render::bRequiredTextureStagesAvailable
unsigned int bRequiredTextureStagesAvailable
Definition: Render.h:204
Render::pDirectDraw4
IDirectDraw4 * pDirectDraw4
Definition: Render.h:192
Render::DrawTransparentRedShade
virtual void DrawTransparentRedShade(float u, float v, class Image *a4)
Definition: Render.cpp:2920
Render::DoRenderBillboards_D3D
void DoRenderBillboards_D3D()
Definition: Render.cpp:3210
Render::RestoreFrontBuffer
virtual void RestoreFrontBuffer()
Definition: Render.cpp:1748
Render::BeginLightmaps
virtual void BeginLightmaps()
Definition: Render.cpp:3811
srcY
GLenum GLint GLint GLint srcY
Definition: SDL_opengl_glext.h:2453
RenderBase
Definition: RenderBase.h:6
Render::CheckTextureStages
bool CheckTextureStages()
Definition: Render.cpp:135
Image
Definition: Image.h:19
Render::CreateClipper
void CreateClipper(OSWindow *)
Definition: Render.cpp:1738
SoftwareBillboard
Definition: IRender.h:170
Render::SaveWinnersCertificate
virtual void SaveWinnersCertificate(const char *a1)
Definition: Render.cpp:1133
RenderBillboard
Definition: IRender.h:26
Render::DrawMonsterPortrait
virtual void DrawMonsterPortrait(Rect rc, SpriteFrame *Portrait, int Y_Offset)
Definition: Render.cpp:3120
Render::uTargetGBits
unsigned int uTargetGBits
Definition: Render.h:201
Render::uDesiredDirect3DDevice
unsigned int uDesiredDirect3DDevice
Definition: Render.h:196
x
EGLSurface EGLint x
Definition: SDL_egl.h:1596
Render::GetActorsInViewport
virtual int GetActorsInViewport(int pDepth)
Definition: Render.cpp:3772
Render::PrepareDecorationsRenderList_ODM
virtual void PrepareDecorationsRenderList_ODM()
Definition: Render.cpp:713
Render::ParseTargetPixelFormat
void ParseTargetPixelFormat()
Definition: Render.cpp:1652
Render::BlendTextures
virtual void BlendTextures(int x, int y, Image *imgin, Image *imgblend, int time, int start_opacity, int end_opacity)
Definition: Render.cpp:3038
color
GLuint color
Definition: SDL_opengl_glext.h:1151
Render::TakeScreenshot
virtual Image * TakeScreenshot(unsigned int width, unsigned int height)
Definition: Render.cpp:3751
Render::DrawTextureNew
virtual void DrawTextureNew(float u, float v, class Image *)
Definition: Render.cpp:2811
BLVFace
Definition: Indoor.h:424
Render::pBackBuffer4
IDirectDrawSurface4 * pBackBuffer4
Definition: Render.h:194
Render::BltBackToFontFast
virtual void BltBackToFontFast(int a2, int a3, Rect *pSrcRect)
Definition: Render.cpp:1760
Render::DrawBillboard_Indoor
virtual void DrawBillboard_Indoor(SoftwareBillboard *pSoftBillboard, RenderBillboard *billboard)
Definition: Render.cpp:2140
width
EGLSurface EGLint EGLint EGLint width
Definition: SDL_egl.h:1596
Render::pDefaultZBuffer
int * pDefaultZBuffer
Definition: Render.h:197
Render::DrawBillboardList_BLV
virtual void DrawBillboardList_BLV()
Definition: Render.cpp:178
Render::EndDecals
virtual void EndDecals()
Definition: Render.cpp:3955
Render::_4A4CC9_AddSomeBillboard
virtual void _4A4CC9_AddSomeBillboard(struct SpellFX_Billboard *a1, int diffuse)
Definition: Render.cpp:2382
Render::LoadHwlBitmap
virtual HWLTexture * LoadHwlBitmap(const char *name)
Definition: Render.cpp:2440
Render::MakeScreenshot
unsigned short * MakeScreenshot(signed int width, signed int height)
Definition: Render.cpp:3698
Render::DrawFansTransparent
virtual void DrawFansTransparent(const RenderVertexD3D3 *vertices, unsigned int num_vertices)
Definition: Render.cpp:3905
Render::DrawText
virtual void DrawText(int uOutX, int uOutY, uint8_t *pFontPixels, unsigned int uCharWidth, unsigned int uCharHeight, uint8_t *pFontPalette, uint16_t uFaceColor, uint16_t uShadowColor)
Definition: Render.cpp:2857
Render::DrawProjectile
virtual void DrawProjectile(float srcX, float srcY, float a3, float a4, float dstX, float dstY, float a7, float a8, Texture *texture)
Definition: Render.cpp:2277
window
EGLSurface EGLNativeWindowType * window
Definition: SDL_egl.h:1580
Render::gdiplusToken
ULONG_PTR gdiplusToken
Definition: Render.h:210
Render::PackScreenshot
virtual void PackScreenshot(unsigned int width, unsigned int height, void *out_data, unsigned int data_size, unsigned int *screenshot_size)
Definition: Render.cpp:3764
Render::uMinDeviceTextureDim
unsigned int uMinDeviceTextureDim
Definition: Render.h:206
Render::DrawIndoorSkyPolygon
void DrawIndoorSkyPolygon(int uNumVertices, struct Polygon *pSkyPolygon)
Definition: Render.cpp:6203
Rect
Definition: Rect.h:3
Render::DrawTextAlpha
virtual void DrawTextAlpha(int x, int y, uint8_t *font_pixels, int a5, unsigned int uFontHeight, uint8_t *pPalette, bool present_time_transparency)
Definition: Render.cpp:2880
Render::DeleteTexture
virtual void DeleteTexture(Texture *texture)
Definition: Render.cpp:2451
Render::GetRenderHeight
virtual unsigned int GetRenderHeight() const
Definition: Render.cpp:76
Render::CreateTexture_PCXFromFile
virtual Texture * CreateTexture_PCXFromFile(const String &name)
Definition: Render.cpp:100
Render::uTargetBBits
unsigned int uTargetBBits
Definition: Render.h:202
Render::SetUIClipRect
virtual void SetUIClipRect(unsigned int uX, unsigned int uY, unsigned int uZ, unsigned int uW)
Definition: Render.cpp:2723
t
GLdouble GLdouble t
Definition: SDL_opengl.h:2071
Render::p2DSurface
Gdiplus::Bitmap * p2DSurface
Definition: Render.h:211
Render::GetRenderWidth
virtual unsigned int GetRenderWidth() const
Definition: Render.cpp:75
Render::Initialize
virtual bool Initialize(OSWindow *window)
Definition: Render.cpp:1101
IMAGE_FORMAT
IMAGE_FORMAT
Definition: Image.h:4
Render::pFrontBuffer4
IDirectDrawSurface4 * pFrontBuffer4
Definition: Render.h:193
uint8_t
unsigned __int8 uint8_t
Definition: SDL_config.h:35
Render::ClearBlack
virtual void ClearBlack()
Definition: Render.cpp:1113
Render::DrawOutdoorSkyPolygon
void DrawOutdoorSkyPolygon(struct Polygon *pSkyPolygon)
Definition: Render.cpp:6164
Render::Release
virtual void Release()
Definition: Render.cpp:1196
Render::DrawLines
virtual void DrawLines(const RenderVertexD3D3 *vertices, unsigned int num_vertices)
Definition: Render.cpp:3896
dstY
GLenum GLint GLint GLint GLint GLuint GLenum GLint GLint GLint dstY
Definition: SDL_opengl_glext.h:2453
Render::LoadHwlSprite
virtual HWLTexture * LoadHwlSprite(const char *name)
Definition: Render.cpp:2444
name
EGLImageKHR EGLint * name
Definition: SDL_egl.h:1497
Render::GetTargetPixelFormat
void GetTargetPixelFormat(DDPIXELFORMAT *pOut)
Definition: Render.cpp:1744
RenderBase.h
Render::CreateTexture_Solid
virtual Texture * CreateTexture_Solid(const String &name)
Definition: Render.cpp:84
SpriteFrame
Definition: Sprites.h:39
Render::CreateTexture_PCXFromNewLOD
virtual Texture * CreateTexture_PCXFromNewLOD(const String &name)
Definition: Render.cpp:96
Render::ZBuffer_Fill_2
virtual void ZBuffer_Fill_2(signed int a2, signed int a3, Image *pTexture, int a5)
Definition: Render.cpp:3207
Render::DrawTextureAlphaNew
virtual void DrawTextureAlphaNew(float u, float v, class Image *)
Definition: Render.cpp:3176
ODMFace
Definition: BSPModel.h:93
Render::SavePCXImage32
void SavePCXImage32(const String &filename, uint16_t *picture_data, int width, int height)
Definition: Render.cpp:1140
Render::uMaxDeviceTextureDim
unsigned int uMaxDeviceTextureDim
Definition: Render.h:205
Render::SwitchToWindow
virtual bool SwitchToWindow()
Definition: Render.cpp:1520
Render::FillRectFast
virtual void FillRectFast(unsigned int uX, unsigned int uY, unsigned int uWidth, unsigned int uHeight, unsigned int uColor16)
Definition: Render.cpp:2845
Render::InitializeFullscreen
virtual bool InitializeFullscreen()
Definition: Render.cpp:1262
Render::CreateZBuffer
virtual void CreateZBuffer()
Definition: Render.cpp:1187
Point
Definition: Point.h:3
Render::CreateTexture_PCXFromIconsLOD
virtual Texture * CreateTexture_PCXFromIconsLOD(const String &name)
Definition: Render.cpp:92
Render::CreateSprite
virtual Texture * CreateSprite(const String &name, unsigned int palette_id, unsigned int lod_sprite_id)
Definition: Render.cpp:116
Render::DrawTerrainPolygon
virtual void DrawTerrainPolygon(struct Polygon *a4, bool transparent, bool clampAtTextureBorders)
Definition: Render.cpp:1815
Render::p2DGraphics
Gdiplus::Graphics * p2DGraphics
Definition: Render.h:212
Render::DrawOutdoorSkyD3D
virtual void DrawOutdoorSkyD3D()
Definition: Render.cpp:5613
Render::ZDrawTextureAlpha
virtual void ZDrawTextureAlpha(float u, float v, Image *pTexture, int zVal)
Definition: Render.cpp:3189
image
EGLImageKHR image
Definition: SDL_egl.h:953
pixels
GLint GLint GLsizei GLsizei GLsizei GLint GLenum GLenum const GLvoid * pixels
Definition: SDL_opengl.h:1572
String
std::string String
Definition: Strings.h:10
RenderD3D
Definition: RenderD3D.h:67
Render::uTargetRBits
unsigned int uTargetRBits
Definition: Render.h:200
Render::Render
Render()
Definition: Render.cpp:1075
Render::BeginDecals
virtual void BeginDecals()
Definition: Render.cpp:3936
Render::BeginLightmaps2
virtual void BeginLightmaps2()
Definition: Render.cpp:3845
Render::CreateTexture
virtual Texture * CreateTexture(const String &name)
Definition: Render.cpp:112
img
GLint GLvoid * img
Definition: SDL_opengl.h:1980
Render::DrawIndoorPolygon
virtual void DrawIndoorPolygon(unsigned int uNumVertices, struct BLVFace *a3, int uPackedID, unsigned int uColor, int a8)
Definition: Render.cpp:1992
Render::am_Blt_Chroma
virtual void am_Blt_Chroma(Rect *pSrcRect, Point *pTargetPoint, int a3, int blend_mode)
Definition: Render.cpp:1453
Strings.h
Render::DrawPolygon
virtual void DrawPolygon(struct Polygon *a3)
Definition: Render.cpp:899