diff ply2bin.cpp @ 70:03aa729a9e90

Refactor PLY file parsing from dmscene.* to dmply.* and some helper functions into dmutil.h
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 16 Dec 2019 07:51:05 +0200
parents 7b138613e2fc
children
line wrap: on
line diff
--- a/ply2bin.cpp	Mon Dec 16 06:51:40 2019 +0200
+++ b/ply2bin.cpp	Mon Dec 16 07:51:05 2019 +0200
@@ -11,8 +11,8 @@
 #define _SDL_main_h
 #define SDL_main main
 
-#include "dmutil.h"
 #include "dmscene.h"
+#include "dmply.h"
 
 
 bool dmFWriteFloatLE(FILE *fh, const float val)
@@ -166,7 +166,7 @@
         goto exit;
     }
 
-    if (!model.loadFromPLY(optInputFilename))
+    if (!dmLoadFromPLY(model, optInputFilename))
         goto exit;
 
     if ((outFile = fopen(optOutputFilename.c_str(), "wb")) == NULL)