X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fzsortedscene.h;h=cb21061bae301db5f7851c54130112d29e04c011;hp=f9f6f7eed40bd9cfa527540c5417c6fbce3ae75e;hb=HEAD;hpb=c87860db3b23a98eda1adfe59acddffdb6eb8420 diff --git a/source/zsortedscene.h b/source/zsortedscene.h deleted file mode 100644 index f9f6f7ee..00000000 --- a/source/zsortedscene.h +++ /dev/null @@ -1,57 +0,0 @@ -#ifndef MSP_GL_ZSORTEDSCENE_H_ -#define MSP_GL_ZSORTEDSCENE_H_ - -#include "simplescene.h" - -namespace Msp { -namespace GL { - -enum SortOrder -{ - FRONT_TO_BACK, - BACK_TO_FRONT -}; - -enum DepthReference -{ - CLOSEST, - CENTER, - FURTHEST -}; - -/** -Sorts renderables by their distance from the camera before rendering. Requires -renderables to have a matrix. -*/ -class ZSortedScene: public SimpleScene -{ -private: - struct DepthRenderable - { - float depth; - const Renderable *renderable; - - DepthRenderable(float, const Renderable *); - - bool operator<(const DepthRenderable &o) const { return depth