Loading...
Searching...
No Matches
Threedim::custom_texture Struct Reference

Public Types

enum  : uint8_t {
  RGBA8 , BGRA8 , R8 , RG8 ,
  R16 , RG16 , RED_OR_ALPHA8 , RGBA16F ,
  RGBA32F , R16F , R32F , R8UI ,
  R32UI , RG32UI , RGBA32UI
}
 
using uninitialized_bytes = boost::container::vector< unsigned char >
 

Public Member Functions

int bytes_per_pixel () const noexcept
 
auto bytesize () const noexcept
 
auto allocate (int width, int height)
 
void update (unsigned char *data, int w, int h) noexcept
 

Public Attributes

unsigned char * bytes
 
int width
 
int height
 
enum Threedim::custom_texture:: { ... }  format = RGBA8
 
bool changed
 

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