Last change
on this file since 3464 was
2953,
checked in by ldelgass, 12 years ago
|
Remove unused global origin, make default transfer function a bit more
sensible (used to have full opacity at 0). Fix HeightMap? dtor to use delete[]
instead of free() on array allocated with new[]. Document data response in
protocol.
|
-
Property svn:eol-style set to
native
|
File size:
703 bytes
|
Line | |
---|
1 | /* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- */ |
---|
2 | #ifndef POINT_SET_RENDERER_H |
---|
3 | #define POINT_SET_RENDERER_H |
---|
4 | |
---|
5 | #include "PCASplit.h" |
---|
6 | #include "BucketSort.h" |
---|
7 | #include "PointShader.h" |
---|
8 | #include "Texture2D.h" |
---|
9 | #include "Mat4x4.h" |
---|
10 | |
---|
11 | class PointSetRenderer |
---|
12 | { |
---|
13 | public: |
---|
14 | PointSetRenderer(); |
---|
15 | ~PointSetRenderer(); |
---|
16 | |
---|
17 | void render(PCA::ClusterAccel *cluster, const Mat4x4& mat, |
---|
18 | int sortLevel, const Vector3& scale, const Vector3& origin); |
---|
19 | |
---|
20 | private: |
---|
21 | void renderPoints(PCA::Point *points, int length); |
---|
22 | |
---|
23 | void renderCluster(PCA::ClusterList **bucket, int size, int level); |
---|
24 | |
---|
25 | PCA::BucketSort *_bucketSort; |
---|
26 | PointShader *_shader; |
---|
27 | Texture2D *_pointTexture; |
---|
28 | }; |
---|
29 | |
---|
30 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.