mirror of
https://github.com/rwengine/openrw.git
synced 2024-11-07 11:22:45 +01:00
32 lines
422 B
C++
32 lines
422 B
C++
#pragma once
|
|
#ifndef __INSTANCEDATA_HPP__
|
|
#define __INSTANCEDATA_HPP__
|
|
#include <string>
|
|
#include <glm/glm.hpp>
|
|
#include <glm/gtc/quaternion.hpp>
|
|
|
|
struct InstanceData
|
|
{
|
|
/**
|
|
* ID of the object this instance
|
|
*/
|
|
int id;
|
|
/**
|
|
* Model name
|
|
*/
|
|
std::string model;
|
|
/**
|
|
* Instance position
|
|
*/
|
|
glm::vec3 pos;
|
|
/**
|
|
* Instance scaleX
|
|
*/
|
|
glm::vec3 scale;
|
|
/**
|
|
* Instance rotation
|
|
*/
|
|
glm::quat rot;
|
|
};
|
|
|
|
#endif |