Advertisement
Guest User

Untitled

a guest
Jun 25th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.77 KB | None | 0 0
  1. //------------------------------------------------------------------------------------------//
  2. //MainHeader.h
  3. //------------------------------------------------------------------------------------------//
  4. #pragma once
  5.  
  6. #ifndef MAINHEADER_H
  7. #define MAINHEADER_H
  8.  
  9. #include "windows.h"
  10. #include <commctrl.h>
  11. #include <string.h>
  12. #include <tchar.h>
  13. #include "stdlib.h"
  14. #include "stdio.h"
  15. #include "math.h"
  16. ...
  17. #pragma comment (lib,"opengl32.lib")
  18. #pragma comment (lib,"glu32.lib")
  19. #include <gl\gl.h>          // Header File For The OpenGL32 Library
  20. #include <gl\glu.h>         // Header File For The GLu32 Library
  21. ...
  22. using namespace std;
  23. #include "Simulator.h"
  24. #include "Camera.h"
  25. #include "Objects.h"
  26.  
  27. #endif
  28. //------------------------------------------------------------------------------------------//
  29. //CORE.cpp
  30. //------------------------------------------------------------------------------------------//
  31. #include "MainHeader.h"
  32. int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
  33. { ... }
  34. ...
  35.  
  36. //------------------------------------------------------------------------------------------//
  37. //Camera.h
  38. //------------------------------------------------------------------------------------------//
  39. #include "Objects.h"
  40. class Camera
  41. { ...
  42.  void Render(void);
  43. ...}
  44.  
  45. //------------------------------------------------------------------------------------------//
  46. //Camera.cpp
  47. //------------------------------------------------------------------------------------------//
  48. #include "Camera.h"
  49. void Camera::Render()
  50. {...
  51. gluLookAt(Position.x,Position.y,Position.z,     // Вот тут выдает ошибку: error C3861: 'gluLookAt': identifier not found
  52.         ViewPoint.x,ViewPoint.y,ViewPoint.z,
  53.         UpVector.x,UpVector.y,UpVector.z);
  54. ...
  55. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement