ArnieBoids  1.0.0
JOINT AI PROJECT
TiledBackdrop Class Reference

#include <TiledBackdrop.hpp>

Public Member Functions

 TiledBackdrop (sf::Vector2f size)
 
 ~TiledBackdrop ()
 
void draw (sf::RenderTarget &target) const
 Draws the texture to the target. More...
 

Private Member Functions

sf::RenderTexture * genStars (float minX, float maxX, float minY, float maxY, float minR, float maxR, unsigned int amount=420u) const
 Generates a field of stars and returns a RenderTexture pointer (Be sure to delete it when done!). More...
 
sf::Texture expand (sf::RenderTexture const &oldTex) const
 Returns a render texture that is 3 times the size of the one passed. More...
 

Private Attributes

sf::Sprite sprite_
 
sf::Texture texture_
 

Constructor & Destructor Documentation

TiledBackdrop::TiledBackdrop ( sf::Vector2f  size)

Here is the call graph for this function:

TiledBackdrop::~TiledBackdrop ( )

Member Function Documentation

void TiledBackdrop::draw ( sf::RenderTarget &  target) const

Draws the texture to the target.

Here is the caller graph for this function:

sf::Texture TiledBackdrop::expand ( sf::RenderTexture const &  oldTex) const
private

Returns a render texture that is 3 times the size of the one passed.

Here is the caller graph for this function:

sf::RenderTexture * TiledBackdrop::genStars ( float  minX,
float  maxX,
float  minY,
float  maxY,
float  minR,
float  maxR,
unsigned int  amount = 420u 
) const
private

Generates a field of stars and returns a RenderTexture pointer (Be sure to delete it when done!).

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

sf::Sprite TiledBackdrop::sprite_
private
sf::Texture TiledBackdrop::texture_
private

The documentation for this class was generated from the following files: