From b1e857cf1471d1871a9396696b22fa531da98249 Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Sat, 23 Nov 2024 22:33:43 +0100 Subject: add projbase to repo --- project-base/src/lib_loader.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 project-base/src/lib_loader.h (limited to 'project-base/src/lib_loader.h') diff --git a/project-base/src/lib_loader.h b/project-base/src/lib_loader.h new file mode 100644 index 0000000..bd62794 --- /dev/null +++ b/project-base/src/lib_loader.h @@ -0,0 +1,26 @@ +/* +* BSD 2-Clause “Simplified” License +* Copyright (c) 2019, Aldrik Ramaekers, aldrik.ramaekers@protonmail.com +* All rights reserved. +*/ + +#ifndef INCLUDE_LIB_LOADER +#define INCLUDE_LIB_LOADER + +// :/Title Library loader +// :/Text Contains functions to load the necessary libraries. + +#include "external/GL/gl.h" +#ifdef OS_WIN +#include "external/GL/wglext.h" +#endif +#ifdef OS_LINUX +#include "external/GL/glx.h" +#endif +#include "external/GL/glu.h" +#include "external/GL/glext.h" + +// :/Info Load all required dynamic libraries. Will exit the application when a library or function is missing. +void _lib_loader_init(); + +#endif \ No newline at end of file -- cgit v1.2.3-70-g09d2