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
0310154789
ReC98
/
th01
/
math
/
area.hpp
5 lines
81 B
C++
Raw
Normal View
History
Unescape
Escape
[Contributing] Define `struct`, `class` and `template` naming conventions Again, these are what I've been mostly following, apart from a few inconsistencies which this commit also fixes. Part of P0207, funded by GhostPhanom.
2022-07-22 17:01:30 +00:00
template
<
class
TX
,
class
TY
>
struct
Area
{
[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
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
}
;