| 1 |
#pragma once |
| 2 |
|
| 3 |
#include "ivolumetest.h" |
| 4 |
#include <cstddef> |
| 5 |
#include <string> |
| 6 |
|
| 7 |
class Frustum; |
| 8 |
|
| 9 |
namespace render |
| 10 |
{ |
| 11 |
|
| 12 |
// Interface used by camera views, extending the VolumeTest base |
| 13 |
// by some accessors needed to set up and run an openGL render pass. |
| 14 |
class IRenderView : |
| 15 |
public VolumeTest |
| 16 |
{ |
| 17 |
public: |
| 18 |
virtual ~IRenderView() {} |
| 19 |
|
| 20 |
virtual void construct(const Matrix4& projection, const Matrix4& modelview, std::size_t width, std::size_t height) = 0; |
| 21 |
|
| 22 |
virtual Vector3 getViewer() const = 0; |
| 23 |
|
| 24 |
virtual const Frustum& getFrustum() const = 0; |
| 25 |
|
| 26 |
virtual std::string getCullStats() const = 0; |
| 27 |
}; |
| 28 |
|
| 29 |
} |