aboutsummaryrefslogtreecommitdiff
path: root/demo/DemoApp/meshLoader.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'demo/DemoApp/meshLoader.cpp')
-rw-r--r--demo/DemoApp/meshLoader.cpp67
1 files changed, 2 insertions, 65 deletions
diff --git a/demo/DemoApp/meshLoader.cpp b/demo/DemoApp/meshLoader.cpp
index 99e5e49..2d70414 100644
--- a/demo/DemoApp/meshLoader.cpp
+++ b/demo/DemoApp/meshLoader.cpp
@@ -15,69 +15,6 @@
#include "mesh.h"
#include "meshInterop.h"
-namespace
-{
- ModuleLoader<16u, SDL_LoadObject, SDL_UnloadObject, SDL_LoadFunction> g_loader;
-}
+#include <stdio.h>
-void loadMesh(AppGraphCtxType type)
-{
- const char* moduleName = demoAppDLLName(type);
-
- g_loader.loadModule(moduleName);
-}
-
-void unloadMesh()
-{
- g_loader.unloadModule();
-}
-
-MeshContext* MeshContextCreate(const MeshContextDesc* desc)
-{
- return g_loader.function<0>(MeshContextCreate, "MeshContextCreate", desc);
-}
-
-void MeshContextUpdate(MeshContext* context, const MeshContextDesc* desc)
-{
- return g_loader.function<1>(MeshContextUpdate, "MeshContextUpdate", context, desc);
-}
-
-void MeshContextRelease(MeshContext* context)
-{
- return g_loader.function<2>(MeshContextRelease, "MeshContextRelease", context);
-}
-
-MeshIndexBuffer* MeshIndexBufferCreate(MeshContext* context, MeshUint* indices, MeshUint numIndices)
-{
- return g_loader.function<3>(MeshIndexBufferCreate, "MeshIndexBufferCreate", context, indices, numIndices);
-}
-
-void MeshIndexBufferRelease(MeshIndexBuffer* buffer)
-{
- return g_loader.function<4>(MeshIndexBufferRelease, "MeshIndexBufferRelease", buffer);
-}
-
-MeshVertexBuffer* MeshVertexBufferCreate(MeshContext* context, MeshVertex* vertices, MeshUint numVertices)
-{
- return g_loader.function<5>(MeshVertexBufferCreate, "MeshVertexBufferCreate", context, vertices, numVertices);
-}
-
-void MeshVertexBufferRelease(MeshVertexBuffer* buffer)
-{
- return g_loader.function<6>(MeshVertexBufferRelease, "MeshVertexBufferRelease", buffer);
-}
-
-void MeshContextDraw(MeshContext* context, const MeshContextDrawParams* params)
-{
- return g_loader.function<7>(MeshContextDraw, "MeshContextDraw", context, params);
-}
-
-MeshContext* MeshInteropContextCreate(AppGraphCtx* appctx)
-{
- return g_loader.function<8>(MeshInteropContextCreate, "MeshInteropContextCreate", appctx);
-}
-
-void MeshInteropContextUpdate(MeshContext* context, AppGraphCtx* appctx)
-{
- return g_loader.function<9>(MeshInteropContextUpdate, "MeshInteropContextUpdate", context, appctx);
-} \ No newline at end of file
+#include "meshLoaderGenerated.h" \ No newline at end of file