X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcore%2Fmesh.cpp;h=4414a90e6577910e7881dee65877134e7cd1ba69;hb=fe9836f2d8d7abb0480582c544611a5b248310cc;hp=ea14d590b3012815526247555a4d4a2c74d473d1;hpb=d40673bd28c4b4524d3642b949d9d109dc6f9f24;p=libs%2Fgl.git diff --git a/source/core/mesh.cpp b/source/core/mesh.cpp index ea14d590..4414a90e 100644 --- a/source/core/mesh.cpp +++ b/source/core/mesh.cpp @@ -31,7 +31,7 @@ void Mesh::init(ResourceManager *rm) ibuf = 0; dirty = 0; disallow_rendering = false; - winding = 0; + face_winding = NON_MANIFOLD; if(rm) set_manager(rm); @@ -68,7 +68,7 @@ void Mesh::check_buffers(unsigned mask) if(!vbuf || (vbuf->get_size()>0 && vbuf->get_size()get_size()>0 && ibuf->get_size() &a) @@ -290,14 +290,6 @@ void Mesh::Loader::batch(PrimitiveType p) obj.add_batch(btc); } -void Mesh::Loader::winding(FaceWinding w) -{ - if(w==CLOCKWISE) - obj.winding = &WindingTest::clockwise(); - else if(w==COUNTERCLOCKWISE) - obj.winding = &WindingTest::counterclockwise(); -} - Mesh::AsyncLoader::AsyncLoader(Mesh &m, IO::Seekable &i): mesh(m),