#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 |
|
inherited |
Enumerator | |
---|---|
OP_POINTS | |
OP_TRIANGLES |
Definition at line 87 of file C4Draw.h.
CStdGL::CStdGL | ( | ) |
Definition at line 98 of file C4DrawGL.cpp.
References Default(), GenericVBOs, lines_tex, and pGL.
|
override |
|
inlineinherited |
Definition at line 188 of file C4Draw.h.
Referenced by C4Sky::Draw(), C4Landscape::Draw(), C4MouseControl::Draw(), C4GraphicsOverlay::Draw(), C4GUI::Dialog::Draw(), C4GUI::Tabular::Sheet::DrawCaption(), C4Viewport::DrawMenu(), C4GraphicsOverlay::DrawPicture(), CStdFont::DrawText(), and C4Object::PrepareDrawing().
Definition at line 772 of file C4Draw.cpp.
References C4RGB, GetBlueValue, GetGreenValue, and GetRedValue.
|
inherited |
Definition at line 227 of file C4Draw.cpp.
|
inherited |
Definition at line 784 of file C4Draw.cpp.
Referenced by C4LandscapeRenderGL::Draw(), C4GUI::Window::Draw(), C4GUI::Edit::DrawElement(), and C4FoWDrawWireframeStrategy::End().
|
inherited |
Definition at line 301 of file C4Draw.cpp.
References C4Surface::Scale.
Referenced by 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 424 of file C4Draw.cpp.
References C4Surface::BltPix(), C4Surface::Hgt, C4Surface::Lock(), C4BltTransform::SetAsInv(), C4BltTransform::SetMoveScale(), C4BltTransform::TransformPoint(), C4Surface::Unlock(), and C4Surface::Wdt.
|
inherited |
Definition at line 251 of file C4Draw.cpp.
References DwTo4UB(), C4Surface::fPrimary, C4BltVertex::ftx, C4BltVertex::fty, CStdPalette::GetClr(), CSurface8::GetPix(), C4Surface::IsRenderTarget(), C4Surface::Lock(), CSurface8::pPal, and C4Surface::Unlock().
Referenced by C4Landscape::Draw().
|
virtualinherited |
Definition at line 245 of file C4Draw.cpp.
|
inherited |
Definition at line 469 of file C4Draw.cpp.
References C4Surface::BltPix(), C4Surface::Hgt, Inside(), C4Surface::IsRenderTarget(), C4Surface::Lock(), C4Surface::Unlock(), and C4Surface::Wdt.
|
inherited |
Definition at line 517 of file C4Draw.cpp.
References C4Surface::Hgt, C4Surface::pMainSfc, and C4Surface::Wdt.
Referenced by C4Surface::Copy().
|
inherited |
Definition at line 535 of file C4Draw.cpp.
References C4SF_Tileable, DwTo4UB(), C4BltVertex::ftx, C4BltVertex::fty, C4BltVertex::ftz, C4Surface::Hgt, C4Surface::IsRenderTarget(), 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 C4Surface::ClrByOwnerClr, DwTo4UB(), C4Surface::fPrimary, C4BltVertex::ftx, C4BltVertex::fty, C4TexRef::iSizeX, C4TexRef::iSizeY, C4Surface::IsRenderTarget(), C4Surface::iTexSize, C4BltTransform::mat, C4Surface::pMainSfc, C4Surface::pNormalSfc, C4BltTransform::Set(), C4Surface::texture, C4BltVertex::tx, and C4BltVertex::ty.
Referenced by C4Facet::DrawTUnscaled().
|
protected |
Definition at line 909 of file C4DrawGL.cpp.
References GLErrorString(), and LogF().
|
overridevirtual |
Reimplemented from C4Draw.
Definition at line 114 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 283 of file C4DrawGL.cpp.
References Config, CStdGLCtx, C4ConfigGraphics::DebugOpenGL, Error(), C4Config::Graphics, CStdGLCtx::Init(), Log(), LogF(), LogSilentF(), C4AbstractApp::MessageDialog(), C4Draw::pApp, pCurrCtx, pMainCtx, and C4Draw::RenderTarget.
Referenced by C4Surface::C4Surface().
|
protectedinherited |
Definition at line 507 of file C4Draw.cpp.
Referenced by OnResolutionChanged().
|
inlineinherited |
Definition at line 189 of file C4Draw.h.
Referenced by C4Sky::Draw(), C4Landscape::Draw(), C4MouseControl::Draw(), C4GraphicsOverlay::Draw(), C4ParticleList::Draw(), C4GUI::Dialog::Draw(), C4GUI::Tabular::Sheet::DrawCaption(), C4Viewport::DrawMenu(), C4GraphicsOverlay::DrawPicture(), CStdFont::DrawText(), and C4Object::FinishedDrawing().
|
overridevirtual |
Reimplemented from C4Draw.
Definition at line 928 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 846 of file C4Draw.cpp.
References C4Surface::IsRenderTarget(), C4Surface::Lock(), C4Surface::SetPixDw(), and C4Surface::Unlock().
Referenced by C4ConsoleGUIPreviewWindow::Close(), C4Sky::Draw(), C4MessageBoard::Draw(), C4LoaderScreen::Draw(), C4Viewport::Draw(), C4Def::Draw(), C4ScriptGuiWindow::Draw(), C4GUI::FrameDecoration::Draw(), C4GUI::Dialog::Draw(), C4GUI::Screen::Draw(), C4MenuItem::DrawElement(), C4StartupNetListEntry::DrawElement(), C4GUI::GroupBox::DrawElement(), C4GUI::Edit::DrawElement(), C4GUI::ListBox::DrawElement(), C4GUI::Tabular::DrawElement(), C4GUI::TextWindow::DrawElement(), C4GUI::ContextMenu::DrawElement(), C4GUI::ComboBox::DrawElement(), C4GUI::Dialog::DrawElement(), and C4GUI::Screen::DrawToolTip().
|
inherited |
Definition at line 830 of file C4Draw.cpp.
Referenced by C4Sky::Draw().
|
inherited |
Definition at line 624 of file C4Draw.cpp.
References DwTo4UB().
Referenced by C4EditCursor::Draw().
|
inherited |
Definition at line 641 of file C4Draw.cpp.
References DwTo4UB(), C4BltVertex::ftx, and C4BltVertex::fty.
Referenced by C4TransferZone::Draw(), C4EditCursor::Draw(), C4PathFinderRay::Draw(), C4Object::Draw(), C4ScriptGuiWindow::Draw(), C4GUI::GroupBox::DrawElement(), C4GUI::Edit::DrawElement(), C4GUI::ComboBox::DrawElement(), C4Menu::DrawFrame(), and C4GUI::Screen::DrawToolTip().
|
inherited |
Definition at line 614 of file C4Draw.cpp.
References DwTo4UB(), C4BltVertex::ftx, and C4BltVertex::fty.
Referenced by C4EditCursor::Draw(), C4PathFinderRay::Draw(), C4Object::Draw(), C4GUI::Element::Draw3DFrame(), C4Chart::DrawElement(), C4GUI::HorizontalLine::DrawElement(), C4GUI::GroupBox::DrawElement(), C4GUI::ListBox::DrawElement(), C4GUI::Tabular::DrawElement(), and C4StartupPlrColorPickerDlg::OnClosed().
|
inherited |
Definition at line 675 of file C4Draw.cpp.
References C4Surface::IsRenderTarget(), C4Surface::Lock(), C4Pattern::PatternClr(), C4Surface::SetPixDw(), and C4Surface::Unlock().
Referenced by C4ConsoleGUIPreviewWindow::Close().
Definition at line 604 of file C4Draw.cpp.
References C4BltVertex::color, DwTo4UB(), C4BltVertex::ftx, and C4BltVertex::fty.
|
inherited |
Definition at line 659 of file C4Draw.cpp.
References DwTo4UB(), C4BltVertex::ftx, and C4BltVertex::fty.
Referenced by C4GUI::Tabular::DrawElement().
|
overridevirtual |
Implements C4Draw.
Definition at line 768 of file C4DrawGL.cpp.
References pMainCtx, and CStdGLCtx::Select().
|
overrideprotectedvirtual |
Reimplemented from C4Draw.
Definition at line 866 of file C4DrawGL.cpp.
References C4Draw::Error(), and LogF().
Referenced by CreateContext(), and CStdGLCtx::SelectCommon().
|
overridevirtual |
Implements C4Draw.
Definition at line 144 of file C4DrawGL.cpp.
References GetBlueValue, GetGreenValue, GetRedValue, and pCurrCtx.
void CStdGL::FreeVAOID | ( | unsigned int | vaoid | ) |
Definition at line 980 of file C4DrawGL.cpp.
References CStdGLCtx::contexts, CStdGLCtx::hVAOs, NextVAOID, pCurrCtx, and VAOIDs.
Referenced by C4LandscapeRenderGL::Clear(), InvalidateDeviceObjects(), C4ParticleChunk::IsOfType(), StdMeshInstance::UpdateIBO(), C4FoWDrawLightTextureStrategy::~C4FoWDrawLightTextureStrategy(), C4FoWDrawWireframeStrategy::~C4FoWDrawWireframeStrategy(), C4FoWRegion::~C4FoWRegion(), StdMesh::~StdMesh(), and StdMeshInstance::~StdMeshInstance().
unsigned int CStdGL::GenVAOID | ( | ) |
Definition at line 938 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.
Referenced by CStdFont::DrawText().
|
inherited |
Definition at line 730 of file C4Draw.cpp.
Referenced by C4LandscapeRenderGL::Draw(), SetupMultiBlt(), and UpdateClipper().
|
inlineinherited |
Definition at line 194 of file C4Draw.h.
References C4Pattern::SetZoom(), and X.
Referenced by C4Sky::Draw(), and C4Object::Draw().
|
inherited |
Definition at line 739 of file C4Draw.cpp.
Referenced by C4LandscapeRenderGL::Draw(), and SetupMultiBlt().
|
inherited |
Definition at line 722 of file C4Draw.cpp.
Referenced by C4GUI::Window::Draw(), C4GUI::MultilineLabel::DrawElement(), and C4GUI::Edit::DrawElement().
|
inline |
Definition at line 252 of file C4DrawGL.h.
Referenced by C4LandscapeRenderGL::Draw(), and C4FoWRegion::Render().
C4Shader * CStdGL::GetSpriteShader | ( | int | ssc | ) |
Definition at line 687 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().
C4Shader * CStdGL::GetSpriteShader | ( | bool | haveBase, |
bool | haveOverlay, | ||
bool | haveNormal | ||
) |
|
inherited |
Definition at line 191 of file C4Draw.cpp.
References C4Surface::GetSurfaceSize().
bool CStdGL::GetVAO | ( | unsigned int | vaoid, |
GLuint & | vao | ||
) |
Definition at line 1026 of file C4DrawGL.cpp.
References CStdGLCtx::hVAOs, pCurrCtx, and VAOIDs.
Referenced by C4LandscapeRenderGL::Draw(), C4ParticleChunk::Draw(), C4FoWDrawLightTextureStrategy::End(), C4FoWDrawWireframeStrategy::End(), PerformMultiBlt(), and C4FoWRegion::Render().
|
inlineinherited |
Definition at line 197 of file C4Draw.h.
References ZoomData::X, ZoomData::Y, and ZoomData::Zoom.
Referenced by C4MouseControl::Draw(), C4GUI::CMouse::Draw(), C4Game::DrawCrewOverheadText(), and ZoomDataStackItem::ZoomDataStackItem().
|
protected |
Definition at line 893 of file C4DrawGL.cpp.
Referenced by CheckGLError().
|
inherited |
Definition at line 701 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 815 of file C4Draw.cpp.
References C4Window::pSurface, and C4AbstractApp::pWindow.
Referenced by DDrawInit().
bool CStdGL::InitShaders | ( | C4GroupSet * | pGroups | ) |
Definition at line 728 of file C4DrawGL.cpp.
References PrepareSpriteShader(), SpriteShader, and SpriteShaderMod2.
Referenced by C4GraphicsResource::Init(), and C4StartupOptionsDlg::OnClosed().
|
overridevirtual |
Implements C4Draw.
Definition at line 819 of file C4DrawGL.cpp.
References C4Draw::Active, CurrentVBO, FreeVAOID(), GenericVAOs, GenericVBOs, lines_tex, and N_GENERIC_VBOS.
Referenced by Clear(), and RestoreDeviceObjects().
|
inherited |
Definition at line 237 of file C4Draw.cpp.
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 275 of file C4DrawGL.cpp.
Referenced by C4ParticleChunk::Draw(), C4Shader::Init(), StdMesh::PostInit(), and C4Shader::Refresh().
|
overridevirtual |
Implements C4Draw.
Definition at line 920 of file C4DrawGL.cpp.
References C4Draw::CreatePrimaryClipper(), and RestoreDeviceObjects().
|
overridevirtual |
Implements C4Draw.
Definition at line 1025 of file C4DrawMeshGL.cpp.
References b, StdMesh::GetBoundingBox(), StdMesh::GetBoundingRadius(), StdMeshInstance::GetMesh(), C4Rect::Hgt, StdMeshMatrix::Identity(), StdProjectionMatrix::Identity(), StdMeshMatrix::LookAt(), Perspective(), StdMeshMatrix::Scale(), Scale(), StdMeshVector::Translate(), Translate(), ControllerKeys::Up(), C4Rect::Wdt, StdMeshVector::x, C4Rect::x, StdMeshBox::x1, StdMeshBox::x2, StdMeshVector::y, C4Rect::y, StdMeshBox::y1, StdMeshBox::y2, StdMeshVector::z, StdMeshBox::z1, and StdMeshBox::z2.
void CStdGL::PerformMultiBlt | ( | C4Surface * | sfcTarget, |
DrawOperation | op, | ||
const C4BltVertex * | vertices, | ||
unsigned int | n_vertices, | ||
bool | has_tex, | ||
C4ShaderCall * | shader_call | ||
) |
Definition at line 607 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 531 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 504 of file C4DrawGL.cpp.
References GetSpriteShader(), C4Draw::OP_POINTS, PerformMultiBlt(), SetupMultiBlt(), and StdProjectionMatrix::Translate().
|
overridevirtual |
Implements C4Draw.
Definition at line 591 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(), C4ShaderCall::AllocTexUnit(), StdMeshMaterialPass::AlphaToCoverage, StdMeshMaterialTextureUnit::AM_Border, StdMeshMaterialTextureUnit::AM_Clamp, StdMeshMaterialTextureUnit::AM_Mirror, StdMeshMaterialTextureUnit::AM_Wrap, C4FoW::Ambient, StdMeshMaterialTechnique::Available, StdMeshMaterial::BestTechniqueIndex, StdMeshVertex::bone_index, StdMeshVertex::bone_weight, C4GFXBLIT_ADDITIVE, C4GFXBLIT_MOD2, C4SSU_AmbientBrightness, C4SSU_AmbientTex, C4SSU_AmbientTransform, C4SSU_ClrMod, C4SSU_CullMode, C4SSU_FrameCounter, C4SSU_Gamma, C4SSU_LightTex, C4SSU_LightTransform, C4SSU_OverlayClr, C4SSU_Resolution, StdMeshMaterialPass::CH_Clockwise, StdMeshMaterialPass::CH_CounterClockwise, StdMeshMaterialPass::CH_None, StdMeshMaterialPass::CullHardware, StdMeshMaterialPass::DepthCheck, StdMeshMaterialPass::DepthWrite, StdMeshMatrix::Determinant(), StdMeshMaterialTextureUnit::F_Anisotropic, StdMeshMaterialTextureUnit::F_Linear, StdMeshMaterialTextureUnit::F_None, StdMeshMaterialTextureUnit::F_Point, StdMeshMaterialTextureUnit::Filtering, FormatString(), StdMeshMaterialPass::FragmentShader, C4Game::FrameCounter, Game, C4Draw::gammaOut, StdMeshMaterialPass::GeometryShader, StdMeshInstance::GetBoneCount(), StdMeshInstance::GetBoneTransform(), C4FoWAmbient::GetBrightness(), StdMeshInstance::GetCompletion(), StdStrBuf::getData(), C4FoWRegion::getFoW(), C4FoWRegion::GetFragTransform(), C4FoWAmbient::GetFragTransform(), StdMeshInstance::GetIBO(), StdStrBuf::getLength(), StdSubMeshInstance::GetMaterial(), StdMeshInstance::GetMesh(), StdMeshMaterialTextureUnit::GetNumTextures(), StdSubMesh::GetOffsetInIBO(), StdSubMesh::GetOffsetInVBO(), StdMeshInstance::GetSharedVertices(), StdSubMeshInstance::GetSubMesh(), C4FoWRegion::getSurfaceName(), StdMeshMaterialTextureUnit::GetTexture(), StdSubMeshInstance::GetTexturePosition(), StdMeshInstance::GetVAOID(), StdMesh::GetVBO(), StdSubMesh::GetVertices(), C4FoWRegion::getViewportRegion(), C4Rect::Hgt, StdProjectionMatrix::Identity(), StdMeshMatrix::Inverse(), Log(), C4BltTransform::mat, StdMeshVertex::MaxBoneWeightCount, StdMeshMaterialPass::Name, StdMeshMaterialTechnique::Name, StdMeshMaterial::Name, StdMeshVertex::nx, StdMeshVertex::ny, StdMeshVertex::nz, StdMeshMaterialPass::ShaderInstance::Parameters, StdMeshMaterialTechnique::Passes, pDraw, pGL, StdMeshMaterialPass::Program, StdProjectionMatrix::Rotate(), Rotate(), StdProjectionMatrix::Scale(), Scale(), StdMeshMaterialPass::SceneBlendFactors, C4ShaderCall::SetUniform1f(), C4ShaderCall::SetUniform1i(), C4ShaderCall::SetUniform2f(), C4ShaderCall::SetUniform3fv(), C4ShaderCall::SetUniform4fv(), C4ShaderCall::SetUniformMatrix2x3fv(), StdMeshMaterialPass::ShaderInstance::Shader, StdMeshMatManager::SMM_AcceptExisting, SMMS_FRAGMENT, SMMS_VERTEX, StdMeshMaterialTextureUnit::Transformation::T_ROTATE, StdMeshMaterialTextureUnit::Transformation::T_ROTATE_ANIM, StdMeshMaterialTextureUnit::Transformation::T_SCALE, StdMeshMaterialTextureUnit::Transformation::T_SCROLL, StdMeshMaterialTextureUnit::Transformation::T_SCROLL_ANIM, StdMeshMaterialTextureUnit::Transformation::T_TRANSFORM, StdMeshMaterialTextureUnit::Transformation::T_WAVE_XFORM, StdMeshMaterial::Techniques, C4FoWAmbient::Tex, StdMeshMaterialTextureUnit::TexAddressMode, StdMeshMaterialTextureUnit::TexBorderColor, C4TexRef::texName, StdMeshMaterialPass::TextureUnits, Translate(), StdMeshMaterialPass::VertexShader, C4Rect::Wdt, Workarounds, StdMeshVertex::x, StdMeshMaterialTextureUnit::Transformation::XF_ROTATE, StdMeshMaterialTextureUnit::Transformation::XF_SCALE_X, StdMeshMaterialTextureUnit::Transformation::XF_SCALE_Y, StdMeshMaterialTextureUnit::Transformation::XF_SCROLL_X, StdMeshMaterialTextureUnit::Transformation::XF_SCROLL_Y, StdMeshVertex::y, StdMeshVertex::z, and z.
|
overridevirtual |
Implements C4Draw.
Definition at line 169 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 198 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().
|
inherited |
Definition at line 790 of file C4Draw.cpp.
|
inherited |
Definition at line 403 of file C4Draw.cpp.
References StdMeshMatrix::Identity(), C4Surface::IsRenderTarget(), C4BltTransform::mat, StdMeshInstance::ReorderFaces(), and StdMeshInstance::UpdateBoneTransforms().
Referenced by C4DefGraphics::Draw(), C4GraphicsOverlay::Draw(), and C4Object::DrawFaceImpl().
|
inlineinherited |
Definition at line 192 of file C4Draw.h.
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 760 of file C4Draw.cpp.
Referenced by C4Game::SetDefaultGamma().
|
overridevirtual |
Implements C4Draw.
Definition at line 773 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.
Referenced by C4ScriptGuiWindow::DrawChildren(), C4MenuItem::DrawElement(), C4GUI::WoodenLabel::DrawElement(), C4GUI::ComboBox::DrawElement(), and C4FoWRegion::Render().
|
inlineinherited |
Definition at line 191 of file C4Draw.h.
References C4GFXBLIT_ALL.
Referenced by C4MouseControl::Draw(), C4GraphicsOverlay::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.
Referenced by C4Viewport::Draw(), and C4Object::Draw().
|
inherited |
Definition at line 744 of file C4Draw.cpp.
References b.
Referenced by C4Game::SetDefaultGamma().
|
inlineinherited |
Definition at line 200 of file C4Draw.h.
Referenced by C4DefGraphics::Draw(), C4GraphicsOverlay::Draw(), and C4Object::DrawFaceImpl().
|
inlineinherited |
Definition at line 201 of file C4Draw.h.
Referenced by C4DefGraphics::Draw().
|
inherited |
Definition at line 217 of file C4Draw.cpp.
Referenced by C4Viewport::Draw(), C4GUI::Window::Draw(), C4ScriptGuiWindow::DrawChildren(), C4GUI::WoodenLabel::DrawElement(), and C4GUI::Edit::DrawElement().
void CStdGL::SetupMultiBlt | ( | C4ShaderCall & | call, |
const C4BltTransform * | pTransform, | ||
GLuint | baseTex, | ||
GLuint | overlayTex, | ||
GLuint | normalTex, | ||
DWORD | dwOverlayModClr, | ||
StdProjectionMatrix * | out_modelview | ||
) |
Definition at line 370 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().
|
inherited |
Definition at line 779 of file C4Draw.cpp.
References X.
Referenced by C4Viewport::Draw(), C4MouseControl::Draw(), C4GUI::CMouse::Draw(), C4Game::DrawCrewOverheadText(), C4Viewport::DrawMenu(), ZoomDataStackItem::ZoomDataStackItem(), and ZoomDataStackItem::~ZoomDataStackItem().
|
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 203 of file C4Draw.cpp.
Referenced by C4ScriptGuiWindow::DrawChildren(), C4MenuItem::DrawElement(), C4GUI::WoodenLabel::DrawElement(), C4GUI::ComboBox::DrawElement(), and C4FoWRegion::Render().
|
inherited |
Definition at line 576 of file C4Draw.cpp.
Referenced by C4MessageBoard::Draw(), and C4LoaderScreen::Draw().
|
protectedinherited |
Definition at line 584 of file C4Draw.cpp.
References ACenter, ARight, CStdFont::DrawText(), STDFONT_CENTERED, STDFONT_NOMARKUP, and STDFONT_RIGHTALGN.
|
inherited |
Definition at line 196 of file C4Draw.cpp.
Referenced by C4GUI::Window::Draw(), C4MenuItem::DrawElement(), and C4GUI::ComboBox::DrawElement().
|
inherited |
Definition at line 567 of file C4Draw.cpp.
References CStdFont::GetLineHeight(), and SCopySegmentEx().
Referenced by C4GraphicsSystem::DeactivateDebugOutput(), C4UpperBoard::Draw(), C4GameMessage::Draw(), C4LoaderScreen::Draw(), C4IDList::Draw(), C4Object::Draw(), C4ScriptGuiWindow::Draw(), C4GUI::Tabular::Sheet::DrawCaption(), C4Game::DrawCrewOverheadText(), C4StartupMainDlg::DrawElement(), C4ScoreboardDlg::DrawElement(), C4MenuItem::DrawElement(), C4Chart::DrawElement(), 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(), C4Viewport::DrawMenu(), C4Viewport::DrawPlayerStartup(), C4Network2::DrawStatus(), C4GUI::Screen::DrawToolTip(), C4Facet::DrawValue(), C4Facet::DrawValue2(), C4GraphicsSystem::FlashMessageOnOff(), and C4DefinitionSelDlg::SelectDefinitions().
|
overridevirtual |
Implements C4Draw.
Definition at line 151 of file C4DrawGL.cpp.
References C4Draw::Active, C4Draw::ClipAll, C4Draw::GetClipRect(), C4Rect::Hgt, C4Surface::Hgt, StdProjectionMatrix::Orthographic(), ProjectionMatrix, C4Draw::RenderTarget, C4Rect::Wdt, C4Rect::x, and C4Rect::y.
Referenced by PrepareRendering().
|
friend |
Definition at line 297 of file C4DrawGL.h.
|
friend |
Definition at line 294 of file C4DrawGL.h.
|
friend |
Definition at line 291 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 289 of file C4DrawGL.h.
|
friend |
Definition at line 290 of file C4DrawGL.h.
|
friend |
Definition at line 295 of file C4DrawGL.h.
|
friend |
Definition at line 292 of file C4DrawGL.h.
Referenced by CreateContext().
|
inherited |
Definition at line 96 of file C4Draw.h.
Referenced by InvalidateDeviceObjects(), PrepareRendering(), RestoreDeviceObjects(), C4GraphicsSystem::StartDrawing(), and UpdateClipper().
|
protectedinherited |
Definition at line 109 of file C4Draw.h.
Referenced by C4Surface::GetPixDw(), and SetupMultiBlt().
|
protectedinherited |
Definition at line 108 of file C4Draw.h.
Referenced by C4Surface::GetPixDw(), and SetupMultiBlt().
|
protectedinherited |
Definition at line 105 of file C4Draw.h.
Referenced by UpdateClipper().
|
staticinherited |
Definition at line 89 of file C4Draw.h.
Referenced by C4Application::ApplyResolutionConstraints(), and C4StartupOptionsDlg::OnClosed().
|
staticinherited |
Definition at line 90 of file C4Draw.h.
Referenced by C4TexRef::C4TexRef(), C4LandscapeRenderGL::Clear(), 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(), C4Surface::GetPixDw(), GetSpriteShader(), RestoreDeviceObjects(), and SetupMultiBlt().
|
inherited |
Definition at line 97 of file C4Draw.h.
Referenced by C4Weather::CompileFunc().
|
inherited |
Definition at line 98 of file C4Draw.h.
Referenced by C4LandscapeRenderGL::Draw(), PrepareMaterial(), 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 176 of file C4DrawGL.h.
Referenced by Default(), and CStdGLCtx::SelectCommon().
|
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(), CStdNoGfx::RestoreDeviceObjects(), and RestoreDeviceObjects().
|
protectedinherited |
|
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(), C4Surface::PageFlip(), PrepareRendering(), and RestoreDeviceObjects().
|
protected |
Definition at line 180 of file C4DrawGL.h.
Referenced by Clear(), CreateContext(), Default(), FillBG(), FreeVAOID(), GetVAO(), C4TexRef::Lock(), PrepareRendering(), CStdGLCtx::SelectCommon(), C4TexRef::Unlock(), and C4TexRef::~C4TexRef().
|
protectedinherited |
Definition at line 111 of file C4Draw.h.
Referenced by SetupMultiBlt().
|
protected |
Definition at line 179 of file C4DrawGL.h.
Referenced by Clear(), CreateContext(), EnsureMainContextSelected(), C4StartupOptionsDlg::OnClosed(), RestoreDeviceObjects(), and C4TexRef::Unlock().
|
protected |
Definition at line 185 of file C4DrawGL.h.
Referenced by SetupMultiBlt(), and UpdateClipper().
|
protectedinherited |
Definition at line 107 of file C4Draw.h.
Referenced by Clear(), CreateContext(), PrepareRendering(), RestoreDeviceObjects(), and UpdateClipper().
|
inherited |
Definition at line 100 of file C4Draw.h.
Referenced by C4LandscapeRenderGL::Draw(), C4Object::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 C4LandscapeRenderGL::Draw(), and SetupMultiBlt().
|
protectedinherited |
Definition at line 112 of file C4Draw.h.
Referenced by SetupMultiBlt().
|
protectedinherited |
Definition at line 112 of file C4Draw.h.
Referenced by SetupMultiBlt().