mirror of
https://github.com/love2d/love.git
synced 2026-08-19 04:06:17 +02:00
Improved the performance of love.window.getPixelScale / toPixels / fromPixels by caching some values. Made some coordinate space-sensitive code use the proper conversions to get to the correct coordinate space.
--HG-- branch : minor
This commit is contained in:
@@ -55,12 +55,12 @@ public:
|
||||
|
||||
bool hasCursor() const;
|
||||
|
||||
int getX() const;
|
||||
int getY() const;
|
||||
void getPosition(int &x, int &y) const;
|
||||
void setX(int x);
|
||||
void setY(int y);
|
||||
void setPosition(int x, int y);
|
||||
double getX() const;
|
||||
double getY() const;
|
||||
void getPosition(double &x, double &y) const;
|
||||
void setX(double x);
|
||||
void setY(double y);
|
||||
void setPosition(double x, double y);
|
||||
void setVisible(bool visible);
|
||||
bool isDown(Button *buttonlist) const;
|
||||
bool isVisible() const;
|
||||
|
||||
Reference in New Issue
Block a user