Add rendering for mouse interaction (#3781)

This commit is contained in:
Alexander Bock
2025-09-07 15:36:46 +02:00
committed by GitHub
parent 8f12fa045f
commit 0e72a2cb0d
5 changed files with 215 additions and 14 deletions
+8
View File
@@ -63,6 +63,9 @@ void renderBox(const glm::vec2& position, const glm::vec2& size, const glm::vec4
void renderBox(const glm::vec2& position, const glm::vec2& size, const glm::vec4& color,
const ghoul::opengl::Texture& texture, Anchor anchor = Anchor::NW);
void renderLine(const glm::vec2& startPosition, const glm::vec2& endPosition,
const glm::vec2& size, const glm::vec4& startColor, const glm::vec4& endColor);
struct Shaders {
struct {
std::unique_ptr<ghoul::opengl::ProgramObject> program;
@@ -105,6 +108,11 @@ struct VertexObjects {
int nElements = 64;
} cone;
struct {
GLuint vao = 0;
GLuint vbo = 0;
} line;
struct {
GLuint vao = 0;
} empty;