3 #include <fsdk/Types/Format.h>
4 #include <fsdk/Types/Rect.h>
5 #include <fsdk/Types/Vector2.h>
41 return reinterpret_cast<T*
>(
data);
48 return reinterpret_cast<const T*
>(
data);
Size getSize() const noexcept
Definition: SubImage.h:57
Vector2< int > Point2i
Definition: Vector2.h:294
int x
Sub image origin x coordinate.
Definition: SubImage.h:18
int height
Sub image height.
Definition: SubImage.h:22
Format format
Sub image format.
Definition: SubImage.h:24
int pitch
Number of bytes to the next scanline of the sub image.
Definition: SubImage.h:16
int y
Sub image origin y coordinate.
Definition: SubImage.h:19
const T * getDataAs() const noexcept
Definition: SubImage.h:47
Point2i getOrigin() const noexcept
Definition: SubImage.h:52
void * data
Beginning of data sub image data.
Definition: SubImage.h:14
int width
Sub image width.
Definition: SubImage.h:21
SubImage() noexcept
intializes empty sub image.
Definition: SubImage.h:28
Rect getRect() const noexcept
Definition: SubImage.h:63
T * getDataAs() noexcept
Definition: SubImage.h:40
Sub Image.
Definition: SubImage.h:13
Vector2< int > Size
Definition: Vector2.h:303