-/* $Id$
-
-This file is part of libmspgl
-Copyright © 2007, 2010 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
#include "tests.h"
namespace Msp {
glDisable(GL_ALPHA_TEST);
}
-void alpha_func(Predicate func, float ref)
-{
- glAlphaFunc(func, ref);
-}
-
DepthTest::DepthTest():
write(true),
void DepthTest::unbind()
{
if(set_current(0))
+ {
glDisable(GL_DEPTH_TEST);
-}
-
-void depth_func(Predicate func)
-{
- glDepthFunc(func);
+ // Allow glClear(GL_DEPTH_BUFFER_BIT) to work
+ glDepthMask(true);
+ }
}
glDisable(GL_SCISSOR_TEST);
}
-void scissor(int left, int bottom, unsigned width, unsigned height)
-{
- glScissor(left, bottom, width, height);
-}
-
} // namespace GL
} // namespace Msp