Original Post
hi all, I'm still new to c++, actually started crossing from VB to c++ couple weeks ago, but I have managed to write my own script engine, nearly done OpenGL engine, and currently am writing GUI system. But I run across a problem that has been bugging me for hours now: I have planned a system like this:
in words: 1.) game can access: OpenGL class, script class and GUI class 2.) OpenGL can access: it's own classes (mesh class, light class ...), but that's not important 3.) Script can access: GUI class - to add GUI controls, to update it... 4.) GUI can access: Script class - to rise events(of clicked buttons for example...) and OpenGL - to render it self I have attempted to do this but have failed :( , I hope you can give me some kind of advice, thanks in advance!
in words: 1.) game can access: OpenGL class, script class and GUI class 2.) OpenGL can access: it's own classes (mesh class, light class ...), but that's not important 3.) Script can access: GUI class - to add GUI controls, to update it... 4.) GUI can access: Script class - to rise events(of clicked buttons for example...) and OpenGL - to render it self I have attempted to do this but have failed :( , I hope you can give me some kind of advice, thanks in advance!