neoGFX
Cross-platform C++ app/game engine
Loading...
Searching...
No Matches
neogfx::i_sub_texture Class Referenceabstract

#include <i_sub_texture.hpp>

Inheritance diagram for neogfx::i_sub_texture:
neogfx::i_texture neolib::i_reference_counted

Classes

struct  bad_rectangle
 

Public Member Functions

virtual texture_id atlas_id () const =0
 
virtual i_textureatlas_texture () const =0
 
virtual const rectatlas_location () const =0
 
- Public Member Functions inherited from neogfx::i_texture
virtual ~i_texture ()=default
 
virtual texture_id id () const =0
 
virtual i_string const & uri () const =0
 
virtual rect const & part () const =0
 
virtual texture_type type () const =0
 
virtual bool is_render_target () const =0
 
virtual const i_render_targetas_render_target () const =0
 
virtual i_render_targetas_render_target ()=0
 
virtual const i_sub_textureas_sub_texture () const =0
 
virtual dimension dpi_scale_factor () const =0
 
virtual neogfx::color_space color_space () const =0
 
virtual texture_sampling sampling () const =0
 
virtual uint32_t samples () const =0
 
virtual texture_data_format data_format () const =0
 
virtual texture_data_type data_type () const =0
 
virtual bool is_empty () const =0
 
virtual size extents () const =0
 
virtual size storage_extents () const =0
 
virtual void set_pixels (const rect &aRect, const void *aPixelData, uint32_t aPackAlignment=4u)=0
 
virtual void set_pixels (const i_image &aImage)=0
 
virtual void set_pixels (const i_image &aImage, const rect &aImagePart)=0
 
virtual void set_pixel (const point &aPosition, const color &aColor)=0
 
virtual color get_pixel (const point &aPosition) const =0
 
virtual i_vector< texture_line_segment > const & intersection (texture_line_segment const &aLine, rect const &aBoundingBox, vec2 const &aSampleSize={ 1.0, 1.0 }, scalar aTolerance=0.0) const =0
 
virtual void bind (std::uint32_t aTextureUnit) const =0
 
virtual void unbind () const =0
 
virtual intptr_t native_handle () const =0
 
virtual i_texturenative_texture () const =0
 
- Public Member Functions inherited from neolib::i_reference_counted
virtual ~i_reference_counted ()=default
 
virtual void add_ref () const noexcept=0
 
virtual void release () const =0
 
virtual int32_t use_count () const noexcept=0
 
virtual const i_reference_countedrelease_and_take_ownership () const =0
 
virtual i_reference_countedrelease_and_take_ownership ()=0
 
virtual void pin () const noexcept=0
 
virtual void unpin () const =0
 
virtual i_ref_control_blockcontrol_block ()=0
 

Additional Inherited Members

- Public Types inherited from neogfx::i_texture
typedef i_texture abstract_type
 

Detailed Description

Definition at line 27 of file i_sub_texture.hpp.

Member Function Documentation

◆ atlas_id()

virtual texture_id neogfx::i_sub_texture::atlas_id ( ) const
pure virtual

◆ atlas_location()

virtual const rect & neogfx::i_sub_texture::atlas_location ( ) const
pure virtual

◆ atlas_texture()

virtual i_texture & neogfx::i_sub_texture::atlas_texture ( ) const
pure virtual

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