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.
38 lines
892 B
38 lines
892 B
4 months ago
|
/*
|
||
|
* Copyright (c) Hisilicon Technologies Co., Ltd. 2020-2020. All rights reserved.
|
||
|
* Description: DolGLDrawSurface
|
||
|
* Author:
|
||
|
* Create: 2020-01-03
|
||
|
*/
|
||
|
|
||
|
#ifndef TEXT_INFO_H
|
||
|
#define TEXT_INFO_H
|
||
|
|
||
|
#include "Common.h"
|
||
|
|
||
|
namespace dolgles {
|
||
|
constexpr EGL_U8 CC_OUT_BUFFER_LEN = 128;
|
||
|
|
||
|
class TextInfo {
|
||
|
public:
|
||
|
TextInfo();
|
||
|
~TextInfo();
|
||
|
void SetDstFbo(const FrameBuffObject &fbo);
|
||
|
const FrameBuffObject &GetDstFbo() const;
|
||
|
void SetDstRect(const GLRectInfo &rect);
|
||
|
const GLRectInfo &GetDstRect() const;
|
||
|
EGL_S32 SetTextInfo(const GLTextInfo &textInfo);
|
||
|
const GLTextInfo &GetTextInfo() const;
|
||
|
|
||
|
private:
|
||
|
void SetFgColor(const ColorRGBA &color);
|
||
|
void SetBgColor(const ColorRGBA &color);
|
||
|
|
||
|
FrameBuffObject dstFbo;
|
||
|
GLRectInfo dstRect;
|
||
|
EGL_CHAR16 text[CC_OUT_BUFFER_LEN] {0};
|
||
|
GLTextInfo mTextInfo;
|
||
|
};
|
||
|
}; // namespace dolgles
|
||
|
|
||
|
#endif // end TEXT_INFO_H
|