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__
|
#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
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#include "convert.h"
|
#include "convert.h"
|
||||||
|
|
||||||
void ConvertSkeletalAnimated(const aiScene *scene)
|
void ConvertSkeletalAnimated(const std::string &outfile, const aiScene *scene)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#include "convert.h"
|
#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");
|
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)
|
||||||
{
|
{
|
||||||
|
|
Reference in a new issue