2015-02-06 01:44:16 +01:00
|
|
|
/*
|
|
|
|
* =====================================================================================
|
|
|
|
*
|
|
|
|
* Filename: Block.hpp
|
|
|
|
*
|
2018-06-05 01:24:54 +02:00
|
|
|
* Description:
|
2015-02-06 01:44:16 +01:00
|
|
|
*
|
|
|
|
* Created: 29/12/2014 04:56:02
|
|
|
|
*
|
|
|
|
* Author: Quentin BAZIN, <quent42340@gmail.com>
|
|
|
|
*
|
|
|
|
* =====================================================================================
|
|
|
|
*/
|
|
|
|
#ifndef BLOCK_HPP_
|
|
|
|
#define BLOCK_HPP_
|
|
|
|
|
|
|
|
#include <glm/glm.hpp>
|
|
|
|
|
|
|
|
#include "Types.hpp"
|
|
|
|
|
|
|
|
class Block {
|
|
|
|
public:
|
2018-06-13 03:47:20 +02:00
|
|
|
Block(const glm::vec3 &pos, u32 id);
|
2018-06-05 01:24:54 +02:00
|
|
|
|
2015-02-06 01:44:16 +01:00
|
|
|
glm::vec4 getTexCoords();
|
2018-06-05 01:24:54 +02:00
|
|
|
|
2018-06-13 03:47:20 +02:00
|
|
|
const glm::vec3 &pos() const { return m_pos; }
|
|
|
|
|
2018-06-12 23:08:42 +02:00
|
|
|
u32 id() const { return m_id; }
|
2018-06-05 01:24:54 +02:00
|
|
|
|
2015-02-06 01:44:16 +01:00
|
|
|
private:
|
2018-06-13 03:47:20 +02:00
|
|
|
glm::vec3 m_pos;
|
|
|
|
|
2018-06-12 23:08:42 +02:00
|
|
|
u32 m_id;
|
2015-02-06 01:44:16 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // BLOCK_HPP_
|