OpenEnroth 73e68f7
|
#include <Renderer.h>
Public Member Functions | |
Renderer (std::shared_ptr< GameConfig > config, DecalBuilder *decal_builder, SpellFxRenderer *spellfx, std::shared_ptr< ParticleEngine > particle_engine, Vis *vis) | |
virtual | ~Renderer () |
virtual bool | Initialize ()=0 |
virtual void | ClearBlack ()=0 |
virtual void | PresentBlackScreen ()=0 |
virtual RgbaImage | ReadScreenPixels ()=0 |
virtual void | ClearTarget (Color uColor)=0 |
virtual void | Present ()=0 |
virtual bool | InitializeFullscreen ()=0 |
virtual void | CreateZBuffer ()=0 |
virtual void | Release ()=0 |
virtual bool | SwitchToWindow ()=0 |
virtual void | BeginLines2D ()=0 |
virtual void | EndLines2D ()=0 |
virtual void | RasterLine2D (Pointi a, Pointi b, Color uColor32)=0 |
virtual void | DrawLines (const RenderVertexD3D3 *vertices, int num_vertices)=0 |
virtual void | ClearZBuffer ()=0 |
virtual void | RestoreFrontBuffer ()=0 |
virtual void | RestoreBackBuffer ()=0 |
virtual void | BltBackToFontFast (int a2, int a3, Recti *a4)=0 |
virtual void | BeginScene3D ()=0 |
virtual void | MakeParticleBillboardAndPush (SoftwareBillboard *a2, GraphicsImage *texture, Color uDiffuse, int angle)=0 |
virtual float | GetGamma ()=0 |
virtual void | DrawBillboards_And_MaybeRenderSpecialEffects_And_EndScene ()=0 |
virtual void | BillboardSphereSpellFX (SpellFX_Billboard *a1, Color diffuse)=0 |
virtual void | TransformBillboardsAndSetPalettesODM ()=0 |
virtual void | DrawProjectile (float srcX, float srcY, float a3, float a4, float dstX, float dstY, float a7, float a8, GraphicsImage *texture)=0 |
virtual TextureRenderId | CreateTexture (RgbaImageView image)=0 |
virtual void | DeleteTexture (TextureRenderId id)=0 |
virtual void | UpdateTexture (TextureRenderId id, RgbaImageView image)=0 |
virtual void | Update_Texture (GraphicsImage *texture)=0 |
virtual void | BeginScene2D ()=0 |
virtual void | ScreenFade (Color color, float t)=0 |
virtual void | SetUIClipRect (const Recti &rect)=0 |
virtual void | ResetUIClipRect ()=0 |
virtual void | DrawTextureNew (float u, float v, GraphicsImage *img, Color colourmask32=colorTable.White)=0 |
virtual void | DrawTextureCustomHeight (float u, float v, GraphicsImage *, int height)=0 |
virtual void | DrawTextureOffset (int x, int y, int offset_x, int offset_y, GraphicsImage *)=0 |
virtual void | DrawImage (GraphicsImage *, const Recti &rect, int paletteid=0, Color colourmask32=colorTable.White)=0 |
virtual void | ZDrawTextureAlpha (float u, float v, GraphicsImage *pTexture, int zVal)=0 |
virtual void | BlendTextures (int a2, int a3, GraphicsImage *a4, GraphicsImage *a5, int t, int start_opacity, int end_opacity)=0 |
virtual void | TexturePixelRotateDraw (float u, float v, GraphicsImage *img, int time)=0 |
virtual void | DrawMonsterPortrait (Recti rc, SpriteFrame *Portrait_Sprite, int Y_Offset)=0 |
virtual void | DrawMasked (float u, float v, GraphicsImage *img, int color_dimming_level, Color mask=colorTable.White)=0 |
virtual void | DrawTextureGrayShade (float u, float v, GraphicsImage *a4)=0 |
virtual void | DrawTransparentRedShade (float u, float v, GraphicsImage *a4)=0 |
virtual void | DrawTransparentGreenShade (float u, float v, GraphicsImage *pTexture)=0 |
virtual void | BeginTextNew (GraphicsImage *main, GraphicsImage *shadow)=0 |
virtual void | EndTextNew ()=0 |
virtual void | DrawTextNew (int x, int y, int w, int h, float u1, float v1, float u2, float v2, int isshadow, Color colour)=0 |
virtual void | FillRectFast (int uX, int uY, int uWidth, int uHeight, Color uColor32)=0 |
virtual void | DrawOutdoorBuildings ()=0 |
virtual void | DrawIndoorSky (int uNumVertices, int uFaceID=0)=0 |
virtual void | DrawOutdoorSky ()=0 |
virtual void | PrepareDecorationsRenderList_ODM ()=0 |
virtual void | DrawSpriteObjects ()=0 |
virtual void | DrawOutdoorTerrain ()=0 |
virtual bool | AreRenderSurfacesOk ()=0 |
virtual RgbaImage | MakeViewportScreenshot (int width, int height)=0 |
virtual RgbaImage | MakeFullScreenshot ()=0 |
virtual std::vector< Actor * > | getActorsInViewport (int pDepth)=0 |
virtual void | BeginLightmaps ()=0 |
virtual void | EndLightmaps ()=0 |
virtual void | BeginLightmaps2 ()=0 |
virtual void | EndLightmaps2 ()=0 |
virtual bool | DrawLightmap (Lightmap *pLightmap, Vec3f *pColorMult, float z_bias)=0 |
virtual void | BeginDecals ()=0 |
virtual void | EndDecals ()=0 |
virtual void | DrawDecal (Decal *pDecal, float z_bias)=0 |
virtual void | DrawSpecialEffectsQuad (GraphicsImage *texture, int palette)=0 |
virtual void | DrawFromSpriteSheet (Recti *pSrcRect, Pointi *pTargetPoint, int a3, int blend_mode)=0 |
virtual void | DrawIndoorFaces ()=0 |
virtual void | ReleaseTerrain ()=0 |
virtual void | ReleaseBSP ()=0 |
virtual void | DrawTwodVerts ()=0 |
virtual Sizei | GetRenderDimensions ()=0 |
virtual Sizei | GetPresentDimensions ()=0 |
virtual bool | Reinitialize (bool firstInit=false)=0 |
virtual bool | ReloadShaders ()=0 |
virtual void | DoRenderBillboards_D3D ()=0 |
virtual void | flushAndScale ()=0 |
virtual void | swapBuffers ()=0 |
virtual void | beginOverlays ()=0 |
virtual void | endOverlays ()=0 |
Public Attributes | |
std::shared_ptr< GameConfig > | config = nullptr |
int * | pActiveZBuffer |
Color | uFogColor |
int | hd_water_current_frame |
GraphicsImage * | hd_water_tile_anim [7] |
RenderBillboardD3D | pBillboardRenderListD3D [1000] |
unsigned int | uNumBillboardsToDraw |
int | drawcalls |
DecalBuilder * | decal_builder = nullptr |
SpellFxRenderer * | spell_fx_renderer = nullptr |
std::shared_ptr< ParticleEngine > | particle_engine = nullptr |
Vis * | vis = nullptr |
Renderer::Renderer | ( | std::shared_ptr< GameConfig > | config, |
DecalBuilder * | decal_builder, | ||
SpellFxRenderer * | spellfx, | ||
std::shared_ptr< ParticleEngine > | particle_engine, | ||
Vis * | vis | ||
) |
|
virtualdefault |
|
pure virtual |
Implemented in NullRenderer, and OpenGLRenderer.
|
pure virtual |
Implemented in NullRenderer, and OpenGLRenderer.
|
pure virtual |
Implemented in NullRenderer, and OpenGLRenderer.
|
pure virtual |
Implemented in NullRenderer, and OpenGLRenderer.
|
pure virtual |
Implemented in NullRenderer, and OpenGLRenderer.
|
pure virtual |
Implemented in NullRenderer, and OpenGLRenderer.
|
pure virtual |
Implemented in NullRenderer, and OpenGLRenderer.
|
pure virtual |
Implemented in NullRenderer, and OpenGLRenderer.
|
pure virtual |
Implemented in NullRenderer, and OpenGLRenderer.
|
pure virtual |
Implemented in BaseRenderer.
|
pure virtual |
Implemented in NullRenderer, and OpenGLRenderer.
|
pure virtual |
Implemented in NullRenderer, and OpenGLRenderer.
|
pure virtual |
Implemented in BaseRenderer.
|
pure virtual |
Implemented in NullRenderer, and OpenGLRenderer.
|
pure virtual |
Implemented in BaseRenderer.
|
pure virtual |
Implemented in NullRenderer, and OpenGLRenderer.
|
pure virtual |
Implemented in BaseRenderer.
|
pure virtual |
Implemented in NullRenderer, and OpenGLRenderer.
|
pure virtual |
Implemented in NullRenderer, and OpenGLRenderer.
|
pure virtual |
Implemented in BaseRenderer.
|
pure virtual |
Implemented in NullRenderer, and OpenGLRenderer.
|
pure virtual |
Implemented in NullRenderer, and OpenGLRenderer.
|
pure virtual |
Implemented in NullRenderer, and OpenGLRenderer.
|
pure virtual |
Implemented in NullRenderer, and OpenGLRenderer.
|
pure virtual |
Implemented in NullRenderer, and OpenGLRenderer.
|
pure virtual |
Implemented in NullRenderer, and OpenGLRenderer.
|
pure virtual |
Implemented in NullRenderer, and OpenGLRenderer.
|
pure virtual |
Implemented in BaseRenderer.
|
pure virtual |
Implemented in BaseRenderer.
|
pure virtual |
Implemented in NullRenderer, and OpenGLRenderer.
|
pure virtual |
Implemented in NullRenderer, and OpenGLRenderer.
|
pure virtual |
Implemented in NullRenderer, and OpenGLRenderer.
|
pure virtual |
Implemented in NullRenderer, and OpenGLRenderer.
|
pure virtual |
Implemented in BaseRenderer.
|
pure virtual |
Implemented in BaseRenderer.
|
pure virtual |
Implemented in NullRenderer, and OpenGLRenderer.
|
pure virtual |
Implemented in NullRenderer, and OpenGLRenderer.
|
pure virtual |
Implemented in BaseRenderer.
|
pure virtual |
Implemented in NullRenderer, and OpenGLRenderer.
|
pure virtual |
Implemented in NullRenderer, and OpenGLRenderer.
|
pure virtual |
Implemented in BaseRenderer.
|
pure virtual |
Implemented in BaseRenderer.
|
pure virtual |
Implemented in NullRenderer, and OpenGLRenderer.
|
pure virtual |
Implemented in NullRenderer, and OpenGLRenderer.
|
pure virtual |
Implemented in NullRenderer, and OpenGLRenderer.
|
pure virtual |
Implemented in NullRenderer, and OpenGLRenderer.
|
pure virtual |
Implemented in NullRenderer, and OpenGLRenderer.
|
pure virtual |
Implemented in NullRenderer, and OpenGLRenderer.
|
pure virtual |
Implemented in NullRenderer, and OpenGLRenderer.
|
pure virtual |
Implemented in NullRenderer, and OpenGLRenderer.
|
pure virtual |
Implemented in NullRenderer, and OpenGLRenderer.
|
pure virtual |
Implemented in BaseRenderer.
|
pure virtual |
Implemented in BaseRenderer.
|
pure virtual |
Implemented in BaseRenderer.
|
pure virtual |
Implemented in BaseRenderer.
|
pure virtual |
Implemented in BaseRenderer, NullRenderer, and OpenGLRenderer.
|
pure virtual |
Implemented in NullRenderer, and OpenGLRenderer.
|
pure virtual |
Implemented in NullRenderer, and OpenGLRenderer.
|
pure virtual |
Implemented in BaseRenderer.
|
pure virtual |
Takes a screenshot of the game viewport, w/o the UI elements.
width | Required width |
height | Required height. |
Implemented in NullRenderer, and OpenGLRenderer.
|
pure virtual |
Implemented in BaseRenderer.
|
pure virtual |
Implemented in NullRenderer, and OpenGLRenderer.
|
pure virtual |
Implemented in BaseRenderer.
Implemented in NullRenderer, and OpenGLRenderer.
|
pure virtual |
Implemented in NullRenderer, and OpenGLRenderer.
|
pure virtual |
Implemented in BaseRenderer, NullRenderer, and OpenGLRenderer.
|
pure virtual |
Implemented in NullRenderer, and OpenGLRenderer.
|
pure virtual |
Implemented in NullRenderer, and OpenGLRenderer.
|
pure virtual |
Implemented in NullRenderer, and OpenGLRenderer.
|
pure virtual |
Implemented in NullRenderer, and OpenGLRenderer.
|
pure virtual |
Implemented in NullRenderer, and OpenGLRenderer.
|
pure virtual |
Implemented in NullRenderer, and OpenGLRenderer.
|
pure virtual |
Implemented in NullRenderer, and OpenGLRenderer.
|
pure virtual |
Implemented in NullRenderer, and OpenGLRenderer.
|
pure virtual |
Implemented in NullRenderer, and OpenGLRenderer.
|
pure virtual |
Implemented in NullRenderer, and OpenGLRenderer.
|
pure virtual |
Implemented in NullRenderer, and OpenGLRenderer.
|
pure virtual |
Implemented in NullRenderer, and OpenGLRenderer.
|
pure virtual |
Implemented in BaseRenderer.
|
pure virtual |
Implemented in NullRenderer, and OpenGLRenderer.
|
pure virtual |
Implemented in NullRenderer, and OpenGLRenderer.
|
pure virtual |
Implemented in BaseRenderer.
std::shared_ptr<GameConfig> Renderer::config = nullptr |
DecalBuilder* Renderer::decal_builder = nullptr |
int Renderer::drawcalls |
int Renderer::hd_water_current_frame |
GraphicsImage* Renderer::hd_water_tile_anim[7] |
int* Renderer::pActiveZBuffer |
std::shared_ptr<ParticleEngine> Renderer::particle_engine = nullptr |
RenderBillboardD3D Renderer::pBillboardRenderListD3D[1000] |
SpellFxRenderer* Renderer::spell_fx_renderer = nullptr |
Color Renderer::uFogColor |
unsigned int Renderer::uNumBillboardsToDraw |
Vis* Renderer::vis = nullptr |