return std::auto_ptr<Surface>(new Surface(file, x, y, w, h));
}
-std::auto_ptr<Surface>
-Surface::create(const Surface& other)
-{
- return std::auto_ptr<Surface>(new Surface(other));
-}
-
Surface::Surface(const std::string& file) :
texture(texture_manager->get(file)),
surface_data(),
public:
static std::auto_ptr<Surface> create(const std::string& file);
static std::auto_ptr<Surface> create(const std::string& file, int x, int y, int w, int h);
- static std::auto_ptr<Surface> create(const Surface& other);
private:
Texture* texture;