thecplusplusguy

OpenGL skybox - functions.h

Sep 4th, 2011
3,397
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.95 KB | None | 0 0
  1. //This example program is created by thecplusplusuy for demonstration purposes. It's a simple skybox:
  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
  6. #include <SDL/SDL.h>
  7. #include <GL/gl.h>
  8. #include <GL/glu.h>
  9. #include <cstdlib>
  10. #include <vector>
  11. #include <string>
  12. #include <algorithm>
  13. #include <fstream>
  14. #include <cstdio>
  15. #include <iostream>
  16. #include <cmath>
  17. #ifndef FUNCTION_H
  18. #define FUNCTION_H
  19.  
  20. void drawCube(float size);
  21. void drawSkybox(float size);    //draw the skybox
  22. void initskybox();  //load the textures
  23. void killskybox();  //delete the textures
  24. void lockCamera();
  25. void moveCamera(float,float);
  26. void moveCamerraUp(float,float);
  27. void Control(float,float,bool);
  28. void UpdateCamera();
  29. unsigned int loadTexture(const char*);
  30. #endif
Advertisement
Add Comment
Please, Sign In to add comment