pass output filename to the convert functions

This commit is contained in:
gered 2011-04-27 13:18:21 -04:00
parent 22d7c53fb7
commit d33cf1169d
4 changed files with 7 additions and 6 deletions

View file

@ -1,9 +1,10 @@
#ifndef __CONVERT_CONVERT_H_INCLUDED__ #ifndef __CONVERT_CONVERT_H_INCLUDED__
#define __CONVERT_CONVERT_H_INCLUDED__ #define __CONVERT_CONVERT_H_INCLUDED__
#include <string>
#include <aiScene.h> #include <aiScene.h>
void ConvertStatic(const aiScene *scene); void ConvertStatic(const std::string &outfile, const aiScene *scene);
void ConvertSkeletalAnimated(const aiScene *scene); void ConvertSkeletalAnimated(const std::string &outfile, const aiScene *scene);
#endif #endif

View file

@ -1,5 +1,5 @@
#include "convert.h" #include "convert.h"
void ConvertSkeletalAnimated(const aiScene *scene) void ConvertSkeletalAnimated(const std::string &outfile, const aiScene *scene)
{ {
} }

View file

@ -1,5 +1,5 @@
#include "convert.h" #include "convert.h"
void ConvertStatic(const aiScene *scene) void ConvertStatic(const std::string &outfile, const aiScene *scene)
{ {
} }

View file

@ -70,7 +70,7 @@ int main(int argc, char *argv[])
printf("Using static converter.\n"); printf("Using static converter.\n");
try try
{ {
ConvertStatic(scene); ConvertStatic(outputFile, scene);
} }
catch (std::exception &ex) catch (std::exception &ex)
{ {
@ -84,7 +84,7 @@ int main(int argc, char *argv[])
printf("Using skeletal animation converter.\n"); printf("Using skeletal animation converter.\n");
try try
{ {
ConvertSkeletalAnimated(scene); ConvertSkeletalAnimated(outputFile, scene);
} }
catch (std::exception &ex) catch (std::exception &ex)
{ {