Skip to content

Commit f73f192

Browse files
committed
Remove costume from Skin constructor
1 parent 3daad87 commit f73f192

File tree

6 files changed

+18
-13
lines changed

6 files changed

+18
-13
lines changed

src/bitmapskin.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
using namespace scratchcpprender;
88

99
BitmapSkin::BitmapSkin(libscratchcpp::Costume *costume) :
10-
Skin(costume)
10+
Skin()
1111
{
1212
if (!costume)
1313
return;

src/bitmapskin.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@
55
#include "skin.h"
66
#include "texture.h"
77

8+
namespace libscratchcpp
9+
{
10+
11+
class Costume;
12+
13+
}
14+
815
namespace scratchcpprender
916
{
1017

src/skin.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,8 @@
77

88
using namespace scratchcpprender;
99

10-
Skin::Skin(libscratchcpp::Costume *costume)
10+
Skin::Skin()
1111
{
12-
if (!costume)
13-
return;
1412
}
1513

1614
Texture Skin::createAndPaintTexture(int width, int height, bool multisampled)

src/skin.h

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,6 @@
66
#include <QSizeF>
77
#include <QtOpenGL>
88

9-
namespace libscratchcpp
10-
{
11-
12-
class Costume;
13-
14-
}
15-
169
namespace scratchcpprender
1710
{
1811

@@ -21,7 +14,7 @@ class Texture;
2114
class Skin
2215
{
2316
public:
24-
Skin(libscratchcpp::Costume *costume);
17+
Skin();
2518
Skin(const Skin &) = delete;
2619
virtual ~Skin() { }
2720

src/svgskin.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ static const int MAX_TEXTURE_DIMENSION = 2048;
1010
static const int INDEX_OFFSET = 8;
1111

1212
SVGSkin::SVGSkin(libscratchcpp::Costume *costume, bool antialiasing) :
13-
Skin(costume),
13+
Skin(),
1414
m_antialiasing(antialiasing)
1515
{
1616
if (!costume)

src/svgskin.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@
77
#include "skin.h"
88
#include "texture.h"
99

10+
namespace libscratchcpp
11+
{
12+
13+
class Costume;
14+
15+
}
16+
1017
namespace scratchcpprender
1118
{
1219

0 commit comments

Comments
 (0)