namespace Msp {
namespace GL {
-PipelineState::PipelineState():
- framebuffer(0),
- viewport(0),
- scissor(0),
- shprog(0),
- vertex_setup(0),
- front_face(COUNTERCLOCKWISE),
- face_cull(NO_CULL),
- enabled_clip_planes(0),
- depth_test(0),
- stencil_test(0),
- blend(0),
- changes(0)
-{ }
-
template<typename T>
void PipelineState::set(T &target, T value, unsigned flag)
{
set(face_cull, c, FACE_CULL);
}
-void PipelineState::set_enabled_clip_planes(unsigned p)
-{
- set(enabled_clip_planes, p, CLIP_PLANES);
-}
-
void PipelineState::set_texture(unsigned binding, const Texture *tex, const Sampler *samp)
{
if((tex!=0)!=(samp!=0))