26 lines
641 B
C++
26 lines
641 B
C++
#ifndef UTILS_H
|
|
#define UTILS_H
|
|
|
|
#include <vector>
|
|
#include <string>
|
|
#include <glm/glm.hpp>
|
|
|
|
class ScriptNode;
|
|
class btRigidBody;
|
|
class GeometryNode;
|
|
|
|
namespace utils
|
|
{
|
|
std::vector<std::string> split(const std::string &line, char sep);
|
|
void initScriptingUtilsFunctions(ScriptNode* scriptNode);
|
|
void initStandardScene();
|
|
//void setPosition2D(MeshNode*, glm::vec2);
|
|
//void resize2D(MeshNode*, glm::vec2, glm::vec2);
|
|
//void scale2D(MeshNode*, glm::vec2);
|
|
//void rotate2D(MeshNode* mnode, glm::vec2 center, float angle);
|
|
//void setDepth2D(MeshNode* mnode, float depth);
|
|
btRigidBody* buildStaticCollider(GeometryNode* node);
|
|
}
|
|
|
|
#endif // UTILS_H
|