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

Pages: 1 [2] 3 4 ... 123
16
Feature requests / Re: Image saving
« on: July 02, 2019, 02:42:03 am »
Audios yes but why fonts? There's a ton of ways to make an image and a few ways (stitch or mix two buffers, record, create samples programmatically) to make audio but there isn't any font editing/mixing/making in SFML. If you want to 'save' a font to a file in memory just take the file you're using and load it all into memory somehow and that's it there.

17
Audio / Re: Audio module, linker errors while static linking.
« on: June 30, 2019, 01:44:55 pm »
The missing functions are OpenAL ones. In first post you say you linked OpenAL but in your list in the second post it's missing. Can you double check that?

18
Network / Re: Build SFML for Steam on Windows
« on: June 29, 2019, 11:28:38 pm »
I'm assuming they meant that nothing special needs to be done on Windows where you just bring all the dlls or statically link all the libs you need?

19
DotNet / Re: Layer lighting help
« on: June 14, 2019, 07:01:17 pm »
Lights (of whatever colors) should be drawn with additive blending to the black texture (the order doesn't matter either), than that texture should be multiplied with the world (that is "100% lit" if drawing the lighting texture is off).

Here's an example: https://en.sfml-dev.org/forums/index.php?topic=22180.msg156718#msg156718

20
Remove the () from this line: sf::RenderWindow window(); //Creates a window

You also don't need sf::Event as a member, using namespace is not too good of a practice (especially std one), and you can call sf::VideoMode's static functions like: sf::VideoMode::getDesktopMode() instead of the way you do it now (instancing an object just to call a static method).

21
Graphics / Re: Drawing onto an externally-created context
« on: June 12, 2019, 06:56:27 pm »
Quote
SFML always creates its own OpenGL context, even if you embed it into an existing window.
This (yes, I see it's old 2018 post) is no longer true in code on GH btw if you don't want SFML's context: https://github.com/SFML/SFML/pull/1484

Quote
I don't think there's a way to make it use an external context.
Still true AFAIK.

22
Window / Re: Event::KeyPressed not working now?
« on: June 04, 2019, 06:39:39 am »
         if (event.type = Event::Closed)

This line is an assignment, not a comparison, and Event::Closed is (usually?) 0 so it'll not close the Window and it prevents handling any other event type because event.type is always Event::Closed.

23
General / Re: I can't get custom shapes to work
« on: June 02, 2019, 09:29:35 pm »
Do you still have a problem with this and if yes then can you create a minimal complete example of it?

24
Graphics / Re: Why I can't setTexture?
« on: May 31, 2019, 11:52:05 pm »
Not sure if [FIXED] means you guessed but the proper way is &pencilIcon.

25
General / Re: What Is Wrong With This Line Algorithm?
« on: May 17, 2019, 10:20:27 am »
You forgot: line.setPosition(ax, ay);

27
General discussions / Re: Goodbye
« on: May 01, 2019, 10:46:33 pm »
I still remember when it was just you two. This is so sad. :'(

28
Window / Re: getLocalBounds() with text objects?
« on: April 30, 2019, 05:29:13 pm »
MouseButtonPressed is the event type you want, KeyPressed is for keyboard keys. Also, you should not have clearing, drawing and window display inside the event loop.

29
General / Re: What is a good way to handle new line characters? \n
« on: April 26, 2019, 11:14:14 pm »
Quote
Is it possible to add a cursor without making your own geometry? I couldn't figure it out using the standard sf:: classes.
I don't know what you mean by 'without own geometry'. You have to draw a cursor yourself somehow if you want one.

Quote
I am going through your code and the sf::Text code and trying to learn for my own project, I may have other questions about it I hope you don't mind.
Feel free. I'll try answer.

30
General / Re: What is a good way to handle new line characters? \n
« on: April 25, 2019, 05:31:04 am »
There's a demo program but it has a very unusual event loop: https://github.com/FRex/LuaConsoleProgram

Pages: 1 [2] 3 4 ... 123