I'm following a D2D sample and therein, this code came up:
if(!(D2D1_WINDOW_STATE_OCCLUDED & m_renderTarget->CheckWindowState()))
{
m_renderTarget->BeginDraw();
Draw();
if(m_renderTarget->EndDraw() == D2DERR_RECREATE_TARGET)
{
m_renderTarget.Reset();
Invalidate();
}
}
I noticed that the m_renderTarget used both the -> (I forget what it's called) and later uses the dot operator. For some reason I thought that use could only use one or the other depending of if it was a reference type or value type. Apparently I thought wrong but can't find any information about when to use each operator (or more to the point, the purpose of each operator.)
Any clarification would be greatly appreciated.