54 virtual int width()
const = 0;
57 virtual int height()
const = 0;
91 set_subimage(context, array_index, point.
x, point.
y, image, src_rect, level);
97 virtual std::shared_ptr<Texture2D>
create_2d_view(
int array_index,
TextureFormat texture_format,
int min_level,
int num_levels) = 0;
virtual TextureWrapMode wrap_mode_s() const =0
Get the texture wrap mode for the s coordinate.
Texture object class.
Definition: texture.h:94
2D (width,height) size structure - Integer
Definition: size.h:167
virtual std::shared_ptr< Texture2D > create_2d_view(int array_index, TextureFormat texture_format, int min_level, int num_levels)=0
Creates a 2D texture view.
Type x
Definition: vec2.h:75
Size size() const
Retrieves the actual size of the texture.
Definition: texture_2d_array.h:60
virtual void set_subimage(const GraphicContextPtr &context, int array_index, int x, int y, const PixelBufferPtr &image, const Rect &src_rect, int level=0)=0
TextureFormat
Texture format.
Definition: texture_format.h:35
Definition: texture_format.h:38
virtual void set_image(const GraphicContextPtr &context, int array_index, const PixelBufferPtr &image, int level=0)=0
2D (x,y) point structure - Integer
Definition: point.h:58
virtual int array_size() const =0
Returns the number of textures in the array.
Type y
Definition: vec2.h:76
virtual int width() const =0
Retrieves the actual width of the texture in the display.
2D texture array object class.
Definition: texture_2d_array.h:39
virtual TextureWrapMode wrap_mode_t() const =0
Get the texture wrap mode for the t coordinate.
2D (left,top,right,bottom) rectangle structure - Integer
Definition: rect.h:491
static std::shared_ptr< Texture2DArray > create(const GraphicContextPtr &context, int width, int height, int array_size, TextureFormat texture_format=tf_rgba8, int levels=1)
virtual void set_wrap_mode(TextureWrapMode wrap_s, TextureWrapMode wrap_t)=0
void set_subimage(const GraphicContextPtr &context, int array_index, const Point &point, const PixelBufferPtr &image, const Rect &src_rect, int level=0)
Definition: texture_2d_array.h:89
std::shared_ptr< PixelBuffer > PixelBufferPtr
Definition: d3d_target.h:39
std::shared_ptr< GraphicContext > GraphicContextPtr
Definition: d3d_target.h:49
virtual int height() const =0
Retrieves the actual height of the texture in the display.
TextureWrapMode
Texture coordinate wrapping modes.
Definition: texture.h:56
Definition: Application/application.h:35