OpenClonk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
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 303 of file StdMeshMaterial.h.

Constructor & Destructor Documentation

StdMeshMaterialTextureUnit::Tex::Tex ( C4Surface Surface)

Definition at line 972 of file StdMeshMaterial.cpp.

973  : RefCount(1), Surf(Surface), Texture(*Surface->texture)
974 {
975 }
std::unique_ptr< C4TexRef > texture
Definition: C4Surface.h:80
StdMeshMaterialTextureUnit::Tex::~Tex ( )

Definition at line 977 of file StdMeshMaterial.cpp.

978 {
979  assert(RefCount == 0);
980  delete Surf;
981 }

Member Data Documentation

unsigned int StdMeshMaterialTextureUnit::Tex::RefCount
C4Surface* StdMeshMaterialTextureUnit::Tex::Surf

Definition at line 319 of file StdMeshMaterial.h.

C4TexRef& StdMeshMaterialTextureUnit::Tex::Texture

Definition at line 320 of file StdMeshMaterial.h.


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