Hi, I am not overly competent in C++ and this compiler error is just making no sense to me. The following line calls the compiler error shown in the title:
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! This makes no sense to me.
Here is more code, as requested. m_SunTexture is being called in this function
void Sun::DrawSun()
{
std::wstring hardcoded = L"..\\Data\\sun.jpg";
m_SunTexture = LudoTextureManager::GetInstance()->GetTextureData(hardcoded.c_str()).m_Texture;
//more code here, cut off because it's useless for this.
}
DrawSun is defined in the header file as:
static void DrawSun();
under the public section of my header file.