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

Pages: [1]
1
Window / MFC and SFML Window problem
« on: March 25, 2014, 06:08:00 am »
Hi everyone.
I have a CDialog with SFML RenderWindow created in a separated class. Everything is working OK, with the exception of two things.

1. Because I want to keep the CDialog events instead of the SFML I have problem that I loose the focus for mouse wheel event. I can use the mouse and the buttons, but the mouse wheel event is not triggered until I use the right button and click on the menu on the Windows bar where the programs icon is. And after I click outside of the  program I loose the focus again. Is there a workaround this?

2. How can I resize SFML window. I use custom events to resize the CDialog window using SetWindowPos().

2
Graphics / ExcludeClipRect in SFML
« on: March 20, 2014, 01:22:18 pm »
Is there any method to ExcludeClipRect and SelectClipRgn, as in GDI, in SFML??

3
Graphics / [SOLVED]Help with mono spaced font
« on: March 14, 2014, 02:03:57 pm »
Hi everyone, I have some issues and questions on the text rendering with SFML

This is the situation using a custom defined font for a project.




As you can see there is a significant difference with the way the font is displayed with SFML and Direct2D/GDI/PhotoShop/everything else. In both samples the font is size 13. There are two problems:

1. The font is not displayed correctly, you can see that some of the letters are not even drawn with their full length, like the S. Also I know that Direct2D is using ClearType, but is simply looks better with it, then in SFML

2. You can see that there is some spacing in SFML with is not present in Direct2D or GDI or anywhere else.

So my question is, how can I overcome these problems. Because with Direct2D I get 10 FPS and with SFML 45 drawing the same elements (which are something like 50000 lines).

I am using v2.1

4
General / Use Multi-Byte Character set problems
« on: March 12, 2014, 08:16:28 am »
Hi everyone, I am thinking to move from GDI UI (MFC project) to SFML, because Direct2D is just slow and I get low FPS.
For now I just want to play a bit with SFML to see it's capabilities, but I need to run it in "Use Multi-Byte Character Set", because that is the requirement in the MFC project I will need it. But when I run the simple test project I get linking errors:

Error   3   error LNK2005: "private: __thiscall type_info::type_info(class type_info const &)" (??0type_info@@AAE@ABV0@@Z) already defined in libcmtd.lib(typinfo.obj)   msvcrtd.lib
Error   4   error LNK2005: "private: class type_info & __thiscall type_info::operator=(class type_info const &)" (??4type_info@@AAEAAV0@ABV0@@Z) already defined in libcmtd.lib(typinfo.obj)   msvcrtd.lib
Error   6   error LNK2019: unresolved external symbol _main referenced in function _WinMain@16   sfml-main-d.lib
Error   7   fatal error LNK1120: 1 unresolved externals   F:\SFML\Test\Test\Debug\Test.exe   1


When using Unicode set, everything is OK. Isn't the SFML 2.1 compiled in Mulit-Byte or I have to compile it myself for this?

Pages: [1]