t
Loading...
Searching...
No Matches
Fragment.hpp
1#include "primitives/Color.hpp"
2
3#ifndef FRAGMENT_HPP
4#define FRAGMENT_HPP
5
6namespace t {
7
16struct Fragment {
17 int x;
18 int y;
24 bool operator<(const Fragment &b) const { return this->x < b.x; }
25};
26
27} // namespace t
28
29#endif // FRAGMENT_HPP
The t software 3D graphics library namespace.
Definition algorithms.hpp:12
The fragment class.
Definition Fragment.hpp:16
bool operator<(const Fragment &b) const
The less-than comparison for fragments, used for ordered sets in Rasterizer to sort fragments by thei...
Definition Fragment.hpp:24
int y
The y coordinate of the fragment in screen space.
Definition Fragment.hpp:18
int x
The x coordinate of the fragment in screen space.
Definition Fragment.hpp:17