A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/glfont_8cpp_source.html below:

NCBI C++ ToolKit: src/gui/opengl/glfont.cpp Source File

Go to the documentation of this file.

Go to the SVN repository for this file.

66

vec.push_back(

float

(

size

));

68

vec.push_back(

float

(length));

71  for

(

int i

= 0;

i

< 4; ++

i

) {

72

vec.push_back(pos[

i

]);

76  const

GLfloat* c =

color

.GetColorArray();

77  for

(

int i

= 0;

i

< 4; ++

i

) {

78

vec.push_back(c[

i

]);

81  const char

* textptr =

text

;

83  for

(

size_t i

= 0;

i

< length; ) {

85  for

(

size_t

j = 0; j < 4 &&

i

< length; ++j, ++

i

, ++textptr) {

86

fpc.

c

[j] = *textptr;

88

vec.push_back(fpc.

f

);

109

vector<float>::const_iterator it = textbuf.begin();

118  const size_t

textlen = size_t(*++it);

122  text

.reserve(textlen + 10);

128  for

(

int i

= 0;

i

< 4; ++

i

) {

136  for

(

int i

= 0;

i

< 4; ++

i

) {

140

vector<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