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

View File

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

View File

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