16
General discussions / SFML and C++0x; "error: use of deleted function"
« on: November 03, 2011, 10:08:33 pm »
There are some good articles over at codeproject that highlight the new features of c++11
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Should be ok now.
Do you have some «lag» or is it really smooth ? (If you move your mouse too fast the shape doesn't go exactly to the border ? Is it the same on Linux/Win ? Is it the same with SFML 1 ? I don't thing so but I can't try.)
int main()
{
sf::RenderWindow window(sf::VideoMode(800, 800), "Test Window");
const sf::Input& wInput = window.GetInput();
window.ShowMouseCursor(true);
sf::Shape rec = sf::Shape::Rectangle(0,0,100,100, sf::Color(255,0,0));
while (window.IsOpened())
{
// Process events
sf::Event event;
while (window.GetEvent(event))
{
// Close window : exit
if (event.Type == sf::Event::Closed)
window.Close();
if (event.Type == sf::Event::KeyPressed) {
// Escape key : exit
if (event.Key.Code == sf::Key::Escape)
window.Close();
}
}
float mouseX = (float)wInput.GetMouseX();
float mouseY = (float)wInput.GetMouseY();
rec.SetPosition(mouseX, mouseY);
window.Clear(sf::Color::Green);
window.Draw(rec);
window.Display();
}
return EXIT_SUCCESS;
}
Quote from: "Laurent"You just have to compile as 32 bits. I think most compilers support this feature.
So is win32 compiling, compiling for32 bit OS's? Because I tried to distribute to 32 bit xp's from my win7 64 bit and I included the dll's I think I needed and it said configuration incorrect.
I will post something when I'll publish something usable into the SVN. Until then you have to use SFML 1.6. :wink:
Is there just a tutorial I can follow? I Mean I am just confused with the whole .dll because I have two seperate systems i want to implement into this .dll so that mean's I have a menu.h with declarations and a menu.cpp with the actual functions. Now I want to put the actual functions from the into the .dll and include my menu.h So that whenever i start a new project and I include the header file and put the lib in the properties then it will load all the .cpp files which are now in the dll. I try this and it doesnt work...
Help?