well, my english isn't pretty good, sorry, anyway my problem is with this class, at the moment everything work fine, but when i declare one more type upper than char (for eg. int or float) app will it crash, in debuger everything work fine too, i was tryed use pointers, but it don't work too :PP, problem can be with memory?
#ifndef MENU_H
#define MENU_H
#include <TGUI/TGUI.hpp>
#include <SFML/Window.hpp>
#include <SFML/System.hpp>
#include "../include/Map.h"
#define THEME_CONFIG_FILE "gui/BabyBlue.conf"
class Menu
{
public:
void LoadMenu(sf::RenderWindow &wnd);
bool Callback(Map &m);
void Event(sf::Event &event);
void Draw();
void hide();
void getTile();
protected:
tgui::Gui gui;
tgui::Gui tilegui;
tgui::MenuBar::Ptr menu;
tgui::Callback callback;
tgui::ChildWindow::Ptr window;
tgui::Button::Ptr Create;
tgui::Button::Ptr Load;
tgui::EditBox::Ptr name;
tgui::EditBox::Ptr tilepath;
tgui::EditBox::Ptr objectpath;
tgui::EditBox::Ptr tilesize;
tgui::EditBox::Ptr x;
tgui::EditBox::Ptr y;
sf::RenderWindow *W;
sf::RenderWindow T;
sf::Sprite tilespr;
sf::Texture *tex;
sf::Vector2i pos;
sf::Mouse mouse;
sf::Vector2i WinPos;
bool showT;
bool showM;
Map *mapa;
};
///sf::RectangleShape dsadas; this declaration will crash app
///int dasdas; or this
I can't see any include of the SFML graphics namespace.
Try to write #include <SFML/Graphics/RectangleShape.hpp>