Change Antialiasing method from C++

And, sorry, how do I change a console variable from C++?