mirror of
https://github.com/encounter/tp.git
synced 2026-07-11 06:18:46 -07:00
jstudio particle and sound OK (#2194)
* Work on object-sound * object-particle OK * object-sound OK * JStudio_JAudio2 control OK * JStudio_JParticle control OK * JStage object OK * JStage ambient light OK
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
#ifndef POINTER_H
|
||||
#define POINTER_H
|
||||
|
||||
namespace JGadget {
|
||||
|
||||
template<class T>
|
||||
class TPointer {
|
||||
public:
|
||||
TPointer(T* ptr) : mPtr(ptr) {}
|
||||
void set(T* ptr) { mPtr = ptr; }
|
||||
T* mPtr;
|
||||
};
|
||||
|
||||
template<class T>
|
||||
class TPointer_delete : public TPointer<T> {
|
||||
public:
|
||||
TPointer_delete(T* ptr) : TPointer(ptr) {}
|
||||
~TPointer_delete() {
|
||||
delete mPtr;
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user