summaryrefslogtreecommitdiffhomepage
path: root/MagicEx/include/MagicLoad.h
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2024-04-06 02:34:19 +0200
committerAki <please@ignore.pl>2024-04-06 02:34:19 +0200
commitfbe5f352ff0f238266bc690a0b750674f80b1f02 (patch)
tree4ec2758cc6513014b6e3ef80b2d6c01da7337c7b /MagicEx/include/MagicLoad.h
parenteffc8802a77375437b676ac4534789e819731671 (diff)
downloadstarshatter-fbe5f352ff0f238266bc690a0b750674f80b1f02.zip
starshatter-fbe5f352ff0f238266bc690a0b750674f80b1f02.tar.gz
starshatter-fbe5f352ff0f238266bc690a0b750674f80b1f02.tar.bz2
Added obj2mag and mag2obj utilities
Diffstat (limited to 'MagicEx/include/MagicLoad.h')
-rw-r--r--MagicEx/include/MagicLoad.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/MagicEx/include/MagicLoad.h b/MagicEx/include/MagicLoad.h
new file mode 100644
index 0000000..f447945
--- /dev/null
+++ b/MagicEx/include/MagicLoad.h
@@ -0,0 +1,23 @@
+/* Starshatter: The Open Source Project
+ Copyright (c) 2021-2024, Starshatter: The Open Source Project Contributors
+ Copyright (c) 2011-2012, Starshatter OpenSource Distribution Contributors
+ Copyright (c) 1997-2006, Destroyer Studios LLC.
+*/
+
+#pragma once
+
+#include <windows.h>
+
+#include <filesystem>
+
+#include <Bitmap.h>
+#include <Solid.h>
+
+
+int LoadBuffer(const char* filename, BYTE*& buf, bool null_terminate=false);
+int LoadTexture(const char* name, Bitmap*& bmp, int type=0);
+int LoadAlpha(const char* name, Bitmap& bitmap, int type=0);
+template <typename ModelLoader> bool ImportInto(const std::filesystem::path& pathname, Solid* target);
+
+
+#include "MagicLoad.inl.h"