Vertex : better managing [Solved Cf Get/SetMeshData() ]

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
Olliv
Enthusiast
Enthusiast
Posts: 542
Joined: Tue Sep 22, 2009 10:41 pm

Vertex : better managing [Solved Cf Get/SetMeshData() ]

Post by Olliv »

I appreciate faces' available handling in a mesh.
Get the same availability about vertex could be a great step.

Statements example :

Code: Select all

GetVertexPosition(Index.I, *Buffer)
GetVertexColor(Index.I, *Buffer)
GetVertexNormal(Index.I, *Buffer)
GetVertexUV(Index.I, *Buffer)
GetVertex(Index.I, *Buffer) ; All features
SetVertexPosition(Index.I, *Buffer)
SetVertexColor(Index.I, *Buffer)
SetVertexNormal(Index.I, *Buffer)
SetVertexUV(Index.I, *Buffer)
SetVertex(Index.I, *Buffer) ; All features
UpdateMesh(Mesh.I)
UpdateSubMesh(SubMesh.I) ; If technically able
Last edited by Olliv on Sun Jul 14, 2013 1:44 pm, edited 1 time in total.
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: Vertex : better managing

Post by Fred »

Get/SetMeshData() is the way to go, it would be to slow to do it in individual commands.
Post Reply