Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-01-30 17:28:41 +0000
committerStijn Buys <ingar@osirion.org>2008-01-30 17:28:41 +0000
commite3c27429831245a151706c395991b42f2876b2e1 (patch)
tree4316cf546d073b87d4c2345a89905cdaafd795b1 /src
parentc6414cfbeb25d9e4df783264d32f31de48241347 (diff)
core subsystem
Diffstat (limited to 'src')
-rw-r--r--src/core/Makefile.am12
-rw-r--r--src/core/core.cc34
-rw-r--r--src/core/core.h22
3 files changed, 68 insertions, 0 deletions
diff --git a/src/core/Makefile.am b/src/core/Makefile.am
new file mode 100644
index 0000000..0f0020f
--- /dev/null
+++ b/src/core/Makefile.am
@@ -0,0 +1,12 @@
+METASOURCES = AUTO
+INCLUDES = -I$(top_srcdir)/src
+
+libcore_la_SOURCES = core.cc
+libcore_la_LDFLAGS = -avoid-version -no-undefined
+libcore_la_LIBADD = $(top_builddir)/src/common/libcommon.la \
+ $(top_builddir)/src/math/libmath.la \
+ $(top_builddir)/src/filesystem/libfilesystem.la
+
+noinst_LTLIBRARIES = libcore.la
+noinst_HEADERS = core.h
+
diff --git a/src/core/core.cc b/src/core/core.cc
new file mode 100644
index 0000000..b576ba5
--- /dev/null
+++ b/src/core/core.cc
@@ -0,0 +1,34 @@
+/*
+ core/core.cc
+ This file is part of the Osirion project and is distributed under
+ the terms of the GNU General Public License version 2
+*/
+
+// project headers
+#include "common/common.h"
+#include "filesystem/filesystem.h"
+#include "core/core.h"
+
+namespace core
+{
+
+/// initialize the core
+void init() {
+ common::init();
+
+ filesystem::init();
+
+ con_debug << "Initializing core..." << std::endl;
+}
+
+/// shutdown the core
+void shutdown() {
+ con_debug << "Shutting down core..." << std::endl;
+
+ filesystem::shutdown();
+
+ common::shutdown();
+}
+
+}
+
diff --git a/src/core/core.h b/src/core/core.h
new file mode 100644
index 0000000..d5e4542
--- /dev/null
+++ b/src/core/core.h
@@ -0,0 +1,22 @@
+/*
+ core/core.h
+ This file is part of the Osirion project and is distributed under
+ the terms of the GNU General Public License version 2
+*/
+
+#ifndef __INCLUDED_CORE_H__
+#define __INCLUDED_CORE_H__
+
+/// core contains the basic functionality of the engine
+namespace core
+{
+ /// initialize the core
+ void init();
+
+ /// shutdown the core
+ void shutdown();
+
+};
+
+#endif // __INCLUDED_CORE_H__
+