This website requires JavaScript.
Explore
Help
Register
Sign In
Rooba
/
ReC98
mirror of
https://github.com/nmlgc/ReC98.git
Watch
1
Star
1
Fork
You've already forked ReC98
0
Code
Issues
Packages
Projects
Releases
Wiki
Activity
668b9033ab
ReC98
/
th01
/
math
/
area.hpp
5 lines
83 B
C++
Raw
Normal View
History
Unescape
Escape
[Maintenance] Declare distinct types for screen, VRAM, and TRAM coordinates Whew, time to look at every `int` variable we ever declared! The best moment to do this would have been a year ago, but well, better late than never. No need to communicate that in comments anymore. These shouldn't be used for widths, heights, or sprite-space coordinates. Maybe we'll cover that another time, this commit is already large enough. Part of P0111, funded by [Anonymous] and Blue Bolt.
2020-08-20 19:59:45 +00:00
template
<
class
TX
,
class
TY
>
struct
area_t
{
TX
left
,
right
;
TY
top
,
bottom
;
[Maintenance] Turn the left/right/top/bottom area structure into a template Part of P0109, funded by [Anonymous] and Blue Bolt.
2020-08-16 13:54:32 +00:00
}
;