hgl.h 621 B

123456789101112131415161718192021222324252627
  1. #ifndef HW_GL_H_
  2. #define HW_GL_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. /*
  11. #define GL_RGB 0x1907 // RGBRGB
  12. #define GL_RGBA 0x1908 // RGBARGBA
  13. #define GL_BGR 0x80E0 // BGRBGR .bmp
  14. #define GL_BGRA 0x80E1 // BGRABGRA
  15. */
  16. typedef struct GLTexture_s {
  17. GLuint id; // for glGenTextures
  18. HFrame frame;
  19. } GLTexture;
  20. #endif // HW_GL_H_