HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
PipelineImage_ImageLocation.hpp
1// Copyright 2019 Pokitec
2// All rights reserved.
3
4#pragma once
5
6#include "TTauri/Foundation/vec.hpp"
7#include "TTauri/Foundation/mat.hpp"
8#include "TTauri/Foundation/aarect.hpp"
9
10namespace tt::PipelineImage {
11
18
21
22 bool operator==(const ImageLocation &other) noexcept {
23 return (
24 transform == other.transform &&
25 clippingRectangle == other.clippingRectangle
26 );
27 }
28
29 bool operator!=(const ImageLocation &other) noexcept { return !((*this) == other); }
30};
31
32}
Class which represents an axis-aligned rectangle.
Definition aarect.hpp:13
A 4x4 matrix.
Definition mat.hpp:18
Definition PipelineImage_ImageLocation.hpp:14
mat transform
Transformation matrix.
Definition PipelineImage_ImageLocation.hpp:17
aarect clippingRectangle
The position in pixels of the clipping rectangle relative to the top-left corner of the window,...
Definition PipelineImage_ImageLocation.hpp:20