C++ OpenGL - Models loaded using classes only drawn on first frame

  • RyanJones
    Likes 0

    Problem Description

    Hello,

    I have recently abstracted my model loader code which runs as intended (loading the .obj and textures and transforming the model), however any models using the class are only drawn on the first frame despite being drawn after the screen is cleared. Models loaded at the same time without using the new class behave properly and persist beyond the first frame. The function to render the model is called at the same point as thel render commands for the other models.

    I would appreciate any assistance and am able to provide the full code.

    Thanks in advance,

    Ryan

     

  • Sonar Systems admin
    Likes 0

    Have a look if there is anything within the functions that is going out of scope and is needed.

Login to reply