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
|
Rev | Line | |
---|
[2798] | 1 | /* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- */ |
---|
[2831] | 2 | #ifndef POINT_SET_RENDERER_H |
---|
| 3 | #define POINT_SET_RENDERER_H |
---|
[825] | 4 | |
---|
| 5 | #include "PCASplit.h" |
---|
| 6 | #include "BucketSort.h" |
---|
| 7 | #include "PointShader.h" |
---|
| 8 | #include "Texture2D.h" |
---|
[2831] | 9 | #include "Mat4x4.h" |
---|
[825] | 10 | |
---|
[2831] | 11 | class PointSetRenderer |
---|
| 12 | { |
---|
[2953] | 13 | public: |
---|
[825] | 14 | PointSetRenderer(); |
---|
| 15 | ~PointSetRenderer(); |
---|
| 16 | |
---|
[2831] | 17 | void render(PCA::ClusterAccel *cluster, const Mat4x4& mat, |
---|
| 18 | int sortLevel, const Vector3& scale, const Vector3& origin); |
---|
[825] | 19 | |
---|
[2831] | 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; |
---|
[825] | 28 | }; |
---|
| 29 | |
---|
| 30 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.