gdk-graphics 0a0aef92e917cfbac53dffbc32c295e4de914093
Loading...
Searching...
No Matches
gdk::graphics::null_texture Class Referencefinal
Inheritance diagram for gdk::graphics::null_texture:
Collaboration diagram for gdk::graphics::null_texture:

Public Member Functions

 null_texture (const texture_data::view &aView, const wrap_mode aU, const wrap_mode aV)
 null_texture (std::size_t aWidth, std::size_t aHeight)
void hold_to (std::shared_ptr< const profile > pProfile)
virtual void update_data (const texture_data::view &aView) override
 replace the texture data with new data
virtual void update_data (const texture_data::view &aView, const std::size_t aOffsetX, const std::size_t aOffsetY) override
 update a section of texture data
std::size_t width () const
std::size_t height () const
std::size_t upload_count () const
const texture_data::channel_data & data () const
Public Member Functions inherited from gdk::graphics::texture
virtual ~texture ()=default
 trivial destructor

Additional Inherited Members

Public Types inherited from gdk::graphics::texture
enum class  wrap_mode { clamped , repeat , mirrored }
 behavior when sampling outside of the normalized texture range (u0-1, v0-1) More...
enum class  filter_mode { sharp , smooth }
 how a texel is chosen when a pixel does not land exactly on one More...
using format = texture_data::format
 format of data in the component_type array.
Protected Member Functions inherited from gdk::graphics::texture
 texture ()=default
 interface type cannot be instantiated

Member Function Documentation

◆ update_data() [1/2]

virtual void gdk::graphics::null_texture::update_data ( const texture_data::view & )
overridevirtual

replace the texture data with new data

Implements gdk::graphics::texture.

◆ update_data() [2/2]

virtual void gdk::graphics::null_texture::update_data ( const texture_data::view & ,
const std::size_t offsetX,
const std::size_t offsetY )
overridevirtual

update a section of texture data

Exceptions
gdk::graphics::exceptionthe section is in another format than the texture, or not wholly within it

Implements gdk::graphics::texture.


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