glDisable(GL_ALPHA_TEST);
}
-void alpha_func(Predicate func, float ref)
-{
- glAlphaFunc(func, ref);
-}
-
DepthTest::DepthTest():
write(true),
}
}
-void depth_func(Predicate func)
-{
- glDepthFunc(func);
-}
-
ScissorTest::ScissorTest():
left(0),
glDisable(GL_SCISSOR_TEST);
}
-void scissor(int left, int bottom, unsigned width, unsigned height)
-{
- glScissor(left, bottom, width, height);
-}
-
} // namespace GL
} // namespace Msp
namespace Msp {
namespace GL {
-enum
-{
- SCISSOR_TEST = GL_SCISSOR_TEST,
- ALPHA_TEST = GL_ALPHA_TEST,
- DEPTH_TEST = GL_DEPTH_TEST
-};
-
/**
Tests incoming fragment alpha values against a reference. If the test fails,
the fragment is discarded.
static void unbind();
};
-void alpha_func(Predicate func, float ref);
-
/**
Tests incoming fragment depth values against the depth buffer. If the test
static void unbind();
};
-void depth_func(Predicate func);
-
/**
Tests fragment coordinates against a rectangle. Any fragments outside the
static void unbind();
};
-void scissor(int left, int bottom, unsigned width, unsigned height);
-
} // namespace GL
} // namespace Msp