<repo_name>zachw000/SFMLPlatformer<file_sep>/README.md
# SFMLPlatformer
A simple platformer designed to either be played audibly, OR visually.
<file_sep>/src/VideoMode.cpp
#include "headers/VideoMode.hpp"

namespace video {
  static sf::VideoMode* VideoModeHandler::getVideoModes() {
    sf::VideoMode* res = malloc(this->VideoModeCount * sizeof(sf::VideoMode));
    for (int i = 0; i < this->VideoModeCount; i++)
      res[i] = sf::VideoMode::GetMode(i);
  }
}
<file_sep>/src/headers/VideoMode.hpp
#include <SFML/Window.hpp>

#ifndef VIDEO_LOADER
#define VIDEO_LOADER  1
#define BEST_MODE 0
// define video mode classes
namespace video {
  class VideoModeHandler
  {
public:
    static sf::VideoMode* getVideoModes();
    static sf::VideoMode getBestMode() {
      return sf::VideoMode::GetMode(BEST_MODE);
    }
private:
    unsigned int VideoModeCount = sf::VideoMode::GetModesCount();
  };
}
#endif
