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

Pages: [1]
1
Network / Re: IPv6 Support for the networking
« on: July 19, 2020, 05:32:33 am »
So is there any ETA?

thnx.

2
Network / IPv6 Support for the networking
« on: July 09, 2020, 07:04:24 pm »
Hi All 

Is there any chance to get it working out of the box
in the nearest future?

Or how it should be set in order to get it working with?

Thnx

3
C / Re: wchar_t to sfUint32 issue on WIndows
« on: June 02, 2020, 06:34:40 am »
What do you mean with "parse"? What do you do with the text?

i meant working with strings (arrays) using wcsncmp(), wcstok() and so on

and i don't now how to do it with UTF-32  on windows
definetely  it's offtopic here.

thnx

4
C / Re: wchar_t to sfUint32 issue on WIndows
« on: June 01, 2020, 03:52:41 pm »
...
sfEvent gives you a sfUint32 character, and sfText_setUnicodeString takes a const sfUint32*. Is there a good reason for storing your string as a wchar_t? If so, you'll have to convert using dedicated functions, as wchar_t uses UCS-2 encoding on Windows, and SFML gives you UTF-32 characters.

so my solution here is to draw chars as UTF-32 and store another wchar_t array to parse it

thnx.

ps: big thanks for C_SFML. it's superb!

5
C / Re: wchar_t to sfUint32 issue on WIndows
« on: June 01, 2020, 02:34:06 pm »
Is there a good reason for storing your string as a wchar_t?
text should be parsed using <string.h> f(x) 
 is there any way to parse UTF-32 string using C lang string functions and not char by char?
 
pls advice

thnx.

6
C / Re: wchar_t to sfUint32 issue on WIndows
« on: May 31, 2020, 09:15:06 pm »
Quote
i've experienced an issue
Please describe it. Nobody wants to guess.

and

dear sir

would you please be so kind to provide a short example how to add event.text.unicode to wchar_t *str and how to pass that str to sfText_setUnicodeString() ( where wchar_t is 2 byte long on Win10)

thnx.

7
C / Re: wchar_t to sfUint32 issue on WIndows
« on: May 31, 2020, 08:51:39 pm »
Quote
i've experienced an issue
Please describe it. Nobody wants to guess.

sorry. it was under the quote. is it possible for you to check it?

sfText_setUnicodeString(text, (sfUint32 *) wstr); // wrong: display the char but then override it with blank square

i see the proper wchat_t * wstr  using cmd.exe and wcslen(wstr) returns the proper count of utf chars

so looks like i don't understand how to cast sfUint32 to wchar_t on Windows where wchar_t is 2 bytes long
and not 4 bytes to draw it correctly

how to pass whcar_t *wstr on Win10 to sfText_setUnicodeString() to get it working?

i've the same result using gcc 7.3 and clang 10 (msvc)

thanks.

8
C / wchar_t to sfUint32 issue on WIndows
« on: May 31, 2020, 05:13:39 pm »
Hi All

i'm on my way to make a text editor using CSFML
i've experienced an issue to get input from keyboard and draw utf text

removed by TS

please assist with my misunderstanding

thnx.

9
General discussions / Re: Wayland support
« on: June 29, 2019, 07:05:37 pm »
+1 for wayland port to use for netbooks and so on

thnx

Pages: [1]