Mercurial > hg > forks > gldragon
diff gldragon.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 | 267b3fd2c98c |
children | 3383e402817b |
line wrap: on
line diff
--- a/gldragon.cpp Mon Dec 16 06:51:40 2019 +0200 +++ b/gldragon.cpp Mon Dec 16 07:51:05 2019 +0200 @@ -10,6 +10,7 @@ #include <SDL.h> #include "dmutil.h" #include "dmglrender.h" +#include "dmply.h" /* Default settings etc. constants @@ -20,8 +21,6 @@ #define SET_MAX_SHADER_SIZE (128 * 1024) - - /* Helpers */ bool dmInitSDL(DMSimpleRenderer &renderer, @@ -252,7 +251,7 @@ for (DMModel &model : scene.models) { - if (!model.loadFromPLY(basePath + model.modelFile)) + if (!dmLoadFromPLY(model, basePath + model.modelFile)) goto exit; if (optUseShaders)