-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWire.h
More file actions
38 lines (28 loc) · 647 Bytes
/
Wire.h
File metadata and controls
38 lines (28 loc) · 647 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#pragma once
#include "wrapper_glfw.h"
#include <glm/glm.hpp>
class Wire
{
public:
Wire();
~Wire();
void Wire::getWireVertexPositions(GLfloat* pVertices, GLfloat* pNormals);
void makeWire(GLuint numlats, GLuint numlongs);
void drawWire(int drawmode);
GLfloat getWireLength();
private:
// Define vertex buffer object names (e.g as globals)
GLuint wireBufferObject;
GLuint wireNormals;
GLuint wireColours;
GLuint elementbuffer;
GLuint attribute_v_coord;
GLuint attribute_v_normal;
GLuint attribute_v_colours;
int drawmode;
GLuint numVertices;
GLfloat wireLength;
GLfloat wireRadius;
GLuint numlats;
GLuint numlongs;
};