Guest User

OpenGL line widths

a guest
Feb 23rd, 2014
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. #include <GL/gl.h>
  2. #include <GL/glut.h>
  3. #include <stdio.h>
  4.  
  5. int main(int argc, char* argv[])
  6. {
  7. GLfloat sizes[2] = {0.0f, 0.0f};
  8. GLfloat step = 0.0f;
  9.  
  10. glutInit(&argc, argv);
  11. glutCreateWindow("single triangle");
  12.  
  13. glGetFloatv(GL_LINE_WIDTH_RANGE,sizes);
  14. glGetFloatv(GL_LINE_WIDTH_GRANULARITY,&step);
  15.  
  16. printf("line width range: %f - %f\n", sizes[0], sizes[1]);
  17. printf("line granularity: %f\n", step);
  18.  
  19. return 0;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment