121 const Rect &src_rect,
129 const Rect &src_rect,
2D (x,y) point structure - Integer
Definition: point.h:63
Texture object class.
Definition: texture.h:104
2D texture cube object class.
Definition: texture_cube.h:53
2D (left,top,right,bottom) rectangle structure - Integer
Definition: rect.h:471
TextureCube(GraphicContext &context, const Size &size, TextureFormat texture_format=tf_rgba8, int levels=1)
Constructs a Texture.
@ cl_cube_negative_z
Definition: texture_cube.h:48
@ tf_rgba8
Definition: texture_format.h:43
Size get_size() const
Get the texture size.
@ cl_cube_positive_x
Definition: texture_cube.h:43
TextureCubeDirection
Texture cube directions.
Definition: texture_cube.h:42
int get_width() const
Get the texture width.
std::shared_ptr< Texture_Impl > impl
Definition: texture.h:271
@ cl_cube_positive_y
Definition: texture_cube.h:45
Interface to drawing graphics.
Definition: graphic_context.h:258
@ cl_cube_positive_z
Definition: texture_cube.h:47
TextureCube(const std::shared_ptr< Texture_Impl > &impl)
Constructs a texture from an implementation.
Definition: texture_cube.h:63
TextureFormat
Texture format.
Definition: texture_format.h:41
@ cl_cube_negative_y
Definition: texture_cube.h:46
void set_subimage(GraphicContext &context, TextureCubeDirection cube_direction, const Point &point, const PixelBuffer &image, const Rect &src_rect, int level=0)
Pixel data container.
Definition: pixel_buffer.h:69
int get_height() const
Get the texture height.
TextureCube()
Constructs a null instance.
void set_image(GraphicContext &context, TextureCubeDirection cube_direction, PixelBuffer &image, int level=0)
Upload image to texture.
TextureCube(GraphicContext &context, int width, int height, TextureFormat texture_format=tf_rgba8, int levels=1)
Constructs a Texture.
2D (width,height) size structure - Integer
Definition: size.h:157
@ cl_cube_negative_x
Definition: texture_cube.h:44
void set_subimage(GraphicContext &context, TextureCubeDirection cube_direction, int x, int y, const PixelBuffer &image, const Rect &src_rect, int level=0)
Upload image to sub texture.