GPR5100 - Rollback
Loading...
Searching...
No Matches
star_background.h
1#pragma once
2#include <SFML/Graphics/VertexArray.hpp>
3#include <SFML/Graphics/RenderTarget.hpp>
4#include "graphics/graphics.h"
5
6
7namespace game
8{
13{
14public:
15 void Init();
16 void Draw(sf::RenderTarget& renderTarget) override;
17private:
18 static constexpr std::size_t starCount = 1024;
19 sf::VertexArray vertexArray_;
20};
21
22}
DrawInterface is an interface used by the Engine to be called when the game loop is drawing elements ...
Definition: graphics.h:12
StarBackground is a drawable object that draws a starfield on a screen.
Definition: star_background.h:13