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 - LeluLelu

Pages: [1]
1
General / Creating SFML template in VS 2017
« on: March 08, 2018, 09:44:26 pm »
Hi guys! I just created a sfml project in VS studio that is all set. Now i want it to export it as a template(in code::blocks it was all smooth).But it gave me some errors. The template creation was successful but when I run it it says "Cannot open source file: 'stdafx.cpp': No such file or directory" or "Cannot open source file: 'Source.cpp': No such file or directory".The file names are not changed as the title of the project and the sfml lib files are not copied in the template zip.And i balieve that is more than this and I saw on the internet a lot of problems with templates in VS. Can someone explain me what is actually going on and how can i solve it? Could't find a proper answer on the internet. Thanks !!

2
General / Re: IDE error for loading image
« on: February 06, 2018, 05:04:19 pm »
A newer version.. .I discovered just a few minutes ago. I have to use an old one(16.01 i think) for sfml .Thx for reply anyway!!!

3
General / IDE error for loading image
« on: February 06, 2018, 04:04:36 pm »
Hi!! I have a error from IDE(code::blocks) while i m trying to load image.
Here is the code
 
   
        sf::Texture texture;
        if (!texture.loadFromFile("brickwall.jpg"))
        {
                cout << "FAIL";
        }
        else
        {
                cout<<"DIDN'T FAIL";
        }
               
And here is the error:
||=== Build: Debug in OpenGLprj10 (compiler: GNU GCC Compiler) ===|
||Warning: corrupt .drectve at end of def file|   
obj\Debug\main.o||In function `main':|
D:\CodeBlocks\projects\OpenGLprj10\main.cpp|38|undefined reference to `_imp___ZN2sf7Texture12loadFromFileERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS_4RectIiEE'|
||error: ld returned 1 exit status|
||=== Build failed: 2 error(s), 1 warning(s) (0 minute(s), 1 second(s)) ===|

4
General / Re: Degrees problem
« on: October 17, 2017, 03:26:48 pm »
By "it won't work" i mean that the "if" condition will never return true.

5
General / Degrees problem
« on: October 15, 2017, 05:21:07 pm »
Hi there!! I have a problem with entity.getRotation() . I saw that it returns the rotation in degrees so if i want to put the function in a condition   EX:   if(entity.getRotation() > 45) {//things happens }   it won't work.
Thx!!

6
General / Re: How to export a sfml project?
« on: July 27, 2017, 05:30:20 pm »
Okay. I'll try !!
Thx for everything!!! :D

7
General / How to export a sfml project?
« on: July 26, 2017, 10:53:58 am »
Hi there! I'm new to forum but not new to sfml. I'm using sfml with vs 2015 with nuget. How can I export my project? To send the game to some friends for example. Maybe this is a frequently asked question but maybe it will help me more if I'm being more implicated by creating a new topic.

Hopefully i will find the answer :)) .Thx!!!

Pages: [1]
anything