mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-05-07 20:09:58 -05:00
Add rendering for mouse interaction (#3781)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user