Is it necessary that in C++, every thing should be treated as objects? I feel like I am trying to pursue a flawless design that I can never achieve.
Ok, since I am still stuck with it, can you guys lend me a help in getting away with this stage. Are there any good books that present guide to OOP design styles and think like an Object oriented style and mentions about proper readable code?
I am trying to write my rendering engine. So far this is what I have.
Code:
class WrappedGL
{
private:
int m_nParams;
char* m_pParams[];
int m_nWidth, m_nHeight;
void SetParameters(int& argc, char* argv[]);
void SetWindowSize(int nWidth, int nHeight);
void SetWindowName(char szWindowName[]);
void InitAndCreateWindow();
void Init();
void CaptureError()
GLuint program;
GLint attribute_coord2d;
void Render();
int Initialize();
void InitGameObjects();
public:
int InitializeWindow(int& argc, char* argv[]);
void Idle();
void Exit();
void print_log(GLuint object);
};
I want it to be pretty generic and easily understandable. But my OOP problem is not specific to this particular piece of code only. Every while I try to code something in C++, OOP issue is being a dead-end. Or am I simply being too crazy and worrying about really minor details?
Thanks in advance