SDLPP LineRenderer: actually copy in copySelf
This commit is contained in:
@@ -111,9 +111,12 @@ void LineRenderer::centerX() {
|
||||
updateSizeAndPosition();
|
||||
}
|
||||
std::shared_ptr< RenderObject > LineRenderer::copySelf() {
|
||||
// TODO ACTUALLY copy, don't just copy pointers to textures and whatnot,
|
||||
// create new textures!!!
|
||||
return std::make_shared< LineRenderer >( *this );
|
||||
auto ret = std::make_shared< LineRenderer >( *this );
|
||||
copyTo(ret);
|
||||
return ret;
|
||||
}
|
||||
void LineRenderer::copyTo(std::shared_ptr<RenderObject> other) {
|
||||
RenderObject::copyTo(other);
|
||||
}
|
||||
|
||||
SDL_Rect LineRenderer::getRect() {
|
||||
|
||||
Reference in New Issue
Block a user