GameApi 28
Library used by GameApi Builder tool
Loading...
Searching...
No Matches
GameApi_vo.hh
Go to the documentation of this file.
1
3{
4public:
5 Instanced_Points(float *arr, int size) : arr(arr), size(size) { }
6 void Collect(CollectVisitor &vis) { }
7 void HeavyPrepare() { }
8
9 int NumPoints() const { return size/3; }
10 Point Pos(int i) const { return Point(arr[i*3+0], arr[i*3+1], arr[i*3+2]); }
11 unsigned int Color(int i) const { return 0xffffffff; }
12 ~Instanced_Points() { delete [] arr; }
13private:
14 float *arr;
15 int size;
16};
Definition GraphI.hh:622
Point Pos(int i) const
Definition GameApi_vo.hh:10
~Instanced_Points()
Definition GameApi_vo.hh:12
void HeavyPrepare()
Definition GameApi_vo.hh:7
int NumPoints() const
Definition GameApi_vo.hh:9
Instanced_Points(float *arr, int size)
Definition GameApi_vo.hh:5
unsigned int Color(int i) const
Definition GameApi_vo.hh:11
void Collect(CollectVisitor &vis)
Definition GameApi_vo.hh:6
Definition GraphI.hh:2349
n< br > font size
Definition meshpage.php:3536
Definition Parser.cc:60