diff options
| author | Juan Linietsky | 2018-05-08 10:46:13 -0300 |
|---|---|---|
| committer | GitHub | 2018-05-08 10:46:13 -0300 |
| commit | b190afe0847cef449b094469ad50b0c8e3ca1350 (patch) | |
| tree | fc0107bf838ab27667fbb411defe81f7bb0f62d1 /modules/bmp/register_types.cpp | |
| parent | 06b076f6871a9524c4fa1af57441527bba03d619 (diff) | |
| parent | e30b0656e83ec43da29c8d27bdedd80662c4c2fd (diff) | |
| download | godot-b190afe0847cef449b094469ad50b0c8e3ca1350.tar.gz godot-b190afe0847cef449b094469ad50b0c8e3ca1350.tar.zst godot-b190afe0847cef449b094469ad50b0c8e3ca1350.zip | |
Merge pull request #15549 from SaracenOne/bmp
BMP module
Diffstat (limited to 'modules/bmp/register_types.cpp')
| -rw-r--r-- | modules/bmp/register_types.cpp | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/modules/bmp/register_types.cpp b/modules/bmp/register_types.cpp new file mode 100644 index 000000000..1f68a03e8 --- /dev/null +++ b/modules/bmp/register_types.cpp @@ -0,0 +1,44 @@ +/*************************************************************************/ +/* register_types.cpp */ +/*************************************************************************/ +/* This file is part of: */ +/* GODOT ENGINE */ +/* https://godotengine.org */ +/*************************************************************************/ +/* Copyright (c) 2007-2018 Juan Linietsky, Ariel Manzur. */ +/* Copyright (c) 2014-2018 Godot Engine contributors (cf. AUTHORS.md) */ +/* */ +/* Permission is hereby granted, free of charge, to any person obtaining */ +/* a copy of this software and associated documentation files (the */ +/* "Software"), to deal in the Software without restriction, including */ +/* without limitation the rights to use, copy, modify, merge, publish, */ +/* distribute, sublicense, and/or sell copies of the Software, and to */ +/* permit persons to whom the Software is furnished to do so, subject to */ +/* the following conditions: */ +/* */ +/* The above copyright notice and this permission notice shall be */ +/* included in all copies or substantial portions of the Software. */ +/* */ +/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */ +/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */ +/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.*/ +/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */ +/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */ +/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ +/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +/*************************************************************************/ + +#include "register_types.h" + +#include "image_loader_bmp.h" + +static ImageLoaderBMP *image_loader_bmp = NULL; + +void register_bmp_types() { + image_loader_bmp = memnew(ImageLoaderBMP); + ImageLoader::add_image_format_loader(image_loader_bmp); +} + +void unregister_bmp_types() { + memdelete(image_loader_bmp); +} |
