aboutsummaryrefslogtreecommitdiff
path: root/demo/DemoApp/meshLoader.cpp
diff options
context:
space:
mode:
authorAndrew Reidmeyer <[email protected]>2017-06-13 20:38:29 -0600
committerAndrew Reidmeyer <[email protected]>2017-06-13 20:38:29 -0600
commit62a1427154131f2387675957c1d2027061f354f0 (patch)
tree4efdcb7d3fe9722d46523a51bc5c90b96f25441e /demo/DemoApp/meshLoader.cpp
parentInitial 1.0.0 binary release (diff)
downloadflow-1.0.1.tar.xz
flow-1.0.1.zip
NvFlow 1.0.1v1.0.1
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