135 const Rect &src_rect,
152 const Rect &src_rect,
Interface to drawing graphics.
Definition graphic_context.h:257
Pixel data container.
Definition pixel_buffer.h:68
2D (x,y) point structure - Integer
Definition point.h:62
2D (left,top,right,bottom) rectangle structure - Integer
Definition rect.h:446
2D (width,height) size structure - Integer
Definition size.h:176
2D (width,height) size structure - Float
Definition size.h:189
TextureWrapMode get_wrap_mode_s() const
Get the texture wrap mode for the s coordinate.
Size get_size() const
Retrieves the actual size of the texture.
Definition texture_2d_array.h:81
float get_dip_height() const
Returns the device independent height of this texture.
Definition texture_2d_array.h:93
float get_dip_width() const
Returns the device independent width of this texture.
Definition texture_2d_array.h:90
int get_array_size() const
Returns the number of textures in the array.
Texture2DArray(const std::shared_ptr< Texture_Impl > &impl)
Definition texture_2d_array.h:51
int get_width() const
Retrieves the actual width of the texture in the display.
int get_height() const
Retrieves the actual height of the texture in the display.
void set_subimage(GraphicContext &context, int array_index, const Point &point, const PixelBuffer &image, const Rect &src_rect, int level=0)
Texture2DArray()
Constructs a null instance.
void set_image(GraphicContext &context, int array_index, const PixelBuffer &image, int level=0)
Sizef get_dip_size() const
Returns the device independent size of this texture.
Definition texture_2d_array.h:96
TextureWrapMode get_wrap_mode_t() const
Get the texture wrap mode for the t coordinate.
Texture2DArray(GraphicContext &context, const Size &size, int array_size, TextureFormat texture_format=TextureFormat::rgba8, int levels=1)
float get_pixel_ratio() const
Texture2DArray(GraphicContext &context, int width, int height, int array_size, TextureFormat texture_format=TextureFormat::rgba8, int levels=1)
void set_wrap_mode(TextureWrapMode wrap_s, TextureWrapMode wrap_t)
void set_pixel_ratio(float ratio)
Sets the display pixel ratio for this texture.
Texture2D create_2d_view(int array_index, TextureFormat texture_format, int min_level, int num_levels)
Creates a 2D texture view.
void set_subimage(GraphicContext &context, int array_index, int x, int y, const PixelBuffer &image, const Rect &src_rect, int level=0)
2D texture object class.
Definition texture_2d.h:41
std::shared_ptr< Texture_Impl > impl
Definition texture.h:250
Texture()
Constructs a null instance.
TextureFormat
Texture format.
Definition texture_format.h:39
TextureWrapMode
Texture coordinate wrapping modes.
Definition texture.h:65
@ rgba8
Definition texture_format.h:41
@ point
Definition graphic_context.h:78
@ image
Definition brush.h:54