Euphoria
eu::render::Texture2 Struct Reference

#include <texture.h>

Inheritance diagram for eu::render::Texture2:
eu::render::TextureId

Public Member Functions

 Texture2 ()
 
 ~Texture2 ()=default
 
 Texture2 (const Texture2 &other)=delete
 
void operator= (const Texture2 &)=delete
 
 Texture2 (Texture2 &&other)=delete
 
void operator= (Texture2 &&)=delete
 
void load_from_pixels (int width, int height, const unsigned char *pixel_data, gl::Int internal_format, gl::Uint image_format, const Texture2dLoadData &data)
 
void load_from_image (const core::Image &image, core::AlphaLoad alpha, const Texture2dLoadData &data)
 
void load_from_file (io::FileSystem *fs, const io::FilePath &path, core::AlphaLoad alpha, const Texture2dLoadData &data)
 
- Public Member Functions inherited from eu::render::TextureId
 TextureId ()
 
 ~TextureId ()
 
 TextureId (const TextureId &other)=delete
 
void operator= (const TextureId &)=delete
 
 TextureId (TextureId &&other)=delete
 
void operator= (TextureId &&)=delete
 
bool is_currently_bound () const
 
gl::Uint get_id () const
 

Public Attributes

int width
 
int height
 

Detailed Description

Definition at line 77 of file texture.h.

Constructor & Destructor Documentation

◆ Texture2() [1/3]

eu::render::Texture2::Texture2 ( )

Definition at line 142 of file texture.cc.

◆ ~Texture2()

eu::render::Texture2::~Texture2 ( )
default

◆ Texture2() [2/3]

eu::render::Texture2::Texture2 ( const Texture2 other)
delete

◆ Texture2() [3/3]

eu::render::Texture2::Texture2 ( Texture2 &&  other)
delete

Member Function Documentation

◆ load_from_file()

void eu::render::Texture2::load_from_file ( io::FileSystem fs,
const io::FilePath path,
core::AlphaLoad  alpha,
const Texture2dLoadData data 
)

Definition at line 188 of file texture.cc.

◆ load_from_image()

void eu::render::Texture2::load_from_image ( const core::Image image,
core::AlphaLoad  alpha,
const Texture2dLoadData data 
)

Definition at line 207 of file texture.cc.

◆ load_from_pixels()

void eu::render::Texture2::load_from_pixels ( int  width,
int  height,
const unsigned char *  pixel_data,
gl::Int  internal_format,
gl::Uint  image_format,
const Texture2dLoadData data 
)

Definition at line 150 of file texture.cc.

◆ operator=() [1/2]

void eu::render::Texture2::operator= ( const Texture2 )
delete

◆ operator=() [2/2]

void eu::render::Texture2::operator= ( Texture2 &&  )
delete

Member Data Documentation

◆ height

int eu::render::Texture2::height

Definition at line 117 of file texture.h.

◆ width

int eu::render::Texture2::width

Definition at line 116 of file texture.h.


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