-
Notifications
You must be signed in to change notification settings - Fork 0
/
nanorod.h
48 lines (33 loc) · 1018 Bytes
/
nanorod.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#ifndef NANOROD_H
#define NANOROD_H
#include "obj_object.h"
#include "gpu/geometry_gpu.h"
extern unsigned nTriCount;
extern PrimGpuObj *pNanoDevice;
extern PrimGpuObj_host *pNanoHost;
void copyNanoGeo(ObjObject *pNanoGeo, float offset);
void nanoGeoDestroy();
extern unsigned nPlaneTriCount;
extern PrimGpuObj *pNanoPlaneDevice;
extern PrimGpuObj_host *pNanoPlaneHost;
void copyNanoPlane(ObjObject *pNanoGeo, float offset);
void nanoPlaneDestroy();
/// Cap 0
extern unsigned nCap0TriCount;
extern PrimGpuObj *pCap0Device;
extern PrimGpuObj_host *pCap0Host;
void copyInternalCap0(ObjObject *pObj, float offset);
void internalCap0Destroy();
/// Cap 1
extern unsigned nCap1TriCount;
extern PrimGpuObj *pCap1Device;
extern PrimGpuObj_host *pCap1Host;
void copyInternalCap1(ObjObject *pObj, float offset);
void internalCap1Destroy();
/// Slice
extern unsigned nSliceTriCount;
extern PrimGpuObj *pSliceDevice;
extern PrimGpuObj_host *pSliceHost;
void copySlice(ObjObject *pObj);
void SliceDestroy();
#endif