j'ai un "invalid acess memory"
Est ce un bogue ??
Code : Tout sélectionner
Structure MESH3D
Position.VECTOR3
Rotation.Quaternions
VerticeList.l
Nbr_Vertice.l
Mat_Translate.MATRIX4x4
Mat_Rotation.MATRIX4x4
Mat_Projection.MATRIX4x4
ScaleFactor.f
EndStructure
Procedure CREATE_MESH(Vertice)
*Temp.MESH3D = AllocateMemory(SizeOf(MESH3D))
*Temp\VerticeList = AllocateMemory(Vertice*12)
*Temp\Nbr_Vertice = Vertice
*Temp\ScaleFactor = 1
ProcedureReturn *Temp
EndProcedure