#ifndef __STARFIELDBACKGROUND_H__ #define __STARFIELDBACKGROUND_H__ #include class StarfieldBackground : public Actor { protected: SDL_Surface *canvas; unsigned int lockedFPS; unsigned int lastTime; std::vector starpoints; std::vector starvelocities; std::vector starcolors; public: StarfieldBackground(); ~StarfieldBackground(); SDL_Surface *nextFrame(); void lockFPS(unsigned int fps); void initStarfield(int w, int h); void update(); }; #endif // __STARFIELDBACKGROUND_H__