#include <C4FoWRegion.h>
Public Member Functions | |
C4FoWRegion (C4FoW *pFoW, C4Player *pPlayer) | |
~C4FoWRegion () | |
const C4FoW * | getFoW () const |
const C4Rect & | getRegion () const |
const FLOAT_RECT & | getViewportRegion () const |
int32_t | getSurfaceHeight () const |
int32_t | getSurfaceWidth () const |
GLuint | getSurfaceName () const |
void | Update (C4Rect r, const FLOAT_RECT &vp) |
bool | Render (const C4TargetFacet *pOnScreen=nullptr) |
void | GetFragTransform (const C4Rect &clipRect, const C4Rect &outRect, float lightTransform[6]) const |
Definition at line 30 of file C4FoWRegion.h.
Definition at line 21 of file C4FoWRegion.cpp.
References FLOAT_RECT::bottom, FLOAT_RECT::left, FLOAT_RECT::right, and FLOAT_RECT::top.
C4FoWRegion::~C4FoWRegion | ( | ) |
Definition at line 33 of file C4FoWRegion.cpp.
References CStdGL::FreeVAOID(), and pGL.
|
inline |
Definition at line 52 of file C4FoWRegion.h.
Referenced by C4LandscapeRenderGL::Draw(), and CStdGL::SetupMultiBlt().
void C4FoWRegion::GetFragTransform | ( | const C4Rect & | clipRect, |
const C4Rect & | outRect, | ||
float | lightTransform[6] | ||
) | const |
Definition at line 342 of file C4FoWRegion.cpp.
References FLOAT_RECT::bottom, C4FragTransform::Get2x3(), getRegion(), C4Rect::Hgt, FLOAT_RECT::left, FLOAT_RECT::right, C4FragTransform::Scale(), FLOAT_RECT::top, C4FragTransform::Translate(), C4Rect::Wdt, C4Rect::x, and C4Rect::y.
Referenced by CStdGL::SetupMultiBlt().
|
inline |
Definition at line 53 of file C4FoWRegion.h.
Referenced by C4FoWLightSection::CalculateTriangles(), C4LandscapeRenderGL::Draw(), and GetFragTransform().
int32_t C4FoWRegion::getSurfaceHeight | ( | ) | const |
Definition at line 161 of file C4FoWRegion.cpp.
Referenced by C4LandscapeRenderGL::Draw(), and C4FoWDrawLightTextureStrategy::End().
GLuint C4FoWRegion::getSurfaceName | ( | ) | const |
Definition at line 172 of file C4FoWRegion.cpp.
Referenced by C4LandscapeRenderGL::Draw(), and CStdGL::SetupMultiBlt().
int32_t C4FoWRegion::getSurfaceWidth | ( | ) | const |
Definition at line 166 of file C4FoWRegion.cpp.
Referenced by C4LandscapeRenderGL::Draw(), and C4FoWDrawLightTextureStrategy::End().
|
inline |
Definition at line 54 of file C4FoWRegion.h.
Referenced by C4LandscapeRenderGL::Draw(), and CStdGL::SetupMultiBlt().
bool C4FoWRegion::Render | ( | const C4TargetFacet * | pOnScreen = nullptr | ) |
Definition at line 188 of file C4FoWRegion.cpp.
References C4FoWFSA_Position, C4FoWFSA_TexCoord, C4FoWFSU_ProjectionMatrix, C4FoWFSU_Texture, C4ScriptGuiWindowActionID::Call, CStdGL::GenVAOID(), C4Shader::GetAttribute(), C4FoW::GetFramebufShader(), CStdGL::GetProjectionMatrix(), CStdGL::GetVAO(), C4Rect::Hgt, StdProjectionMatrix::Orthographic(), pDraw, pGL, C4FoW::Render(), C4Draw::RestorePrimaryClipper(), C4Draw::StorePrimaryClipper(), C4FoW::Update(), C4Rect::Wdt, C4Rect::x, and C4Rect::y.
Referenced by C4Viewport::Draw().
void C4FoWRegion::Update | ( | C4Rect | r, |
const FLOAT_RECT & | vp | ||
) |
Definition at line 181 of file C4FoWRegion.cpp.
Referenced by C4Viewport::Draw().