Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

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.


Messages - BioForceGun

Pages: [1]
1
Graphics / Re: Strange behavior image in loadFromFile
« on: January 27, 2017, 08:21:54 am »
Thank you for you answer! This is right. Conserning Qt Creator a decision is - in .pro file remove word "console" from the string "CONFIG += console c++11" and next step we will uncheck "Run in terminal" on the Projects tab (select Run in your build-set in the left side on the screen).

2
Graphics / Strange behavior image in loadFromFile
« on: January 26, 2017, 10:01:04 am »
Hello! Sorry for stupid question, i'm new in SFML

I'm try compile my game in two different platforms: Fedora 25 and Mac OS X (Sierra 10.12.3). I use Qt Creator as IDE, gcc compiller on Fedora, and clang on Mac OS X. My Trouble is that i'm try load my textures as is:
sf::Texture tankTexture;
if (!tankTexture.loadFromFile("tank.png"))
{
        std::cout << "Error: Can\'t load tank texture" << std::endl;
}
 
Image files located near on binary file in project folder (and in folder with source code too), but as result a have success load texture on project in Fedora and not success load on Mac OS X. Please help! What i am doing wrong?

3
SFML projects / Re: Let's make 16 classic game in C++ video series
« on: January 24, 2017, 01:41:58 pm »
Will i'm right if i say what this examples so more C-style, than that C++? I'm trying learn SFML by it, but now i think it bad sample to learn library. I spent a lot of time to refactor this code, because default format completly unread.

Please, give some examples or lessons to start and understanding SFML (in Google all examples so different in code-style and old), why official site doesen't have simple example completely game? Thank a lot.

Pages: [1]
anything