World of Might and Magic  0.2.0
Open reimplementation of Might and Magic 6 7 8 game engine
RenderOpenGL.h
См. документацию.
1 #pragma once
2 
5 #include "Engine/MM7.h"
6 
7 class RenderOpenGL : public RenderBase {
8  public:
9  RenderOpenGL();
10  virtual ~RenderOpenGL();
11 
12  virtual bool Initialize(OSWindow *window);
13 
14  virtual Texture *CreateTexture_ColorKey(const String &name, uint16_t colorkey);
15  virtual Texture *CreateTexture_Solid(const String &name);
16  virtual Texture *CreateTexture_Alpha(const String &name);
17 
21 
22  virtual Texture *CreateTexture_Blank(unsigned int width, unsigned int height,
23  IMAGE_FORMAT format, const void *pixels = nullptr);
24 
25  virtual Texture *CreateTexture(const String &name);
26  virtual Texture *CreateSprite(
27  const String &name, unsigned int palette_id,
28  /*refactor*/ unsigned int lod_sprite_id);
29 
30  virtual void ClearBlack();
31  virtual void PresentBlackScreen();
32 
33  virtual void SaveWinnersCertificate(const char *a1);
34  virtual void ClearTarget(unsigned int uColor);
35  virtual void Present();
36 
37  virtual bool InitializeFullscreen();
38 
39  virtual void CreateZBuffer();
40  virtual void Release();
41 
42  virtual bool SwitchToWindow();
43  virtual void RasterLine2D(signed int uX, signed int uY, signed int uZ,
44  signed int uW, unsigned __int16 uColor);
45  virtual void ClearZBuffer(int a2, int a3);
46  virtual void RestoreFrontBuffer();
47  virtual void RestoreBackBuffer();
48  virtual void BltBackToFontFast(int a2, int a3, Rect *pSrcRect);
49  virtual void BeginSceneD3D();
50 
51  virtual unsigned int GetActorTintColor(int DimLevel, int tint, float WorldViewX, int a5, RenderBillboard *Billboard);
52 
53  virtual void DrawPolygon(struct Polygon *a3);
54  virtual void DrawTerrainPolygon(struct Polygon *a4, bool transparent,
55  bool clampAtTextureBorders);
56  virtual void DrawIndoorPolygon(unsigned int uNumVertices,
57  struct BLVFace *a3, int uPackedID,
58  unsigned int uColor, int a8);
59 
61  virtual void DrawBillboard_Indoor(SoftwareBillboard *pSoftBillboard,
62  RenderBillboard *);
63  virtual void _4A4CC9_AddSomeBillboard(struct SpellFX_Billboard *a1, int diffuse);
64  virtual void DrawBillboardList_BLV();
65 
66  virtual void DrawProjectile(float srcX, float srcY, float a3, float a4,
67  float dstX, float dstY, float a7, float a8,
68  Texture *texture);
69 
71  virtual bool MoveTextureToDevice(Texture *texture);
72 
73  virtual void Update_Texture(Texture *texture);
74 
75  virtual void DeleteTexture(Texture *texture);
76 
77  virtual void BeginScene();
78  virtual void EndScene();
79  virtual void ScreenFade(unsigned int color, float t);
80 
81  virtual void SetUIClipRect(unsigned int uX, unsigned int uY,
82  unsigned int uZ, unsigned int uW);
83  virtual void ResetUIClipRect();
84 
85  virtual void DrawTextureNew(float u, float v, class Image *);
86  virtual void DrawTextureAlphaNew(float u, float v, class Image *);
87 
88  virtual void DrawTextureCustomHeight(float u, float v, class Image *,
89  int height);
90  virtual void DrawTextureOffset(int x, int y, int offset_x, int offset_y,
91  Image *);
92  virtual void DrawImage(Image *, const Rect &rect);
93 
94  virtual void ZBuffer_Fill_2(signed int a2, signed int a3, Image *pTexture,
95  int a5);
96  virtual void ZDrawTextureAlpha(float u, float v, Image *pTexture, int zVal);
97  virtual void BlendTextures(int a2, int a3, Image *a4, Image *a5, int t,
98  int start_opacity, int end_opacity);
99  virtual void TexturePixelRotateDraw(float u, float v, Image *img, int time);
100  virtual void DrawMonsterPortrait(Rect rc, SpriteFrame *Portrait_Sprite, int Y_Offset);
101 
102  virtual void DrawMasked(float u, float v, class Image *img,
103  unsigned int color_dimming_level,
104  unsigned __int16 mask);
105  virtual void DrawTextureGrayShade(float u, float v, class Image *a4);
106  virtual void DrawTransparentRedShade(float u, float v, class Image *a4);
107  virtual void DrawTransparentGreenShade(float u, float v,
108  class Image *pTexture);
109  virtual void DrawFansTransparent(const RenderVertexD3D3 *vertices,
110  unsigned int num_vertices);
111 
112  virtual void DrawTextAlpha(int x, int y, unsigned char *font_pixels, int a5,
113  unsigned int uFontHeight, uint8_t *pPalette,
114  bool present_time_transparency);
115  virtual void DrawText(int uOutX, int uOutY, uint8_t *pFontPixels,
116  unsigned int uCharWidth, unsigned int uCharHeight,
117  uint8_t *pFontPalette, uint16_t uFaceColor,
118  uint16_t uShadowColor);
119 
120  virtual void FillRectFast(unsigned int uX, unsigned int uY,
121  unsigned int uWidth, unsigned int uHeight,
122  unsigned int uColor16);
123 
124  virtual void DrawBuildingsD3D();
125 
126  virtual void DrawIndoorSky(unsigned int uNumVertices, unsigned int uFaceID);
127  virtual void DrawOutdoorSkyD3D();
128 
129  virtual void PrepareDecorationsRenderList_ODM();
130 
131  virtual void RenderTerrainD3D();
132 
133  virtual bool AreRenderSurfacesOk();
134 
135  virtual Image *TakeScreenshot(unsigned int width, unsigned int height);
136  virtual void SaveScreenshot(const String &filename, unsigned int width,
137  unsigned int height);
138  virtual void PackScreenshot(unsigned int width, unsigned int height,
139  void *out_data, unsigned int data_size,
140  unsigned int *screenshot_size);
141  virtual void SavePCXScreenshot();
142 
143  virtual int GetActorsInViewport(int pDepth);
144 
145  virtual void BeginLightmaps();
146  virtual void EndLightmaps();
147  virtual void BeginLightmaps2();
148  virtual void EndLightmaps2();
149  virtual bool DrawLightmap(struct Lightmap *pLightmap,
150  struct Vec3_float_ *pColorMult, float z_bias);
151 
152  virtual void BeginDecals();
153  virtual void EndDecals();
154  virtual void DrawDecal(struct Decal *pDecal, float z_bias);
155 
156  virtual void do_draw_debug_line_d3d(const RenderVertexD3D3 *pLineBegin,
157  signed int sDiffuseBegin,
158  const RenderVertexD3D3 *pLineEnd,
159  signed int sDiffuseEnd, float z_stuff);
160  virtual void DrawLines(const RenderVertexD3D3 *vertices,
161  unsigned int num_vertices);
162 
163  virtual void DrawSpecialEffectsQuad(const RenderVertexD3D3 *vertices,
164  Texture *texture);
165 
166  virtual void am_Blt_Chroma(Rect *pSrcRect, Point *pTargetPoint, int a3,
167  int blend_mode);
168 
169  public:
170  virtual void WritePixel16(int x, int y, uint16_t color);
171 
172  virtual unsigned int GetRenderWidth() const;
173  virtual unsigned int GetRenderHeight() const;
174 
175  protected:
176  void DoRenderBillboards_D3D();
178 
179  void DrawOutdoorSkyPolygon(struct Polygon *pSkyPolygon);
180  void DrawIndoorSkyPolygon(signed int uNumVertices,
181  struct Polygon *pSkyPolygon);
182 
185  uint32_t *render_target_rgb; // now 32 - draw to in format A8R8G8B8 - endian swivel means BGRA
186 };
187 
188 
uint16_t
unsigned __int16 uint16_t
Definition: SDL_config.h:37
RenderOpenGL::DrawIndoorSky
virtual void DrawIndoorSky(unsigned int uNumVertices, unsigned int uFaceID)
Definition: RenderOpenGL.cpp:637
RenderOpenGL::Release
virtual void Release()
Definition: RenderOpenGL.cpp:135
Vec3_float_
Definition: VectorTypes.h:74
RenderOpenGL::DrawIndoorPolygon
virtual void DrawIndoorPolygon(unsigned int uNumVertices, struct BLVFace *a3, int uPackedID, unsigned int uColor, int a8)
Definition: RenderOpenGL.cpp:2381
SpellFX_Billboard
Definition: SpellFxRenderer.h:13
mask
GLenum GLint GLuint mask
Definition: SDL_opengl_glext.h:660
RenderOpenGL::DrawTerrainPolygon
virtual void DrawTerrainPolygon(struct Polygon *a4, bool transparent, bool clampAtTextureBorders)
Definition: RenderOpenGL.cpp:1303
v
const GLdouble * v
Definition: SDL_opengl.h:2064
RenderOpenGL::DrawLightmap
virtual bool DrawLightmap(struct Lightmap *pLightmap, struct Vec3_float_ *pColorMult, float z_bias)
Definition: RenderOpenGL.cpp:662
RenderOpenGL::~RenderOpenGL
virtual ~RenderOpenGL()
Definition: RenderOpenGL.cpp:133
RenderOpenGL::SaveScreenshot
virtual void SaveScreenshot(const String &filename, unsigned int width, unsigned int height)
Definition: RenderOpenGL.cpp:648
dstX
GLenum GLint GLint GLint GLint GLuint GLenum GLint GLint dstX
Definition: SDL_opengl_glext.h:2453
RenderOpenGL::clip_y
int clip_y
Definition: RenderOpenGL.h:183
RenderOpenGL::clip_x
int clip_x
Definition: RenderOpenGL.h:183
Polygon
Definition: Polygon.h:14
RenderOpenGL::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: RenderOpenGL.cpp:1928
RenderOpenGL::DrawTextureAlphaNew
virtual void DrawTextureAlphaNew(float u, float v, class Image *)
Definition: RenderOpenGL.cpp:1786
RenderOpenGL::DrawOutdoorSkyPolygon
void DrawOutdoorSkyPolygon(struct Polygon *pSkyPolygon)
Definition: RenderOpenGL.cpp:1572
RenderOpenGL::ScreenFade
virtual void ScreenFade(unsigned int color, float t)
Definition: RenderOpenGL.cpp:396
height
EGLSurface EGLint EGLint EGLint EGLint height
Definition: SDL_egl.h:1596
RenderOpenGL::DrawProjectile
virtual void DrawProjectile(float srcX, float srcY, float a3, float a4, float dstX, float dstY, float a7, float a8, Texture *texture)
Definition: RenderOpenGL.cpp:391
Decal
Definition: DecalBuilder.h:98
RenderOpenGL::CreateTexture_Blank
virtual Texture * CreateTexture_Blank(unsigned int width, unsigned int height, IMAGE_FORMAT format, const void *pixels=nullptr)
Definition: RenderOpenGL.cpp:937
RenderOpenGL::TexturePixelRotateDraw
virtual void TexturePixelRotateDraw(float u, float v, Image *img, int time)
Definition: RenderOpenGL.cpp:488
RenderOpenGL::DrawTextureCustomHeight
virtual void DrawTextureCustomHeight(float u, float v, class Image *, int height)
Definition: RenderOpenGL.cpp:1870
RenderOpenGL::SetBillboardBlendOptions
void SetBillboardBlendOptions(RenderBillboardD3D::OpacityType a1)
Definition: RenderOpenGL.cpp:1701
Texture
Definition: Texture.h:4
RenderBillboardD3D::OpacityType
OpacityType
Definition: IRender.h:149
RenderOpenGL::EndLightmaps
virtual void EndLightmaps()
Definition: RenderOpenGL.cpp:658
srcX
GLenum GLint GLint srcX
Definition: SDL_opengl_glext.h:2453
RenderOpenGL::DrawBillboard_Indoor
virtual void DrawBillboard_Indoor(SoftwareBillboard *pSoftBillboard, RenderBillboard *)
Definition: RenderOpenGL.cpp:218
RenderOpenGL::BeginDecals
virtual void BeginDecals()
Definition: RenderOpenGL.cpp:667
RenderVertexD3D3
Definition: IRender.h:129
RenderOpenGL::ZBuffer_Fill_2
virtual void ZBuffer_Fill_2(signed int a2, signed int a3, Image *pTexture, int a5)
Definition: RenderOpenGL.cpp:454
RenderOpenGL::CreateTexture
virtual Texture * CreateTexture(const String &name)
Definition: RenderOpenGL.cpp:944
texture
GLenum GLenum GLuint texture
Definition: SDL_opengl_glext.h:1181
RenderOpenGL::RasterLine2D
virtual void RasterLine2D(signed int uX, signed int uY, signed int uZ, signed int uW, unsigned __int16 uColor)
Definition: RenderOpenGL.cpp:182
Lightmap
Definition: LightmapBuilder.h:12
RenderOpenGL::CreateTexture_PCXFromFile
virtual Texture * CreateTexture_PCXFromFile(const String &name)
Definition: RenderOpenGL.cpp:933
RenderOpenGL::BeginSceneD3D
virtual void BeginSceneD3D()
Definition: RenderOpenGL.cpp:203
RenderOpenGL::Present
virtual void Present()
Definition: RenderOpenGL.cpp:1995
RenderOpenGL::PackScreenshot
virtual void PackScreenshot(unsigned int width, unsigned int height, void *out_data, unsigned int data_size, unsigned int *screenshot_size)
Definition: RenderOpenGL.cpp:1741
OSWindow
Definition: OSWindow.h:12
format
SDL_AudioFormat format
Definition: SDL_audio.h:194
y
EGLSurface EGLint EGLint y
Definition: SDL_egl.h:1596
RenderOpenGL::GetActorsInViewport
virtual int GetActorsInViewport(int pDepth)
Definition: RenderOpenGL.cpp:653
RenderOpenGL::clip_w
int clip_w
Definition: RenderOpenGL.h:184
srcY
GLenum GLint GLint GLint srcY
Definition: SDL_opengl_glext.h:2453
RenderBase
Definition: RenderBase.h:6
Image
Definition: Image.h:19
RenderOpenGL::BeginLightmaps2
virtual void BeginLightmaps2()
Definition: RenderOpenGL.cpp:659
SoftwareBillboard
Definition: IRender.h:170
RenderOpenGL::SwitchToWindow
virtual bool SwitchToWindow()
Definition: RenderOpenGL.cpp:2552
RenderBillboard
Definition: IRender.h:26
RenderOpenGL::GetActorTintColor
virtual unsigned int GetActorTintColor(int DimLevel, int tint, float WorldViewX, int a5, RenderBillboard *Billboard)
Definition: RenderOpenGL.cpp:144
RenderOpenGL::DrawTextAlpha
virtual void DrawTextAlpha(int x, int y, unsigned char *font_pixels, int a5, unsigned int uFontHeight, uint8_t *pPalette, bool present_time_transparency)
Definition: RenderOpenGL.cpp:1954
RenderOpenGL::DrawLines
virtual void DrawLines(const RenderVertexD3D3 *vertices, unsigned int num_vertices)
Definition: RenderOpenGL.cpp:679
RenderOpenGL::DrawPolygon
virtual void DrawPolygon(struct Polygon *a3)
Definition: RenderOpenGL.cpp:2208
x
EGLSurface EGLint x
Definition: SDL_egl.h:1596
RenderOpenGL::InitializeFullscreen
virtual bool InitializeFullscreen()
Definition: RenderOpenGL.cpp:139
color
GLuint color
Definition: SDL_opengl_glext.h:1151
RenderOpenGL::DrawOutdoorSkyD3D
virtual void DrawOutdoorSkyD3D()
Definition: RenderOpenGL.cpp:1378
RenderOpenGL::DrawMonsterPortrait
virtual void DrawMonsterPortrait(Rect rc, SpriteFrame *Portrait_Sprite, int Y_Offset)
Definition: RenderOpenGL.cpp:581
RenderOpenGL::DrawTextureOffset
virtual void DrawTextureOffset(int x, int y, int offset_x, int offset_y, Image *)
Definition: RenderOpenGL.cpp:399
RenderOpenGL::ClearTarget
virtual void ClearTarget(unsigned int uColor)
Definition: RenderOpenGL.cpp:168
BLVFace
Definition: Indoor.h:424
RenderOpenGL::ZDrawTextureAlpha
virtual void ZDrawTextureAlpha(float u, float v, Image *pTexture, int zVal)
Definition: RenderOpenGL.cpp:461
RenderOpenGL::DrawMasked
virtual void DrawMasked(float u, float v, class Image *img, unsigned int color_dimming_level, unsigned __int16 mask)
Definition: RenderOpenGL.cpp:606
RenderOpenGL::SaveWinnersCertificate
virtual void SaveWinnersCertificate(const char *a1)
Definition: RenderOpenGL.cpp:137
RenderOpenGL::am_Blt_Chroma
virtual void am_Blt_Chroma(Rect *pSrcRect, Point *pTargetPoint, int a3, int blend_mode)
Definition: RenderOpenGL.cpp:688
width
EGLSurface EGLint EGLint EGLint width
Definition: SDL_egl.h:1596
RenderOpenGL::DrawIndoorSkyPolygon
void DrawIndoorSkyPolygon(signed int uNumVertices, struct Polygon *pSkyPolygon)
Definition: RenderOpenGL.cpp:641
RenderOpenGL::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: RenderOpenGL.cpp:672
RenderOpenGL::DoRenderBillboards_D3D
void DoRenderBillboards_D3D()
Definition: RenderOpenGL.cpp:1625
window
EGLSurface EGLNativeWindowType * window
Definition: SDL_egl.h:1580
RenderOpenGL::AreRenderSurfacesOk
virtual bool AreRenderSurfacesOk()
Definition: RenderOpenGL.cpp:647
RenderOpenGL::DrawTransparentRedShade
virtual void DrawTransparentRedShade(float u, float v, class Image *a4)
Definition: RenderOpenGL.cpp:593
RenderOpenGL::BeginScene
virtual void BeginScene()
Definition: RenderOpenGL.cpp:1769
RenderOpenGL::DrawFansTransparent
virtual void DrawFansTransparent(const RenderVertexD3D3 *vertices, unsigned int num_vertices)
Definition: RenderOpenGL.cpp:601
RenderOpenGL::GetRenderHeight
virtual unsigned int GetRenderHeight() const
Definition: RenderOpenGL.cpp:161
RenderOpenGL::render_target_rgb
uint32_t * render_target_rgb
Definition: RenderOpenGL.h:185
Rect
Definition: Rect.h:3
RenderOpenGL::Update_Texture
virtual void Update_Texture(Texture *texture)
Definition: RenderOpenGL.cpp:954
RenderOpenGL::CreateTexture_Solid
virtual Texture * CreateTexture_Solid(const String &name)
Definition: RenderOpenGL.cpp:917
t
GLdouble GLdouble t
Definition: SDL_opengl.h:2071
IMAGE_FORMAT
IMAGE_FORMAT
Definition: Image.h:4
RenderOpenGL::PrepareDecorationsRenderList_ODM
virtual void PrepareDecorationsRenderList_ODM()
Definition: RenderOpenGL.cpp:695
RenderOpenGL::DeleteTexture
virtual void DeleteTexture(Texture *texture)
Definition: RenderOpenGL.cpp:968
RenderOpenGL::CreateTexture_PCXFromIconsLOD
virtual Texture * CreateTexture_PCXFromIconsLOD(const String &name)
Definition: RenderOpenGL.cpp:925
RenderOpenGL::ClearBlack
virtual void ClearBlack()
Definition: RenderOpenGL.cpp:163
RenderOpenGL::DrawDecal
virtual void DrawDecal(struct Decal *pDecal, float z_bias)
Definition: RenderOpenGL.cpp:669
RenderOpenGL::clip_z
int clip_z
Definition: RenderOpenGL.h:184
uint8_t
unsigned __int8 uint8_t
Definition: SDL_config.h:35
RenderOpenGL::DrawTextureNew
virtual void DrawTextureNew(float u, float v, class Image *)
Definition: RenderOpenGL.cpp:1791
dstY
GLenum GLint GLint GLint GLint GLuint GLenum GLint GLint GLint dstY
Definition: SDL_opengl_glext.h:2453
RenderOpenGL::EndScene
virtual void EndScene()
Definition: RenderOpenGL.cpp:1780
RenderOpenGL::CreateTexture_ColorKey
virtual Texture * CreateTexture_ColorKey(const String &name, uint16_t colorkey)
Definition: RenderOpenGL.cpp:913
name
EGLImageKHR EGLint * name
Definition: SDL_egl.h:1497
RenderBase.h
SpriteFrame
Definition: Sprites.h:39
RenderOpenGL::GetRenderWidth
virtual unsigned int GetRenderWidth() const
Definition: RenderOpenGL.cpp:160
RenderOpenGL::CreateTexture_Alpha
virtual Texture * CreateTexture_Alpha(const String &name)
Definition: RenderOpenGL.cpp:921
RenderOpenGL::RenderTerrainD3D
virtual void RenderTerrainD3D()
Definition: RenderOpenGL.cpp:1121
RenderOpenGL
Definition: RenderOpenGL.h:7
RenderOpenGL::DrawBillboardList_BLV
virtual void DrawBillboardList_BLV()
Definition: RenderOpenGL.cpp:358
RenderOpenGL::WritePixel16
virtual void WritePixel16(int x, int y, uint16_t color)
Definition: RenderOpenGL.cpp:2613
RenderOpenGL::DrawImage
virtual void DrawImage(Image *, const Rect &rect)
Definition: RenderOpenGL.cpp:405
RenderOpenGL::DrawBillboards_And_MaybeRenderSpecialEffects_And_EndScene
virtual void DrawBillboards_And_MaybeRenderSpecialEffects_And_EndScene()
Definition: RenderOpenGL.cpp:1618
RenderOpenGL::_4A4CC9_AddSomeBillboard
virtual void _4A4CC9_AddSomeBillboard(struct SpellFX_Billboard *a1, int diffuse)
Definition: RenderOpenGL.cpp:353
RenderOpenGL::Initialize
virtual bool Initialize(OSWindow *window)
Definition: RenderOpenGL.cpp:2561
RenderOpenGL::DrawSpecialEffectsQuad
virtual void DrawSpecialEffectsQuad(const RenderVertexD3D3 *vertices, Texture *texture)
Definition: RenderOpenGL.cpp:683
RenderOpenGL::MoveTextureToDevice
virtual bool MoveTextureToDevice(Texture *texture)
Definition: RenderOpenGL.cpp:980
RenderOpenGL::TakeScreenshot
virtual Image * TakeScreenshot(unsigned int width, unsigned int height)
Definition: RenderOpenGL.cpp:646
RenderOpenGL::EndLightmaps2
virtual void EndLightmaps2()
Definition: RenderOpenGL.cpp:660
RenderOpenGL::BltBackToFontFast
virtual void BltBackToFontFast(int a2, int a3, Rect *pSrcRect)
Definition: RenderOpenGL.cpp:154
RenderOpenGL::BeginLightmaps
virtual void BeginLightmaps()
Definition: RenderOpenGL.cpp:657
RenderOpenGL::RenderOpenGL
RenderOpenGL()
Definition: RenderOpenGL.cpp:129
RenderOpenGL::RestoreFrontBuffer
virtual void RestoreFrontBuffer()
Definition: RenderOpenGL.cpp:151
RenderOpenGL::EndDecals
virtual void EndDecals()
Definition: RenderOpenGL.cpp:668
Point
Definition: Point.h:3
RenderOpenGL::FillRectFast
virtual void FillRectFast(unsigned int uX, unsigned int uY, unsigned int uWidth, unsigned int uHeight, unsigned int uColor16)
Definition: RenderOpenGL.cpp:2618
RenderOpenGL::CreateSprite
virtual Texture * CreateSprite(const String &name, unsigned int palette_id, unsigned int lod_sprite_id)
Definition: RenderOpenGL.cpp:948
HWLContainer.h
RenderOpenGL::DrawTextureGrayShade
virtual void DrawTextureGrayShade(float u, float v, class Image *a4)
Definition: RenderOpenGL.cpp:634
RenderOpenGL::DrawTransparentGreenShade
virtual void DrawTransparentGreenShade(float u, float v, class Image *pTexture)
Definition: RenderOpenGL.cpp:597
RenderOpenGL::SavePCXScreenshot
virtual void SavePCXScreenshot()
Definition: RenderOpenGL.cpp:652
RenderOpenGL::ResetUIClipRect
virtual void ResetUIClipRect()
Definition: RenderOpenGL.cpp:1758
RenderOpenGL::CreateZBuffer
virtual void CreateZBuffer()
Definition: RenderOpenGL.cpp:177
pixels
GLint GLint GLsizei GLsizei GLsizei GLint GLenum GLenum const GLvoid * pixels
Definition: SDL_opengl.h:1572
uint32_t
unsigned __int32 uint32_t
Definition: SDL_config.h:39
String
std::string String
Definition: Strings.h:10
RenderOpenGL::ClearZBuffer
virtual void ClearZBuffer(int a2, int a3)
Definition: RenderOpenGL.cpp:172
RenderOpenGL::CreateTexture_PCXFromNewLOD
virtual Texture * CreateTexture_PCXFromNewLOD(const String &name)
Definition: RenderOpenGL.cpp:929
RenderOpenGL::PresentBlackScreen
virtual void PresentBlackScreen()
Definition: RenderOpenGL.cpp:1762
img
GLint GLvoid * img
Definition: SDL_opengl.h:1980
RenderOpenGL::DrawBuildingsD3D
virtual void DrawBuildingsD3D()
Definition: RenderOpenGL.cpp:2018
RenderOpenGL::RestoreBackBuffer
virtual void RestoreBackBuffer()
Definition: RenderOpenGL.cpp:152
RenderOpenGL::RemoveTextureFromDevice
virtual void RemoveTextureFromDevice(Texture *texture)
Definition: RenderOpenGL.cpp:978
RenderOpenGL::SetUIClipRect
virtual void SetUIClipRect(unsigned int uX, unsigned int uY, unsigned int uZ, unsigned int uW)
Definition: RenderOpenGL.cpp:1749
RenderOpenGL::BlendTextures
virtual void BlendTextures(int a2, int a3, Image *a4, Image *a5, int t, int start_opacity, int end_opacity)
Definition: RenderOpenGL.cpp:482
MM7.h