You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
726 B

/*
* 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 <memory>
#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> shaderProgram;
GLuint program;
GLuint vbo;
GLint uniformTex;
GLint attribCoord;
};
}; // namespace dolgles
#endif // end OSD_FRAME_H