Update to IMaterial interface

Adding a "numTriangles" parameter to drawTriangles, allowing for smarter
reuse of VertexBuffers/IndexBuffers