View Full Version : OOP and openGL
I'm beginner, and i thinking in my owner class of opengl. I want to know or take some idea , how define opengl class, which class are usually used. And another think is about performance and frame rate, of course, this depends of compiler, but generally the use of OOP (C++) can afect then frame rate?
For the design part, I am pretty bad at it and I am reading some books about that right now to make me better, so I won't talk about that.
For performance, there is nothing to be scared about, C++ can run the same speed(and most often faster) than C, because of inlining and other things that I don't really understand. Good C programs really are C++ programs without Class(using struct instead) and without inlining.
Inlining can get you a couple of more fps.
So there is no major difference in speed.
05-22-2000, 11:04 AM
There can actually be a performance difference, but usually it's not too much. (OOP can be like 30% slower sometime ... but not too frequent in graphic apps)
I surely recommend using OOP since it usually reduces bugs.
Powered by vBulletin® Version 4.2.3 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.