https://github.com/sueda/eol-cloth
Revision 2323d9f6471bbf5dc63979216a3ed3c97ff3538a authored by Weidner on 13 July 2018, 15:37:58 UTC, committed by Weidner on 13 July 2018, 15:37:58 UTC
1 parent db932cf
Tip revision: 2323d9f6471bbf5dc63979216a3ed3c97ff3538a authored by Weidner on 13 July 2018, 15:37:58 UTC
Solver solving using old deform grad method. Still some bugs, but going to clean up force filling
Solver solving using old deform grad method. Still some bugs, but going to clean up force filling
Tip revision: 2323d9f
BrenderManager.h
/*
* @author: Gustavo Lopez 10-21-17
*
* @version: 1.0
*/
#pragma once
#include <vector>
#include <memory>
#include <string>
#include <ostream>
class Brenderable;
class BrenderManager
{
private:
static bool instanceFlag;
static BrenderManager *manager;
int frame;
std::string EXPORT_DIR;
std::vector<std::shared_ptr<Brenderable> > brenderables;
BrenderManager()
{
//private constructor
EXPORT_DIR = ".";
frame = 0;
}
public:
static BrenderManager* getInstance();
void setExportDir(std::string export_dir);
int getFrame() const;
void exportBrender(double time = 0.0);
void add(std::shared_ptr<Brenderable> brenderable);
~BrenderManager()
{
instanceFlag = false;
}
};
Computing file changes ...