OpenGL Hardware Acceleration I need a Code Example for my game

Hey whats the code for enabling hardware acceleration in your application or game “I need the code”
Mainly I need this to get more frames per second for my game and I was hearing how hardware acceleration was getting other devs indie games theu were working on more frames per second when they added hardware acceleration.
Also whats the code for enabling OpenGL version.
Also, I need the code for both in c++
Also would make a class in my project and including all my headers and then including opengl headers and then wriing the code would that work…