pass output filename to the convert functions
This commit is contained in:
parent
22d7c53fb7
commit
d33cf1169d
|
@ -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
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#include "convert.h"
|
||||
|
||||
void ConvertSkeletalAnimated(const aiScene *scene)
|
||||
void ConvertSkeletalAnimated(const std::string &outfile, const aiScene *scene)
|
||||
{
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#include "convert.h"
|
||||
|
||||
void ConvertStatic(const aiScene *scene)
|
||||
void ConvertStatic(const std::string &outfile, const aiScene *scene)
|
||||
{
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Reference in a new issue