louxiu / game-graph

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

  • http://en.wikibooks.org/wiki/OpenGL_Programming

  • requirement

    1. opengl
    2. freeglut3-dev: an upper aip layer for window managment
    3. glew: used for dynamic load opengl library api
    4. glm: something about math
  • linking -lglut -lGLEW -lGL -lglm

  • glut api https://www.opengl.org/documentation/specs/glut/spec3/spec3.html

  • install sudo apt-get install mesa-utils glxinfo and glxgears

  • check card lspci

  • problem, need to reinstall the driver X Error of failed request: BadRequest (invalid request code or no such operation) Major opcode of failed request: 154 (GLX) Minor opcode of failed request: 34 () Serial number of failed request: 34 Current serial number in output stream: 33

  • start gui program to desktop from command line export DISPLAY=:0

  • screenshot

    1. view1~6 ScreenShot
    2. view7 light ScreenShot
    3. view8 fps ScreenShot
    4. view9 earth ScreenShot
    5. view10 3d texture ScreenShot
    6. view11 ScreenShot
    7. view12 ScreenShot
    8. view13 ScreenShot
    9. view14 3d math pic ScreenShot
    10. view15 3d math pic ScreenShot
    11. view16 teapot ScreenShot
    12. view17 mask ScreenShot
    13. view18 text ScreenShot
    14. view19 select ScreenShot
    15. view20 aeroplane chess ScreenShot
    16. view21 portal ScreenShot
    17. view23 point cloud ScreenShot

About


Languages

Language:C 80.6%Language:C++ 16.5%Language:GLSL 2.7%Language:Makefile 0.2%