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

Pages: [1]
1
Graphics / Re: [SFML2] Bounding boxes around sf::Text characters
« on: September 14, 2019, 02:16:33 am »
I was having the same problem while working thru a tutorial on LinkedIn Learning. Ultimately, I found that if I used a non-fractional number for both the "x" and "y" coordinates as in:

 textObject.setPosition((int)xPos, (int)yPos)

...it would work. Is there anything inherently wrong with doing this? In my case it was only for the "Score =" line, so it didn't really need to move or animate, per se. The reason I had a fractional number in the first place, is because I implemented some code to "scale" the text and position of the text based on the size of the game window.

Chris

2
SFML projects / Re: SFGUI (0.4.0 released)
« on: September 01, 2019, 09:48:04 am »
Awesome news...sort of.

I got the library to build finally and it runs the samples. BUT, it throws a ton of errors about deprecated OpenGl calls in OS X Mojave. I found this, which seems to confirm the issue..

https://stackoverflow.com/questions/52509427/mac-mojave-opengl

In any event, it works for now and I am learning tons.

One question though. I'm running a MacBook Pro with Retina display and the samples are TINY!!!! Is there a compiler setting or a setting in the code that will scale for high density displays?

Thanks in advance.

Chris Conlee

3
SFML projects / Re: SFGUI (0.4.0 released)
« on: August 31, 2019, 09:49:05 pm »
I can confirm the same CMake error when configuring on 10.14.6. I can't say *why*, because macOS isn'y my main platform, but removing the relevant parts in the CMakeLists.txt (commenting out lines 108-121) let me make/install SFGUI and build/run the examples. (Note I used make files however, not xcode project files, if that makes a difference)

Thank you fallahn! That was going to be my next attempt. It seems like CoreFoundation is no longer a part of Mac OS X, so I was wondering if it would work to simply remove it from the equation.

I'm actually quite new with C++ and especially SFML (learning concurrently), so it's ALL hit and miss for me. I'm not a TOTAL neophyte; I studied computer systems engineering in 1985, but C++ wasn't really part of the curriculum. Spent some time with C. But most of my lab time was Fortran and Cobol, believe it or not. Then life got in the way, and I went in a completely different direction. Glad to be getting back into it. But the brave world of OOP is taking some time to get my head around. :)

Oh, and yes, I'm ALSO using unix makefiles...

Chris

4
SFML projects / Re: SFGUI (0.4.0 released)
« on: August 31, 2019, 07:21:07 am »
Is there any way you can give more details on building this library statically? I did what I thought was necessary, but got the same error. Is CoreFoundation.framework required for this library? It doesn't seem to be a part of OS X anymore.

Can anybody else build it with a Mac running 10.12 or greater and let me know if it works for them?

Chris

5
SFML projects / Re: SFGUI (0.4.0 released)
« on: August 30, 2019, 03:12:04 am »
Hello everybody,

Full disclosure: I'm a complete nube, and am trying to learn SFML and SFGUI. Unfortunately, I cannot get SFGUI to build under Max OS X 10.12.6. I get an error that the CoreFoundation.framework cannot be found. Is there an updated build tutorial that addresses this apparent change in OS X structure?

I actually found CoreFoundation.framework in the XCODE devs folder, trying to direct CMAKE to look there, didn't work for me either.

Any help would be GREATLY appreciated, as I'd love to use this GUI library as I continue to learn C++ and SFML.

Chris Conlee


Pages: [1]