OpenClonk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
C4Texture Class Reference

#include <C4Texture.h>

Collaboration diagram for C4Texture:
[legend]

Public Member Functions

 C4Texture ()
 
 ~C4Texture ()
 
void SetAverageColor (uint32_t Color)
 
uint32_t GetAverageColor () const
 
void SetMaterialShape (class C4TextureShape *s)
 
class C4TextureShapeGetMaterialShape () const
 

Public Attributes

C4SurfaceSurface32
 

Protected Attributes

StdStrBuf Name
 
uint32_t AvgColor
 
std::unique_ptr< class
C4TextureShape
material_shape
 
C4TextureNext
 

Friends

class C4TextureMap
 

Detailed Description

Definition at line 29 of file C4Texture.h.

Constructor & Destructor Documentation

C4Texture::C4Texture ( )

Definition at line 37 of file C4Texture.cpp.

References AvgColor, Next, and Surface32.

38 {
39  Surface32=nullptr;
40  AvgColor = 0x00000000;
41  Next=nullptr;
42 }
uint32_t AvgColor
Definition: C4Texture.h:43
C4Surface * Surface32
Definition: C4Texture.h:35
C4Texture * Next
Definition: C4Texture.h:45
C4Texture::~C4Texture ( )

Definition at line 44 of file C4Texture.cpp.

References Surface32.

45 {
46  delete Surface32;
47 }
C4Surface * Surface32
Definition: C4Texture.h:35

Member Function Documentation

uint32_t C4Texture::GetAverageColor ( ) const
inline

Definition at line 38 of file C4Texture.h.

References AvgColor.

38 { return AvgColor; }
uint32_t AvgColor
Definition: C4Texture.h:43
class C4TextureShape* C4Texture::GetMaterialShape ( ) const
inline

Definition at line 40 of file C4Texture.h.

References material_shape.

Referenced by C4Landscape::P::ChunkOZoom(), C4Landscape::DrawBox(), C4Landscape::DrawBrush(), and C4Landscape::DrawLine().

40 { return material_shape.get(); }
std::unique_ptr< class C4TextureShape > material_shape
Definition: C4Texture.h:44

Here is the caller graph for this function:

void C4Texture::SetAverageColor ( uint32_t  Color)
inline

Definition at line 37 of file C4Texture.h.

References AvgColor.

Referenced by C4TextureMap::AddTexture().

37 { AvgColor = Color; }
uint32_t AvgColor
Definition: C4Texture.h:43

Here is the caller graph for this function:

void C4Texture::SetMaterialShape ( class C4TextureShape s)
inline

Definition at line 39 of file C4Texture.h.

References material_shape.

Referenced by C4TextureMap::LoadTextures().

39 { material_shape.reset(s); }
std::unique_ptr< class C4TextureShape > material_shape
Definition: C4Texture.h:44
#define s

Here is the caller graph for this function:

Friends And Related Function Documentation

friend class C4TextureMap
friend

Definition at line 31 of file C4Texture.h.

Member Data Documentation

uint32_t C4Texture::AvgColor
protected

Definition at line 43 of file C4Texture.h.

Referenced by C4Texture(), GetAverageColor(), and SetAverageColor().

std::unique_ptr<class C4TextureShape> C4Texture::material_shape
protected

Definition at line 44 of file C4Texture.h.

Referenced by GetMaterialShape(), and SetMaterialShape().


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