git-svn-id: http://supertux.lethargik.org/svn/supertux/trunk/supertux@6170
837edb03-e0f3-0310-88ca-
d4d4e8b29345
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;