#include <C4DrawGL.h>
Public Types | |
enum | DrawOperation { OP_POINTS , OP_TRIANGLES } |
enum | { DEFAULT_MESSAGE_COLOR = 0xffffffff } |
Public Member Functions | |
CStdGL () | |
~CStdGL () override | |
unsigned int | GenVAOID () |
void | FreeVAOID (unsigned int vaoid) |
bool | GetVAO (unsigned int vaoid, GLuint &vao) |
void | Clear () override |
void | Default () override |
bool | OnResolutionChanged (unsigned int iXRes, unsigned int iYRes) override |
bool | UpdateClipper () override |
const StdProjectionMatrix & | GetProjectionMatrix () const |
bool | PrepareMaterial (StdMeshMatManager &mat_manager, StdMeshMaterialLoader &loader, StdMeshMaterial &mat) override |
bool | PrepareRendering (C4Surface *sfcToSurface) override |
bool | PrepareSpriteShader (C4Shader &shader, const char *name, int ssc, C4GroupSet *pGroups, const char *const *additionalDefines, const char *const *additionalSlices) override |
bool | EnsureMainContextSelected () override |
CStdGLCtx * | CreateContext (C4Window *pWindow, C4AbstractApp *pApp) override |
void | SetupMultiBlt (C4ShaderCall &call, const C4BltTransform *pTransform, GLuint baseTex, GLuint overlayTex, GLuint normalTex, DWORD dwOverlayModClr, StdProjectionMatrix *out_modelview) |
void | PerformMesh (StdMeshInstance &instance, float tx, float ty, float twdt, float thgt, DWORD dwPlayerColor, C4BltTransform *pTransform) override |
void | FillBG (DWORD dwClr=0) override |
void | PerformMultiPix (C4Surface *sfcTarget, const C4BltVertex *vertices, unsigned int n_vertices, C4ShaderCall *shader_call) override |
void | PerformMultiLines (C4Surface *sfcTarget, const C4BltVertex *vertices, unsigned int n_vertices, float width, C4ShaderCall *shader_call) override |
void | PerformMultiTris (C4Surface *sfcTarget, const C4BltVertex *vertices, unsigned int n_vertices, const C4BltTransform *pTransform, C4TexRef *pTex, C4TexRef *pOverlay, C4TexRef *pNormal, DWORD dwOverlayClrMod, C4ShaderCall *shader_call) override |
void | PerformMultiBlt (C4Surface *sfcTarget, DrawOperation op, const C4BltVertex *vertices, unsigned int n_vertices, bool has_tex, C4ShaderCall *shader_call) |
bool | RestoreDeviceObjects () override |
bool | InvalidateDeviceObjects () override |
bool | DeviceReady () override |
bool | InitShaders (C4GroupSet *pGroups) |
C4Shader * | GetSpriteShader (int ssc) |
C4Shader * | GetSpriteShader (bool haveBase, bool haveOverlay, bool haveNormal) |
void | ObjectLabel (uint32_t identifier, uint32_t name, int32_t length, const char *label) |
bool | Init (C4AbstractApp *pApp, unsigned int iXRes, unsigned int iYRes, unsigned int iMonitor) |
bool | GetPrimaryClipper (int &rX1, int &rY1, int &rX2, int &rY2) |
bool | SetPrimaryClipper (int iX1, int iY1, int iX2, int iY2) |
bool | SubPrimaryClipper (int iX1, int iY1, int iX2, int iY2) |
C4Rect | GetClipRect () const |
C4Rect | GetOutRect () const |
bool | StorePrimaryClipper () |
bool | RestorePrimaryClipper () |
bool | NoPrimaryClipper () |
bool | ApplyPrimaryClipper (C4Surface *sfcSurface) |
bool | DetachPrimaryClipper (C4Surface *sfcSurface) |
bool | GetSurfaceSize (C4Surface *sfcSurface, int &iWdt, int &iHgt) |
void | Grayscale (C4Surface *sfcSfc, int32_t iOffset=0) |
void | LockingPrimary () |
void | PrimaryUnlocked () |
virtual void | BlitLandscape (C4Surface *sfcSource, float fx, float fy, C4Surface *sfcTarget, float tx, float ty, float wdt, float hgt) |
void | Blit8Fast (CSurface8 *sfcSource, int fx, int fy, C4Surface *sfcTarget, int tx, int ty, int wdt, int hgt) |
bool | Blit (C4Surface *sfcSource, float fx, float fy, float fwdt, float fhgt, C4Surface *sfcTarget, float tx, float ty, float twdt, float thgt, bool fSrcColKey=false, const C4BltTransform *pTransform=nullptr) |
bool | BlitUnscaled (C4Surface *sfcSource, float fx, float fy, float fwdt, float fhgt, C4Surface *sfcTarget, float tx, float ty, float twdt, float thgt, bool fSrcColKey=false, const C4BltTransform *pTransform=nullptr) |
bool | RenderMesh (StdMeshInstance &instance, C4Surface *sfcTarget, float tx, float ty, float twdt, float thgt, DWORD dwPlayerColor, C4BltTransform *pTransform) |
bool | Blit8 (C4Surface *sfcSource, int fx, int fy, int fwdt, int fhgt, C4Surface *sfcTarget, int tx, int ty, int twdt, int thgt, bool fSrcColKey=false, const C4BltTransform *pTransform=nullptr) |
bool | BlitSimple (C4Surface *sfcSource, int fx, int fy, int fwdt, int fhgt, C4Surface *sfcTarget, int tx, int ty, int twdt, int thgt, bool fTransparency=true) |
bool | BlitSurface (C4Surface *sfcSurface, C4Surface *sfcTarget, int tx, int ty, bool fBlitBase) |
bool | BlitSurfaceTile (C4Surface *sfcSurface, C4Surface *sfcTarget, float iToX, float iToY, float iToWdt, float iToHgt, float iOffsetX, float iOffsetY, C4ShaderCall *shader_call) |
bool | TextOut (const char *szText, CStdFont &rFont, float fZoom, C4Surface *sfcDest, float iTx, float iTy, DWORD dwFCol=0xffffffff, BYTE byForm=ALeft, bool fDoMarkup=true) |
bool | StringOut (const char *szText, CStdFont &rFont, float fZoom, C4Surface *sfcDest, float iTx, float iTy, DWORD dwFCol=0xffffffff, BYTE byForm=ALeft, bool fDoMarkup=true) |
void | DrawBoxDw (C4Surface *sfcDest, int iX1, int iY1, int iX2, int iY2, DWORD dwClr) |
void | DrawBoxFade (C4Surface *sfcDest, float iX, float iY, float iWdt, float iHgt, DWORD dwClr1, DWORD dwClr2, DWORD dwClr3, DWORD dwClr4, C4ShaderCall *shader_call) |
void | DrawPatternedCircle (C4Surface *sfcDest, int x, int y, int r, BYTE col, C4Pattern &Pattern, CStdPalette &rPal) |
void | DrawFrameDw (C4Surface *sfcDest, int x1, int y1, int x2, int y2, DWORD dwClr, float width=1.0f) |
void | DrawQuadDw (C4Surface *sfcTarget, float *ipVtx, DWORD dwClr1, DWORD dwClr2, DWORD dwClr3, DWORD dwClr4, C4ShaderCall *shader_call) |
void | DrawPix (C4Surface *sfcDest, float tx, float ty, DWORD dwCol) |
void | DrawLineDw (C4Surface *sfcTarget, float x1, float y1, float x2, float y2, DWORD dwClr, float width=1.0f) |
void | DrawCircleDw (C4Surface *sfcTarget, float cx, float cy, float r, DWORD dwClr, float width=1.0f) |
void | SetGamma (float r, float g, float b, int32_t iRampIndex) |
void | ResetGamma () |
DWORD | ApplyGammaTo (DWORD dwClr) |
void | ActivateBlitModulation (DWORD dwWithClr) |
void | DeactivateBlitModulation () |
bool | GetBlitModulation (DWORD &rdwColor) |
void | SetBlitMode (DWORD dwBlitMode) |
void | ResetBlitMode () |
void | SetFoW (const C4FoWRegion *fow) |
const C4FoWRegion * | GetFoW () const |
void | SetZoom (float X, float Y, float Zoom) |
void | SetZoom (const ZoomData &zoom) |
void | GetZoom (ZoomData *r) |
void | ApplyZoom (float &X, float &Y) |
void | RemoveZoom (float &X, float &Y) |
void | SetMeshTransform (const StdMeshMatrix *Transform) |
void | SetPerspective (bool fSet) |
Public Attributes | |
struct { | |
bool | LowMaxVertexUniformCount |
bool | ForceSoftwareTransform |
} | Workarounds |
C4AbstractApp * | pApp |
bool | Active |
float | gamma [C4MaxGammaRamps][3] |
float | gammaOut [3] |
int | MaxTexSize {0} |
C4ScriptUniform | scriptUniform |
float | Zoom |
Static Public Attributes | |
static constexpr int | COLOR_DEPTH = 32 |
static constexpr int | COLOR_DEPTH_BYTES = COLOR_DEPTH / 8 |
Protected Member Functions | |
bool | CheckGLError (const char *szAtOp) |
const char * | GLErrorString (GLenum code) |
bool | Error (const char *szMsg) override |
bool | StringOut (const char *szText, C4Surface *sfcDest, float iTx, float iTy, DWORD dwFCol, BYTE byForm, bool fDoMarkup, C4Markup &Markup, CStdFont *pFont, float fZoom) |
bool | CreatePrimaryClipper (unsigned int iXRes, unsigned int iYRes) |
Static Protected Attributes | |
static const unsigned int | N_GENERIC_VBOS = 16 |
static const unsigned int | GENERIC_VBO_SIZE = 3 * 64 |
Friends | |
class | C4Surface |
class | C4TexRef |
class | C4Pattern |
class | CStdGLCtx |
class | C4StartupOptionsDlg |
class | C4FullScreen |
class | C4Window |
class | C4ShaderCall |
class | C4FoWRegion |
Definition at line 169 of file C4DrawGL.h.
|
inherited |
CStdGL::CStdGL | ( | ) |
Definition at line 90 of file C4DrawGL.cpp.
References Default(), GenericVBOs, lines_tex, and pGL.
|
override |
|
inlineinherited |
Definition at line 188 of file C4Draw.h.
References C4Draw::BlitModulateClr, and C4Draw::BlitModulated.
Referenced by C4Sky::Draw(), C4GUI::Dialog::Draw(), C4GraphicsOverlay::Draw(), C4Landscape::Draw(), C4MouseControl::Draw(), C4GUI::Tabular::Sheet::DrawCaption(), C4Viewport::DrawMenu(), C4GraphicsOverlay::DrawPicture(), CStdFont::DrawText(), and C4Object::PrepareDrawing().
Definition at line 766 of file C4Draw.cpp.
References C4RGB, C4Draw::gammaOut, GetBlueValue, GetGreenValue, and GetRedValue.
|
inherited |
Definition at line 227 of file C4Draw.cpp.
|
inherited |
Definition at line 778 of file C4Draw.cpp.
References X, C4Draw::Zoom, C4Draw::ZoomX, and C4Draw::ZoomY.
Referenced by C4Draw::Blit8Fast(), C4Draw::BlitUnscaled(), C4GUI::Window::Draw(), C4LandscapeRenderGL::Draw(), and C4GUI::Edit::DrawElement().
|
inherited |
Definition at line 301 of file C4Draw.cpp.
References C4Draw::BlitUnscaled(), and C4Surface::Scale.
Referenced by C4Draw::BlitLandscape(), C4Draw::BlitSimple(), C4Draw::BlitSurface(), C4FacetSurface::CopyFromSfcMaxSize(), C4Facet::Draw(), C4Object::Draw(), C4Object::DrawFaceImpl(), C4Facet::DrawFullScreen(), C4Facet::DrawT(), CStdFont::DrawText(), C4Object::DrawTopFace(), C4Facet::DrawX(), C4Facet::DrawXFloat(), C4Facet::DrawXR(), C4Facet::DrawXT(), C4MapFolderData::Load(), and C4Game::SaveGameTitle().
|
inherited |
Definition at line 418 of file C4Draw.cpp.
References C4Draw::BlitSimple(), C4Surface::BltPix(), C4Surface::Hgt, C4Surface::Lock(), C4BltTransform::SetAsInv(), C4BltTransform::SetMoveScale(), C4BltTransform::TransformPoint(), C4Surface::Unlock(), and C4Surface::Wdt.
Referenced by C4Draw::BlitUnscaled().
|
inherited |
Definition at line 251 of file C4Draw.cpp.
References C4Draw::ApplyZoom(), DwTo4UB(), C4Surface::fPrimary, C4BltVertex::ftx, C4BltVertex::fty, CStdPalette::GetClr(), CSurface8::GetPix(), C4Surface::IsRenderTarget(), C4Surface::Lock(), C4Draw::PerformMultiPix(), CSurface8::pPal, C4Surface::Unlock(), and C4Draw::Zoom.
Referenced by C4Landscape::Draw().
|
virtualinherited |
Definition at line 245 of file C4Draw.cpp.
References C4Draw::Blit().
|
inherited |
Definition at line 463 of file C4Draw.cpp.
References C4Draw::Blit(), C4Surface::BltPix(), C4Surface::Hgt, Inside(), C4Surface::IsRenderTarget(), C4Surface::Lock(), C4Surface::Unlock(), and C4Surface::Wdt.
Referenced by C4Draw::Blit8().
|
inherited |
Definition at line 511 of file C4Draw.cpp.
References C4Draw::Blit(), C4Surface::Hgt, C4Surface::pMainSfc, and C4Surface::Wdt.
Referenced by C4Surface::Copy().
|
inherited |
Definition at line 529 of file C4Draw.cpp.
References C4SF_Tileable, DwTo4UB(), C4BltVertex::ftx, C4BltVertex::fty, C4BltVertex::ftz, C4Surface::Hgt, C4Surface::IsRenderTarget(), C4Draw::PerformMultiTris(), C4Surface::texture, C4BltVertex::tx, C4BltVertex::ty, and C4Surface::Wdt.
Referenced by C4UpperBoard::Draw(), C4Sky::Draw(), C4Viewport::Draw(), C4GUI::FullscreenDialog::DrawElement(), and C4ViewportList::DrawFullscreenBackground().
|
inherited |
Definition at line 309 of file C4Draw.cpp.
References C4Draw::ApplyZoom(), C4Draw::Blit8(), C4Draw::ClipAll, C4Surface::ClrByOwnerClr, DwTo4UB(), C4Surface::fPrimary, C4BltVertex::ftx, C4BltVertex::fty, C4TexRef::iSizeX, C4TexRef::iSizeY, C4Surface::IsRenderTarget(), C4BltTransform::mat, C4Draw::PerformMultiTris(), C4Surface::pMainSfc, C4Surface::pNormalSfc, C4Draw::PrepareRendering(), C4BltTransform::Set(), C4Surface::texture, C4BltVertex::tx, C4BltVertex::ty, C4Draw::Zoom, C4Draw::ZoomX, and C4Draw::ZoomY.
Referenced by C4Draw::Blit(), and C4Facet::DrawTUnscaled().
|
protected |
Definition at line 898 of file C4DrawGL.cpp.
References GLErrorString(), and LogF().
|
overridevirtual |
Reimplemented from C4Draw.
Definition at line 106 of file C4DrawGL.cpp.
References C4Draw::Clear(), C4Shader::Clear(), CStdGLCtx::Deselect(), InvalidateDeviceObjects(), C4Draw::NoPrimaryClipper(), pCurrCtx, pMainCtx, C4Draw::RenderTarget, SpriteShader, SpriteShaderBase, SpriteShaderBaseMod2, SpriteShaderBaseOverlay, SpriteShaderBaseOverlayMod2, SpriteShaderLight, SpriteShaderLightBase, SpriteShaderLightBaseMod2, SpriteShaderLightBaseNormal, SpriteShaderLightBaseNormalMod2, SpriteShaderLightBaseNormalOverlay, SpriteShaderLightBaseNormalOverlayMod2, SpriteShaderLightBaseOverlay, SpriteShaderLightBaseOverlayMod2, SpriteShaderLightMod2, and SpriteShaderMod2.
Referenced by ~CStdGL().
|
overridevirtual |
Reimplemented from C4Draw.
Definition at line 273 of file C4DrawGL.cpp.
References Config, CStdGLCtx, C4ConfigGraphics::DebugOpenGL, C4Config::Graphics, has_khr_debug, CStdGLCtx::Init(), Log(), LogF(), LogSilentF(), C4Draw::pApp, pCurrCtx, pMainCtx, and C4Draw::RenderTarget.
Referenced by C4Surface::C4Surface().
|
protectedinherited |
Definition at line 501 of file C4Draw.cpp.
References C4Draw::SetPrimaryClipper(), C4Draw::StorePrimaryClipper(), and C4Draw::Zoom.
Referenced by C4Draw::Init(), and OnResolutionChanged().
|
inlineinherited |
Definition at line 189 of file C4Draw.h.
References C4Draw::BlitModulated.
Referenced by C4Sky::Draw(), C4GUI::Dialog::Draw(), C4GraphicsOverlay::Draw(), C4Landscape::Draw(), C4MouseControl::Draw(), C4ParticleList::Draw(), C4GUI::Tabular::Sheet::DrawCaption(), C4Viewport::DrawMenu(), C4GraphicsOverlay::DrawPicture(), CStdFont::DrawText(), and C4Object::FinishedDrawing().
|
overridevirtual |
Reimplemented from C4Draw.
Definition at line 917 of file C4DrawGL.cpp.
References C4Draw::Default(), iPixelFormat, pCurrCtx, sfcFmt, and Workarounds.
Referenced by CStdGL().
|
inherited |
Definition at line 232 of file C4Draw.cpp.
|
inlineoverridevirtual |
|
inherited |
Definition at line 840 of file C4Draw.cpp.
References C4Draw::DrawBoxFade(), C4Surface::IsRenderTarget(), C4Surface::Lock(), C4Surface::SetPixDw(), and C4Surface::Unlock().
Referenced by C4MessageBoard::Draw(), C4Def::Draw(), C4LoaderScreen::Draw(), C4Sky::Draw(), C4GUI::Dialog::Draw(), C4Viewport::Draw(), C4GUI::Screen::Draw(), C4GUI::FrameDecoration::Draw(), C4ScriptGuiWindow::Draw(), C4GUI::GroupBox::DrawElement(), C4GUI::Edit::DrawElement(), C4GUI::ListBox::DrawElement(), C4GUI::Tabular::DrawElement(), C4GUI::TextWindow::DrawElement(), C4GUI::ContextMenu::DrawElement(), C4GUI::ComboBox::DrawElement(), C4GUI::Dialog::DrawElement(), C4MenuItem::DrawElement(), C4StartupNetListEntry::DrawElement(), and C4GUI::Screen::DrawToolTip().
|
inherited |
Definition at line 824 of file C4Draw.cpp.
References C4Draw::DrawQuadDw().
Referenced by C4Sky::Draw(), and C4Draw::DrawBoxDw().
|
inherited |
Definition at line 618 of file C4Draw.cpp.
References DwTo4UB(), and C4Draw::PerformMultiLines().
Referenced by C4EditCursor::Draw().
|
inherited |
Definition at line 635 of file C4Draw.cpp.
References DwTo4UB(), C4BltVertex::ftx, C4BltVertex::fty, and C4Draw::PerformMultiLines().
Referenced by C4EditCursor::Draw(), C4PathFinderRay::Draw(), C4TransferZone::Draw(), C4Object::Draw(), C4ScriptGuiWindow::Draw(), C4GUI::GroupBox::DrawElement(), C4GUI::Edit::DrawElement(), C4GUI::ComboBox::DrawElement(), C4Menu::DrawFrame(), and C4GUI::Screen::DrawToolTip().
|
inherited |
Definition at line 608 of file C4Draw.cpp.
References DwTo4UB(), C4BltVertex::ftx, C4BltVertex::fty, and C4Draw::PerformMultiLines().
Referenced by C4EditCursor::Draw(), C4PathFinderRay::Draw(), C4Object::Draw(), C4GUI::Element::Draw3DFrame(), C4GUI::HorizontalLine::DrawElement(), C4GUI::GroupBox::DrawElement(), C4GUI::ListBox::DrawElement(), C4GUI::Tabular::DrawElement(), and C4Chart::DrawElement().
|
inherited |
Definition at line 669 of file C4Draw.cpp.
References C4Draw::DrawPix(), C4Surface::IsRenderTarget(), C4Surface::Lock(), C4Pattern::PatternClr(), C4Surface::SetPixDw(), and C4Surface::Unlock().
Definition at line 598 of file C4Draw.cpp.
References C4BltVertex::color, DwTo4UB(), C4BltVertex::ftx, C4BltVertex::fty, and C4Draw::PerformMultiPix().
Referenced by C4Draw::DrawPatternedCircle().
|
inherited |
Definition at line 653 of file C4Draw.cpp.
References DwTo4UB(), C4BltVertex::ftx, C4BltVertex::fty, and C4Draw::PerformMultiTris().
Referenced by C4Draw::DrawBoxFade(), and C4GUI::Tabular::DrawElement().
|
overridevirtual |
Implements C4Draw.
Definition at line 757 of file C4DrawGL.cpp.
References pMainCtx, and CStdGLCtx::Select().
Referenced by InitShaders().
|
overrideprotectedvirtual |
Reimplemented from C4Draw.
Definition at line 855 of file C4DrawGL.cpp.
References C4Draw::Error(), and LogF().
|
overridevirtual |
Implements C4Draw.
Definition at line 136 of file C4DrawGL.cpp.
References GetBlueValue, GetGreenValue, GetRedValue, and pCurrCtx.
void CStdGL::FreeVAOID | ( | unsigned int | vaoid | ) |
Definition at line 969 of file C4DrawGL.cpp.
References CStdGLCtx::contexts, CStdGLCtx::hVAOs, NextVAOID, pCurrCtx, and VAOIDs.
Referenced by C4LandscapeRenderGL::Clear(), InvalidateDeviceObjects(), StdMeshInstance::UpdateIBO(), C4FoWDrawLightTextureStrategy::~C4FoWDrawLightTextureStrategy(), C4FoWDrawWireframeStrategy::~C4FoWDrawWireframeStrategy(), C4FoWRegion::~C4FoWRegion(), StdMesh::~StdMesh(), and StdMeshInstance::~StdMeshInstance().
unsigned int CStdGL::GenVAOID | ( | ) |
Definition at line 927 of file C4DrawGL.cpp.
References NextVAOID, and VAOIDs.
Referenced by C4FoWDrawLightTextureStrategy::Begin(), C4FoWDrawWireframeStrategy::C4FoWDrawWireframeStrategy(), C4ParticleChunk::Draw(), StdMesh::PostInit(), C4FoWRegion::Render(), RestoreDeviceObjects(), and StdMeshInstance::UpdateIBO().
|
inlineinherited |
Definition at line 190 of file C4Draw.h.
References C4Draw::BlitModulateClr, and C4Draw::BlitModulated.
Referenced by CStdFont::DrawText().
|
inherited |
Definition at line 724 of file C4Draw.cpp.
References C4Surface::Hgt, C4Draw::iClipX1, C4Draw::iClipX2, C4Draw::iClipY1, C4Draw::iClipY2, C4Draw::RenderTarget, and C4Surface::Wdt.
Referenced by C4LandscapeRenderGL::Draw(), PerformMesh(), SetupMultiBlt(), and UpdateClipper().
|
inlineinherited |
Definition at line 194 of file C4Draw.h.
References C4Draw::pFoW.
Referenced by C4Sky::Draw(), and C4Object::Draw().
|
inherited |
Definition at line 733 of file C4Draw.cpp.
References C4Surface::Hgt, C4Draw::RenderTarget, and C4Surface::Wdt.
Referenced by C4LandscapeRenderGL::Draw(), PerformMesh(), and SetupMultiBlt().
|
inherited |
Definition at line 716 of file C4Draw.cpp.
References C4Draw::fClipX1, C4Draw::fClipX2, C4Draw::fClipY1, and C4Draw::fClipY2.
Referenced by C4GUI::Window::Draw(), C4GUI::MultilineLabel::DrawElement(), and C4GUI::Edit::DrawElement().
|
inline |
Definition at line 254 of file C4DrawGL.h.
References ProjectionMatrix.
Referenced by C4LandscapeRenderGL::Draw(), and C4FoWRegion::Render().
C4Shader * CStdGL::GetSpriteShader | ( | bool | haveBase, |
bool | haveOverlay, | ||
bool | haveNormal | ||
) |
C4Shader * CStdGL::GetSpriteShader | ( | int | ssc | ) |
Definition at line 673 of file C4DrawGL.cpp.
References SpriteShader, SpriteShaderBase, SpriteShaderBaseMod2, SpriteShaderBaseOverlay, SpriteShaderBaseOverlayMod2, SpriteShaderLight, SpriteShaderLightBase, SpriteShaderLightBaseMod2, SpriteShaderLightBaseNormal, SpriteShaderLightBaseNormalMod2, SpriteShaderLightBaseNormalOverlay, SpriteShaderLightBaseNormalOverlayMod2, SpriteShaderLightBaseOverlay, SpriteShaderLightBaseOverlayMod2, SpriteShaderLightMod2, and SpriteShaderMod2.
Referenced by C4ParticleList::Draw(), PerformMultiLines(), PerformMultiPix(), and PerformMultiTris().
|
inherited |
Definition at line 191 of file C4Draw.cpp.
References C4Surface::GetSurfaceSize().
bool CStdGL::GetVAO | ( | unsigned int | vaoid, |
GLuint & | vao | ||
) |
Definition at line 1015 of file C4DrawGL.cpp.
References CStdGLCtx::hVAOs, pCurrCtx, and VAOIDs.
Referenced by C4ParticleChunk::Draw(), C4LandscapeRenderGL::Draw(), C4FoWDrawLightTextureStrategy::End(), C4FoWDrawWireframeStrategy::End(), PerformMultiBlt(), and C4FoWRegion::Render().
|
inlineinherited |
Definition at line 197 of file C4Draw.h.
References ZoomData::X, ZoomData::Y, ZoomData::Zoom, C4Draw::Zoom, C4Draw::ZoomX, and C4Draw::ZoomY.
Referenced by C4MouseControl::Draw(), C4GUI::CMouse::Draw(), C4Game::DrawCrewOverheadText(), and ZoomDataStackItem::ZoomDataStackItem().
|
protected |
Definition at line 882 of file C4DrawGL.cpp.
Referenced by CheckGLError().
|
inherited |
Definition at line 695 of file C4Draw.cpp.
References a, b, GetBlueValue, GetGreenValue, C4Surface::GetPixDw(), GetRedValue, C4Surface::Hgt, C4Surface::Lock(), RGBA(), C4Surface::SetPixDw(), C4Surface::Unlock(), and C4Surface::Wdt.
Referenced by C4FacetSurface::Grayscale().
|
inherited |
Definition at line 809 of file C4Draw.cpp.
References C4Draw::C4Surface, C4Draw::CreatePrimaryClipper(), C4Draw::Error(), C4Draw::pApp, C4Window::pSurface, C4AbstractApp::pWindow, and C4Draw::RestoreDeviceObjects().
Referenced by DDrawInit().
bool CStdGL::InitShaders | ( | C4GroupSet * | pGroups | ) |
Definition at line 714 of file C4DrawGL.cpp.
References EnsureMainContextSelected(), pCurrCtx, PrepareSpriteShader(), SpriteShader, and SpriteShaderMod2.
Referenced by C4GraphicsResource::Init().
|
overridevirtual |
Implements C4Draw.
Definition at line 808 of file C4DrawGL.cpp.
References C4Draw::Active, CurrentVBO, FreeVAOID(), GenericVAOs, GenericVBOs, lines_tex, and N_GENERIC_VBOS.
Referenced by Clear(), and RestoreDeviceObjects().
|
inlineinherited |
|
inherited |
Definition at line 237 of file C4Draw.cpp.
References C4Draw::SetPrimaryClipper().
Referenced by Clear(), C4Viewport::Draw(), C4Landscape::DrawChunks(), C4GUI::Edit::DrawElement(), and C4Landscape::P::MapToSurface().
void CStdGL::ObjectLabel | ( | uint32_t | identifier, |
uint32_t | name, | ||
int32_t | length, | ||
const char * | label | ||
) |
Definition at line 267 of file C4DrawGL.cpp.
References has_khr_debug.
Referenced by C4ParticleChunk::Draw(), and C4Shader::Init().
|
overridevirtual |
Implements C4Draw.
Definition at line 909 of file C4DrawGL.cpp.
References C4Draw::CreatePrimaryClipper(), and RestoreDeviceObjects().
|
overridevirtual |
Implements C4Draw.
Definition at line 1025 of file C4DrawMeshGL.cpp.
References b, C4Draw::BlitModulateClr, C4Draw::BlitModulated, StdMeshMatrix::Determinant(), C4Draw::dwBlitMode, C4Draw::fUsePerspective, StdMesh::GetBoundingBox(), StdMesh::GetBoundingRadius(), C4Draw::GetClipRect(), StdMeshInstance::GetMesh(), C4Draw::GetOutRect(), C4Rect::Hgt, StdMeshMatrix::Identity(), StdProjectionMatrix::Identity(), StdMeshMatrix::LookAt(), C4Draw::MeshTransform, Perspective(), C4Draw::pFoW, ProjectionMatrix, StdMeshMatrix::Scale(), Scale(), StdMeshVector::Translate(), Translate(), ControllerKeys::Up(), C4Rect::Wdt, C4Rect::x, StdMeshVector::x, StdMeshBox::x1, StdMeshBox::x2, C4Rect::y, StdMeshVector::y, StdMeshBox::y1, StdMeshBox::y2, StdMeshVector::z, StdMeshBox::z1, StdMeshBox::z2, C4Draw::Zoom, C4Draw::ZoomX, and C4Draw::ZoomY.
void CStdGL::PerformMultiBlt | ( | C4Surface * | sfcTarget, |
DrawOperation | op, | ||
const C4BltVertex * | vertices, | ||
unsigned int | n_vertices, | ||
bool | has_tex, | ||
C4ShaderCall * | shader_call | ||
) |
Definition at line 593 of file C4DrawGL.cpp.
References C4SSA_Color, C4SSA_Position, C4SSA_TexCoord, C4SSU_Resolution, CurrentVBO, GenericVAOs, GenericVBOs, GenericVBOSizes, C4ShaderCall::GetAttribute(), GetVAO(), C4Surface::Hgt, C4Surface::IsRenderTarget(), N_GENERIC_VBOS, C4Draw::OP_POINTS, C4Draw::OP_TRIANGLES, PrepareRendering(), C4ShaderCall::SetUniform2f(), and C4Surface::Wdt.
Referenced by PerformMultiLines(), PerformMultiPix(), and PerformMultiTris().
|
overridevirtual |
Implements C4Draw.
Definition at line 517 of file C4DrawGL.cpp.
References C4BltVertex::color, C4BltVertex::ftx, C4BltVertex::fty, GetSpriteShader(), lines_tex, C4Draw::OP_TRIANGLES, PerformMultiBlt(), SetupMultiBlt(), C4BltVertex::tx, and C4BltVertex::ty.
|
overridevirtual |
Implements C4Draw.
Definition at line 490 of file C4DrawGL.cpp.
References GetSpriteShader(), C4Draw::OP_POINTS, PerformMultiBlt(), SetupMultiBlt(), and StdProjectionMatrix::Translate().
|
overridevirtual |
Implements C4Draw.
Definition at line 577 of file C4DrawGL.cpp.
References GetSpriteShader(), C4Draw::OP_TRIANGLES, PerformMultiBlt(), SetupMultiBlt(), and C4TexRef::texName.
|
overridevirtual |
Implements C4Draw.
Definition at line 272 of file C4DrawMeshGL.cpp.
References StdMeshMatManager::AddProgram(), StdMeshMatManager::AddShader(), StdMeshMaterialTextureUnit::AM_Border, StdMeshMaterialTextureUnit::AM_Clamp, StdMeshMaterialTextureUnit::AM_Mirror, StdMeshMaterialTextureUnit::AM_Wrap, StdMeshMaterialTechnique::Available, StdMeshMaterial::BestTechniqueIndex, StdMeshMaterialTextureUnit::F_Anisotropic, StdMeshMaterialTextureUnit::F_Linear, StdMeshMaterialTextureUnit::F_None, StdMeshMaterialTextureUnit::F_Point, StdMeshMaterialTextureUnit::Filtering, FormatString(), StdMeshMaterialPass::FragmentShader, StdMeshMaterialPass::GeometryShader, StdStrBuf::getData(), StdStrBuf::getLength(), StdMeshMaterialTextureUnit::GetNumTextures(), StdMeshMaterialTextureUnit::GetTexture(), Log(), StdMeshMaterialPass::Name, StdMeshMaterialTechnique::Name, StdMeshMaterial::Name, StdMeshMaterialPass::ShaderInstance::Parameters, StdMeshMaterialTechnique::Passes, pCurrCtx, StdMeshMaterialPass::Program, StdMeshMaterialPass::ShaderInstance::Shader, StdMeshMatManager::SMM_AcceptExisting, SMMS_FRAGMENT, SMMS_VERTEX, StdMeshMaterial::Techniques, StdMeshMaterialTextureUnit::TexAddressMode, StdMeshMaterialTextureUnit::TexBorderColor, C4TexRef::texName, StdMeshMaterialPass::TextureUnits, StdMeshMaterialPass::VertexShader, and Workarounds.
|
overridevirtual |
Implements C4Draw.
Definition at line 161 of file C4DrawGL.cpp.
References C4Draw::Active, C4AbstractApp::AssertMainThread(), C4Surface::IsRenderTarget(), C4Surface::Locked, C4Draw::pApp, C4Surface::pCtx, pCurrCtx, C4Draw::RenderTarget, CStdGLCtx::Select(), and UpdateClipper().
Referenced by C4LandscapeRenderGL::Draw(), PerformMultiBlt(), and C4GUI::DialogWindow::PerformUpdate().
|
overridevirtual |
Implements C4Draw.
Definition at line 190 of file C4DrawGL.cpp.
References C4Shader::AddDefine(), C4SSA_BoneIndices0, C4SSA_BoneIndices1, C4SSA_BoneWeights0, C4SSA_BoneWeights1, C4SSA_Color, C4SSA_Count, C4SSA_Normal, C4SSA_Position, C4SSA_TexCoord, C4SSU_AmbientBrightness, C4SSU_AmbientTex, C4SSU_AmbientTransform, C4SSU_BaseTex, C4SSU_Bones, C4SSU_ClrMod, C4SSU_Count, C4SSU_CullMode, C4SSU_FrameCounter, C4SSU_Gamma, C4SSU_LightTex, C4SSU_LightTransform, C4SSU_MaterialAmbient, C4SSU_MaterialDiffuse, C4SSU_MaterialEmission, C4SSU_MaterialShininess, C4SSU_MaterialSpecular, C4SSU_ModelViewMatrix, C4SSU_NormalMatrix, C4SSU_NormalTex, C4SSU_OverlayClr, C4SSU_OverlayTex, C4SSU_ProjectionMatrix, C4SSU_Resolution, C4Shader::Clear(), and C4Shader::ClearSlices().
Referenced by InitShaders().
|
inlineinherited |
|
inherited |
Definition at line 784 of file C4Draw.cpp.
References X, C4Draw::Zoom, C4Draw::ZoomX, and C4Draw::ZoomY.
|
inherited |
Definition at line 397 of file C4Draw.cpp.
References StdMeshMatrix::Identity(), C4Surface::IsRenderTarget(), C4Draw::MeshTransform, C4Draw::PerformMesh(), C4Draw::PrepareRendering(), StdMeshInstance::ReorderFaces(), and StdMeshInstance::UpdateBoneTransforms().
Referenced by C4DefGraphics::Draw(), C4GraphicsOverlay::Draw(), and C4Object::DrawFaceImpl().
|
inlineinherited |
Definition at line 192 of file C4Draw.h.
References C4Draw::dwBlitMode.
Referenced by C4GraphicsOverlay::Draw(), C4ParticleList::Draw(), C4GUI::Tabular::Sheet::DrawCaption(), C4GUI::Button::DrawElement(), C4GUI::IconButton::DrawElement(), C4GUI::ArrowButton::DrawElement(), C4GUI::CheckBox::DrawElement(), C4GUI::ContextButton::DrawElement(), C4GUI::ComboBox::DrawElement(), C4EditCursor::DrawObject(), C4GraphicsOverlay::DrawPicture(), and C4Object::FinishedDrawing().
|
inherited |
Definition at line 754 of file C4Draw.cpp.
References C4Draw::gamma, and C4Draw::gammaOut.
Referenced by C4Draw::Clear(), C4Draw::Default(), and C4Game::SetDefaultGamma().
|
overridevirtual |
Implements C4Draw.
Definition at line 762 of file C4DrawGL.cpp.
References C4Draw::Active, C4Draw::dwBlitMode, GENERIC_VBO_SIZE, GenericVAOs, GenericVBOs, GenericVBOSizes, GenVAOID(), InvalidateDeviceObjects(), lines_tex, C4Draw::MaxTexSize, N_GENERIC_VBOS, C4Draw::pApp, pMainCtx, C4Window::pSurface, C4AbstractApp::pWindow, C4Draw::RenderTarget, s, and CStdGLCtx::Select().
Referenced by OnResolutionChanged().
|
inherited |
Definition at line 210 of file C4Draw.cpp.
References C4Draw::fStClipX1, C4Draw::fStClipX2, C4Draw::fStClipY1, C4Draw::fStClipY2, and C4Draw::SetPrimaryClipper().
Referenced by C4ScriptGuiWindow::DrawChildren(), C4GUI::WoodenLabel::DrawElement(), C4GUI::ComboBox::DrawElement(), C4MenuItem::DrawElement(), and C4FoWRegion::Render().
|
inlineinherited |
Definition at line 191 of file C4Draw.h.
References C4GFXBLIT_ALL, and C4Draw::dwBlitMode.
Referenced by C4GraphicsOverlay::Draw(), C4MouseControl::Draw(), C4GUI::Tabular::Sheet::DrawCaption(), C4GUI::Button::DrawElement(), C4GUI::IconButton::DrawElement(), C4GUI::ArrowButton::DrawElement(), C4GUI::CheckBox::DrawElement(), C4GUI::ContextButton::DrawElement(), C4GUI::ComboBox::DrawElement(), C4EditCursor::DrawObject(), C4GraphicsOverlay::DrawPicture(), and C4Object::PrepareDrawing().
|
inlineinherited |
Definition at line 193 of file C4Draw.h.
References C4Draw::pFoW.
Referenced by C4Viewport::Draw(), and C4Object::Draw().
|
inherited |
Definition at line 738 of file C4Draw.cpp.
References b, C4Draw::gamma, and C4Draw::gammaOut.
Referenced by C4Game::SetDefaultGamma().
|
inlineinherited |
Definition at line 200 of file C4Draw.h.
References C4Draw::MeshTransform.
Referenced by C4DefGraphics::Draw(), C4GraphicsOverlay::Draw(), and C4Object::DrawFaceImpl().
|
inlineinherited |
Definition at line 201 of file C4Draw.h.
References C4Draw::fUsePerspective.
Referenced by C4DefGraphics::Draw().
|
inherited |
Definition at line 217 of file C4Draw.cpp.
References C4Draw::fClipX1, C4Draw::fClipX2, C4Draw::fClipY1, C4Draw::fClipY2, C4Draw::iClipX1, C4Draw::iClipX2, C4Draw::iClipY1, C4Draw::iClipY2, and C4Draw::UpdateClipper().
Referenced by C4Draw::CreatePrimaryClipper(), C4GUI::Window::Draw(), C4Viewport::Draw(), C4ScriptGuiWindow::DrawChildren(), C4GUI::WoodenLabel::DrawElement(), C4GUI::Edit::DrawElement(), C4Draw::NoPrimaryClipper(), C4Draw::RestorePrimaryClipper(), and C4Draw::SubPrimaryClipper().
void CStdGL::SetupMultiBlt | ( | C4ShaderCall & | call, |
const C4BltTransform * | pTransform, | ||
GLuint | baseTex, | ||
GLuint | overlayTex, | ||
GLuint | normalTex, | ||
DWORD | dwOverlayModClr, | ||
StdProjectionMatrix * | out_modelview | ||
) |
Definition at line 356 of file C4DrawGL.cpp.
References C4ShaderCall::AllocTexUnit(), C4FoW::Ambient, C4ScriptUniform::Apply(), C4Draw::BlitModulateClr, C4Draw::BlitModulated, C4GFXBLIT_ADDITIVE, C4SSU_AmbientBrightness, C4SSU_AmbientTex, C4SSU_AmbientTransform, C4SSU_BaseTex, C4SSU_ClrMod, C4SSU_CullMode, C4SSU_Gamma, C4SSU_LightTex, C4SSU_LightTransform, C4SSU_ModelViewMatrix, C4SSU_NormalMatrix, C4SSU_NormalTex, C4SSU_OverlayClr, C4SSU_OverlayTex, C4SSU_ProjectionMatrix, C4Draw::dwBlitMode, C4Draw::gammaOut, C4FoWAmbient::GetBrightness(), C4Draw::GetClipRect(), C4FoWRegion::getFoW(), C4FoWRegion::GetFragTransform(), C4FoWAmbient::GetFragTransform(), C4Draw::GetOutRect(), C4FoWRegion::getSurfaceName(), C4FoWRegion::getViewportRegion(), StdProjectionMatrix::Identity(), StdMeshMatrix::Inverse(), C4BltTransform::mat, C4Draw::pFoW, ProjectionMatrix, Scale(), C4Draw::scriptUniform, C4ShaderCall::SetUniform1f(), C4ShaderCall::SetUniform3fv(), C4ShaderCall::SetUniform4fv(), C4ShaderCall::SetUniformMatrix2x3fv(), C4ShaderCall::SetUniformMatrix3x3Transpose(), C4ShaderCall::SetUniformMatrix4x4(), C4ShaderCall::Start(), C4FoWAmbient::Tex, Translate(), StdProjectionMatrix::Upper3x4(), C4Draw::Zoom, C4Draw::ZoomX, and C4Draw::ZoomY.
Referenced by C4ParticleList::Draw(), PerformMultiLines(), PerformMultiPix(), and PerformMultiTris().
|
inlineinherited |
Definition at line 196 of file C4Draw.h.
References C4Draw::SetZoom(), ZoomData::X, ZoomData::Y, and ZoomData::Zoom.
Referenced by C4Draw::SetZoom().
|
inherited |
Definition at line 773 of file C4Draw.cpp.
References X, C4Draw::Zoom, C4Draw::ZoomX, and C4Draw::ZoomY.
Referenced by C4Viewport::Draw(), C4MouseControl::Draw(), C4GUI::CMouse::Draw(), C4Game::DrawCrewOverheadText(), C4Viewport::DrawMenu(), ZoomDataStackItem::ZoomDataStackItem(), and ZoomDataStackItem::~ZoomDataStackItem().
|
inherited |
Definition at line 203 of file C4Draw.cpp.
References C4Draw::fClipX1, C4Draw::fClipX2, C4Draw::fClipY1, C4Draw::fClipY2, C4Draw::fStClipX1, C4Draw::fStClipX2, C4Draw::fStClipY1, and C4Draw::fStClipY2.
Referenced by C4Draw::CreatePrimaryClipper(), C4ScriptGuiWindow::DrawChildren(), C4GUI::WoodenLabel::DrawElement(), C4GUI::ComboBox::DrawElement(), C4MenuItem::DrawElement(), and C4FoWRegion::Render().
|
protectedinherited |
Definition at line 578 of file C4Draw.cpp.
References ACenter, ARight, C4Draw::ClipAll, CStdFont::DrawText(), C4Draw::PrepareRendering(), STDFONT_CENTERED, STDFONT_NOMARKUP, and STDFONT_RIGHTALGN.
|
inherited |
Definition at line 570 of file C4Draw.cpp.
Referenced by C4MessageBoard::Draw(), C4LoaderScreen::Draw(), and C4Draw::TextOut().
|
inherited |
Definition at line 196 of file C4Draw.cpp.
References C4Draw::iClipX1, C4Draw::iClipX2, C4Draw::iClipY1, C4Draw::iClipY2, and C4Draw::SetPrimaryClipper().
Referenced by C4GUI::Window::Draw(), C4GUI::ComboBox::DrawElement(), and C4MenuItem::DrawElement().
|
inherited |
Definition at line 561 of file C4Draw.cpp.
References CStdFont::GetLineHeight(), SCopySegmentEx(), and C4Draw::StringOut().
Referenced by C4UpperBoard::Draw(), C4LoaderScreen::Draw(), C4IDList::Draw(), C4Object::Draw(), C4GameMessage::Draw(), C4ScriptGuiWindow::Draw(), C4GUI::Tabular::Sheet::DrawCaption(), C4Game::DrawCrewOverheadText(), C4GUI::Label::DrawElement(), C4GUI::WoodenLabel::DrawElement(), C4GUI::MultilineLabel::DrawElement(), C4GUI::ProgressBar::DrawElement(), C4GUI::GroupBox::DrawElement(), C4GUI::Button::DrawElement(), C4GUI::IconButton::DrawElement(), C4GUI::FacetButton::DrawElement(), C4GUI::Edit::DrawElement(), C4GUI::CheckBox::DrawElement(), C4GUI::ContextMenu::Entry::DrawElement(), C4GUI::ComboBox::DrawElement(), C4MenuItem::DrawElement(), C4ScoreboardDlg::DrawElement(), C4StartupMainDlg::DrawElement(), C4Chart::DrawElement(), C4Viewport::DrawMenu(), C4Viewport::DrawPlayerStartup(), C4Network2::DrawStatus(), C4GUI::Screen::DrawToolTip(), C4Facet::DrawValue(), and C4Facet::DrawValue2().
|
overridevirtual |
Implements C4Draw.
Definition at line 143 of file C4DrawGL.cpp.
References C4Draw::Active, C4Draw::ClipAll, C4Draw::GetClipRect(), C4Surface::Hgt, C4Rect::Hgt, StdProjectionMatrix::Orthographic(), ProjectionMatrix, C4Draw::RenderTarget, C4Rect::Wdt, C4Rect::x, and C4Rect::y.
Referenced by PrepareRendering().
|
friend |
Definition at line 299 of file C4DrawGL.h.
|
friend |
Definition at line 296 of file C4DrawGL.h.
|
friend |
Definition at line 293 of file C4DrawGL.h.
|
friend |
Definition at line 298 of file C4DrawGL.h.
|
friend |
Definition at line 295 of file C4DrawGL.h.
|
friend |
Definition at line 291 of file C4DrawGL.h.
|
friend |
Definition at line 292 of file C4DrawGL.h.
|
friend |
Definition at line 297 of file C4DrawGL.h.
|
friend |
Definition at line 294 of file C4DrawGL.h.
Referenced by CreateContext().
|
inherited |
Definition at line 96 of file C4Draw.h.
Referenced by C4Draw::Clear(), C4Draw::Default(), InvalidateDeviceObjects(), PrepareRendering(), RestoreDeviceObjects(), C4GraphicsSystem::StartDrawing(), and UpdateClipper().
|
protectedinherited |
Definition at line 109 of file C4Draw.h.
Referenced by C4Draw::ActivateBlitModulation(), C4Draw::GetBlitModulation(), C4Surface::GetPixDw(), PerformMesh(), and SetupMultiBlt().
|
protectedinherited |
Definition at line 108 of file C4Draw.h.
Referenced by C4Draw::ActivateBlitModulation(), C4Draw::Clear(), C4Draw::DeactivateBlitModulation(), C4Draw::Default(), C4Draw::GetBlitModulation(), C4Surface::GetPixDw(), PerformMesh(), and SetupMultiBlt().
|
protectedinherited |
Definition at line 105 of file C4Draw.h.
Referenced by C4Draw::BlitUnscaled(), C4Draw::Default(), C4Draw::StringOut(), and UpdateClipper().
|
staticconstexprinherited |
Definition at line 89 of file C4Draw.h.
Referenced by C4Application::ApplyResolutionConstraints().
|
staticconstexprinherited |
Definition at line 90 of file C4Draw.h.
Referenced by C4TexRef::C4TexRef(), C4TexRef::Lock(), and C4TexRef::LockForUpdate().
|
protected |
Definition at line 220 of file C4DrawGL.h.
Referenced by InvalidateDeviceObjects(), and PerformMultiBlt().
|
protectedinherited |
Definition at line 110 of file C4Draw.h.
Referenced by C4Surface::BltPix(), C4Draw::Clear(), C4Draw::Default(), C4Surface::GetPixDw(), GetSpriteShader(), PerformMesh(), C4Draw::ResetBlitMode(), RestoreDeviceObjects(), C4Draw::SetBlitMode(), and SetupMultiBlt().
|
protectedinherited |
Definition at line 102 of file C4Draw.h.
Referenced by C4Draw::GetPrimaryClipper(), C4Draw::SetPrimaryClipper(), and C4Draw::StorePrimaryClipper().
|
protectedinherited |
Definition at line 102 of file C4Draw.h.
Referenced by C4Draw::GetPrimaryClipper(), C4Draw::SetPrimaryClipper(), and C4Draw::StorePrimaryClipper().
|
protectedinherited |
Definition at line 102 of file C4Draw.h.
Referenced by C4Draw::GetPrimaryClipper(), C4Draw::SetPrimaryClipper(), and C4Draw::StorePrimaryClipper().
|
protectedinherited |
Definition at line 102 of file C4Draw.h.
Referenced by C4Draw::GetPrimaryClipper(), C4Draw::SetPrimaryClipper(), and C4Draw::StorePrimaryClipper().
|
protectedinherited |
Definition at line 103 of file C4Draw.h.
Referenced by C4Draw::RestorePrimaryClipper(), and C4Draw::StorePrimaryClipper().
|
protectedinherited |
Definition at line 103 of file C4Draw.h.
Referenced by C4Draw::RestorePrimaryClipper(), and C4Draw::StorePrimaryClipper().
|
protectedinherited |
Definition at line 103 of file C4Draw.h.
Referenced by C4Draw::RestorePrimaryClipper(), and C4Draw::StorePrimaryClipper().
|
protectedinherited |
Definition at line 103 of file C4Draw.h.
Referenced by C4Draw::RestorePrimaryClipper(), and C4Draw::StorePrimaryClipper().
|
protectedinherited |
Definition at line 114 of file C4Draw.h.
Referenced by C4Draw::Default(), PerformMesh(), and C4Draw::SetPerspective().
|
inherited |
Definition at line 97 of file C4Draw.h.
Referenced by C4Weather::CompileFunc(), C4Draw::ResetGamma(), and C4Draw::SetGamma().
|
inherited |
Definition at line 98 of file C4Draw.h.
Referenced by C4Draw::ApplyGammaTo(), C4LandscapeRenderGL::Draw(), C4Draw::ResetGamma(), C4Draw::SetGamma(), and SetupMultiBlt().
|
staticprotected |
Definition at line 217 of file C4DrawGL.h.
Referenced by RestoreDeviceObjects().
|
protected |
Definition at line 224 of file C4DrawGL.h.
Referenced by InvalidateDeviceObjects(), PerformMultiBlt(), and RestoreDeviceObjects().
|
protected |
Definition at line 218 of file C4DrawGL.h.
Referenced by CStdGL(), InvalidateDeviceObjects(), PerformMultiBlt(), and RestoreDeviceObjects().
|
protected |
Definition at line 219 of file C4DrawGL.h.
Referenced by PerformMultiBlt(), and RestoreDeviceObjects().
|
protected |
Definition at line 230 of file C4DrawGL.h.
Referenced by CreateContext(), and ObjectLabel().
|
protectedinherited |
Definition at line 104 of file C4Draw.h.
Referenced by C4Draw::GetClipRect(), C4Draw::SetPrimaryClipper(), and C4Draw::SubPrimaryClipper().
|
protectedinherited |
Definition at line 104 of file C4Draw.h.
Referenced by C4Draw::GetClipRect(), C4Draw::SetPrimaryClipper(), and C4Draw::SubPrimaryClipper().
|
protectedinherited |
Definition at line 104 of file C4Draw.h.
Referenced by C4Draw::GetClipRect(), C4Draw::SetPrimaryClipper(), and C4Draw::SubPrimaryClipper().
|
protectedinherited |
Definition at line 104 of file C4Draw.h.
Referenced by C4Draw::GetClipRect(), C4Draw::SetPrimaryClipper(), and C4Draw::SubPrimaryClipper().
|
protected |
Definition at line 176 of file C4DrawGL.h.
Referenced by Default().
|
protected |
Definition at line 182 of file C4DrawGL.h.
Referenced by CStdGL(), InvalidateDeviceObjects(), PerformMultiLines(), and RestoreDeviceObjects().
|
inherited |
Definition at line 99 of file C4Draw.h.
Referenced by C4FoWAmbient::CreateFromLandscape(), RestoreDeviceObjects(), and CStdNoGfx::RestoreDeviceObjects().
|
protectedinherited |
Definition at line 113 of file C4Draw.h.
Referenced by C4Draw::Default(), PerformMesh(), C4Draw::RenderMesh(), and C4Draw::SetMeshTransform().
|
staticprotected |
Definition at line 216 of file C4DrawGL.h.
Referenced by InvalidateDeviceObjects(), PerformMultiBlt(), and RestoreDeviceObjects().
|
protected |
Definition at line 228 of file C4DrawGL.h.
Referenced by FreeVAOID(), and GenVAOID().
|
inherited |
Definition at line 95 of file C4Draw.h.
Referenced by CreateContext(), C4Draw::Error(), C4Draw::Init(), C4Surface::PageFlip(), PrepareRendering(), and RestoreDeviceObjects().
|
protected |
Definition at line 180 of file C4DrawGL.h.
Referenced by Clear(), CreateContext(), Default(), FillBG(), FreeVAOID(), GetVAO(), InitShaders(), C4TexRef::Lock(), PrepareMaterial(), PrepareRendering(), CStdGLCtx::SelectCommon(), C4TexRef::Unlock(), and C4TexRef::~C4TexRef().
|
protectedinherited |
Definition at line 111 of file C4Draw.h.
Referenced by C4Draw::Default(), C4Draw::GetFoW(), PerformMesh(), C4Draw::SetFoW(), and SetupMultiBlt().
|
protected |
Definition at line 179 of file C4DrawGL.h.
Referenced by Clear(), CreateContext(), DeviceReady(), EnsureMainContextSelected(), RestoreDeviceObjects(), and C4TexRef::Unlock().
|
protectedinherited |
Definition at line 106 of file C4Draw.h.
Referenced by C4Draw::LockingPrimary(), and C4Draw::PrimaryUnlocked().
|
protected |
Definition at line 185 of file C4DrawGL.h.
Referenced by GetProjectionMatrix(), PerformMesh(), SetupMultiBlt(), and UpdateClipper().
|
protectedinherited |
Definition at line 107 of file C4Draw.h.
Referenced by Clear(), CreateContext(), C4Draw::Default(), C4Draw::GetClipRect(), C4Draw::GetOutRect(), PrepareRendering(), RestoreDeviceObjects(), and UpdateClipper().
|
inherited |
Definition at line 100 of file C4Draw.h.
Referenced by C4Draw::Default(), C4Object::Draw(), C4LandscapeRenderGL::Draw(), C4Viewport::Execute(), and SetupMultiBlt().
|
protected |
Definition at line 178 of file C4DrawGL.h.
Referenced by C4Surface::Create(), and Default().
|
protected |
Definition at line 191 of file C4DrawGL.h.
Referenced by Clear(), GetSpriteShader(), and InitShaders().
|
protected |
Definition at line 193 of file C4DrawGL.h.
Referenced by Clear(), and GetSpriteShader().
|
protected |
Definition at line 194 of file C4DrawGL.h.
Referenced by Clear(), and GetSpriteShader().
|
protected |
Definition at line 195 of file C4DrawGL.h.
Referenced by Clear(), and GetSpriteShader().
|
protected |
Definition at line 196 of file C4DrawGL.h.
Referenced by Clear(), and GetSpriteShader().
|
protected |
Definition at line 198 of file C4DrawGL.h.
Referenced by Clear(), and GetSpriteShader().
|
protected |
Definition at line 200 of file C4DrawGL.h.
Referenced by Clear(), and GetSpriteShader().
|
protected |
Definition at line 201 of file C4DrawGL.h.
Referenced by Clear(), and GetSpriteShader().
|
protected |
Definition at line 204 of file C4DrawGL.h.
Referenced by Clear(), and GetSpriteShader().
|
protected |
Definition at line 205 of file C4DrawGL.h.
Referenced by Clear(), and GetSpriteShader().
|
protected |
Definition at line 206 of file C4DrawGL.h.
Referenced by Clear(), and GetSpriteShader().
|
protected |
Definition at line 207 of file C4DrawGL.h.
Referenced by Clear(), and GetSpriteShader().
|
protected |
Definition at line 202 of file C4DrawGL.h.
Referenced by Clear(), and GetSpriteShader().
|
protected |
Definition at line 203 of file C4DrawGL.h.
Referenced by Clear(), and GetSpriteShader().
|
protected |
Definition at line 199 of file C4DrawGL.h.
Referenced by Clear(), and GetSpriteShader().
|
protected |
Definition at line 192 of file C4DrawGL.h.
Referenced by Clear(), GetSpriteShader(), and InitShaders().
|
protected |
Definition at line 227 of file C4DrawGL.h.
Referenced by FreeVAOID(), GenVAOID(), and GetVAO().
struct { ... } CStdGL::Workarounds |
Referenced by Default(), and PrepareMaterial().
|
inherited |
Definition at line 116 of file C4Draw.h.
Referenced by C4Draw::ApplyZoom(), C4Draw::Blit8Fast(), C4Draw::BlitUnscaled(), C4Draw::CreatePrimaryClipper(), C4Draw::Default(), C4LandscapeRenderGL::Draw(), C4Draw::GetZoom(), PerformMesh(), C4Draw::RemoveZoom(), SetupMultiBlt(), and C4Draw::SetZoom().
|
protectedinherited |
Definition at line 112 of file C4Draw.h.
Referenced by C4Draw::ApplyZoom(), C4Draw::BlitUnscaled(), C4Draw::Default(), C4Draw::GetZoom(), PerformMesh(), C4Draw::RemoveZoom(), SetupMultiBlt(), and C4Draw::SetZoom().
|
protectedinherited |
Definition at line 112 of file C4Draw.h.
Referenced by C4Draw::ApplyZoom(), C4Draw::BlitUnscaled(), C4Draw::Default(), C4Draw::GetZoom(), PerformMesh(), C4Draw::RemoveZoom(), SetupMultiBlt(), and C4Draw::SetZoom().