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

Pages: [1]
1
Window / Re: Is sf::Window support dpi scaling on Windows?
« on: January 06, 2016, 03:07:32 am »
thanks for you reply, hapax

my code draw sprites and vectexarrays at the sf::renderwindow on another thread, so i need deactive the sf::window.

I didn't get any error message, the application is working fine except the win32 window and other controls are very small.

I ran some sfml examples on the tablet, like "opengl","win32",“window”, the window size is also not scaled,  it is real size.  Is that proved sf::window doesn't support dpi scaling? 

I am Wondering why the sf::window cause the win32 window losing dpi scaling effect.

Is this topic is talking about this? I am not good enough at english  :'(
http://en.sfml-dev.org/forums/index.php?topic=17092.0

2
Window / Is sf::Window support dpi scaling on Windows?
« on: January 05, 2016, 10:41:07 am »
hi, my application that using sfml is working fine until I need run it on a Windows 10 tablet with 10"(2048x1536) screen.


If  below codes is not called, the main window and child window is scaled to 200%, because the system setting is 200%, but when the sfml::Window is created from the child window's handle, the entire window (include main window and child window) are back to 100%, the controls and text is too small.

my application create a win32 main window and a child window, the child window's handle is m_hWnd.

// create sfml window
sf::ContextSettings settings;
settings.antialiasingLevel = 8;
m_sfWindow.create(m_hWnd, settings);
m_sfWindow.setActive(false);
 

I also tried create a independent window, the problem is still there
m_sfWindow.create(sf::VideoMode(800, 600), "My window");
m_sfWindow.setActive(false);
 



3
Graphics / Re: Draw video frames on sf::RenderWindow
« on: August 25, 2015, 09:55:21 am »
Use multiple textures and multiple draw calls.
See also http://www.bromeon.ch/libraries/thor/v2.0/doc/classthor_1_1_big_texture.html

Thank you, Jesper. Problem solved by thor::BitSprite

I notice that on some computer that without display driver, the pieces of image didn't show at same time, Is it because of GDI rendering?

4
Graphics / [SOLVED]Draw video frames on sf::RenderWindow
« on: August 24, 2015, 10:26:48 am »
hi

I use sf::Texture + sf::Sprite to draw video frames on a sf::RenderWindow, it works fine on my computer.

but on some other computers, when create Texture, it fails, and output error:

Failed to create texture, its internal size is too high (2048x1024, maximum is 1024x1024)

Is there other way to draw images which is bigger than 1024x1024 on RenderWindow?


Pages: [1]
anything