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

#include <i_image.hpp>

Inheritance diagram for neogfx::i_image:
neogfx::i_resource neolib::i_reference_counted

Classes

struct  unknown_image_format
 

Public Member Functions

virtual ~i_image ()=default
 
virtual dimension dpi_scale_factor () const =0
 
virtual neogfx::color_space color_space () const =0
 
virtual neogfx::color_format color_format () const =0
 
virtual texture_sampling sampling () const =0
 
virtual texture_data_format data_format () const =0
 
virtual const neogfx::sizeextents () const =0
 
virtual void resize (const neogfx::size &aNewSize)=0
 
virtual const void * cpixels () const =0
 
virtual const void * pixels () const =0
 
virtual void * pixels ()=0
 
virtual color get_pixel (const point &aPoint) const =0
 
virtual void set_pixel (const point &aPoint, const color &aColor)=0
 
- Public Member Functions inherited from neogfx::i_resource
virtual ~i_resource ()=default
 
virtual bool available () const =0
 
virtual bool downloading () const =0
 
virtual double downloading_progress () const =0
 
virtual bool error () const =0
 
virtual i_string const & error_string () const =0
 
virtual i_string const & uri () const =0
 
virtual bool is_empty () const =0
 
virtual const void * cdata () const =0
 
virtual const void * data () const =0
 
virtual void * data ()=0
 
virtual std::size_t size () const =0
 
virtual hash_digest_type const & hash () 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_resource
typedef neolib::i_vector< uint8_t > data_type
 
typedef data_type hash_digest_type
 

Detailed Description

Definition at line 34 of file i_image.hpp.

Constructor & Destructor Documentation

◆ ~i_image()

virtual neogfx::i_image::~i_image ( )
virtualdefault

Member Function Documentation

◆ color_format()

virtual neogfx::color_format neogfx::i_image::color_format ( ) const
pure virtual

◆ color_space()

virtual neogfx::color_space neogfx::i_image::color_space ( ) const
pure virtual

◆ cpixels()

virtual const void * neogfx::i_image::cpixels ( ) const
pure virtual

◆ data_format()

virtual texture_data_format neogfx::i_image::data_format ( ) const
pure virtual

◆ dpi_scale_factor()

virtual dimension neogfx::i_image::dpi_scale_factor ( ) const
pure virtual

◆ extents()

virtual const neogfx::size & neogfx::i_image::extents ( ) const
pure virtual

◆ get_pixel()

virtual color neogfx::i_image::get_pixel ( const point aPoint) const
pure virtual

◆ pixels() [1/2]

virtual const void * neogfx::i_image::pixels ( ) const
pure virtual

◆ pixels() [2/2]

virtual void * neogfx::i_image::pixels ( )
pure virtual

◆ resize()

virtual void neogfx::i_image::resize ( const neogfx::size aNewSize)
pure virtual

◆ sampling()

virtual texture_sampling neogfx::i_image::sampling ( ) const
pure virtual

◆ set_pixel()

virtual void neogfx::i_image::set_pixel ( const point aPoint,
const color aColor 
)
pure virtual

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