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 5 ... 124
31
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.

32
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.

33
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

34
Graphics / Re: Creating simple 3D objects SFML
« on: April 21, 2019, 12:10:41 am »
Not sure if what is presented here (e.g. at 1:50) is the same thing or not, it looks similar: https://www.youtube.com/watch?v=kjFlIxGzABY

35
Sprite has a get texture that returns a pointer which can be NULL if it was never set.

https://www.sfml-dev.org/documentation/2.5.1/classsf_1_1Sprite.php#a1a76155146c8ff37c4eb5a306b4e9ebe

36
They are taken from sf::Font (https://github.com/SFML/SFML/blob/master/src/SFML/Graphics/Text.cpp#L473) via getUnderlineThickness (https://github.com/SFML/SFML/blob/master/src/SFML/Graphics/Font.cpp#L439) so I guess the answer is technically no.

37
General discussions / Re: External libraries' versions
« on: April 11, 2019, 05:52:49 pm »
For Windows for some it says in commit messages of related files: https://github.com/SFML/SFML/tree/master/extlibs

For Linux I assume it's whatever you happen to have installed since they are API compatible and aren't bundled but you're told by tutorial to install them yourself.

38
General / Re: What is a good way to handle new line characters? \n
« on: April 11, 2019, 02:57:32 am »
There's not that much code there and almost all of it is a straight copy from sf::Text with minor changes. Other files have much more code (Model has like 5x code, Input and Completion each have as much as View) and it's all custom written too.

39
General / Re: What is a good way to handle new line characters? \n
« on: April 10, 2019, 10:51:54 pm »
sf::Text will handle \n properly and make a new line appear. You can see it in the code and while documentation on setString doesn't seem to say it there are functions like setLineSpacing which would make no sense to have if sf::Text was always a single line.

I did it 'myself' (my code is based on sf::Text's, there's a notice at line 83) to be able to color the glyps individually (while keeping them all in a single vertex array to draw all in a single draw call) to display errors in red, messages in white, evaluated expressions in grey, etc. as you can see on screenshots here: https://github.com/FRex/LuaConsoleProgram and on the ECONSOLE_COLOR enum list here: https://github.com/FRex/LuaConsole/blob/master/include/LuaConsole/LuaConsoleModel.hpp#L78



40
General / Re: Having trouble with sf::Drawable inheritance
« on: April 05, 2019, 02:43:51 am »
If a virtual method is not defined (in sf::Drawable it's pure) that might cause an error like you're getting. You should add at least an empty {} for draw in that class and then see if the error is still there.

41
General / Re: Having trouble with sf::Drawable inheritance
« on: April 04, 2019, 10:10:52 pm »
Do you have your NormalParticle's draw defined (not just declared) or not?

42
General / Re: Having trouble with sf::Drawable inheritance
« on: April 04, 2019, 08:57:45 pm »
You didn't implement draw at all.

43
SFML website / Certificate Error
« on: March 27, 2019, 04:19:57 am »
Hey, so I see there is a fresh Let's Encrypt certificate on the website (en., fr., www. and sfml-dev.org itself) with starting date of 26 of May. ;)

The issue is that the en. and fr. subdomains are not listed in Subject Alternative Name so the forums display a big ugly warning about it. :-X

Edit: I see it's been fixed now. :P

44
Audio / Re: Issues compiling statically with the audio library
« on: March 24, 2019, 06:39:47 pm »
Did you ever try the ones in SFML/extlibs/libs-msvc-universal?

45
Audio / Re: Issues compiling statically with the audio library
« on: March 24, 2019, 06:33:07 pm »
I looked at just accepted answer before, I read that one now and it's all correct, that array and FILE changing sizes is really bad. The only way to fix it is to recompile with newer VC++ after all.

Pages: 1 2 [3] 4 5 ... 124
anything