Refactoring of player management and integration with the main window rendering
This commit is contained in:
@@ -27,6 +27,11 @@ struct FPos
|
||||
{
|
||||
float x = 0.0f;
|
||||
float y = 0.0f;
|
||||
|
||||
[[nodiscard]] bool isInBox(const FPos &boxPos, const FSize &boxSize) const
|
||||
{
|
||||
return x >= boxPos.x && y >= boxPos.y && x < boxPos.x + boxSize.w && y < boxPos.y + boxSize.h;
|
||||
}
|
||||
};
|
||||
//--------------------------------------------------------------
|
||||
} // namespace quokka_gfx
|
||||
|
||||
Reference in New Issue
Block a user