mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-05 15:30:00 +01:00
37 lines
1.2 KiB
C++
37 lines
1.2 KiB
C++
#ifndef TINYXML2TOOLKIT_H
|
|
#define TINYXML2TOOLKIT_H
|
|
|
|
#include <string>
|
|
#ifdef __APPLE__
|
|
#include <sys/types.h>
|
|
#endif
|
|
|
|
#include <glm/glm.hpp>
|
|
|
|
namespace tinyxml2 {
|
|
|
|
class XMLDocument;
|
|
class XMLElement;
|
|
|
|
XMLElement *XMLElementFromGLM(XMLDocument *doc, glm::ivec2 vector);
|
|
XMLElement *XMLElementFromGLM(XMLDocument *doc, glm::vec2 vector);
|
|
XMLElement *XMLElementFromGLM(XMLDocument *doc, glm::vec3 vector);
|
|
XMLElement *XMLElementFromGLM(XMLDocument *doc, glm::vec4 vector);
|
|
XMLElement *XMLElementFromGLM(XMLDocument *doc, glm::mat4 matrix);
|
|
|
|
void XMLElementToGLM(const XMLElement *elem, glm::ivec2 &vector);
|
|
void XMLElementToGLM(const XMLElement *elem, glm::vec2 &vector);
|
|
void XMLElementToGLM(const XMLElement *elem, glm::vec3 &vector);
|
|
void XMLElementToGLM(const XMLElement *elem, glm::vec4 &vector);
|
|
void XMLElementToGLM(const XMLElement *elem, glm::mat4 &matrix);
|
|
|
|
XMLElement *XMLElementEncodeArray(XMLDocument *doc, const void *array, uint arraysize);
|
|
bool XMLElementDecodeArray(const tinyxml2::XMLElement *elem, void *array, uint arraysize);
|
|
|
|
bool XMLSaveDoc(tinyxml2::XMLDocument * const doc, std::string filename);
|
|
bool XMLResultError(int result, bool verbose = true);
|
|
|
|
}
|
|
|
|
#endif // TINYXML2TOOLKIT_H
|