Meteor2D  dev internal
Meteor is a lightweight 2D game engine.
Loading...
Searching...
No Matches
transformhelper.h
1#pragma once
2#include <meteorutils/rect.h>
3#include <global/sdlcores.h>
4#include <constants.h>
5#include <SDL.h>
6
7namespace meteor {
8 void transformRectInternalToScreen(SDL_FRect& rect) {
9 rect.y = LOGICAL_HEIGHT - rect.y;
10 }
11}