   [C++] [OpenGL] Animation in Assimp
  This is the rendering code from the only sample code Assimp gives out, slightly edited, ( probably for the worse) and what I want to know is how I add animation!void render(const struct aiScene *sc, const struct aiNode* nd){int i;unsigned int n = 0, t;struct aiMatrix4x4 m = nd->mTransformation;// update transformaiTransposeMatrix4(&m);glPushMatrix();glMultMatrixf((float*)&m);// draw all meshes assigned to this nodefor (; n < nd->mNumMeshes; ++n){const struct aiMesh* mesh = scene->mMeshes[nd->mMeshes[n]];glEnable(GL_TEXTURE_2D);glBindTexture(GL_TEXTURE_2D,texture);for (t = 0; t < mesh->mNumFaces; ++t){const struct aiFace* face = &mesh->mFaces[t];GLenum face_mode;switch(face->mNumIndices){case 1: face_mode = GL_POINTS; break;case 2: face_mode = GL_LINES; break;case 3: face_mode = GL_TRIANGLES; break;default: face_mode = GL_POLYGON; break;}glBegin(face_mode);for(i = 0; i < (int)face->mNumIndices; i++){int index = face->mIndices;glTexCoord2f(mesh->mTextureCoords[0][index].x,mesh->mTextureCoords[0][index].y);float meh = 0;glVertex3fv(&mesh->mVertices[index].x);}glEnd();}glDisable(GL_TEXTURE_2D);}// draw all childrenfor (n = 0; n < nd->mNumChildren; ++n)render(sc, nd->mChildren[n]);glPopMatrix();}