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.


Topics - ZeroZ30o

Pages: [1]
1
System / System tray program
« on: January 23, 2019, 05:45:09 pm »
Is there a way, for a process (no console) to interact with its system tray icon?

I've looked up information on microsoft docs:
https://docs.microsoft.com/en-us/windows/desktop/api/shellapi/nf-shellapi-shell_notifyicona
https://docs.microsoft.com/en-us/windows/desktop/api/shellapi/ns-shellapi-_notifyicondataa

But I don't understand how you would get notifications BACK from said API, as it asks for a window handle, which I do not necessarily have in the process.

2
Window / Draw the window on top of other applications
« on: January 22, 2019, 11:03:14 pm »
Is there a way to draw a RenderWindow in front of all other windows?

So my program is running in the background, and wants to show something in a window -it would create one to do so, but that window will, in many cases, still be hidden behind other applications. Is there a way to make it show on top of all other applications?

3
Audio / Streaming a custom format
« on: November 24, 2018, 07:34:19 pm »
I've got real time data coming into a buffer, and I'd like to stream said buffer (think voIP).

I've tried to make a class inherit from sf::InputStream for sf::Music to be able to stream it, but I wasn't succesful.

Is an example of an sf::InputStream with a vector of sf::Int16 (sound data) provided anywhere so I could use it? Or is this not possible, since sf::Music seems to automatically detect a stream's sample rate?

4
Feature requests / Add "setSmooth" option to font or font texture
« on: December 30, 2017, 03:29:45 pm »
https://www.sfml-dev.org/documentation/2.4.2/classsf_1_1Font.php

To achieve "pixel-art" fonts, the texture needs to not be smoothed out -however, by default, it is.

Currently I'm doing:
sf::Texture& texture = const_cast<sf::Texture&>(font.getTexture(size));
texture.setSmooth(false);

But it would be better to have "setSmooth(bool)" on the font or "setSmooth(bool, size)" to only un-smooth a particular size.

5
Feature requests / Sound/Music equalizer
« on: April 13, 2017, 11:08:09 pm »
What the title says. I think it would be a great feature to have -it would enable music to have a "muffled" effect when airborne/underwater or boost the bass during intense moments.

It may sound like very little but the effect music has in games is extremely underrated.

6
Feature requests / UPnP
« on: March 28, 2017, 09:54:16 pm »
I need to forward a port in my code, and UPnP seemed the only option to do so in code. After looking around for way too long, I've found no way to use the windows UPnP stuff ( https://msdn.microsoft.com/en-us/library/windows/desktop/aa382303(v=vs.85).aspx ) and was pointed to libraries such as miniupnp ( https://github.com/miniupnp ).

I haven't tested the libraries yet, and I'm sure they'll work, but I thought it would be great if SFML had this feature, so yeah. Hi.

7
Window / sf::RenderWindow issues on SFML (2.4.2) [Solved]
« on: March 20, 2017, 09:45:31 am »
Outdated drivers might be the cause considering they haven't been updated in about 4-5 years.

Code & issue:
https://imgur.com/a/kKGOc

Note that I've set framerate limit to 1 because the "failed to activate the window's context" will repeat with every clear and display.
Also, this computer has been able to both compile and run my game on SFML 2.3.2 with no issues.
The issue also happens with SFML 2.4.1.

Driver info:
Graphics card is NVIDIA GeForce GT 520
Last updated on 15/10/2011
Version is 8.17.12.8562

Computer info:
Windows 7

EDIT: Solved, 2.4.2 does NOT have this issue, only 2.4.1 does. I hadn't changed the .dll files around the .exe and so the problem stuck even after compiling in 2.4.2.

8
Feature requests / Add .setSmooth() for text
« on: November 01, 2016, 07:04:30 pm »
I've had to use a "hack" to turn off smoothing on sf::Text (or, more specifically, sf::Font, which is where the textures are stored):


  sf::Font font;
  unsigned int characterSizeUsed = 10;
  // Load the font //
  sf::Texture& texture = const_cast<sf::Texture&>(font.getTexture(characterSizeUsed));
  texture.setSmooth(false);
 

This will fix smoothing for that font size (10).

My (preferred) fix would be to add:

sf::Font::setSmooth(bool smooth)

Another option would be to add:

sf::Font::setSmooth(unsigned int fontSize, bool smooth)

Which would smooth only certain font sizes.

Result: http://puu.sh/s33mw/8901a9d811.png
Instead of: http://puu.sh/s3014/a33fcfabe9.png

9
General / [FIXED] Flashing screen on loading/alt-tab
« on: February 17, 2016, 11:17:44 pm »
The screen flashes when sfml loads and when you alt tab - and displays the last picture that appeared on the last focus lost when doing a prt scrn (print screen).

(Trying to figure out if this is OS related)

· Works on:
   (1 computers) Windows 7 home premium edition 64 bit + AMD Radeon HD 6870
   (1 computers) Windows 7 home edition 64 bit
   (1 computer) Windows XP (?) edition (?) bit
   (2 computers) Linux (?) - On wine
   (1 computer) Windows 10 professional edition 64 bit + AMD Radeon HD 7570

· Bugs on:
   (1 computer) Windows 7 professional edition 64 bit + NVIDIA GeForce GTX 660 Ti
   (1 computer) Windows 7 ultimate edition 64 bit + NVIDIA GeForce GTX 650 Ti
   (1 computers) Windows 7 home edition 64 bit + AMD Radeon HD 5850M

EDIT: I don't know when this has started happening, but this is a very very old issue (about 80 versions).

EDIT: It still happens on "fullscreen" window style.

EDIT: It does not happen on borderless windowed mode IF the resolution is not your fullscreen resolution (aka 1279x1023 instead of 1280x1024).

When in the level in game:
http://puu.sh/nbIDO/8503238474.png

What shows up when you print screen (even tho this is not what you see):
http://puu.sh/nbID0/27202d40ad.jpg


I use windows 7 and have tested this on other machines. I've heard this works fine on Wine (linux) without any weird snapshot.


Window code:
   sf::RenderWindow window(sf::VideoMode(control.resolution.x, control.resolution.y), "SBA",sf::Style::None);
    window.setFramerateLimit(60);
    window.setVerticalSyncEnabled(false);

I really don't know what is relevant for this, so please do ask for specific parts of code. It may be OS-specific, or hardware stuff... I really have no clue (hence why I posted in general and not window).

Here is a link of the game for testing:
https://mega.nz/#!K1YXgLDS!Im9vt4_NOnnII2Nb5yuczET3Pvkfj05LwaURNYcJtoI

Pages: [1]
anything