/* * Copyright (c) Hisilicon Technologies Co., Ltd. 2019-2020. All rights reserved. * Description: Display frame buffer object * Author: * Create: 2019-08-27 */ #ifndef OSD_FRAME_H #define OSD_FRAME_H #include #include "Common.h" #include "ShaderProgram.h" namespace dolgles { using std::unique_ptr; class OSDFrame { public: OSDFrame(); ~OSDFrame(); EGL_S32 Init(); void DisplayFBO(GLuint texture, const GLRectInfo &srcRect, const GLRectInfo &dstRect, GLsizei winWidth, GLsizei winHeight) const; private: unique_ptr shaderProgram; GLuint program; GLuint vbo; GLint uniformTex; GLint attribCoord; }; }; // namespace dolgles #endif // end OSD_FRAME_H