CYD-UI
A C++ library for building native graphic user interfaces
Loading...
Searching...
No Matches
cydui::compositing::device_texture_t Struct Referenceexport

Public Types

using texture_ptr = SDL_Texture*
 

Public Member Functions

 device_texture_t (bool streaming=false)
 
 device_texture_t (const device_texture_t &other)
 
device_texture_toperator= (const device_texture_t &other)
 
 device_texture_t (device_texture_t &&other) noexcept
 
device_texture_toperator= (device_texture_t &&other) noexcept
 
 ~device_texture_t ()
 
void resize (SDL_Renderer *renderer, float w, float h, bool copy_old=false)
 
void clear (SDL_Renderer *renderer)
 
void update_with (const pixelmap_t &pm)
 
void * lock ()
 
void unlock ()
 
bool is_locked () const
 
void copy_into (SDL_Renderer *renderer, device_texture_t &other, SDL_FRect *dst, bool blend=true, SDL_FRect *src_=nullptr)
 
void copy_into (SDL_Renderer *renderer, device_texture_t &other, SDL_FRect *dst) const
 
float width () const
 
float height () const
 
SDL_Texture * sdl_texture ()
 

Detailed Description

Definition at line 21 of file device_texture.cppm.

Constructor & Destructor Documentation

◆ device_texture_t() [1/3]

cydui::compositing::device_texture_t::device_texture_t ( bool streaming = false)
inlineexport

Definition at line 24 of file device_texture.cppm.

+ Here is the caller graph for this function:

◆ device_texture_t() [2/3]

cydui::compositing::device_texture_t::device_texture_t ( const device_texture_t & other)
inlineexport

Definition at line 26 of file device_texture.cppm.

+ Here is the call graph for this function:

◆ device_texture_t() [3/3]

cydui::compositing::device_texture_t::device_texture_t ( device_texture_t && other)
inlineexportnoexcept

Definition at line 43 of file device_texture.cppm.

+ Here is the call graph for this function:

◆ ~device_texture_t()

cydui::compositing::device_texture_t::~device_texture_t ( )
inlineexport

Definition at line 60 of file device_texture.cppm.

Member Function Documentation

◆ clear()

void cydui::compositing::device_texture_t::clear ( SDL_Renderer * renderer)
inlineexport

Definition at line 92 of file device_texture.cppm.

◆ copy_into() [1/2]

void cydui::compositing::device_texture_t::copy_into ( SDL_Renderer * renderer,
device_texture_t & other,
SDL_FRect * dst ) const
inlineexport

Definition at line 161 of file device_texture.cppm.

+ Here is the call graph for this function:

◆ copy_into() [2/2]

void cydui::compositing::device_texture_t::copy_into ( SDL_Renderer * renderer,
device_texture_t & other,
SDL_FRect * dst,
bool blend = true,
SDL_FRect * src_ = nullptr )
inlineexport

Definition at line 137 of file device_texture.cppm.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ height()

float cydui::compositing::device_texture_t::height ( ) const
inlineexport

Definition at line 179 of file device_texture.cppm.

+ Here is the caller graph for this function:

◆ is_locked()

bool cydui::compositing::device_texture_t::is_locked ( ) const
inlineexport

Definition at line 133 of file device_texture.cppm.

◆ lock()

void * cydui::compositing::device_texture_t::lock ( )
inlineexport

Definition at line 116 of file device_texture.cppm.

◆ operator=() [1/2]

device_texture_t & cydui::compositing::device_texture_t::operator= ( const device_texture_t & other)
inlineexport

Definition at line 32 of file device_texture.cppm.

+ Here is the call graph for this function:

◆ operator=() [2/2]

device_texture_t & cydui::compositing::device_texture_t::operator= ( device_texture_t && other)
inlineexportnoexcept

Definition at line 49 of file device_texture.cppm.

+ Here is the call graph for this function:

◆ resize()

void cydui::compositing::device_texture_t::resize ( SDL_Renderer * renderer,
float w,
float h,
bool copy_old = false )
inlineexport

Definition at line 64 of file device_texture.cppm.

◆ sdl_texture()

SDL_Texture * cydui::compositing::device_texture_t::sdl_texture ( )
inlineexport

Definition at line 183 of file device_texture.cppm.

+ Here is the caller graph for this function:

◆ unlock()

void cydui::compositing::device_texture_t::unlock ( )
inlineexport

Definition at line 126 of file device_texture.cppm.

◆ update_with()

void cydui::compositing::device_texture_t::update_with ( const pixelmap_t & pm)
inlineexport

Definition at line 102 of file device_texture.cppm.

+ Here is the call graph for this function:

◆ width()

float cydui::compositing::device_texture_t::width ( ) const
inlineexport

Definition at line 176 of file device_texture.cppm.

+ Here is the caller graph for this function:

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