37 return reinterpret_cast<T*
>(
data);
44 return reinterpret_cast<const T*
>(
data);
Size getSize() const noexcept
Definition: SubImage.h:53
Vector2< int > Point2i
Definition: Vector2.h:292
int x
Sub image origin x coordinate.
Definition: SubImage.h:16
int height
Sub image height.
Definition: SubImage.h:20
Format format
Sub image format.
Definition: SubImage.h:22
int pitch
Number of bytes to the next scanline of the sub image.
Definition: SubImage.h:14
int y
Sub image origin y coordinate.
Definition: SubImage.h:17
const T * getDataAs() const noexcept
Definition: SubImage.h:43
Point2i getOrigin() const noexcept
Definition: SubImage.h:48
void * data
Beginning of data sub image data.
Definition: SubImage.h:12
int width
Sub image width.
Definition: SubImage.h:19
SubImage() noexcept
intializes empty sub image.
Definition: SubImage.h:26
Rect getRect() const noexcept
Definition: SubImage.h:59
T * getDataAs() noexcept
Definition: SubImage.h:36
Sub Image.
Definition: SubImage.h:10
Vector2< int > Size
Definition: Vector2.h:301