it is important to not that this code doesnt work. I have been trying to work on it for days and can not figure out how to get it to work. I am needing to pass an object of the sb::Engine class into this function as a reference or pointer and then store it so that its pointer or reference so that its data does not need to be copied into the texture class and can just be accessed by the memory address. when I try to create a reference in the header file it fails because references need to be initialized immediately. but when i try and store the varriable in the pointer it also fails. it keeps telling me that Engine is not a member of namespace sb when it obviously is, the intellisense shows me that it is and i have double and triple checked it. I can not figure out the exact syntax for accomplishing this goal. help would be appreciated