ive been told i need to write a copy constructor for the following bit of common code. the problem is i still dont know how to do it despite looking at a few tutorials. the reason i need it is im texture mapping many objects with different textures( 1 texture for each) and using a normal constructor i.e. COGLTexture picName; and setting picName to a texture image for each object will not work. any help would be great. thanks
#include <GL\glaux.h>
class COGLTexture
{
public:
_AUX_RGBImageRec *Image;
unsigned int GetID();
void LoadFromFile(char *filename);
void SetActive();
int GetWidth();
int GetHeight();
private:
int Width, Height;
unsigned int ID;
};