text: #pragma once
  #pragma once
  #include "ECS.h"
  /**
   * @author David Wadsworth
   * 
   * draws a white rect with a block outline for the options to be placed over
  */
  
  class WhiteRectComponent : public Component
  {
  	OptionsComponent * options_;
  	SDL_Rect box_rect_;
  
  public:
  
  	WhiteRectComponent()
  		: options_(nullptr), box_rect_()
  	{}
  
  	void set_rect()
  	{
  		box_rect_ = options_->box;
  	}
  
  	void init() override
  	{
  		options_ = &entity->get_component<OptionsComponent>();
  		set_rect();
  	}
  
  	void draw() override
  	{
  		SDL_SetRenderDrawColor(Game::renderer, 255, 255, 255, SDL_ALPHA_OPAQUE);
  		SDL_RenderFillRect(Game::renderer, &box_rect_);
  		SDL_SetRenderDrawColor(Game::renderer, 0, 0, 0, SDL_ALPHA_OPAQUE);
  		SDL_RenderDrawRect(Game::renderer, &box_rect_);
  	}
  };