Go to the SVN repository for this file.
66vec.push_back(
float(
size));
68vec.push_back(
float(length));
71 for(
int i= 0;
i< 4; ++
i) {
72vec.push_back(pos[
i]);
76 constGLfloat* c =
color.GetColorArray();
77 for(
int i= 0;
i< 4; ++
i) {
78vec.push_back(c[
i]);
81 const char* textptr =
text;
83 for(
size_t i= 0;
i< length; ) {
85 for(
size_tj = 0; j < 4 &&
i< length; ++j, ++
i, ++textptr) {
86fpc.
c[j] = *textptr;
88vec.push_back(fpc.
f);
109vector<float>::const_iterator it = textbuf.begin();
118 const size_ttextlen = size_t(*++it);
122 text.reserve(textlen + 10);
128 for(
int i= 0;
i< 4; ++
i) {
136 for(
int i= 0;
i< 4; ++
i) {
140vector<float>::const_iterator end = textbuf.end() - 1;
142 LOG_POST(
Info<<
"expecting END_TEXT token at end of text");
147 for(
int i=
int(textlen);
i> 0 && it != end;
i-= 4) {
149 text.append((
const char*) &fpc.
c,
i< 4 ?
i: 4);
class CRgbaColor provides a simple abstraction for managing colors.
static const size_t s_TEXTBLOCK_SIZE
#define LOG_POST(message)
This macro is deprecated and it's strongly recomended to move in all projects (except tests) to macro...
void Info(CExceptionArgs_Base &args)
static vector< float > EncodeText(GLfloat pos[4], const CRgbaColor &color, const char *text, size_t length)
static void DecodeText(const vector< float > &textbuf, GLfloat *pos, GLfloat *color, string &text)
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
static void text(MDB_val *v)
const struct ncbi::grid::netcache::search::fields::SIZE size
Standard mechanism to include OpenGL headers for all platforms.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4