Skip to main content
GameDev.net gamedev.net
๐Ÿ”’ Locked

Mesh Constructor error

Started by rhinotaur Nov 6, 2004 at 11:22 PM 0 replies 250+ views
Original Post
rhinotaur
rhinotaur
Hello, I have a a problem with the mesh constructor, when I create a Mesh using a format defined in VertexFormats like PositionVector it works well: mesh=new Mesh(numVertices,numFaces,MeshFlags.Managed,VertexFormats.PositionNormal,device); but when I use CustomVertex.TransformedTextured.Format I get an error: mesh=new Mesh(numVertices,numFaces,MeshFlags.Managed,CustomVertex.TransformedTextured.Format,device); Do you know what is happening and if there is another way besides Mesh() to create a Mesh object using a TransformedTextured vertex array? Thanks for your help.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.