X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fcore%2Fpipelinestate.cpp;h=742b2ba94c2723ccb917c1f181c10889e9205b16;hp=0306a2626c9c4cbde629e6fc236fb2648431ebc5;hb=f1e31ee641f0cafdfe2015bff206b9ee2ad85abf;hpb=5d9ecb00aea134fa082a0fa6b9c82c643a884a32 diff --git a/source/core/pipelinestate.cpp b/source/core/pipelinestate.cpp index 0306a262..742b2ba9 100644 --- a/source/core/pipelinestate.cpp +++ b/source/core/pipelinestate.cpp @@ -72,6 +72,11 @@ void PipelineState::set_vertex_setup(const VertexSetup *s) set(vertex_setup, s, VERTEX_SETUP); } +void PipelineState::set_primitive_type(PrimitiveType t) +{ + set(primitive_type, t, PRIMITIVE_TYPE); +} + void PipelineState::set_front_face(FaceWinding w) { set(front_face, w, FACE_CULL);