delete pipeline;
}
+void Stage::add_postprocessor(GL::PostProcessor &pp)
+{
+ pipeline->add_postprocessor(pp);
+}
+
void Stage::set_camera(const GL::Camera &c)
{
camera.set_object_matrix(c.get_object_matrix());
#include <msp/gl/pipeline.h>
#include "action.h"
-struct Stage
+class Stage
{
+public:
class UseInView: public Action
{
public:
virtual void start(float, float);
};
+protected:
Msp::GL::Pipeline *pipeline;
Msp::GL::Camera camera;
+public:
Stage();
~Stage();
+ void add_postprocessor(Msp::GL::PostProcessor &);
void set_camera(const Msp::GL::Camera &);
+ Msp::GL::Camera &get_camera() { return camera; }
};
#endif