OpenGL Common Mistakes

https://www.opengl.org/wiki/Common_Mistakes

  1. Do not use constructors/destructors to initialize/destroy OpenGL objects. Instead, use member functions of these classes for these purposes. This violates RAII principles, so this is not the best course of action.
原文地址:https://www.cnblogs.com/lilei9110/p/5207906.html