mirror of
https://github.com/aap/librw.git
synced 2026-07-24 15:57:05 +01:00
changed pipe new to explicit create
This commit is contained in:
+9
-2
@@ -9,13 +9,20 @@ public:
|
||||
uint32 pluginData;
|
||||
int32 platform;
|
||||
|
||||
Pipeline(uint32 platform);
|
||||
void init(uint32 platform) {
|
||||
this->pluginID = 0;
|
||||
this->pluginData = 0;
|
||||
this->platform = platform;
|
||||
}
|
||||
};
|
||||
|
||||
class ObjPipeline : public Pipeline
|
||||
{
|
||||
public:
|
||||
ObjPipeline(uint32 platform);
|
||||
void init(uint32 platform);
|
||||
static ObjPipeline *create(void); // always PLATFORM_NULL
|
||||
void destroy(void);
|
||||
|
||||
// not the most beautiful way of doing things but still
|
||||
// better than virtual methods (i hope?).
|
||||
struct {
|
||||
|
||||
Reference in New Issue
Block a user