| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
#ifndef BALL_VIEW_RENDERING_RENDERERS_RAYTRACINGRENDERER_H |
| 6 |
#define BALL_VIEW_RENDERING_RENDERERS_RAYTRACINGRENDERER_H |
| 7 |
|
| 8 |
#ifndef BALL_VIEW_RENDERING_RENDERERS_RENDERER_H |
| 9 |
# include <BALL/VIEW/RENDERING/RENDERERS/renderer.h> |
| 10 |
#endif |
| 11 |
|
| 12 |
#ifndef BALL_VIEW_KERNEL_STAGE_H |
| 13 |
# include <BALL/VIEW/KERNEL/stage.h> |
| 14 |
#endif |
| 15 |
|
| 16 |
#ifndef BALL_VIEW_RENDERING_RENDERERS_BUFFEREDRENDERER_H |
| 17 |
#include <BALL/VIEW/RENDERING/RENDERERS/bufferedRenderer.h> |
| 18 |
#endif |
| 19 |
|
| 20 |
#include <vector> |
| 21 |
|
| 22 |
namespace BALL |
| 23 |
{ |
| 24 |
namespace VIEW |
| 25 |
{ |
| 26 |
class Scene; |
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
class BALL_VIEW_EXPORT RaytracingRenderer |
| 33 |
: public BufferedRenderer |
| 34 |
{ |
| 35 |
public: |
| 36 |
|
| 37 |
|
| 38 |
|
| 39 |
|
| 40 |
virtual bool supports(const PixelFormat &format) const; |
| 41 |
|
| 42 |
|
| 43 |
virtual Resolution getSupportedResolution( |
| 44 |
const Resolution &min, const Resolution &max, |
| 45 |
const PixelFormat &format) const; |
| 46 |
|
| 47 |
|
| 48 |
|
| 49 |
|
| 50 |
virtual String getRenderer() = 0; |
| 51 |
|
| 52 |
virtual void updateMaterialForRepresentation(Representation const* rep) = 0; |
| 53 |
|
| 54 |
|
| 55 |
|
| 56 |
|
| 57 |
|
| 58 |
|
| 59 |
|
| 60 |
|
| 61 |
|
| 62 |
|
| 63 |
|
| 64 |
virtual std::vector<float> intersectRaysWithGeometry(const std::vector<Vector3>& origins, |
| 65 |
const std::vector<Vector3>& directions); |
| 66 |
|
| 67 |
|
| 68 |
protected: |
| 69 |
|
| 70 |
|
| 71 |
virtual bool supports(const FrameBufferFormat &format) const; |
| 72 |
}; |
| 73 |
|
| 74 |
} |
| 75 |
|
| 76 |
} |
| 77 |
|
| 78 |
#endif |