X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fvideo%2Fvideo_systems.hpp;h=d15d06710e0eae59c0d937718f61abe76ab4b6a2;hb=d78fbc721f773f410a373ca1f060dfe223cf45d2;hp=c4e79b181b011c7c5c244df2a5f12fa1dee75c78;hpb=81f5fd86be388e43a0425da0c1408b0e1fe3a39d;p=supertux.git diff --git a/src/video/video_systems.hpp b/src/video/video_systems.hpp index c4e79b181..d15d06710 100644 --- a/src/video/video_systems.hpp +++ b/src/video/video_systems.hpp @@ -27,21 +27,32 @@ class Lightmap; class Texture; class Surface; -enum VideoSystem { - AUTO_VIDEO, - OPENGL, - PURE_SDL, - NUM_SYSTEMS +class VideoSystem +{ +public: + enum Enum { + AUTO_VIDEO, + OPENGL, + PURE_SDL, + NUM_SYSTEMS + }; + +public: + static Renderer* new_renderer(); + static Lightmap* new_lightmap(); + static Texture* new_texture(SDL_Surface *image); + static void* new_surface_data(const Surface &surface); + static void free_surface_data(void *surface_data); + + static Enum get_video_system(const std::string &video); + static std::string get_video_string(Enum video); + +private: + VideoSystem(); + VideoSystem(const VideoSystem&); + VideoSystem& operator=(const VideoSystem&); }; -Renderer* new_renderer(); -Lightmap* new_lightmap(); -Texture* new_texture(SDL_Surface *image); -void* new_surface_data(const Surface &surface); -void free_surface_data(void *surface_data); -VideoSystem get_video_system(const std::string &video); -std::string get_video_string(VideoSystem video); - #endif /* EOF */