Virtual destructor is used to prevent memory leak in the context of polymorphism.
Virtual destructor is used to prevent memory leak in the context of polymorphism.
Virtual function, pure virtual function, abstract class
Shader
The constexpr specifier declares that it is possible to evaluate the value of the function or variable at compile time.
Draw a triangle.
Create window, handle user inputs
Setting up OpenGL in Ubuntu (GLFW, GLAD)
How to interpret complex C++ variable declarations
From int* p to int (*(*p)[])()
C++ variable definition can be very complex when *, & and nested brackets exist. This tutorial lists some examples from easy to advanced level to help you walk you through each of them and understand how we should interpret them in a more systematic way.
来湾区之后第二次来Santa Cruz溜达