X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcore%2Fpipelinestate.h;fp=source%2Fcore%2Fpipelinestate.h;h=0973bfb5ba16a4c7d04f6f54844ea677149c6c25;hb=f1e31ee641f0cafdfe2015bff206b9ee2ad85abf;hp=31938829ec61186e0cc6863fe7870640e898ebf1;hpb=5d9ecb00aea134fa082a0fa6b9c82c643a884a32;p=libs%2Fgl.git diff --git a/source/core/pipelinestate.h b/source/core/pipelinestate.h index 31938829..0973bfb5 100644 --- a/source/core/pipelinestate.h +++ b/source/core/pipelinestate.h @@ -5,6 +5,7 @@ #include #include "cullface.h" #include "pipelinestate_backend.h" +#include "primitivetype.h" namespace Msp { namespace GL { @@ -61,7 +62,8 @@ private: FACE_CULL = 128, DEPTH_TEST = 256, STENCIL_TEST = 512, - BLEND = 1024 + BLEND = 1024, + PRIMITIVE_TYPE = 2048 }; const Framebuffer *framebuffer = 0; @@ -71,6 +73,7 @@ private: std::vector uniform_blocks; std::vector textures; const VertexSetup *vertex_setup = 0; + PrimitiveType primitive_type = TRIANGLES; FaceWinding front_face = COUNTERCLOCKWISE; CullMode face_cull = NO_CULL; const DepthTest *depth_test = 0; @@ -88,6 +91,7 @@ public: void set_uniform_block(int, const UniformBlock *); void set_texture(unsigned, const Texture *, const Sampler *); void set_vertex_setup(const VertexSetup *); + void set_primitive_type(PrimitiveType); void set_front_face(FaceWinding); void set_face_cull(CullMode); void set_depth_test(const DepthTest *);