/* * Copyright (c) Hisilicon Technologies Co., Ltd. 2020-2020. All rights reserved. * Description: Draw round * Author: * Create: 2020-05-25 */ #ifndef OSD_ROUND_H #define OSD_ROUND_H #include #include "Common.h" #include "ShaderProgram.h" namespace dolgles { using std::unique_ptr; class OSDRound { public: OSDRound(); ~OSDRound(); EGL_S32 Init(); void DrawRound(const FrameBuffObject &fbo, const GLRoundInfo &round, const ColorRGBA &color) const; private: unique_ptr shaderProgram; GLuint program; GLuint vbo; GLint vPosition; GLint uniformColor; }; }; // namespace dolgles #endif // end OSD_ROUND_H