in
CGapiSurface needs to be a pointer ie CGapiSurface* dosnt it (no defult constructor)
also if it is you'd need to delete them after, not just delete CSurfaceManager.
I know this is probably trivial and obvious but im sure johan would like he examples perfect
- Code:
class CSurfaceManager
{
public:
// CGapiSurface m_surface1;
// CGapiSurface m_surface2;
// ...
};
CGapiSurface needs to be a pointer ie CGapiSurface* dosnt it (no defult constructor)
also if it is you'd need to delete them after, not just delete CSurfaceManager.
I know this is probably trivial and obvious but im sure johan would like he examples perfect