So i converted the easy part of the code but cant dont know how to convert the vertex part
//first we will create a memblock to hold the mesh
auto memblock = agk::CreateMemblock(160);
//memblock = CreateMemblock(160)
//Now we need to fill it with mesh data
agk::SetMemblockInt(memblock, 0, 3); //3 vertices
agk::SetMemblockInt(memblock, 4, 3); //3 indices, not necissary for simple triangle, but we do it here for completeness
agk::SetMemblockInt(memblock, 8, 3); //Our mesh has 3 attributes, position, normal, color
agk::SetMemblockInt(memblock, 12, 28);//number of bytes each vertext takes up. x,y,z,nx,ny,nz,color * 4
agk::SetMemblockInt(memblock, 16, 64); //offset to vertex data
agk::SetMemblockInt(memblock, 20, 148); //offset to index data
//Attribute information, I'm combining all bytes into a single int.
// Little endiness means order is string length, normal flag, component count, data type (data will
// be written to the MemBlock in reverse order).
agk::SetMemblockInt(memblock, 24, 0x0C000300); //float, 3 components, no normalizing, position
agk::SetMemblockString(memblock, 28, "position");
agk::SetMemblockInt(memblock, 40, 0x08000300); //same as position, but for normals
agk::SetMemblockString(memblock, 44, "normal");
agk::SetMemblockInt(memblock, 52, 0x08010401); //For color we have byte, 4 components, normalize data
agk::SetMemblockString(memblock, 56, "color");
//Now we can enter vertex data
// I dont know how to convert the next line
Vertex as float[8] = [5.0, -5.0, 0.0, -5.0, -5.0, 0.0, 0.0, 5.0, 0.0]
Color as integer[2] = [0xFFFF0000, 0xFF00FF00, 0xFF0000FF]
for i = 0 to 2
SetMemblockFloat(memblock, 64 + i * 28, Vertex[i * 3]) //x
SetMemblockFloat(memblock, 68 + i * 28, Vertex[i * 3 + 1]) //y
SetMemblockFloat(memblock, 72 + i * 28, Vertex[i * 3 + 2]) //z
SetMemblockFloat(memblock, 76 + i * 28, 0.0) //nx
SetMemblockFloat(memblock, 80 + i * 28, 0.0) //ny
SetMemblockFloat(memblock, 84 + i * 28, -1.0) //nz
SetMemblockInt(memblock, 88 + i * 28, Color[i]) //color
next
// Now the index data
SetMemblockInt(memblock, 148, 0)
SetMemblockInt(memblock, 152, 2)
SetMemblockInt(memblock, 156, 1)
//Now to create the object
triangle = CreateObjectFromMeshMemblock(memblock)