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:
parent
5fca94616c
commit
648684e4aa
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue