World of Might and Magic  0.2.0
Open reimplementation of Might and Magic 6 7 8 game engine
IRender.h
См. документацию.
1 #pragma once
2 
3 #include <memory>
4 
5 #include "Engine/IocContainer.h"
6 #include "Engine/OurMath.h"
7 #include "Engine/Rect.h"
8 #include "Engine/VectorTypes.h"
9 
12 #include "Engine/Graphics/Image.h"
14 
18 
19 class OSWindow;
20 class Sprite;
21 class SpriteFrame;
22 struct SoftwareBillboard;
23 
24 bool PauseGameDrawing();
25 
29  float fov_x;
30  float fov_y;
32  Sprite *hwsprite; // signed __int16 HwSpriteID;
44  unsigned int sTintColor;
46 };
47 
49 uint32_t Color32(uint16_t color16);
52 
53 /* 88 */
54 #pragma pack(push, 1)
57  uPickDepth = 0;
58  this->shading_dist_shade = 0x800;
59  shading_dist_shademist = 0x1000;
60  this->near_clip = 4;
61  this->far_clip = 2 * 0x2000;
62  int_fov_rad = 0;
63  this->bNoSky = 0;
64  this->bDoNotRenderDecorations = 0;
65  this->field_5C = 0;
66  this->field_60 = 0;
67  this->outdoor_no_wavy_water = 0;
68  this->outdoor_no_mist = 0;
69  }
70 
71  void Initialize();
72 
76  int near_clip;
77  int far_clip; // far clip (shading_dist_mist in M&M6 terms)
78  unsigned int uCameraFovInDegrees;
79  int int_fov_rad; // 157 struct IndoorCamera::fov_rad
80  int int_fov_rad_inv; // 157 struct IndoorCamera::fov_rad_inv
81  int _unused_camera_rotation_y_int_sine; // merged with BLVRenderParams
82  // equivalents
83  int _unused_camera_rotation_y_int_cosine; // into IndoorCameraD3D
87  unsigned int _unused_uNumEdges;
88  unsigned int _unused_uNumSurfs;
89  unsigned int _unused_uNumSpans;
90  unsigned int uNumBillboards;
91  float field_40;
92  // int field_44;
94  int field_4C;
95  int field_50;
96  unsigned int bNoSky;
98  int field_5C;
99  int field_60;
104 
105  unsigned int uMapGridCellX; // moved from 157 struct IndoorCamera::0C
106  unsigned int uMapGridCellZ; // moved from 157 struct IndoorCamera::10
107 };
108 #pragma pack(pop)
110 
111 /* 119 */
112 #pragma pack(push, 1)
114  inline RenderVertexSoft() : flt_2C(0.0f) {}
115 
120  float _rhw;
121  float u;
122  float v;
123  float flt_2C;
124 };
125 #pragma pack(pop)
126 
127 /* 112 */
128 #pragma pack(push, 1)
131  float rhw;
132  unsigned int diffuse;
133  unsigned int specular;
134  Vec2_float_ texcoord;
135 };
136 #pragma pack(pop)
137 
140  : texture(nullptr),
141  uNumVertices(4),
142  z_order(0.f),
144  field_90(-1),
145  object_pid(0),
146  screen_space_z(0),
147  sParentBillboardID(-1) {}
148 
151  Opaque_1 = 1,
152  Opaque_2 = 2,
153  Opaque_3 = 3,
154  NoBlend = 0xFFFFFFFF
155  };
156 
157  Texture
158  *texture; // void *gapi_texture;//IDirect3DTexture2 *pTexture; for d3d
159  unsigned int uNumVertices;
161  float z_order;
163  int field_90;
164 
165  unsigned short object_pid;
168 };
169 
171  void *pTarget;
172  int *pTargetZ;
178  char field_18[8];
181  unsigned int uFlags; // & 4 - mirror horizontally
182  unsigned int uTargetPitch;
183  unsigned int uViewportX;
184  unsigned int uViewportY;
185  unsigned int uViewportZ;
186  unsigned int uViewportW;
187  int field_44;
190  unsigned short object_pid;
191 };
192 
193 class HWLTexture;
194 
195 class IRender {
196  public:
197  inline IRender() {
198  this->log = EngineIoc::ResolveLogger();
203  this->vis = EngineIoc::ResolveVis();
204 
205 
206  pActiveZBuffer = 0;
207  uFogColor = 0;
208  memset(pHDWaterBitmapIDs, 0, sizeof(pHDWaterBitmapIDs));
210  hd_water_tile_id = 0;
214  }
215  virtual ~IRender() {}
216 
217  virtual bool Configure(std::shared_ptr<const IRenderConfig> config) {
218  this->config = config;
219  return true;
220  }
221 
222  virtual bool Initialize(OSWindow *window) = 0;
223 
224  virtual Texture *CreateTexture_ColorKey(const String &name, uint16_t colorkey) = 0;
225  virtual Texture *CreateTexture_Solid(const String &name) = 0;
226  virtual Texture *CreateTexture_Alpha(const String &name) = 0;
227 
228  virtual Texture *CreateTexture_PCXFromFile(const String &name) = 0;
229  virtual Texture *CreateTexture_PCXFromIconsLOD(const String &name) = 0;
230  virtual Texture *CreateTexture_PCXFromNewLOD(const String &name) = 0;
231 
232  virtual Texture *CreateTexture_Blank(unsigned int width, unsigned int height,
233  IMAGE_FORMAT format, const void *pixels = nullptr) = 0;
234 
235  virtual Texture *CreateTexture(const String &name) = 0;
236  virtual Texture *CreateSprite(const String &name, unsigned int palette_id,
237  /*refactor*/ unsigned int lod_sprite_id) = 0;
238 
239  virtual void ClearBlack() = 0;
240  virtual void PresentBlackScreen() = 0;
241 
242  virtual void SaveWinnersCertificate(const char *a1) = 0;
243  virtual void ClearTarget(unsigned int uColor) = 0;
244  virtual void Present() = 0;
245 
246  virtual bool InitializeFullscreen() = 0;
247 
248  virtual void CreateZBuffer() = 0;
249  virtual void Release() = 0;
250 
251  virtual bool SwitchToWindow() = 0;
252  virtual void RasterLine2D(int uX, int uY, int uZ, int uW, uint16_t uColor) = 0;
253  virtual void ClearZBuffer(int a2, int a3) = 0;
254  virtual void RestoreFrontBuffer() = 0;
255  virtual void RestoreBackBuffer() = 0;
256  virtual void BltBackToFontFast(int a2, int a3, Rect *a4) = 0;
257  virtual void BeginSceneD3D() = 0;
258 
259  virtual unsigned int GetActorTintColor(int DimLevel, int tint, float WorldViewX, int a5, RenderBillboard *Billboard) = 0;
260 
261  virtual void DrawPolygon(struct Polygon *a3) = 0;
262  virtual void DrawTerrainPolygon(struct Polygon *a4, bool transparent,
263  bool clampAtTextureBorders) = 0;
264  virtual void DrawIndoorPolygon(unsigned int uNumVertices,
265  struct BLVFace *a3, int uPackedID,
266  unsigned int uColor, int a8) = 0;
267 
269  Texture *texture,
270  unsigned int uDiffuse,
271  int angle) = 0;
272 
273  virtual void
275  virtual void DrawBillboard_Indoor(SoftwareBillboard *pSoftBillboard,
276  RenderBillboard *billboard) = 0;
277  virtual void _4A4CC9_AddSomeBillboard(
278  struct SpellFX_Billboard *a1, int diffuse) = 0;
279  virtual void TransformBillboardsAndSetPalettesODM() = 0;
280  virtual void DrawBillboardList_BLV() = 0;
281 
282  virtual void DrawProjectile(float srcX, float srcY, float a3, float a4,
283  float dstX, float dstY, float a7, float a8,
284  Texture *texture) = 0;
285  virtual void RemoveTextureFromDevice(Texture* texture) = 0;
286  virtual bool MoveTextureToDevice(Texture *texture) = 0;
287 
288  virtual void Update_Texture(Texture *texture) = 0;
289  virtual void DeleteTexture(Texture *texture) = 0;
290 
291 
292  virtual void BeginScene() = 0;
293  virtual void EndScene() = 0;
294  virtual void ScreenFade(unsigned int color, float t) = 0;
295 
296  virtual void SetUIClipRect(unsigned int uX, unsigned int uY,
297  unsigned int uZ, unsigned int uW) = 0;
298  virtual void ResetUIClipRect() = 0;
299 
300  virtual void DrawTextureNew(float u, float v, Image *) = 0;
301  virtual void DrawTextureAlphaNew(float u, float v, Image *) = 0;
302  virtual void DrawTextureCustomHeight(float u, float v, Image *,
303  int height) = 0;
304  virtual void DrawTextureOffset(int x, int y, int offset_x, int offset_y,
305  Image *) = 0;
306  virtual void DrawImage(Image *, const Rect &rect) = 0;
307 
308  virtual void ZBuffer_Fill_2(signed int a2, signed int a3, Image *pTexture,
309  int a5) = 0;
310  virtual void ZDrawTextureAlpha(float u, float v, Image *pTexture,
311  int zVal) = 0;
312  virtual void BlendTextures(int a2, int a3, Image *a4, Image *a5, int t,
313  int start_opacity, int end_opacity) = 0;
314  virtual void TexturePixelRotateDraw(float u, float v, Image *img, int time) = 0;
315  virtual void DrawMonsterPortrait(Rect rc, SpriteFrame *Portrait_Sprite, int Y_Offset) = 0;
316 
317  virtual void DrawMasked(float u, float v, Image *img,
318  unsigned int color_dimming_level,
319  uint16_t mask) = 0;
320  virtual void DrawTextureGrayShade(float u, float v, Image *a4) = 0;
321  virtual void DrawTransparentRedShade(float u, float v, Image *a4) = 0;
322  virtual void DrawTransparentGreenShade(float u, float v,
323  Image *pTexture) = 0;
324  virtual void DrawFansTransparent(const RenderVertexD3D3 *vertices,
325  unsigned int num_vertices) = 0;
326 
327  virtual void DrawTextAlpha(int x, int y, unsigned char *font_pixels, int a5,
328  unsigned int uFontHeight, uint8_t *pPalette,
329  bool present_time_transparency) = 0;
330  virtual void DrawText(int uOutX, int uOutY, uint8_t *pFontPixels,
331  unsigned int uCharWidth, unsigned int uCharHeight,
332  uint8_t *pFontPalette, uint16_t uFaceColor,
333  uint16_t uShadowColor) = 0;
334 
335  virtual void FillRectFast(unsigned int uX, unsigned int uY,
336  unsigned int uWidth, unsigned int uHeight,
337  unsigned int uColor16) = 0;
338 
339  virtual void DrawBuildingsD3D() = 0;
340 
341  virtual void DrawIndoorSky(unsigned int uNumVertices,
342  unsigned int uFaceID = 0) = 0;
343  virtual void DrawOutdoorSkyD3D() = 0;
344 
345  virtual void PrepareDecorationsRenderList_ODM() = 0;
346  virtual void DrawSpriteObjects_ODM() = 0;
347 
348  virtual void RenderTerrainD3D() = 0;
349 
350  virtual bool AreRenderSurfacesOk() = 0;
351 
352  virtual Image *TakeScreenshot(unsigned int width, unsigned int height) = 0;
353  virtual void SaveScreenshot(const String &filename, unsigned int width,
354  unsigned int height) = 0;
355  virtual void PackScreenshot(unsigned int width, unsigned int height,
356  void *out_data, unsigned int data_size,
357  unsigned int *screenshot_size) = 0;
358  virtual void SavePCXScreenshot() = 0;
359 
360  virtual int GetActorsInViewport(int pDepth) = 0;
361 
362  virtual void BeginLightmaps() = 0;
363  virtual void EndLightmaps() = 0;
364  virtual void BeginLightmaps2() = 0;
365  virtual void EndLightmaps2() = 0;
366  virtual bool DrawLightmap(struct Lightmap *pLightmap,
367  struct Vec3_float_ *pColorMult, float z_bias) = 0;
368 
369  virtual void BeginDecals() = 0;
370  virtual void EndDecals() = 0;
371  virtual void DrawDecal(struct Decal *pDecal, float z_bias) = 0;
372 
373  virtual void do_draw_debug_line_d3d(const RenderVertexD3D3 *pLineBegin,
374  signed int sDiffuseBegin,
375  const RenderVertexD3D3 *pLineEnd,
376  signed int sDiffuseEnd,
377  float z_stuff) = 0;
378  virtual void DrawLines(const RenderVertexD3D3 *vertices,
379  unsigned int num_vertices) = 0;
380 
381  virtual void DrawSpecialEffectsQuad(const RenderVertexD3D3 *vertices,
382  Texture *texture) = 0;
383 
384  virtual void am_Blt_Chroma(struct Rect *pSrcRect,
385  struct Point *pTargetPoint, int a3,
386  int blend_mode) = 0;
387 
388  inline void ToggleTint() {
389  IRenderConfigFactory renderConfigFactory;
390  auto new_config = renderConfigFactory.Clone(config);
391  new_config->is_tinting = !new_config->is_tinting;
392 
393  this->config = new_config;
394  }
395  inline void ToggleColoredLights() {
396  IRenderConfigFactory renderConfigFactory;
397  auto new_config = renderConfigFactory.Clone(config);
398  new_config->is_using_colored_lights = !new_config->is_using_colored_lights;
399 
400  this->config = new_config;
401  }
402  inline void SetUsingSpecular(bool is_using_specular) {
403  IRenderConfigFactory renderConfigFactory;
404  auto new_config = renderConfigFactory.Clone(config);
405  new_config->is_using_specular = is_using_specular;
406 
407  this->config = new_config;
408  }
409  inline void SetUsingFog(bool is_using_fog) {
410  IRenderConfigFactory renderConfigFactory;
411  auto new_config = renderConfigFactory.Clone(config);
412  new_config->is_using_fog = is_using_fog;
413 
414  this->config = new_config;
415  }
416 
417  inline bool IsUsingSpecular() const { return config->is_using_specular; }
418 
419 
420  std::shared_ptr<const IRenderConfig> config;
423  unsigned int pHDWaterBitmapIDs[7];
429  unsigned int uNumBillboardsToDraw;
430 
431  Log *log = nullptr;
436  Vis *vis = nullptr;
437 
438  virtual void WritePixel16(int x, int y, uint16_t color) = 0;
439 
440  virtual unsigned int GetRenderWidth() const = 0;
441  virtual unsigned int GetRenderHeight() const = 0;
442 
443  virtual HWLTexture *LoadHwlBitmap(const String &name) = 0;
444  virtual HWLTexture *LoadHwlSprite(const String &name) = 0;
445 };
446 
447 extern std::shared_ptr<IRender> render;
448 
451 extern unsigned int uNumBillboardsToDraw;
452 extern int uNumSpritesDrawnThisFrame;
453 
454 extern RenderVertexSoft array_507D30[50];
456 extern RenderVertexSoft array_73D150[20];
457 
459 
460 int ODM_NearClip(unsigned int uVertexID);
461 int ODM_FarClip(unsigned int uNumVertices);
462 
463 /* 142 */
464 #pragma pack(push, 1)
466  void CalcSkyFrustumVec(int a2, int a3, int a4, int a5, int a6, int a7);
467 
479 };
480 #pragma pack(pop)
482 
483 unsigned int _452442_color_cvt(uint16_t a1, uint16_t a2, int a3, int a4);
484 
485 int GetActorTintColor(int max_dim, int min_dim, float distance, int a4,
486  struct RenderBillboard *a5);
488  int uBaseLightLevel);
490  unsigned int uBaseLightLevel, int uSectorID, float x, float y, float z);
491 unsigned int GetMaxMipLevels(unsigned int uDim);
492 int _46E44E_collide_against_faces_and_portals(unsigned int b1); // idb
493 void _46E889_collide_against_bmodels(unsigned int ecx0);
494 int collide_against_floor(int x, int y, int z, unsigned int *pSectorID,
495  unsigned int *pFaceID); // idb
496 void _46ED8A_collide_against_sprite_objects(unsigned int _this);
497 int _46EF01_collision_chech_player(int a1); // idb
500 unsigned int sub_46DEF2(signed int a2, unsigned int uLayingItemID);
501 void UpdateObjects();
502 bool sub_47531C(int a1, int *a2, int pos_x, int pos_y, int pos_z, int dir_x,
503  int dir_y, int dir_z, struct BLVFace *face, int a10);
504 bool sub_4754BF(int a1, int *a2, int X, int Y, int Z, int dir_x, int dir_y,
505  int dir_z, struct BLVFace *face, int a10, int a11);
506 int sub_475665(struct BLVFace *face, int a2, int16_t a3);
507 bool sub_4759C9(struct BLVFace *face, int a2, int a3, int16_t a4);
508 bool sub_475D85(Vec3_int_ *a1, Vec3_int_ *a2, int *a3, struct BLVFace *a4);
509 bool sub_475F30(int *a1, struct BLVFace *a2, int a3, int a4, int a5, int a6,
510  int a7, int a8, int a9);
511 
512 class BSPModel;
513 
514 bool IsBModelVisible(BSPModel *model, int *unused);
uint16_t
unsigned __int16 uint16_t
Definition: SDL_config.h:37
RenderBillboardD3D::Opaque_2
@ Opaque_2
Definition: IRender.h:152
SkyBillboardStruct::field_0_party_dir_x
int field_0_party_dir_x
Definition: IRender.h:468
IsBModelVisible
bool IsBModelVisible(BSPModel *model, int *unused)
Definition: Render.cpp:5516
SoftwareBillboard::pPalette
uint16_t * pPalette
Definition: IRender.h:179
Vec3_float_
Definition: VectorTypes.h:74
IRender::DeleteTexture
virtual void DeleteTexture(Texture *texture)=0
Engine_::IocContainer
Definition: IocContainer.h:15
face
GLenum GLuint GLint GLenum face
Definition: SDL_opengl_glext.h:3022
IRender::DrawBuildingsD3D
virtual void DrawBuildingsD3D()=0
IRender::DrawBillboards_And_MaybeRenderSpecialEffects_And_EndScene
virtual void DrawBillboards_And_MaybeRenderSpecialEffects_And_EndScene()=0
SoftwareBillboard::field_18
char field_18[8]
Definition: IRender.h:178
IRender::BeginLightmaps2
virtual void BeginLightmaps2()=0
IocContainer.h
array_507D30
RenderVertexSoft array_507D30[50]
Definition: RenderOpenGL.cpp:58
SpellFX_Billboard
Definition: SpellFxRenderer.h:13
mask
GLenum GLint GLuint mask
Definition: SDL_opengl_glext.h:660
RenderBillboard::hwsprite
Sprite * hwsprite
Definition: IRender.h:32
int16_t
signed __int16 int16_t
Definition: SDL_config.h:36
v
const GLdouble * v
Definition: SDL_opengl.h:2064
_46EF01_collision_chech_player
int _46EF01_collision_chech_player(int a1)
Definition: Render.cpp:4790
IRender::config
std::shared_ptr< const IRenderConfig > config
Definition: IRender.h:420
ODMRenderParams::outdoor_no_wavy_water
int outdoor_no_wavy_water
Definition: IRender.h:100
RenderBillboard::screen_space_x
int16_t screen_space_x
Definition: IRender.h:39
SkyBillboardStruct::CamVecLeft_Y
int CamVecLeft_Y
Definition: IRender.h:473
VectorTypes.h
IRender::PackScreenshot
virtual void PackScreenshot(unsigned int width, unsigned int height, void *out_data, unsigned int data_size, unsigned int *screenshot_size)=0
ODMRenderParams::uNumBillboards
unsigned int uNumBillboards
Definition: IRender.h:90
IRender::DrawTextureGrayShade
virtual void DrawTextureGrayShade(float u, float v, Image *a4)=0
IRender::EndScene
virtual void EndScene()=0
IRender::SaveScreenshot
virtual void SaveScreenshot(const String &filename, unsigned int width, unsigned int height)=0
ODMRenderParams::field_40
float field_40
Definition: IRender.h:91
dstX
GLenum GLint GLint GLint GLint GLuint GLenum GLint GLint dstX
Definition: SDL_opengl_glext.h:2453
IRender::ScreenFade
virtual void ScreenFade(unsigned int color, float t)=0
RenderBillboard::uIndoorSectorID
int16_t uIndoorSectorID
Definition: IRender.h:34
IRender::DrawLightmap
virtual bool DrawLightmap(struct Lightmap *pLightmap, struct Vec3_float_ *pColorMult, float z_bias)=0
Polygon
Definition: Polygon.h:14
SkyBillboardStruct
Definition: IRender.h:465
SoftwareBillboard::pPalette2
uint16_t * pPalette2
Definition: IRender.h:180
uNumBillboardsToDraw
unsigned int uNumBillboardsToDraw
Definition: RenderOpenGL.cpp:55
IRender::ClearBlack
virtual void ClearBlack()=0
RenderBillboardD3D::Opaque_1
@ Opaque_1
Definition: IRender.h:151
IRender::RestoreBackBuffer
virtual void RestoreBackBuffer()=0
sub_475F30
bool sub_475F30(int *a1, struct BLVFace *a2, int a3, int a4, int a5, int a6, int a7, int a8, int a9)
Definition: Render.cpp:5467
IRender::Configure
virtual bool Configure(std::shared_ptr< const IRenderConfig > config)
Definition: IRender.h:217
RenderVertexD3D3::pos
Vec3_float_ pos
Definition: IRender.h:130
IRender::SetUIClipRect
virtual void SetUIClipRect(unsigned int uX, unsigned int uY, unsigned int uZ, unsigned int uW)=0
IRenderConfigFactory.h
z
GLdouble GLdouble z
Definition: SDL_opengl_glext.h:407
Engine_::IocContainer::ResolveLogger
static Log * ResolveLogger()
Definition: IocContainer.cpp:51
RenderVertexSoft::u
float u
Definition: IRender.h:121
ODMRenderParams::bDoNotRenderDecorations
unsigned int bDoNotRenderDecorations
Definition: IRender.h:97
height
EGLSurface EGLint EGLint EGLint EGLint height
Definition: SDL_egl.h:1596
ODMRenderParams::building_gamme
int building_gamme
Definition: IRender.h:102
IRender::PresentBlackScreen
virtual void PresentBlackScreen()=0
SoftwareBillboard::pTarget
void * pTarget
Definition: IRender.h:171
ODMRenderParams::uNumPolygons
int uNumPolygons
Definition: IRender.h:86
IRender::SaveWinnersCertificate
virtual void SaveWinnersCertificate(const char *a1)=0
IRender::DrawMonsterPortrait
virtual void DrawMonsterPortrait(Rect rc, SpriteFrame *Portrait_Sprite, int Y_Offset)=0
ODMRenderParams::uMapGridCellX
unsigned int uMapGridCellX
Definition: IRender.h:105
ODMRenderParams::terrain_gamma
int terrain_gamma
Definition: IRender.h:103
Decal
Definition: DecalBuilder.h:98
sub_4759C9
bool sub_4759C9(struct BLVFace *face, int a2, int a3, int16_t a4)
IRender::GetRenderWidth
virtual unsigned int GetRenderWidth() const =0
RenderBillboardD3D
Definition: IRender.h:138
Texture
Definition: Texture.h:4
RenderBillboard::dimming_level
uint16_t dimming_level
Definition: IRender.h:43
SoftwareBillboard::screenspace_projection_factor_y
float screenspace_projection_factor_y
Definition: IRender.h:177
IRender::ClearZBuffer
virtual void ClearZBuffer(int a2, int a3)=0
IRender::pBeforePresentFunction
void(* pBeforePresentFunction)()
Definition: IRender.h:427
RenderBillboardD3D::OpacityType
OpacityType
Definition: IRender.h:149
d3d_vertex_buffer
RenderVertexD3D3 d3d_vertex_buffer[50]
Definition: Render.cpp:55
srcX
GLenum GLint GLint srcX
Definition: SDL_opengl_glext.h:2453
IRender::vis
Vis * vis
Definition: IRender.h:436
IRender::Present
virtual void Present()=0
IRender
Definition: IRender.h:195
PauseGameDrawing
bool PauseGameDrawing()
Definition: GUIWindow.cpp:137
RenderBillboardD3D::field_90
int field_90
Definition: IRender.h:163
RenderVertexD3D3
Definition: IRender.h:129
sub_475D85
bool sub_475D85(Vec3_int_ *a1, Vec3_int_ *a2, int *a3, struct BLVFace *a4)
Definition: Render.cpp:5403
IRender::AreRenderSurfacesOk
virtual bool AreRenderSurfacesOk()=0
RenderBillboard::screen_space_z
int16_t screen_space_z
Definition: IRender.h:41
IRender::BeginDecals
virtual void BeginDecals()=0
SkyBillboardStruct::field_4_party_dir_y
int field_4_party_dir_y
Definition: IRender.h:469
SoftwareBillboard::screenspace_projection_factor_x
float screenspace_projection_factor_x
Definition: IRender.h:176
IRender::SavePCXScreenshot
virtual void SavePCXScreenshot()=0
GetActorTintColor
int GetActorTintColor(int max_dim, int min_dim, float distance, int a4, struct RenderBillboard *a5)
Definition: Render.cpp:4114
RenderBillboard::world_z
int16_t world_z
Definition: IRender.h:38
RenderBillboard::fov_y
float fov_y
Definition: IRender.h:30
IRender::DrawSpecialEffectsQuad
virtual void DrawSpecialEffectsQuad(const RenderVertexD3D3 *vertices, Texture *texture)=0
RenderBillboardD3D::Transparent
@ Transparent
Definition: IRender.h:150
SkyBillboardStruct::CamVecLeft_Z
int CamVecLeft_Z
Definition: IRender.h:471
IRender::CreateTexture_PCXFromFile
virtual Texture * CreateTexture_PCXFromFile(const String &name)=0
IRender::PrepareDecorationsRenderList_ODM
virtual void PrepareDecorationsRenderList_ODM()=0
IRender::DrawPolygon
virtual void DrawPolygon(struct Polygon *a3)=0
texture
GLenum GLenum GLuint texture
Definition: SDL_opengl_glext.h:1181
ODM_FarClip
int ODM_FarClip(unsigned int uNumVertices)
Definition: Render.cpp:3394
IRender::BeginScene
virtual void BeginScene()=0
ODMRenderParams::shading_dist_shademist
int shading_dist_shademist
Definition: IRender.h:75
Log
Definition: Log.h:3
IRender::DrawBillboardList_BLV
virtual void DrawBillboardList_BLV()=0
RenderBillboardD3D::z_order
float z_order
Definition: IRender.h:161
Lightmap
Definition: LightmapBuilder.h:12
SoftwareBillboard::field_44
int field_44
Definition: IRender.h:187
RenderBillboard::pSpriteFrame
SpriteFrame * pSpriteFrame
Definition: IRender.h:45
HWLTexture
Definition: HWLContainer.h:9
RenderVertexSoft::vWorldViewProjY
float vWorldViewProjY
Definition: IRender.h:119
IRender::MoveTextureToDevice
virtual bool MoveTextureToDevice(Texture *texture)=0
IRender::IsUsingSpecular
bool IsUsingSpecular() const
Definition: IRender.h:417
_46F04E_collide_against_portals
int _46F04E_collide_against_portals()
Definition: Render.cpp:4895
IRender::InitializeFullscreen
virtual bool InitializeFullscreen()=0
IRender::decal_builder
DecalBuilder * decal_builder
Definition: IRender.h:432
Image.h
Sprite
Definition: Sprites.h:10
IRender::GetActorTintColor
virtual unsigned int GetActorTintColor(int DimLevel, int tint, float WorldViewX, int a5, RenderBillboard *Billboard)=0
IRender::_4A4CC9_AddSomeBillboard
virtual void _4A4CC9_AddSomeBillboard(struct SpellFX_Billboard *a1, int diffuse)=0
RenderVertexD3D3::texcoord
Vec2_float_ texcoord
Definition: IRender.h:134
IRender::TexturePixelRotateDraw
virtual void TexturePixelRotateDraw(float u, float v, Image *img, int time)=0
RenderBillboard::field_1E
int16_t field_1E
Definition: IRender.h:35
ParticleEngine
Definition: ParticleEngine.h:93
IRender::BlendTextures
virtual void BlendTextures(int a2, int a3, Image *a4, Image *a5, int t, int start_opacity, int end_opacity)=0
collide_against_floor
int collide_against_floor(int x, int y, int z, unsigned int *pSectorID, unsigned int *pFaceID)
Definition: Render.cpp:4711
OSWindow
Definition: OSWindow.h:12
RenderVertexSoft::vWorldViewPosition
Vec3_float_ vWorldViewPosition
Definition: IRender.h:117
ODMRenderParams
Definition: IRender.h:55
format
SDL_AudioFormat format
Definition: SDL_audio.h:194
ODMRenderParams::int_fov_rad_inv
int int_fov_rad_inv
Definition: IRender.h:80
IRender::SetUsingSpecular
void SetUsingSpecular(bool is_using_specular)
Definition: IRender.h:402
y
EGLSurface EGLint EGLint y
Definition: SDL_egl.h:1596
IRender::ZBuffer_Fill_2
virtual void ZBuffer_Fill_2(signed int a2, signed int a3, Image *pTexture, int a5)=0
RenderVertexD3D3::rhw
float rhw
Definition: IRender.h:131
IRender::MakeParticleBillboardAndPush
virtual void MakeParticleBillboardAndPush(SoftwareBillboard *a2, Texture *texture, unsigned int uDiffuse, int angle)=0
IRender::uFogColor
uint32_t uFogColor
Definition: IRender.h:422
_43F55F_get_billboard_light_level
int _43F55F_get_billboard_light_level(struct RenderBillboard *a1, int uBaseLightLevel)
Definition: Render.cpp:4211
IRender::RemoveTextureFromDevice
virtual void RemoveTextureFromDevice(Texture *texture)=0
IRender::DrawMasked
virtual void DrawMasked(float u, float v, Image *img, unsigned int color_dimming_level, uint16_t mask)=0
ODMRenderParams::_unused_camera_rotation_y_int_sine
int _unused_camera_rotation_y_int_sine
Definition: IRender.h:81
IRender::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)=0
IRender::log
Log * log
Definition: IRender.h:431
IRender::DrawTextureCustomHeight
virtual void DrawTextureCustomHeight(float u, float v, Image *, int height)=0
UpdateObjects
void UpdateObjects()
Definition: Render.cpp:4955
srcY
GLenum GLint GLint GLint srcY
Definition: SDL_opengl_glext.h:2453
ODMRenderParams::field_5C
int field_5C
Definition: IRender.h:98
ODMRenderParams::_unused_uNumSurfs
unsigned int _unused_uNumSurfs
Definition: IRender.h:88
Engine_::IocContainer::ResolveVis
static Vis * ResolveVis()
Definition: IocContainer.cpp:110
Image
Definition: Image.h:19
ODMRenderParams::shading_dist_shade
int shading_dist_shade
Definition: IRender.h:74
LightmapBuilder
Definition: LightmapBuilder.h:33
Engine_::IocContainer::ResolveParticleEngine
static ParticleEngine * ResolveParticleEngine()
Definition: IocContainer.cpp:103
RenderBillboard::fov_x
float fov_x
Definition: IRender.h:29
RenderVertexSoft::vWorldViewProjX
float vWorldViewProjX
Definition: IRender.h:118
_46E44E_collide_against_faces_and_portals
int _46E44E_collide_against_faces_and_portals(unsigned int b1)
Definition: Render.cpp:4350
SoftwareBillboard
Definition: IRender.h:170
IRender::GetRenderHeight
virtual unsigned int GetRenderHeight() const =0
RenderBillboard::uPalette
int16_t uPalette
Definition: IRender.h:33
RenderBillboard
Definition: IRender.h:26
Color16
uint16_t Color16(uint32_t r, uint32_t g, uint32_t b)
Definition: Engine.cpp:148
IRender::RenderTerrainD3D
virtual void RenderTerrainD3D()=0
IRender::EndDecals
virtual void EndDecals()=0
RenderBillboard::object_pid
uint16_t object_pid
Definition: IRender.h:42
Vis
Definition: Vis.h:69
IRender::FillRectFast
virtual void FillRectFast(unsigned int uX, unsigned int uY, unsigned int uWidth, unsigned int uHeight, unsigned int uColor16)=0
RenderBillboardD3D::RenderBillboardD3D
RenderBillboardD3D()
Definition: IRender.h:139
x
EGLSurface EGLint x
Definition: SDL_egl.h:1596
array_73D150
RenderVertexSoft array_73D150[20]
Definition: Render.cpp:53
IRender::EndLightmaps2
virtual void EndLightmaps2()=0
IRender::DrawTextAlpha
virtual void DrawTextAlpha(int x, int y, unsigned char *font_pixels, int a5, unsigned int uFontHeight, uint8_t *pPalette, bool present_time_transparency)=0
color
GLuint color
Definition: SDL_opengl_glext.h:1151
SkyBillboardStruct::CalcSkyFrustumVec
void CalcSkyFrustumVec(int a2, int a3, int a4, int a5, int a6, int a7)
Definition: RenderOpenGL.cpp:62
IRender::lightmap_builder
LightmapBuilder * lightmap_builder
Definition: IRender.h:434
ODMRenderParams::bNoSky
unsigned int bNoSky
Definition: IRender.h:96
IRender::DrawIndoorSky
virtual void DrawIndoorSky(unsigned int uNumVertices, unsigned int uFaceID=0)=0
ODM_NearClip
int ODM_NearClip(unsigned int uVertexID)
Definition: Render.cpp:3296
IRender::particle_engine
ParticleEngine * particle_engine
Definition: IRender.h:435
IRender::SetUsingFog
void SetUsingFog(bool is_using_fog)
Definition: IRender.h:409
IRender::TransformBillboardsAndSetPalettesODM
virtual void TransformBillboardsAndSetPalettesODM()=0
_46E889_collide_against_bmodels
void _46E889_collide_against_bmodels(unsigned int ecx0)
Definition: Render.cpp:4516
SoftwareBillboard::screen_space_z
short screen_space_z
Definition: IRender.h:175
ODMRenderParams::uCameraFovInDegrees
unsigned int uCameraFovInDegrees
Definition: IRender.h:78
IRender::DrawTextureOffset
virtual void DrawTextureOffset(int x, int y, int offset_x, int offset_y, Image *)=0
IRender::DrawTransparentGreenShade
virtual void DrawTransparentGreenShade(float u, float v, Image *pTexture)=0
BLVFace
Definition: Indoor.h:424
Engine_::IocContainer::ResolveDecalBuilder
static DecalBuilder * ResolveDecalBuilder()
Definition: IocContainer.cpp:60
SkyBillboardStruct::field_8_party_dir_z
int field_8_party_dir_z
Definition: IRender.h:470
sub_47531C
bool sub_47531C(int a1, int *a2, int pos_x, int pos_y, int pos_z, int dir_x, int dir_y, int dir_z, struct BLVFace *face, int a10)
Definition: Render.cpp:5027
width
EGLSurface EGLint EGLint EGLint width
Definition: SDL_egl.h:1596
IRender::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)=0
RenderVertexD3D3::diffuse
unsigned int diffuse
Definition: IRender.h:132
IRender::pBillboardRenderListD3D
RenderBillboardD3D pBillboardRenderListD3D[1000]
Definition: IRender.h:428
Color32_SwapRedBlue
uint32_t Color32_SwapRedBlue(uint16_t color16)
Definition: Render.cpp:2733
sub_475665
int sub_475665(struct BLVFace *face, int a2, int16_t a3)
IRender::am_Blt_Chroma
virtual void am_Blt_Chroma(struct Rect *pSrcRect, struct Point *pTargetPoint, int a3, int blend_mode)=0
SkyBillboardStruct::CamVecFront_Z
int CamVecFront_Z
Definition: IRender.h:474
_46ED8A_collide_against_sprite_objects
void _46ED8A_collide_against_sprite_objects(unsigned int _this)
Definition: Render.cpp:4732
IRender::CreateTexture_ColorKey
virtual Texture * CreateTexture_ColorKey(const String &name, uint16_t colorkey)=0
GetMaxMipLevels
unsigned int GetMaxMipLevels(unsigned int uDim)
Definition: RenderD3D.cpp:771
window
EGLSurface EGLNativeWindowType * window
Definition: SDL_egl.h:1580
IRender::DrawSpriteObjects_ODM
virtual void DrawSpriteObjects_ODM()=0
f
GLfloat f
Definition: SDL_opengl_glext.h:1873
ODMRenderParams::near_clip
int near_clip
Definition: IRender.h:76
IRender::CreateTexture_Alpha
virtual Texture * CreateTexture_Alpha(const String &name)=0
IRender::LoadHwlBitmap
virtual HWLTexture * LoadHwlBitmap(const String &name)=0
IRender::ResetUIClipRect
virtual void ResetUIClipRect()=0
RenderBillboardD3D::uNumVertices
unsigned int uNumVertices
Definition: IRender.h:159
Rect
Definition: Rect.h:3
ODMRenderParams::outdoor_no_mist
int outdoor_no_mist
Definition: IRender.h:101
ODMRenderParams::_unused_uNumSpans
unsigned int _unused_uNumSpans
Definition: IRender.h:89
IRender::CreateTexture_Blank
virtual Texture * CreateTexture_Blank(unsigned int width, unsigned int height, IMAGE_FORMAT format, const void *pixels=nullptr)=0
IRender::DrawFansTransparent
virtual void DrawFansTransparent(const RenderVertexD3D3 *vertices, unsigned int num_vertices)=0
SoftwareBillboard::screen_space_x
int screen_space_x
Definition: IRender.h:173
RenderBillboardD3D::opacity
OpacityType opacity
Definition: IRender.h:162
Color32
uint32_t Color32(uint16_t color16)
Definition: Engine.cpp:135
IRender::DrawLines
virtual void DrawLines(const RenderVertexD3D3 *vertices, unsigned int num_vertices)=0
IRender::Initialize
virtual bool Initialize(OSWindow *window)=0
IRender::pActiveZBuffer
int * pActiveZBuffer
Definition: IRender.h:421
IRender::CreateTexture_Solid
virtual Texture * CreateTexture_Solid(const String &name)=0
IRender::EndLightmaps
virtual void EndLightmaps()=0
ODMRenderParams::field_60
int field_60
Definition: IRender.h:99
IRender::CreateSprite
virtual Texture * CreateSprite(const String &name, unsigned int palette_id, unsigned int lod_sprite_id)=0
IRender::IRender
IRender()
Definition: IRender.h:197
ODMRenderParams::_unused_camera_rotation_y_int_cosine
int _unused_camera_rotation_y_int_cosine
Definition: IRender.h:83
IRender::DrawDecal
virtual void DrawDecal(struct Decal *pDecal, float z_bias)=0
SkyBillboardStruct::CamVecFront_Y
int CamVecFront_Y
Definition: IRender.h:476
IRender::WritePixel16
virtual void WritePixel16(int x, int y, uint16_t color)=0
IRender::DrawTransparentRedShade
virtual void DrawTransparentRedShade(float u, float v, Image *a4)=0
RenderVertexSoft::flt_2C
float flt_2C
Definition: IRender.h:123
t
GLdouble GLdouble t
Definition: SDL_opengl.h:2071
IRender::DrawTextureAlphaNew
virtual void DrawTextureAlphaNew(float u, float v, Image *)=0
RenderBillboardD3D::texture
Texture * texture
Definition: IRender.h:158
SoftwareBillboard::uViewportY
unsigned int uViewportY
Definition: IRender.h:184
RenderBillboard::screenspace_projection_factor_y
float screenspace_projection_factor_y
Definition: IRender.h:28
RenderBillboardD3D::object_pid
unsigned short object_pid
Definition: IRender.h:165
IMAGE_FORMAT
IMAGE_FORMAT
Definition: Image.h:4
_46E0B2_collide_against_decorations
void _46E0B2_collide_against_decorations()
Definition: Render.cpp:4855
SoftwareBillboard::uViewportX
unsigned int uViewportX
Definition: IRender.h:183
SkyBillboard
SkyBillboardStruct SkyBillboard
Definition: Outdoor.cpp:51
ODMRenderParams::_unused_camera_rotation_x_int_cosine
int _unused_camera_rotation_x_int_cosine
Definition: IRender.h:85
SkyBillboardStruct::CamVecLeft_X
int CamVecLeft_X
Definition: IRender.h:472
distance
GLsizei GLsizei GLfloat distance
Definition: SDL_opengl_glext.h:9203
RenderBillboard::screen_space_y
int16_t screen_space_y
Definition: IRender.h:40
ODMRenderParams::_unused_camera_rotation_x_int_sine
int _unused_camera_rotation_x_int_sine
Definition: IRender.h:84
SoftwareBillboard::screen_space_y
int screen_space_y
Definition: IRender.h:174
ODMRenderParams::uPickDepth
int uPickDepth
Definition: IRender.h:73
Graphics::IRenderConfig
Definition: IRenderConfig.h:12
IRender::ToggleTint
void ToggleTint()
Definition: IRender.h:388
void
typedef void(SDLCALL *SDL_AudioFilter)(struct SDL_AudioCVT *cvt
uNumDecorationsDrawnThisFrame
int uNumDecorationsDrawnThisFrame
Definition: RenderOpenGL.cpp:53
uint8_t
unsigned __int8 uint8_t
Definition: SDL_config.h:35
_43F5C8_get_point_light_level_with_respect_to_lights
int _43F5C8_get_point_light_level_with_respect_to_lights(unsigned int uBaseLightLevel, int uSectorID, float x, float y, float z)
Definition: Render.cpp:4229
Rect.h
pODMRenderParams
ODMRenderParams * pODMRenderParams
Definition: Outdoor.cpp:49
IRender::SwitchToWindow
virtual bool SwitchToWindow()=0
IRender::uNumBillboardsToDraw
unsigned int uNumBillboardsToDraw
Definition: IRender.h:429
SpellFxRenderer
Definition: SpellFxRenderer.h:97
RenderBillboardD3D::Opaque_3
@ Opaque_3
Definition: IRender.h:153
IRender::spell_fx_renderer
SpellFxRenderer * spell_fx_renderer
Definition: IRender.h:433
IRender::~IRender
virtual ~IRender()
Definition: IRender.h:215
b
GLboolean GLboolean GLboolean b
Definition: SDL_opengl_glext.h:1112
dstY
GLenum GLint GLint GLint GLint GLuint GLenum GLint GLint GLint dstY
Definition: SDL_opengl_glext.h:2453
IRender::Release
virtual void Release()=0
name
EGLImageKHR EGLint * name
Definition: SDL_egl.h:1497
r
GLdouble GLdouble GLdouble r
Definition: SDL_opengl.h:2079
RenderBillboard::world_y
int16_t world_y
Definition: IRender.h:37
ODMRenderParams::field_50
int field_50
Definition: IRender.h:95
RenderBillboard::field_14_actor_id
int field_14_actor_id
Definition: IRender.h:31
SoftwareBillboard::uViewportW
unsigned int uViewportW
Definition: IRender.h:186
IRender::DrawTerrainPolygon
virtual void DrawTerrainPolygon(struct Polygon *a4, bool transparent, bool clampAtTextureBorders)=0
IRender::ClearTarget
virtual void ClearTarget(unsigned int uColor)=0
Texture.h
ODMRenderParams::uMapGridCellZ
unsigned int uMapGridCellZ
Definition: IRender.h:106
IRender::DrawProjectile
virtual void DrawProjectile(float srcX, float srcY, float a3, float a4, float dstX, float dstY, float a7, float a8, Texture *texture)=0
SpriteFrame
Definition: Sprites.h:39
RenderVertexSoft::v
float v
Definition: IRender.h:122
IRender::hd_water_current_frame
int hd_water_current_frame
Definition: IRender.h:424
RenderVertexSoft::_rhw
float _rhw
Definition: IRender.h:120
RenderBillboardD3D::NoBlend
@ NoBlend
Definition: IRender.h:154
SoftwareBillboard::uViewportZ
unsigned int uViewportZ
Definition: IRender.h:185
SoftwareBillboard::uFlags
unsigned int uFlags
Definition: IRender.h:181
SoftwareBillboard::sParentBillboardID
int sParentBillboardID
Definition: IRender.h:188
VertexRenderList
RenderVertexSoft VertexRenderList[50]
Definition: Render.cpp:52
IRender::pHDWaterBitmapIDs
unsigned int pHDWaterBitmapIDs[7]
Definition: IRender.h:423
SkyBillboardStruct::CamVecFront_X
int CamVecFront_X
Definition: IRender.h:475
IRender::BltBackToFontFast
virtual void BltBackToFontFast(int a2, int a3, Rect *a4)=0
RenderVertexSoft::vWorldPosition
Vec3_float_ vWorldPosition
Definition: IRender.h:116
ODMRenderParams::outdoor_grid_band_3
int outdoor_grid_band_3
Definition: IRender.h:93
uNumSpritesDrawnThisFrame
int uNumSpritesDrawnThisFrame
Definition: RenderOpenGL.cpp:56
_452442_color_cvt
unsigned int _452442_color_cvt(uint16_t a1, uint16_t a2, int a3, int a4)
Definition: Render.cpp:4081
IRender::hd_water_tile_anim
Texture * hd_water_tile_anim[7]
Definition: IRender.h:426
angle
GLfloat angle
Definition: SDL_opengl_glext.h:6100
IRender::BeginLightmaps
virtual void BeginLightmaps()=0
IRender::GetActorsInViewport
virtual int GetActorsInViewport(int pDepth)=0
OurMath.h
pBillboardRenderList
RenderBillboard pBillboardRenderList[500]
Definition: RenderOpenGL.cpp:54
a
GLboolean GLboolean GLboolean GLboolean a
Definition: SDL_opengl_glext.h:1112
sub_4754BF
bool sub_4754BF(int a1, int *a2, int X, int Y, int Z, int dir_x, int dir_y, int dir_z, struct BLVFace *face, int a10, int a11)
Definition: Render.cpp:5082
ODMRenderParams::int_fov_rad
int int_fov_rad
Definition: IRender.h:79
IRender::CreateZBuffer
virtual void CreateZBuffer()=0
ODMRenderParams::far_clip
int far_clip
Definition: IRender.h:77
RenderBillboard::screenspace_projection_factor_x
float screenspace_projection_factor_x
Definition: IRender.h:27
IRender::CreateTexture
virtual Texture * CreateTexture(const String &name)=0
IRender::TakeScreenshot
virtual Image * TakeScreenshot(unsigned int width, unsigned int height)=0
BSPModel
Definition: BSPModel.h:163
Point
Definition: Point.h:3
IRender::hd_water_tile_id
int hd_water_tile_id
Definition: IRender.h:425
RenderVertexSoft
Definition: IRender.h:113
IRender::DrawIndoorPolygon
virtual void DrawIndoorPolygon(unsigned int uNumVertices, struct BLVFace *a3, int uPackedID, unsigned int uColor, int a8)=0
RenderBillboardD3D::sParentBillboardID
int sParentBillboardID
Definition: IRender.h:167
sub_46DEF2
unsigned int sub_46DEF2(signed int a2, unsigned int uLayingItemID)
Definition: Render.cpp:4947
ODMRenderParams::Initialize
void Initialize()
Definition: Outdoor.cpp:2196
Engine_::IocContainer::ResolveSpellFxRenderer
static SpellFxRenderer * ResolveSpellFxRenderer()
Definition: IocContainer.cpp:74
RenderVertexSoft::RenderVertexSoft
RenderVertexSoft()
Definition: IRender.h:114
IRender::ZDrawTextureAlpha
virtual void ZDrawTextureAlpha(float u, float v, Image *pTexture, int zVal)=0
IRender::Update_Texture
virtual void Update_Texture(Texture *texture)=0
SkyBillboardStruct::CamLeftDot
int CamLeftDot
Definition: IRender.h:477
SkyBillboardStruct::CamFrontDot
int CamFrontDot
Definition: IRender.h:478
Engine_::IocContainer::ResolveLightmapBuilder
static LightmapBuilder * ResolveLightmapBuilder()
Definition: IocContainer.cpp:81
RenderBillboardD3D::screen_space_z
short screen_space_z
Definition: IRender.h:166
RenderVertexD3D3::specular
unsigned int specular
Definition: IRender.h:133
IRender::RasterLine2D
virtual void RasterLine2D(int uX, int uY, int uZ, int uW, uint16_t uColor)=0
Graphics::IRenderConfigFactory
Definition: IRenderConfigFactory.h:10
RenderBillboardD3D::pQuads
RenderVertexD3D3 pQuads[4]
Definition: IRender.h:160
SoftwareBillboard::pTargetZ
int * pTargetZ
Definition: IRender.h:172
IRender::CreateTexture_PCXFromIconsLOD
virtual Texture * CreateTexture_PCXFromIconsLOD(const String &name)=0
SoftwareBillboard::uTargetPitch
unsigned int uTargetPitch
Definition: IRender.h:182
g
GLboolean GLboolean g
Definition: SDL_opengl_glext.h:1112
IRender::RestoreFrontBuffer
virtual void RestoreFrontBuffer()=0
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
IRender::LoadHwlSprite
virtual HWLTexture * LoadHwlSprite(const String &name)=0
ODMRenderParams::ODMRenderParams
ODMRenderParams()
Definition: IRender.h:56
IRender::DrawOutdoorSkyD3D
virtual void DrawOutdoorSkyD3D()=0
IRender::DrawTextureNew
virtual void DrawTextureNew(float u, float v, Image *)=0
String
std::string String
Definition: Strings.h:10
IRender::DrawImage
virtual void DrawImage(Image *, const Rect &rect)=0
SoftwareBillboard::sTintColor
int sTintColor
Definition: IRender.h:189
RenderBillboard::world_x
int16_t world_x
Definition: IRender.h:36
config
EGLConfig config
Definition: SDL_egl.h:1149
ODMRenderParams::_unused_uNumEdges
unsigned int _unused_uNumEdges
Definition: IRender.h:87
IRender::BeginSceneD3D
virtual void BeginSceneD3D()=0
RenderBillboard::sTintColor
unsigned int sTintColor
Definition: IRender.h:44
IRender::ToggleColoredLights
void ToggleColoredLights()
Definition: IRender.h:395
IRender::DrawBillboard_Indoor
virtual void DrawBillboard_Indoor(SoftwareBillboard *pSoftBillboard, RenderBillboard *billboard)=0
img
GLint GLvoid * img
Definition: SDL_opengl.h:1980
IRenderConfig.h
SoftwareBillboard::object_pid
unsigned short object_pid
Definition: IRender.h:190
DecalBuilder
Definition: DecalBuilder.h:123
IRender::CreateTexture_PCXFromNewLOD
virtual Texture * CreateTexture_PCXFromNewLOD(const String &name)=0
ODMRenderParams::field_4C
int field_4C
Definition: IRender.h:94
Graphics::IRenderConfigFactory::Clone
std::shared_ptr< IRenderConfig > Clone(std::shared_ptr< const IRenderConfig > other)
Definition: IRenderConfigFactory.cpp:9
render
std::shared_ptr< IRender > render
Definition: RenderOpenGL.cpp:52