#include "video/texture.hpp"
#include "video/video_systems.hpp"
-Renderer *new_renderer()
+Renderer*
+VideoSystem::new_renderer()
{
switch(g_config->video)
{
}
}
-Lightmap *new_lightmap()
+Lightmap*
+VideoSystem::new_lightmap()
{
switch(g_config->video)
{
}
}
-Texture *new_texture(SDL_Surface *image)
+Texture*
+VideoSystem::new_texture(SDL_Surface *image)
{
switch(g_config->video)
{
}
}
-void *new_surface_data(const Surface &surface)
+void*
+VideoSystem::new_surface_data(const Surface &surface)
{
switch(g_config->video)
{
}
}
-void free_surface_data(void *surface_data)
+void
+VideoSystem::free_surface_data(void *surface_data)
{
+ // FIXME: this won't call any destructors
delete reinterpret_cast<char *>(surface_data);
}
-VideoSystem get_video_system(const std::string &video)
+VideoSystem::Enum
+VideoSystem::get_video_system(const std::string &video)
{
if(video == "auto")
{
}
}
-std::string get_video_string(VideoSystem video)
+std::string
+VideoSystem::get_video_string(VideoSystem::Enum video)
{
switch(video)
{