mirror of
https://github.com/rwengine/openrw.git
synced 2024-11-07 11:22:45 +01:00
26 lines
491 B
C++
26 lines
491 B
C++
#ifndef _LOADERCOL_H_
|
|
#define _LOADERCOL_H_
|
|
#include <string>
|
|
#include <vector>
|
|
#include <memory>
|
|
#include <glm/glm.hpp>
|
|
#include <data/CollisionModel.hpp>
|
|
|
|
/**
|
|
* @class LoaderCOL
|
|
* Loads collision data from COL files
|
|
*/
|
|
class LoaderCOL
|
|
{
|
|
public:
|
|
/// Load the COL data into memory
|
|
bool load(const std::string& file);
|
|
|
|
/// Load the COL data from a file already in memory
|
|
bool load(char* data, const size_t size);
|
|
|
|
std::vector<std::unique_ptr<CollisionModel>> instances;
|
|
};
|
|
|
|
#endif
|