Original Post
hi,
I am building a little system, and i want to have a fonction available everywhere in the code. This fonction will be in a class for sure and will need to be initialize(constructor). How can i make this work?
this fonction will be to write down text in a full screen window, but i want it to be available everywhere(it''s for debuging), you can compare it to cout<<"text"; but in my case it''s a opengl fonction that wrote down text using a font texture. my function is ready and working but i don''t want to pass a pointer in each other class. How can i make that work?
thanks
Siddim.