X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcore%2Fclipping.h;fp=source%2Fcore%2Fclipping.h;h=0000000000000000000000000000000000000000;hb=f82ef715f0d7e1e7d0b93be4b7b89c8ce6bba40b;hp=f682dc6459e6b0b1efbc9fab213dafa2c57a6b0e;hpb=271760e6099bf5f4ad90894697dab911c236a0a3;p=libs%2Fgl.git diff --git a/source/core/clipping.h b/source/core/clipping.h deleted file mode 100644 index f682dc64..00000000 --- a/source/core/clipping.h +++ /dev/null @@ -1,38 +0,0 @@ -#ifndef MSP_GL_CLIPPING_H_ -#define MSP_GL_CLIPPING_H_ - -#include -#include "programdata.h" - -namespace Msp { -namespace GL { - -class ClipPlane; - -class Clipping -{ -private: - struct AttachedPlane - { - const ClipPlane *plane; - mutable unsigned generation; - - AttachedPlane(const ClipPlane *p): plane(p), generation(0) { } - }; - - std::vector planes; - mutable ProgramData shdata; - -public: - void attach(const ClipPlane &); - void detach(const ClipPlane &); - - unsigned get_n_planes() const { return planes.size(); } - - const ProgramData &get_shader_data() const; -}; - -} // namespace GL -} // namespace Msp - -#endif