44 {
if (
this == &p)
return *
this; mX=p.x();
mY=p.
y();
return *
this;}
46 bool operator==(
const Point & p)
const 47 {
return (mX == p.x() &&
mY == p.
y()) ?
true :
false;}
49 bool operator!=(
const Point & p)
const 50 {
return (mX != p.x() ||
mY != p.
y()) ?
true :
false;}
52 Sint16
x()
const {
return mX;}
53 Sint16
y()
const {
return mY;}
55 void setX(Sint16
x) {mX =
x;}
56 void setY(Sint16
y) {
mY =
y;}
57 void set(
const Point & p) {mX = p.x();
mY = p.
y();}
58 void set(Sint16
x, Sint16
y) {mX =
x;
mY =
y;}
60 void qX(
const Point & p) {mX ^= p.x();}
61 void qY(
const Point & p) {
mY ^= p.
y();}
71 #endif // SDLTK_POINT_H ~Point() ROLAND_DEFAULT Point &operator
Standard Destructor. Does nothing.
Point(const Point &p)
Copyconstructor. It is save to init Point with itself.
Definition: point.h:37
GLuint GLfloat GLenum cap GLsizei GLuint *textures GLenum GLint *params void GLdouble GLdouble GLdouble GLdouble GLdouble GLdouble zFar GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid *pixels GLenum GLint GLint GLint GLsizei GLsizei GLenum GLenum const GLvoid *pixels GLfloat x
Definition: glfunclist.h:25
Point() ROLAND_DEFAULT Point(Sint16 x
Standard Constructor. Initializes x and y to 0.
#define ROLAND_DEFAULT
Definition: compspec.h:46
Defines a 2D point (x, y)
Definition: point.h:28
Sint16 y
Definition: point.h:35
the SDL based Stuff
Definition: audio.cpp:22