thecplusplusguy

Simple OpenGL (SDL) 3D FPS camera - functions.h

Aug 31st, 2011
5,724
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.75 KB | None | 0 0
  1. //This example program is created by thecplusplusuy for demonstration purposes. It's a simple 3D FPS camera:
  2. //http://www.youtube.com/user/thecplusplusguy
  3. //Free source, modify if you want, LGPL licence (I guess), I would be happy, if you would not delete the link
  4. //so other people can see the tutorial
  5. //this file is functions.h, it's contain the function prototypes for the camera
  6. #include <SDL/SDL.h>
  7. #include <GL/gl.h>
  8. #include <GL/glu.h>
  9. #include <cstdlib>
  10. #include <fstream>
  11. #include <cstdio>
  12. #include <iostream>
  13. #include <cmath>
  14. #ifndef FUNCTION_H
  15. #define FUNCTION_H
  16.  
  17. void drawCube(float size);
  18. void lockCamera();
  19. void moveCamera(float,float);
  20. void moveCamerraUp(float,float);
  21. void Control(float,float,bool);
  22. void UpdateCamera();
  23. #endif
Advertisement
Add Comment
Please, Sign In to add comment