-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCGDB.h
31 lines (24 loc) · 837 Bytes
/
CGDB.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef CGDB_H
#define CGDB_H
#include <stdio.h>
#include <stdlib.h>
typedef unsigned int uint;
typedef unsigned short ushort;
typedef unsigned char uchar;
// Core status tracking
typedef struct {
int core_position; // Position in Core array (-1 if not loaded)
int is_loaded; // 1 if loaded in RAM, 0 if not
long file_offset; // Offset position in data.bin
} vertexMapping;
extern uchar** Core;
extern vertexMapping* CoreMap;
extern int CoreSize; // Current number of vertices loaded in Core
extern const unsigned int MaxCoreSize; // Maximum number of vertices that can be in RAM
extern const unsigned int GarbagevertexIndex;
extern unsigned int CurrentVertexIndex;
extern unsigned int CurrentvertexCount;
extern const char* DATA_DIR;
extern const char* DATA_FILE;
extern const char* MAP_FILE;
#endif