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

Pages: [1]
1
Graphics / Re: mapPixelToCoords
« on: December 21, 2019, 05:36:23 pm »
Tyvm :D

Not sure i understand the answer but ill dig some more with that in mind :)

I assume this inheritance is what you describe to me.
https://www.sfml-dev.org/documentation/2.5.1-fr/classsf_1_1RenderWindow.php

To me the tutorial looked like i should create a RenderWindow named window then access it.
But i need to somehow access this function earlier in the chain.

sf::RenderWindow::mapPixelToCoords seems to show the function, would it be correct to just use it like this?

If so, any idea why i fail to understand that tutorial?
I don't see anything there that explains that.

Again tyvm for the help.

2
Graphics / mapPixelToCoords
« on: December 21, 2019, 04:23:02 pm »
Hello.

I'm pretty new at this and having a hard time trouble shoot this my self and i can't find the information i need on the board.

For some reason the mapPixelToCoords function doesn't seem to exist for me, i use version 2.5.1-1.
I'm not sure where i could be wrong but i try to use this from a window.  obj just as shown in your tutorial.

g++ output: ”class sf::Window” doesn't have a member with the name ”mapPixelToCoords”
(Sry bad translated from my native language)

Do i forget to declare something? Missing something when compiling? Version problems?

Sry if i explain things bad, i'm not schooled for programming and don't know all terms and bad english.

Best regards
Kebab

3
General / Re: Code::Blocks-Need help with dependencies SOLVED
« on: May 04, 2015, 04:07:31 am »
Im always getting the same problem when i try to set up Sfml with codeblocks following the tutorial provided on this site.

During all the time ive used Sfml i use old projects every time i want to make something new becouse i seriously dont get what im doing wrong.


In the projects i have that works theres alot more settings done than showed in the tutorial for some reason.
Getting Sfml to work took me days and days browsing the web.

I wish to learn how its done for real so i can do this in the future and i also want to get a better understanding so i can fix the problems that occur my self.

Usually i get so demotived to code due this so i go to my Linux laptop and use old Sfml instead hehe.

If anyone have the time to explain everything indepth im all ears.
We can take this outside this forum if you want.

Im tierd of failing and i want to learn.

/Kebab

Pages: [1]