hgl.h 632 B

123456789101112131415161718192021222324
  1. #ifndef HGL_H
  2. #define HGL_H
  3. #include <GL/glew.h>
  4. #include "hframe.h"
  5. // GL PixelFormat extend
  6. #define GL_I420 0x1910 // YYYYYYYYUUVV
  7. #define GL_YV12 0x1911 // YYYYYYYYVVUU
  8. #define GL_NV12 0x1912 // YYYYYYYYUVUV
  9. #define GL_NV21 0x1913 // YYYYYYYYVUVU
  10. //#define GL_RGB 0x1907 // RGBRGB
  11. //#define GL_RGBA 0x1908 // RGBARGBA
  12. //#define GL_BGR 0x80E0 // BGRBGR .bmp
  13. //#define GL_BGRA 0x80E1 // BGRABGRA
  14. typedef struct GLTexture_s{
  15. GLuint id; // for glGenTextures
  16. HFrame frame;
  17. }GLTexture;
  18. #endif // HGL_H