[ create a new paste ] login | about

Link: http://codepad.org/NbWWjWzw    [ raw code | fork ]

hakkun - C++, pasted on Mar 6:
//MenuText.hpp
#ifndef MENUTEXT_HPP_INCLUDED
#define MENUTEXT_HPP_INCLUDED

#include <SFML/Graphics.hpp>
#include <SFML/Window.hpp>

class MenuText : public sf::Drawable
{
private:
    sf::Text tekst;
    sf::Font czcionka;
    sf::Color kolor;
    sf::Vector2f pozycja;
    sf::RenderWindow *window;
    short unsigned int czcionka_size;

public:
    virtual void draw(sf::RenderTarget& target, sf::RenderStates states) const;
    bool LoadFont();
    void Create(std::string, sf::Vector2f, sf::RenderWindow&);
    void upDate();
    void onClick();
};


#endif // MENUTEXT_HPP_INCLUDED


Create a new paste based on this one


Comments: