mirror of
https://github.com/copyrighttxt/watrbx-game-engine.git
synced 2026-09-04 20:57:49 +00:00
26 lines
420 B
C++
26 lines
420 B
C++
#pragma once
|
|
|
|
/*
|
|
Utility class - holds Block Meshes of same size for use by Geometry Pool.
|
|
*/
|
|
|
|
#include "V8World/Mesh.h"
|
|
#include "Util/Memory.h"
|
|
|
|
namespace RBX {
|
|
|
|
namespace POLY {
|
|
|
|
class BlockMesh : public Allocator<BlockMesh>
|
|
{
|
|
Mesh mesh;
|
|
public:
|
|
BlockMesh(const Vector3& size) {
|
|
mesh.makeBlock(size);
|
|
}
|
|
const Mesh* getMesh() const {return &mesh;}
|
|
};
|
|
|
|
} // namespace POLY
|
|
} // namespace RBX
|