Quote:Original post by Mastaba
I only see 2 semi-colons after }'s and those are needed, as they are for class declarations.
void DestroyMasterSprite() { SAFE_RELEASE(m_pMasterSprite); };void DestroyDevice() { SAFE_RELEASE(m_pD3dDevice); };void DestroyObject() { SAFE_RELEASE(m_pD3dObject); };D3DPRESENT_PARAMETERS* GetPresentParams() { return m_pd3dpp; };IDirect3DDevice9* GetDevice() { return m_pD3dDevice; };IDirect3D9* GetObject() { return m_pD3dObject; };ID3DXSprite* GetMasterSprite() { return m_pMasterSprite; };bool Start(){ return true; };void Update(){ if (CWindowTask::GetSingletonPtr()->IsActive() == false) return; //ClearScene(D3DCLEAR_TARGET | D3DCLEAR_ZBUFFER); //BeginScene(); //CStateMgrTask::GetSingletonPtr()->RenderState(); //EndScene(); PresentScene();};void Stop(){};;;;;;;;;;;;;;;;
Quote:Original post by Madster
About semicolons.. A compiler can tell you in 1 line what has been said in 5(or so) posts. Please stop.
These ones will not typically not be caught by your compiler without special flags. It's worth pointing out, if only because other programmers find them irksome.