How to transform, e.g. rotate, translate?
Code: Select all
...
core::matrix4 mat = irr::core::IdentityMatrix;
mat.setTranslation(vector3df(200, 200, 0));
driver->setTransform(video::ETS_WORLD, mat); //?? ETS_VIEW, ETS_WORLD, ETS_PROJECTION,
driver->draw2DVertexPrimitiveList(vertices, count, index, count-2, video::EVT_STANDARD, EPT_TRIANGLE_STRIP);