TEntity* camera = CreateFPSCamera(0,15,1,0);
TEntity* cubes[10][10];
for (s32 a = 0 ; a< 10; a++)
{
for (s32 b=0; b<10 ;b++ )
{
cubes[a,b] =CreateCube(0);
cubes[a,b]->PositionEntity(a*10,b*10);
}
}
this code is supposed to store a pointer to the cube in my array but gives the error:
main.cpp|20|error: incompatible types in assignment of ‘b3d::TEntity*’ to ‘b3d::TEntity* [10]’|