I'm not too competent in C ++, and this compiler error just doesn't make sense to me. The following line causes a compiler error, indicated in the header:
m_SunTexture = LudoTextureManager::GetInstance()->GetTextureData(hardcoded.c_str()).m_Texture;
where m_SunTexture is defined in my header file as
IDirect3DTexture9 *m_SunTexture;
in the private section of my header file. Why is this! It makes no sense to me.
Here is more code, as required. m_SunTexture is called in this function
void Sun::DrawSun()
{
std::wstring hardcoded = L"..\\Data\\sun.jpg";
m_SunTexture = LudoTextureManager::GetInstance()->GetTextureData(hardcoded.c_str()).m_Texture;
}
DrawSun is defined in the header file as follows:
static void DrawSun();
in the general section of my header file.
user189320
source
share