OpenClonk
C4LandscapeRender Class Referenceabstract

#include <C4LandscapeRender.h>

Inheritance diagram for C4LandscapeRender:
[legend]
Collaboration diagram for C4LandscapeRender:
[legend]

Public Member Functions

 C4LandscapeRender ()=default
 
virtual ~C4LandscapeRender ()=default
 
virtual bool ReInit (int32_t iWidth, int32_t iHeight)=0
 
virtual bool Init (int32_t iWidth, int32_t iHeight, C4TextureMap *pTexs, C4GroupSet *pGraphics)=0
 
virtual void Clear ()=0
 
virtual C4Rect GetAffectedRect (C4Rect Rect)=0
 
virtual void Update (C4Rect Rect, C4Landscape *pSource)=0
 
virtual void Draw (const C4TargetFacet &cgo, const class C4FoWRegion *Light, uint32_t clrMod)=0
 

Protected Attributes

int32_t iWidth {0}
 
int32_t iHeight {0}
 
C4TextureMappTexs {nullptr}
 

Detailed Description

Definition at line 84 of file C4LandscapeRender.h.

Constructor & Destructor Documentation

◆ C4LandscapeRender()

C4LandscapeRender::C4LandscapeRender ( )
default

◆ ~C4LandscapeRender()

virtual C4LandscapeRender::~C4LandscapeRender ( )
virtualdefault

Member Function Documentation

◆ Clear()

virtual void C4LandscapeRender::Clear ( )
pure virtual

Implemented in C4LandscapeRenderGL.

◆ Draw()

virtual void C4LandscapeRender::Draw ( const C4TargetFacet cgo,
const class C4FoWRegion Light,
uint32_t  clrMod 
)
pure virtual

◆ GetAffectedRect()

virtual C4Rect C4LandscapeRender::GetAffectedRect ( C4Rect  Rect)
pure virtual

Implemented in C4LandscapeRenderGL.

◆ Init()

virtual bool C4LandscapeRender::Init ( int32_t  iWidth,
int32_t  iHeight,
C4TextureMap pTexs,
C4GroupSet pGraphics 
)
pure virtual

Implemented in C4LandscapeRenderGL.

◆ ReInit()

virtual bool C4LandscapeRender::ReInit ( int32_t  iWidth,
int32_t  iHeight 
)
pure virtual

Implemented in C4LandscapeRenderGL.

◆ Update()

virtual void C4LandscapeRender::Update ( C4Rect  Rect,
C4Landscape pSource 
)
pure virtual

Implemented in C4LandscapeRenderGL.

Member Data Documentation

◆ iHeight

int32_t C4LandscapeRender::iHeight {0}
protected

◆ iWidth

int32_t C4LandscapeRender::iWidth {0}
protected

◆ pTexs

C4TextureMap* C4LandscapeRender::pTexs {nullptr}
protected

Definition at line 92 of file C4LandscapeRender.h.

Referenced by C4LandscapeRenderGL::Clear(), and C4LandscapeRenderGL::Init().


The documentation for this class was generated from the following file: