PolyGLCubemap.h 782 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*
  2. * PolyGLCubemap.h
  3. * Poly
  4. *
  5. * Created by Ivan Safrin on 9/9/09.
  6. * Copyright 2009 __MyCompanyName__. All rights reserved.
  7. *
  8. */
  9. #pragma once
  10. #ifdef _WINDOWS
  11. #include <windows.h>
  12. #endif
  13. #include "PolyGlobals.h"
  14. #include "PolyTexture.h"
  15. #include "PolyGLRenderer.h"
  16. #include "PolyCubemap.h"
  17. #if defined(__APPLE__) && defined(__MACH__)
  18. #include <OpenGL/gl.h>
  19. #include <OpenGL/glext.h>
  20. #include <OpenGL/glu.h>
  21. #else
  22. #include <GL/gl.h>
  23. #include <GL/glu.h>
  24. #endif
  25. namespace Polycode {
  26. class _PolyExport OpenGLCubemap : public Cubemap {
  27. public:
  28. OpenGLCubemap(Texture *t0, Texture *t1, Texture *t2, Texture *t3, Texture *t4, Texture *t5);
  29. virtual ~OpenGLCubemap();
  30. GLuint getTextureID();
  31. private:
  32. int filteringMode;
  33. GLuint textureID;
  34. };
  35. }