58 virtual int width()
const = 0;
61 virtual int height()
const = 0;
81 set_subimage(context, cube_direction, point.
x, point.
y, image, src_rect, level);
Texture object class.
Definition: texture.h:94
2D (width,height) size structure - Integer
Definition: size.h:167
Definition: texture_cube.h:42
Size size() const
Get the texture size.
Definition: texture_cube.h:64
Type x
Definition: vec2.h:75
Definition: texture_cube.h:39
TextureFormat
Texture format.
Definition: texture_format.h:35
Definition: texture_format.h:38
Definition: texture_cube.h:44
virtual void set_image(const GraphicContextPtr &context, TextureCubeDirection cube_direction, const PixelBufferPtr &image, int level=0)=0
Upload image to texture.
2D (x,y) point structure - Integer
Definition: point.h:58
Type y
Definition: vec2.h:76
static std::shared_ptr< TextureCube > create(const GraphicContextPtr &context, int width, int height, TextureFormat texture_format=tf_rgba8, int levels=1)
Constructs a cube texture.
void set_subimage(const GraphicContextPtr &context, TextureCubeDirection cube_direction, const Point &point, const PixelBufferPtr &image, const Rect &src_rect, int level=0)
Definition: texture_cube.h:79
virtual int width() const =0
Get the texture width.
2D (left,top,right,bottom) rectangle structure - Integer
Definition: rect.h:491
2D texture cube object class.
Definition: texture_cube.h:48
TextureCubeDirection
Texture cube directions.
Definition: texture_cube.h:37
std::shared_ptr< PixelBuffer > PixelBufferPtr
Definition: d3d_target.h:39
virtual int height() const =0
Get the texture height.
std::shared_ptr< GraphicContext > GraphicContextPtr
Definition: d3d_target.h:49
Definition: texture_cube.h:40
virtual void set_subimage(const GraphicContextPtr &context, TextureCubeDirection cube_direction, int x, int y, const PixelBufferPtr &image, const Rect &src_rect, int level=0)=0
Upload image to sub texture.
Definition: texture_cube.h:43
Definition: Application/application.h:35
Definition: texture_cube.h:41