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
679 B
34 lines
679 B
4 months ago
|
/*
|
||
|
* 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 <memory>
|
||
|
#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> shaderProgram;
|
||
|
GLuint program;
|
||
|
GLuint vbo;
|
||
|
GLint vPosition;
|
||
|
GLint uniformColor;
|
||
|
};
|
||
|
}; // namespace dolgles
|
||
|
|
||
|
#endif // end OSD_ROUND_H
|