OpenMiner/include/world/Block.hpp

38 lines
676 B
C++
Raw Normal View History

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:
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
const glm::vec3 &pos() const { return m_pos; }
u32 id() const { return m_id; }
2018-06-05 01:24:54 +02:00
2015-02-06 01:44:16 +01:00
private:
glm::vec3 m_pos;
u32 m_id;
2015-02-06 01:44:16 +01:00
};
#endif // BLOCK_HPP_