Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <GL/gl.h>
- #include <GL/glut.h>
- #include <stdio.h>
- int main(int argc, char* argv[])
- {
- GLfloat sizes[2] = {0.0f, 0.0f};
- GLfloat step = 0.0f;
- glutInit(&argc, argv);
- glutCreateWindow("single triangle");
- glGetFloatv(GL_LINE_WIDTH_RANGE,sizes);
- glGetFloatv(GL_LINE_WIDTH_GRANULARITY,&step);
- printf("line width range: %f - %f\n", sizes[0], sizes[1]);
- printf("line granularity: %f\n", step);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment