From fbe5f352ff0f238266bc690a0b750674f80b1f02 Mon Sep 17 00:00:00 2001 From: Aki Date: Sat, 6 Apr 2024 02:34:19 +0200 Subject: Added obj2mag and mag2obj utilities --- MagicEx/include/MagicLoad.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 MagicEx/include/MagicLoad.h (limited to 'MagicEx/include/MagicLoad.h') 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 + +#include + +#include +#include + + +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 bool ImportInto(const std::filesystem::path& pathname, Solid* target); + + +#include "MagicLoad.inl.h" -- cgit v1.1