luismrsilva / cg-micromachines

3D version of the first MicroMachines game, made for the Computer Graphics course (2015/2016) at IST, CS BSc
1 stars 0 forks source link

Textures don't work #52

Closed luismrsilva closed 8 years ago

luismrsilva commented 8 years ago

As of 357111e, textures don't work. And screw everything up. Raw file loading and texture mapping worked file on anther program I wrote, though.

luismrsilva commented 8 years ago

Got it: texture functions (glTexImage2D(), for instance) are being on the constructors (GameManager -> Table -> Texture), which are called before OpenGL initialization (GameManager::init()).

luismrsilva commented 8 years ago

Fixed with d6d2489.