mirror of
https://github.com/copyrighttxt/watrbx-game-engine.git
synced 2026-09-05 05:07:48 +00:00
fahhh
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
#pragma once
|
||||
|
||||
/*
|
||||
Utility class - holds Wedge Meshes of same size for use by Geometry Pool.
|
||||
*/
|
||||
|
||||
#include "Util/Memory.h"
|
||||
#include "V8World/Mesh.h"
|
||||
|
||||
|
||||
namespace RBX {
|
||||
|
||||
namespace POLY {
|
||||
|
||||
class WedgeMesh : public Allocator<WedgeMesh>
|
||||
{
|
||||
private:
|
||||
Mesh mesh;
|
||||
|
||||
public:
|
||||
WedgeMesh(const Vector3& size)
|
||||
{
|
||||
mesh.makeWedge(size);
|
||||
}
|
||||
const Mesh* getMesh() const {return &mesh;}
|
||||
};
|
||||
|
||||
} // namespace POLY
|
||||
} // namespace RBX
|
||||
Reference in New Issue
Block a user