Blender  V3.3
Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | List of all members
GLTexture Class Reference

Public Member Functions

 GLTexture ()=default
 
 ~GLTexture ()
 
 GLTexture (const GLTexture &other)=delete
 
GLTextureoperator= (GLTexture &other)=delete
 
 GLTexture (GLTexture &&other) noexcept
 
GLTextureoperator= (GLTexture &&other)
 
bool gl_resources_ensure ()
 
void gl_resources_destroy ()
 

Public Attributes

uint gl_id = 0
 
int width = 0
 
int height = 0
 

Static Public Attributes

static std::atomic< int > num_used = 0
 

Protected Member Functions

void reset ()
 

Detailed Description

Definition at line 269 of file blender/display_driver.cpp.

Constructor & Destructor Documentation

◆ GLTexture() [1/3]

GLTexture::GLTexture ( )
default

◆ ~GLTexture()

GLTexture::~GLTexture ( )
inline

Definition at line 276 of file blender/display_driver.cpp.

References gl_id.

◆ GLTexture() [2/3]

GLTexture::GLTexture ( const GLTexture other)
delete

◆ GLTexture() [3/3]

GLTexture::GLTexture ( GLTexture &&  other)
inlinenoexcept

Definition at line 284 of file blender/display_driver.cpp.

Member Function Documentation

◆ gl_resources_destroy()

void GLTexture::gl_resources_destroy ( )
inline

Definition at line 337 of file blender/display_driver.cpp.

References gl_id, num_used, and reset().

Referenced by DrawTile::gl_resources_destroy().

◆ gl_resources_ensure()

bool GLTexture::gl_resources_ensure ( )
inline

Definition at line 305 of file blender/display_driver.cpp.

References gl_id, LOG, and num_used.

Referenced by DrawTile::gl_resources_ensure().

◆ operator=() [1/2]

GLTexture& GLTexture::operator= ( GLTexture &&  other)
inline

Definition at line 290 of file blender/display_driver.cpp.

References gl_id, height, and width.

◆ operator=() [2/2]

GLTexture& GLTexture::operator= ( GLTexture other)
delete

◆ reset()

void GLTexture::reset ( )
inlineprotected

Definition at line 360 of file blender/display_driver.cpp.

References gl_id, height, and width.

Referenced by gl_resources_destroy().

Member Data Documentation

◆ gl_id

uint GLTexture::gl_id = 0

◆ height

int GLTexture::height = 0

◆ num_used

std::atomic<int> GLTexture::num_used = 0
inlinestatic

◆ width

int GLTexture::width = 0

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