OpenClonk
StdMeshMaterialTextureUnit::Tex Class Reference

#include <StdMeshMaterial.h>

Collaboration diagram for StdMeshMaterialTextureUnit::Tex:
[legend]

Public Member Functions

 Tex (C4Surface *Surface)
 
 ~Tex ()
 

Public Attributes

unsigned int RefCount
 
C4SurfaceSurf
 
C4TexRefTexture
 

Detailed Description

Definition at line 300 of file StdMeshMaterial.h.

Constructor & Destructor Documentation

◆ Tex()

StdMeshMaterialTextureUnit::Tex::Tex ( C4Surface Surface)

Definition at line 955 of file StdMeshMaterial.cpp.

956  : RefCount(1), Surf(Surface), Texture(*Surface->texture)
957 {
958 }
std::unique_ptr< C4TexRef > texture
Definition: C4Surface.h:78

◆ ~Tex()

StdMeshMaterialTextureUnit::Tex::~Tex ( )

Definition at line 960 of file StdMeshMaterial.cpp.

References RefCount, and Surf.

961 {
962  assert(RefCount == 0);
963  delete Surf;
964 }

Member Data Documentation

◆ RefCount

unsigned int StdMeshMaterialTextureUnit::Tex::RefCount

◆ Surf

C4Surface* StdMeshMaterialTextureUnit::Tex::Surf

Definition at line 316 of file StdMeshMaterial.h.

Referenced by ~Tex().

◆ Texture

C4TexRef& StdMeshMaterialTextureUnit::Tex::Texture

Definition at line 317 of file StdMeshMaterial.h.


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