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

Pages: [1] 2 3 ... 637
1
General / Re: Help me please.
« on: July 08, 2020, 10:50:19 am »
Instead of being uncertain about your post, you could read the forum rules, think about the category you originally posted in and use a proper thread title. ;)

Code::Blocks 20.03 ships with a different compile than the one used to build the SFML binaries on the download page. As such you have to rebuild SFML yourself with your given compiler.
Note also the red box on the download page. ;)

2
General / Re: How do I deal with abstraction when it comes to SFML?
« on: July 07, 2020, 10:00:58 pm »
Are you using header guards for your files? Those should prevent double symbol issues.
If you have a cyclic dependency you may also make use of forward declaration.

Finally, you may consider moving all the logic from main() to a dedicated class, that way you can also use scoped member variables.

3
Audio / Re: Audio output only on one channel
« on: July 07, 2020, 04:06:37 pm »
I'd have expected that an interlaced two channel buffer with one channel being 0 would just play on one channel, but maybe your audio driver is detecting a mono input and expanding it onto stereo.
Do you have some example code, so I can test this on my system?

If you change the position of the sound, setMinDistance to 1 and setAttenuation to 100, that way it should be max volume for the left/right ear and immediately drop to 0 after distance 1. Or similar.

4
General / Re: One controller counted as two BUG
« on: July 07, 2020, 11:55:45 am »
In order to get the latest version, you need to use CMake and build your own version of SFML.
Once you have that, I'd suggest to either use a different folder or delete the existing files and copy in the newly built files.

5
Window / Re: SFML cursor left border is broken
« on: July 07, 2020, 09:05:14 am »
Are you using sf::Sprite or sf::Cursor?

For sf::Cursor, note the the warning in the documentation:
Quote
On Unix, the pixels are mapped into a monochrome bitmap: pixels with an alpha channel to 0 are transparent, black if the RGB channel are close to zero, and white otherwise.

6
So are you saying that you can change your resolution of Windows 10 to use 1366 x 768?

Not all applications are running only in some borderless window if they can't run native fullscreen.
SFML doesn't handle borderless window mode in fullscreen mode.
If you request fullscreen mode, you get fullscreen mode. If you want a borderless window you'll have to create the window with sf::Style::None and ensure the correct scaling/letterboxing yourself.

7
General / Re: One controller counted as two BUG
« on: July 06, 2020, 11:57:46 pm »
We made a few adjustments for controller handling after SFML 2.5.1.
Can you grab the latest source code from GitHub and build SFML yourself?

8
Feature requests / Re: Set Window Position on Creation
« on: July 06, 2020, 11:53:31 pm »
The issue here is much more that the window is shown/visible right when the class is instantiated.

This flaw was also picked up in the Window States and Styles discussion here, here, and here.
We don't really want to further uglify the constructor overloads and instead rather provide an option to create windows hidden and let the user decide when it's time to show it.

9
Window / Re: Desktop/Fullscreen resolution with multiple monitors
« on: July 06, 2020, 11:44:33 pm »
As far as I understand it, we're currently just asking X to give us the desktop size. If X is configured to combine the monitors into one surface, than you'll get that returned.

I'm not sure what's the better way to deal with, let the user re-configure X or query the primary monitor resolutions.

10
And why are you trying to use a fullscreen mode that's no supported by your system?
The system is probably just picking the closest fitting supported screen size, but it might be that SFML doesn't register it.
Either way, you should only use valid fullscreen modes.

11
General / Re: GPU usage permanently jumps up after a while
« on: July 06, 2020, 11:33:32 pm »
So is the problem just that there's a higher GPU usage than at initial start up or any other problems?

Hard to say really. Maybe you're code is causing it. Maybe it's just an over allocation by the OS. Maybe it's a faulty measurement. etc.
I'd suggest to first check what the Task Manager is actually measuring and/or get another application to confirm the usage percentage. Once you understand what that percentage actually means, maybe you can guess as to what could cause the percentage to rise. Otherwise you could try and GPU profile it, to figure out what's going on.

12
Feature requests / Re: crossfading images
« on: July 06, 2020, 11:16:44 pm »
For "effects" like this shader exist. ;)

SFML doesn't try to be an engine with lots of prefabricated stuff, we just provide a nicer and cross-platform API, so the users can implement their own things on top.

13
Graphics / Re: gl flush issues with font.getTexture
« on: July 06, 2020, 11:14:26 pm »
What version of SFML are you using?
What's your code?

14
General / Re: Visual Studio 66 mismatches detected
« on: July 06, 2020, 11:13:55 pm »
If you want to use the static runtime libraries, you have to rebuild SFML with SFML_USE_STATIC_STD_LIBS set to true.

If you want to use the pre-built binaries, you have to use /MD or /MDd instead of /MT or /MTd

15
General / Re: How do i get pySFML?
« on: July 06, 2020, 11:10:45 pm »
I've found three bindings in pip: https://pypi.org/search/?q=sfml

Pages: [1] 2 3 ... 637