@@ -118,10 +118,10 @@ void MiniGL::coordinateSystem()
118
118
119
119
void MiniGL::drawVector (const Vector3r &a, const Vector3r &b, const float w, float *color)
120
120
{
121
- float thickness = 0 .001f * w;
121
+ float thickness = 0 .005f * w;
122
122
123
123
// Draw a thick line as a cylinder with constant color.
124
- drawCylinder (a, b, color, thickness, 8 , false );
124
+ drawCylinder (a, b, color, thickness, 32 , false );
125
125
}
126
126
127
127
void MiniGL::drawCylinder (const Vector3r &a, const Vector3r &b, const float *color, const float radius, const unsigned int subdivisions, const bool lighting)
@@ -465,7 +465,7 @@ void MiniGL::init(const int width, const int height, const char *name, const boo
465
465
466
466
glfwWindowHint (GLFW_CONTEXT_VERSION_MAJOR, 3 );
467
467
glfwWindowHint (GLFW_CONTEXT_VERSION_MINOR, 3 );
468
- glfwWindowHint (GLFW_OPENGL_FORWARD_COMPAT, GL_TRUE );
468
+ glfwWindowHint (GLFW_OPENGL_FORWARD_COMPAT, GLFW_TRUE );
469
469
glfwWindowHint (GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);
470
470
glfwWindowHint (GLFW_SAMPLES, 4 );
471
471
0 commit comments