Original Post
Hey all. Ok, my Console and Console class is the central hub for all operations. The logic of the console handles different things like models, lights etc. I was wondering, i have one function to handle the logic, if it is possible to declare one of the arguements as say a generic data type and then depending on the other arguments, the function can work out what the actual type is. Is the generic data type 'void' eg assuming void is generic and ModelObj/LightObj are respective classes: int Logic(bool Model, bool Light, void *Object) { if( Model == true ) ModelObj = Object; else if( Light == true ) LightObj = Object; } is this how you would do it, or is there some other way? is it even possible? Thanks, any help is much appreciated