Defines | Functions
GlobalUtil.cpp File Reference
#include <string.h>
#include <iostream>
#include "GL/glew.h"
#include "GlobalUtil.h"
#include <sys/time.h>
#include <stdio.h>
#include "LiteWindow.h"
Include dependency graph for GlobalUtil.cpp:

Go to the source code of this file.

Defines

#define CHAR1_TO_INT(x)   ((x >= 'A' && x <= 'Z') ? x + 32 : x)
#define CHAR2_TO_INT(str, i)   (str[i] ? CHAR1_TO_INT(str[i]) + (CHAR1_TO_INT(str[i+1]) << 8) : 0)
#define CHAR3_TO_INT(str, i)   (str[i] ? CHAR1_TO_INT(str[i]) + (CHAR2_TO_INT(str, i + 1) << 8) : 0)
#define STRING_TO_INT(str)   (CHAR1_TO_INT(str[0]) + (CHAR3_TO_INT(str, 1) << 8))

Functions

int CreateLiteWindow (LiteWindow *window)

Define Documentation

#define CHAR1_TO_INT (   x)    ((x >= 'A' && x <= 'Z') ? x + 32 : x)
#define CHAR2_TO_INT (   str,
  i 
)    (str[i] ? CHAR1_TO_INT(str[i]) + (CHAR1_TO_INT(str[i+1]) << 8) : 0)
#define CHAR3_TO_INT (   str,
  i 
)    (str[i] ? CHAR1_TO_INT(str[i]) + (CHAR2_TO_INT(str, i + 1) << 8) : 0)
#define STRING_TO_INT (   str)    (CHAR1_TO_INT(str[0]) + (CHAR3_TO_INT(str, 1) << 8))

Function Documentation

int CreateLiteWindow ( LiteWindow window)

Definition at line 517 of file GlobalUtil.cpp.



siftgpu
Author(s): Changchang Wu
autogenerated on Wed Aug 26 2015 15:24:06