mirror of
https://github.com/love2d/love.git
synced 2026-08-18 03:34:23 +02:00
Imported some of the dynamiccore branch from love-experiments:
- Type names for love's Lua objects are specified as an argument to luax_register_type, rather than being statically defined in an array. - luax_register_type takes a variable number of method array arguments, for registering superclass methods without copying them into the subclass' method array. Also removed most of the header declarations for wrapper functions.
This commit is contained in:
@@ -41,14 +41,18 @@ namespace magpie
|
||||
|
||||
Image::Image()
|
||||
{
|
||||
formatHandlers.push_back(new PNGHandler);
|
||||
formatHandlers.push_back(new STBHandler);
|
||||
formatHandlers = {
|
||||
new PNGHandler,
|
||||
new STBHandler,
|
||||
};
|
||||
|
||||
compressedFormatHandlers.push_back(new DDSHandler);
|
||||
compressedFormatHandlers.push_back(new PVRHandler);
|
||||
compressedFormatHandlers.push_back(new KTXHandler);
|
||||
compressedFormatHandlers.push_back(new PKMHandler);
|
||||
compressedFormatHandlers.push_back(new ASTCHandler);
|
||||
compressedFormatHandlers = {
|
||||
new DDSHandler,
|
||||
new PVRHandler,
|
||||
new KTXHandler,
|
||||
new PKMHandler,
|
||||
new ASTCHandler,
|
||||
};
|
||||
}
|
||||
|
||||
Image::~Image()
|
||||
|
||||
Reference in New Issue
Block a user