#include "IsoGeometryTools.h"
Include dependency graph for IsoGeometryTools.cpp:
Go to the source code of this file.
Functions | |
POINT | CreatePoint (int x, int y) |
Creates a new POINT with the given coordinates. More... | |
SDL_Rect * | GetSDLRect (POINT *p) |
Makes an SDL_Rect out of the POINT passed in. More... | |
bool | PointInRect (RECT *r, POINT *p) |
Returns true if the point passed in is in the rect passed in. More... | |
void | setRectEmpty (RECT *rectangle) |
Sets all the datat members of the RECT passed in to zero. More... | |
void | setRect (RECT *rectangle, long left, long top, long right, long bottom) |
Sets the data members of the RECT passed in to the values passed in. More... | |
void | CopyRect (RECT *destination, RECT *source) |
Copies the source rectangle into the destination rectangle. More... | |
void | OffsetRect (RECT *rectangle, int dx, int dy) |
Moves the rectangle passed in by the values passed in. More... | |
void | OffsetRect (RECT *rectangle, POINT point) |
SDL_Rect * | GetSDLRect (RECT *r) |
Makes an SDL_Rect out of a RECT. More... |
Definition in file IsoGeometryTools.cpp.
|
Copies the source rectangle into the destination rectangle.
Definition at line 93 of file IsoGeometryTools.cpp. References RECT::bottom, RECT::left, RECT::right, and RECT::top. |
|
Creates a new POINT with the given coordinates.
Definition at line 28 of file IsoGeometryTools.cpp. |
|
Makes an SDL_Rect out of a RECT.
Definition at line 114 of file IsoGeometryTools.cpp. References RECT::bottom, RECT::left, RECT::right, and RECT::top. |
|
Makes an SDL_Rect out of the POINT passed in. Width and Height are 0. Definition at line 38 of file IsoGeometryTools.cpp. |
|
Definition at line 109 of file IsoGeometryTools.cpp. References OffsetRect, POINT::x, and POINT::y. |
|
Moves the rectangle passed in by the values passed in.
Definition at line 101 of file IsoGeometryTools.cpp. References RECT::bottom, RECT::left, RECT::right, and RECT::top. |
|
Returns true if the point passed in is in the rect passed in.
Definition at line 50 of file IsoGeometryTools.cpp. References RECT::bottom, RECT::left, RECT::right, RECT::top, POINT::x, and POINT::y. |
|
Sets the data members of the RECT passed in to the values passed in.
Definition at line 85 of file IsoGeometryTools.cpp. References RECT::bottom, RECT::left, RECT::right, and RECT::top. |
|
Sets all the datat members of the RECT passed in to zero.
Definition at line 77 of file IsoGeometryTools.cpp. References RECT::bottom, RECT::left, RECT::right, and RECT::top. |