MCPcopy Create free account
hub / github.com/JeanPhilippeKernel/RendererEngine / SquareGeometry

Method SquareGeometry

ZEngine/src/SquareGeometry.cpp:5–10  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3
4namespace ZEngine::Rendering::Geometries {
5 SquareGeometry::SquareGeometry(const Maths::Vector3& position, const Maths::Vector3& scale, const Maths::Vector3& rotation_axis, float rotation_angle)
6 : IGeometry(position, scale, rotation_axis, rotation_angle,
7 {Renderers::Storages::GraphicVertex({-0.5f, -0.5f, 1.0f}, {0.0f, 0.0f, 0.0f}, {0.0f, 0.0f}),
8 Renderers::Storages::GraphicVertex({0.5f, -0.5f, 1.0f}, {0.0f, 0.0f, 0.0f}, {1.0f, 0.0f}),
9 Renderers::Storages::GraphicVertex({0.0f, 0.5f, 1.0f}, {0.0f, 0.0f, 0.0f}, {0.0f, 1.0f}),
10 Renderers::Storages::GraphicVertex({0.5f, -0.5f, 1.0f}, {0.0f, 0.0f, 0.0f}, {1.0f, 0.0f})}) {}
11} // namespace ZEngine::Rendering::Geometries

Callers

nothing calls this directly

Calls 1

GraphicVertexClass · 0.85

Tested by

no test coverage detected