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__
#define __CONVERT_CONVERT_H_INCLUDED__
#include <string>
#include <aiScene.h>
void ConvertStatic(const aiScene *scene);
void ConvertSkeletalAnimated(const aiScene *scene);
void ConvertStatic(const std::string &outfile, const aiScene *scene);
void ConvertSkeletalAnimated(const std::string &outfile, const aiScene *scene);
#endif

View file

@ -1,5 +1,5 @@
#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"
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");
try
{
ConvertStatic(scene);
ConvertStatic(outputFile, scene);
}
catch (std::exception &ex)
{
@ -84,7 +84,7 @@ int main(int argc, char *argv[])
printf("Using skeletal animation converter.\n");
try
{
ConvertSkeletalAnimated(scene);
ConvertSkeletalAnimated(outputFile, scene);
}
catch (std::exception &ex)
{