Project Alice
Loading...
Searching...
No Matches
ogl::data_texture Class Reference

#include <texture.hpp>

Public Member Functions

 data_texture (int32_t sz, int32_t ch)
 
 data_texture (data_texture const &)=delete
 
 data_texture (data_texture &&other) noexcept
 
data_textureoperator= (data_texture const &)=delete
 
data_textureoperator= (data_texture &&other) noexcept
 
GLuint handle ()
 
 ~data_texture ()
 

Public Attributes

uint8_tdata = nullptr
 
int32_t size = 0
 
int32_t channels = 4
 
bool data_updated = false
 

Detailed Description

Definition at line 52 of file texture.hpp.

Constructor & Destructor Documentation

◆ data_texture() [1/3]

ogl::data_texture::data_texture ( int32_t  sz,
int32_t  ch 
)

Definition at line 589 of file texture.cpp.

◆ data_texture() [2/3]

ogl::data_texture::data_texture ( data_texture const &  )
delete

◆ data_texture() [3/3]

ogl::data_texture::data_texture ( data_texture &&  other)
noexcept

Definition at line 637 of file texture.cpp.

◆ ~data_texture()

ogl::data_texture::~data_texture ( )

Definition at line 614 of file texture.cpp.

Member Function Documentation

◆ handle()

uint32_t ogl::data_texture::handle ( )

Definition at line 619 of file texture.cpp.

Here is the caller graph for this function:

◆ operator=() [1/2]

data_texture & ogl::data_texture::operator= ( data_texture &&  other)
noexcept

Definition at line 646 of file texture.cpp.

◆ operator=() [2/2]

data_texture & ogl::data_texture::operator= ( data_texture const &  )
delete

Member Data Documentation

◆ channels

int32_t ogl::data_texture::channels = 4

Definition at line 58 of file texture.hpp.

◆ data

uint8_t* ogl::data_texture::data = nullptr

Definition at line 56 of file texture.hpp.

◆ data_updated

bool ogl::data_texture::data_updated = false

Definition at line 60 of file texture.hpp.

◆ size

int32_t ogl::data_texture::size = 0

Definition at line 57 of file texture.hpp.


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