Don't expose global modules' con/destructors

This is just a small change to make the C++ API
match the binding counterparts more closely.
This commit is contained in:
Jonas Kulla 2013-12-05 00:34:11 +01:00
parent 5fca94616c
commit 648684e4aa
3 changed files with 15 additions and 9 deletions

View File

@ -37,9 +37,6 @@ struct AudioPrivate;
class Audio
{
public:
Audio();
~Audio();
void bgmPlay(const char *filename,
int volume = 100,
int pitch = 100
@ -78,6 +75,11 @@ public:
#endif
private:
Audio();
~Audio();
friend struct SharedStatePrivate;
AudioPrivate *p;
};

View File

@ -32,9 +32,6 @@ struct GraphicsPrivate;
class Graphics
{
public:
Graphics(RGSSThreadData *data);
~Graphics();
void update();
void freeze();
void transition(int duration = 8,
@ -70,6 +67,11 @@ public:
void repaintWait(volatile bool *exitCond);
private:
Graphics(RGSSThreadData *data);
~Graphics();
friend struct SharedStatePrivate;
GraphicsPrivate *p;
};

View File

@ -47,9 +47,6 @@ public:
static const int buttonCodeSize;
Input();
~Input();
void update();
bool isPressed(int button);
@ -64,6 +61,11 @@ public:
int mouseY();
private:
Input();
~Input();
friend struct SharedStatePrivate;
InputPrivate *p;
};