First attempt at OOP structure

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
chaotischerapostel
Posts: 19
Joined: Wed Jan 23, 2008 7:10 am

First attempt at OOP structure

Post by chaotischerapostel »

This was my first attempt at OOP programing, I'm not really asking for help as im going to try again with a different approch. But I just put it up because for some reason its making two windows.

http://rafb.net/p/36CkIH17.html

Theres the code. Its seperated into a bunch of files and its about 300 lines. I put /////// between different files and then //filename befor each section of code to help seperate it. The EventReceiver is in CGstate because i couldent even get my program to compile with it in its own header. The EventReceiver is the problem, i comented it out and the rest of the program worked fine and only made one window. The Global.h doesnt have anything but the includes on purpose, I don't accully have any Globals but it helped me structure things.
JerryM
Posts: 5
Joined: Thu Jun 19, 2008 9:51 pm

Post by JerryM »

Two windows are being made because you have a CGcore object in two classes. Both your CGstate and CGreceiver classes construct a CGcore object.
Post Reply