MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / addFrame

Method addFrame

src/Engine/SurfaceSet.cpp:229–233  ·  view source on GitHub ↗

* Creates and returns a particular frame in the surface set. * @param i Frame number in the set. * @return Pointer to the respective surface. */

Source from the content-addressed store, hash-verified

227 * @return Pointer to the respective surface.
228 */
229Surface *SurfaceSet::addFrame(int i)
230{
231 _frames[i] = new Surface(_width, _height);
232 return _frames[i];
233}
234
235/**
236 * Returns the full width of a frame in the set.

Callers 2

runMethod · 0.45
XcomResourcePackMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected