151 const Rect &src_rect,
165 const Rect &src_rect,
float get_dip_width() const
Returns the device independent width of this texture.
Definition: texture_2d.h:100
2D (x,y) point structure - Integer
Definition: point.h:63
Texture2D(const std::shared_ptr< Texture_Impl > &impl)
Definition: texture_2d.h:52
TextureWrapMode get_wrap_mode_t() const
Get the texture wrap mode for the t coordinate.
TextureWrapMode
Texture coordinate wrapping modes.
Definition: texture.h:66
Size get_size() const
Retrieves the actual size of the texture.
Definition: texture_2d.h:91
Texture object class.
Definition: texture.h:104
PixelBuffer get_pixeldata(GraphicContext &gc, int level=0) const
Retrieve image data from texture.
2D (left,top,right,bottom) rectangle structure - Integer
Definition: rect.h:471
@ tf_rgba8
Definition: texture_format.h:43
Image Import Description Class.
Definition: image_import_description.h:49
TextureWrapMode get_wrap_mode_s() const
Get the texture wrap mode for the s coordinate.
I/O Device interface.
Definition: iodevice.h:51
Texture2D(GraphicContext &context, const PixelBuffer &image, bool is_srgb=false)
void set_subimage(GraphicContext &context, int x, int y, const PixelBuffer &image, const Rect &src_rect, int level=0)
2D texture object class.
Definition: texture_2d.h:42
void set_pixel_ratio(float ratio)
Sets the display pixel ratio for this texture.
int get_width() const
Retrieves the actual width of the texture in the display.
std::shared_ptr< Texture_Impl > impl
Definition: texture.h:271
Sizef get_dip_size() const
Returns the device independent size of this texture.
Definition: texture_2d.h:106
Texture2D(GraphicContext &context, const PixelBuffer &image, const Rect &src_rect, bool is_srgb=false)
Interface to drawing graphics.
Definition: graphic_context.h:258
PixelBuffer get_pixeldata(GraphicContext &gc, TextureFormat texture_format, int level=0) const
void copy_image_from(GraphicContext &context, int x, int y, int width, int height, int level=0, TextureFormat texture_format=tf_rgba8)
Texture2D()
Constructs a null instance.
void set_image(GraphicContext &context, const PixelBuffer &image, int level=0)
TextureFormat
Texture format.
Definition: texture_format.h:41
Virtual File System (VFS).
Definition: file_system.h:48
float get_dip_height() const
Returns the device independent height of this texture.
Definition: texture_2d.h:103
void copy_image_from(GraphicContext &context, int level, TextureFormat texture_format=tf_rgba8)
Copy image data from a graphic context.
Texture2D(GraphicContext &context, const std::string &fullname, const ImageImportDescription &import_desc={})
Pixel data container.
Definition: pixel_buffer.h:69
void set_wrap_mode(TextureWrapMode wrap_s, TextureWrapMode wrap_t)
void copy_image_from(GraphicContext &context, const Rect &pos, int level=0, TextureFormat texture_format=tf_rgba8)
int get_height() const
Retrieves the actual height of the texture in the display.
void set_subimage(GraphicContext &context, const Point &point, const PixelBuffer &image, const Rect &src_rect, int level=0)
Texture2D(GraphicContext &context, IODevice &file, const std::string &image_type, const ImageImportDescription &import_desc={})
float get_pixel_ratio() const
2D (width,height) size structure - Integer
Definition: size.h:157
void copy_subimage_from(GraphicContext &context, int offset_x, int offset_y, int x, int y, int width, int height, int level=0)
Copy sub image data from a graphic context.
2D (width,height) size structure - Float
Definition: size.h:170
Texture2D(GraphicContext &context, int width, int height, TextureFormat format=tf_rgba8, int levels=1)
Texture2D(GraphicContext &context, const Size &size, TextureFormat texture_format=tf_rgba8, int levels=1)
void copy_subimage_from(GraphicContext &context, const Point &offset, const Rect &pos, int level=0)
Texture2D(GraphicContext &context, const std::string &filename, const FileSystem &fs, const ImageImportDescription &import_desc={})