2013-07-07 22:10:29 +02:00
|
|
|
#ifndef _LOADERCOL_H_
|
|
|
|
#define _LOADERCOL_H_
|
2013-07-02 08:06:03 +02:00
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
2013-11-17 17:06:38 +01:00
|
|
|
#include <memory>
|
2013-07-02 08:06:03 +02:00
|
|
|
#include <glm/glm.hpp>
|
2013-12-20 15:03:32 +01:00
|
|
|
#include <data/CollisionModel.hpp>
|
2013-07-02 08:06:03 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @class LoaderCOL
|
|
|
|
* Loads collision data from COL files
|
|
|
|
*/
|
|
|
|
class LoaderCOL
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
/// Load the COL data into memory
|
|
|
|
bool load(const std::string& file);
|
|
|
|
|
2013-07-07 22:10:29 +02:00
|
|
|
/// Load the COL data from a file already in memory
|
|
|
|
bool load(char* data, const size_t size);
|
|
|
|
|
2013-11-17 17:06:38 +01:00
|
|
|
std::vector<std::unique_ptr<CollisionModel>> instances;
|
2013-07-02 08:06:03 +02:00
|
|
|
};
|
|
|
|
|
2013-07-22 02:49:02 +02:00
|
|
|
#endif
|