Entries from 2013-01-01 to 1 year
This is the drawing part. Beware of texture uniform. It looks a bit strange but otherwise causes some error. With "glUniform1i(loc_myTex, texID);" instead of "glUniform1i(loc_myTex, 0);", no texture is seen. void MyObject::draw() { // glBi…