ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
GlobalUtil.cpp File Reference
#include <string.h>
#include <iostream>
#include "GL/glew.h"
#include "GlobalUtil.h"
#include <stdio.h>
#include "LiteWindow.h"
Include dependency graph for GlobalUtil.cpp:

Go to the source code of this file.

Macros

#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)
 

Macro Definition Documentation

◆ CHAR1_TO_INT

#define CHAR1_TO_INT (   x)    ((x >= 'A' && x <= 'Z') ? x + 32 : x)

◆ CHAR2_TO_INT

#define CHAR2_TO_INT (   str,
 
)    (str[i] ? CHAR1_TO_INT(str[i]) + (CHAR1_TO_INT(str[i+1]) << 8) : 0)

◆ CHAR3_TO_INT

#define CHAR3_TO_INT (   str,
 
)    (str[i] ? CHAR1_TO_INT(str[i]) + (CHAR2_TO_INT(str, i + 1) << 8) : 0)

◆ STRING_TO_INT

#define STRING_TO_INT (   str)    (CHAR1_TO_INT(str[0]) + (CHAR3_TO_INT(str, 1) << 8))

Function Documentation

◆ CreateLiteWindow()

int CreateLiteWindow ( LiteWindow window)

Definition at line 464 of file GlobalUtil.cpp.

References GlobalUtil::CreateWindowEZ().