PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Tiny possible typo in CSurfaceManager example

in
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 :D
Thanks, I'll have it fixed!