@@ -71,39 +71,6 @@ Surface::Surface(const RWOP& rwop)
71
71
}
72
72
}
73
73
74
- // static
75
- Surface Surface::load (const std::string& filename)
76
- {
77
- Surface s;
78
- s.loadAs (filename);
79
- return s;
80
- }
81
-
82
- // static
83
- Surface Surface::load (const RWOP& rwop)
84
- {
85
- Surface s;
86
- s.loadAs (rwop);
87
- return s;
88
- }
89
-
90
- // static
91
- Surface Surface::create (int width, int height, int depth, int Rmask, int Gmask, int Bmask, int Amask)
92
- {
93
- Surface s;
94
- s.create (width,height,depth,Rmask,Gmask,Bmask,Amask);
95
- return s;
96
- }
97
-
98
- // static
99
- Surface Surface::create (int width, int height, int depth, Uint32 surfaceFormat)
100
- {
101
- Surface s;
102
- s.create (width,height,depth,surfaceFormat);
103
- return s;
104
- }
105
-
106
-
107
74
int Surface::loadAs (const std::string& filename)
108
75
{
109
76
SDL_Surface* temp=IMG_Load (filename.c_str ());
@@ -150,7 +117,6 @@ int Surface::createAs(int width,int height,int depth,Uint32 surfaceFormat)
150
117
{
151
118
// / FIXME: This Function is available from SDL2.0.5. But the linker report a undefined reference.
152
119
153
- /*
154
120
SDL_Surface* temp=SDL_CreateRGBSurfaceWithFormat (0 ,width,height,depth,surfaceFormat);
155
121
if (temp==nullptr )
156
122
{
@@ -161,9 +127,7 @@ int Surface::createAs(int width,int height,int depth,Uint32 surfaceFormat)
161
127
_set (temp);
162
128
return 0 ;
163
129
}
164
- */
165
130
166
- SDL_SetError (" [MiniEngine] SDL_CreateRGBSurfaceWithFormat Not Linked." );
167
131
return -1 ;
168
132
}
169
133
@@ -356,4 +320,5 @@ SDL_Surface* Surface::getRawPointer()
356
320
{
357
321
return _get ();
358
322
}
323
+
359
324
} // / End of namespace MiniEngine
0 commit comments