blob: 81566750a0d043de3b23d680496fd6145250d1c3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#pragma once
#include "Mesh.hpp"
#include <glm/glm.hpp>
namespace renderer {
namespace editor {
Mesh makeWireCube ( float size = 1.0f );
Mesh makeCircleWire ( float radius = 1.0f, int segments = 64 );
Mesh makeCircleFilled ( float radius = 1.0f, int segments = 64 );
bool makeRayFromMouse ( const glm::vec2& mousePx, int fbw, int fbh,
const glm::mat4& view, const glm::mat4& proj,
const glm::vec3& camPos, glm::vec3& outOrigin,
glm::vec3& outDir );
} // namespace editor
} // namespace renderer
|