60 virtual int width()
const = 0;
63 virtual int height()
const = 0;
Texture object class.
Definition: texture.h:94
2D (width,height) size structure - Integer
Definition: size.h:167
virtual int width() const =0
Retrieves the actual width of the texture in the display.
virtual PixelBufferPtr pixeldata(const GraphicContextPtr &gc, int level=0) const =0
Size size() const
Retrieves the actual size of the texture.
Definition: texture_2d.h:66
Type top
Y1-coordinate (top point inside the rectangle)
Definition: rect.h:133
Type x
Definition: vec2.h:75
virtual void copy_image_from(const GraphicContextPtr &context, int level, TextureFormat texture_format=tf_rgba8)=0
Copy image data from a graphic context.
Image Import Description Class.
Definition: image_import_description.h:45
TextureFormat
Texture format.
Definition: texture_format.h:35
Definition: texture_format.h:38
virtual void set_subimage(const GraphicContextPtr &context, int x, int y, const PixelBufferPtr &image, const Rect &src_rect, int level=0)=0
void copy_image_from(const GraphicContextPtr &context, const Rect &pos, int level=0, TextureFormat texture_format=tf_rgba8)
Definition: texture_2d.h:111
virtual TextureWrapMode wrap_mode_s() const =0
Get the texture wrap mode for the s coordinate.
std::shared_ptr< IODevice > IODevicePtr
Definition: iodevice.h:85
2D (x,y) point structure - Integer
Definition: point.h:58
Type y
Definition: vec2.h:76
virtual void set_image(const GraphicContextPtr &context, const PixelBufferPtr &image, int level=0)=0
Type height() const
Returns the height of the rectangle.
Definition: rect.h:145
virtual TextureWrapMode wrap_mode_t() const =0
Get the texture wrap mode for the t coordinate.
Type left
X1-coordinate (left point inside the rectangle)
Definition: rect.h:130
2D (left,top,right,bottom) rectangle structure - Integer
Definition: rect.h:491
virtual void set_wrap_mode(TextureWrapMode wrap_s, TextureWrapMode wrap_t)=0
virtual int height() const =0
Retrieves the actual height of the texture in the display.
std::shared_ptr< PixelBuffer > PixelBufferPtr
Definition: d3d_target.h:39
std::shared_ptr< GraphicContext > GraphicContextPtr
Definition: d3d_target.h:49
virtual void copy_subimage_from(const GraphicContextPtr &context, const Point &offset, const Rect &pos, int level=0)
Definition: texture_2d.h:118
void set_subimage(const GraphicContextPtr &context, const Point &point, const PixelBufferPtr &image, const Rect &src_rect, int level=0)
Definition: texture_2d.h:103
TextureWrapMode
Texture coordinate wrapping modes.
Definition: texture.h:56
Type width() const
Returns the width of the rectangle.
Definition: rect.h:142
virtual void copy_subimage_from(const GraphicContextPtr &context, int offset_x, int offset_y, int x, int y, int width, int height, int level=0)=0
Copy sub image data from a graphic context.
static std::shared_ptr< Texture2D > create(const GraphicContextPtr &context, int width, int height, TextureFormat format=tf_rgba8, int levels=1)
Definition: Application/application.h:35
2D texture object class.
Definition: texture_2d.h:39