Namespaces
Classes
Structures
Functions

Namespaces

empathy

The empathy namespace and classes header file.

Empathy

The base application independent of all any flavors.

You

You have all the brains. And the brains manipulate lifeEvents on You.

Classes

Color

The color class to hold a RGBA color value.

TimeBroadcasterObject

A single TimeBroadcaster item.

UniqueObject

The class to give everyone a unique identification.

Structures

cJSON

The cJSON structure:

cJSON_Hooks

Functions

cJSON_CreateArray ( )
return
cJSON_CreateBool ( int b )
b
return
cJSON_CreateDoubleArray ( double const * numbers,
int count )
numbers
count
return
cJSON_CreateFalse ( )
return
cJSON_CreateFloatArray ( float const * numbers,
int count )
numbers
count
return
cJSON_CreateIntArray ( int const * numbers,
int count )

These utilities create an Array of count items.

numbers
count
return
cJSON_CreateNull ( )

These calls create a cJSON item of the appropriate type.

return
cJSON_CreateNumber ( double num )
num
return
cJSON_CreateObject ( )
return
cJSON_CreateString ( char const * string )
string
return
cJSON_CreateStringArray ( char const ** strings,
int count )
strings
count
return
cJSON_CreateTrue ( )
return
std::vector<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char> > >
cJSON_get_keys ( cJSON const * object )
object
return
char const *
cJSON_GetErrorPtr ( )

For analysing failed parses. This returns a pointer to the parse error. You'll probably need to look a few chars back to make sense of it. Defined when cJSON_Parse() returns 0. 0 when cJSON_Parse() succeeds.

return
void
cJSON_Minify ( char * json )
json
cJSON_Parse ( char const * value )

Supply a block of JSON, and this returns a cJSON object you can interrogate. Call cJSON_Delete when finished.

value
return
cJSON_ParseWithOpts ( char const * value,
char const ** return_parse_end,
int require_null_terminated )

ParseWithOpts allows you to require (and check) that the JSON is null terminated, and to retrieve the pointer to the final byte parsed.

value
return_parse_end
require_null_terminated
return
void
cJSON_print_keys ( cJSON const * object )
object
GLuint
create_program ( GLuint vertexShader,
GLuint fragmentShader )

Create shader program from vertexShader and fragmentShader.

vertexShader
fragmentShader
return
GLuint
create_program ( std::__cxx11::string const vertexfile,
std::__cxx11::string const fragmentfile )

Create shader program from vertexShaderfile and fragmentShaderfile.

vertexfile
fragmentfile
return
GLuint
create_shader ( std::__cxx11::string const filename,
GLenum type )

Create a shader from a file.

filename
type
return
GLuint
emCreateFragmentShader ( std::__cxx11::string fileName )

create fragmentShader.

fileName
return
GLuint
emCreateVertexShader ( std::__cxx11::string fileName )

create vertexShader.

fileName
return
char *
file_read ( char const * filename )

Read the contents of a file.

filename
return
char
int_to_single_char ( int const num )
num
return
std::__cxx11::string
int_to_str ( int integer )

Convert an integer to string.

integer
return

Prints the GL error log during shader compilation.

bool
str_has_character ( std::__cxx11::string const str,
char const mChar )
str
mChar
return
std::__cxx11::string
str_remove_character ( std::__cxx11::string const str,
char const mChar )
str
mChar
return
std::__cxx11::string
str_replace ( std::__cxx11::string const str,
char const from,
char const to )
str
from
to
return
std::vector<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char> > > &
str_split ( std::__cxx11::string const & s,
char delim,
std::vector<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char> > > & elems )

Split a string.

s
delim
elems
return
std::vector<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char> > >
str_split ( std::__cxx11::string const & s,
char delim )

Split a string.

s
delim
return
int
str_to_int ( std::__cxx11::string string )

Convert a string to integer.

string
return
std::__cxx11::string
str_to_lower ( std::__cxx11::string const str )
str
return
std::__cxx11::string
str_trim ( std::__cxx11::string const string )

By trimming a string means 'remove spaces from first and last of string.

string
return