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

#include <texture.hpp>

Public Member Functions

 texture ()
 
 texture (texture const &)=delete
 
 texture (texture &&other) noexcept
 
 ~texture ()
 
textureoperator= (texture const &)=delete
 
textureoperator= (texture &&other) noexcept
 
GLuint get_texture_handle () const
 

Public Attributes

uint8_tdata = nullptr
 
int32_t size_x = 0
 
int32_t size_y = 0
 
int32_t channels = 4
 
bool loaded = false
 

Friends

GLuint get_texture_handle (sys::state &state, dcon::texture_id id, bool keep_data)
 
GLuint load_file_and_return_handle (native_string const &native_name, simple_fs::file_system const &fs, texture &asset_texture, bool keep_data)
 
GLuint get_flag_handle (sys::state &state, dcon::national_identity_id nat_id, culture::flag_type type)
 

Detailed Description

Definition at line 25 of file texture.hpp.

Constructor & Destructor Documentation

◆ texture() [1/3]

ogl::texture::texture ( )
inline

Definition at line 36 of file texture.hpp.

◆ texture() [2/3]

ogl::texture::texture ( texture const &  )
delete

◆ texture() [3/3]

ogl::texture::texture ( texture &&  other)
noexcept

Definition at line 432 of file texture.cpp.

◆ ~texture()

ogl::texture::~texture ( )

Definition at line 427 of file texture.cpp.

Member Function Documentation

◆ get_texture_handle()

GLuint ogl::texture::get_texture_handle ( ) const

Definition at line 454 of file texture.cpp.

Here is the caller graph for this function:

◆ operator=() [1/2]

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

Definition at line 442 of file texture.cpp.

◆ operator=() [2/2]

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

Friends And Related Function Documentation

◆ get_flag_handle

GLuint get_flag_handle ( sys::state state,
dcon::national_identity_id  nat_id,
culture::flag_type  type 
)
friend

Definition at line 632 of file texture.cpp.

◆ get_texture_handle

GLuint get_texture_handle ( sys::state state,
dcon::texture_id  id,
bool  keep_data 
)
friend

Definition at line 665 of file texture.cpp.

◆ load_file_and_return_handle

GLuint load_file_and_return_handle ( native_string const &  native_name,
simple_fs::file_system const &  fs,
texture asset_texture,
bool  keep_data 
)
friend

Definition at line 459 of file texture.cpp.

Member Data Documentation

◆ channels

int32_t ogl::texture::channels = 4

Definition at line 32 of file texture.hpp.

◆ data

uint8_t* ogl::texture::data = nullptr

Definition at line 29 of file texture.hpp.

◆ loaded

bool ogl::texture::loaded = false

Definition at line 34 of file texture.hpp.

◆ size_x

int32_t ogl::texture::size_x = 0

Definition at line 30 of file texture.hpp.

◆ size_y

int32_t ogl::texture::size_y = 0

Definition at line 31 of file texture.hpp.


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