mirror of
https://github.com/love2d/love.git
synced 2026-08-16 16:20:42 +02:00
Rework internal module registration to happen in constructors.
This commit is contained in:
@@ -35,15 +35,20 @@ namespace video
|
||||
class Video : public Module
|
||||
{
|
||||
public:
|
||||
virtual ~Video() {}
|
||||
|
||||
// Implements Module
|
||||
virtual ModuleType getModuleType() const { return M_VIDEO; }
|
||||
virtual ~Video() {}
|
||||
|
||||
/**
|
||||
* Create a VideoStream representing video frames
|
||||
**/
|
||||
virtual VideoStream *newVideoStream(love::filesystem::File *file) = 0;
|
||||
|
||||
protected:
|
||||
|
||||
Video(const char *name)
|
||||
: Module(M_VIDEO, name)
|
||||
{}
|
||||
|
||||
}; // Video
|
||||
|
||||
} // video
|
||||
|
||||
Reference in New Issue
Block a user