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

Pages: [1]
1
Graphics / Font quality
« on: January 27, 2010, 01:01:01 pm »
No, I didnt. I've just loaded the font with its default CharSize and then changed it within the string.. I've set both to 13 now, but its not much better.. Its really looking grainy.

Code: [Select]
MyFont.LoadFromFile("C:\\Windows\\Fonts\\Verdana.ttf");
sf::String MyString;
MyString.SetFont (MyFont);
MyString.SetText ( "test 1 2 3 4 5" );
App.draw (MyString);

2
Graphics / Font quality
« on: January 27, 2010, 12:43:35 pm »
Is there a way to improve the font quality ? You can see nearly every pixel and its not looking that sharp.. Is there a way to fix that ?

Thanks.

3
General / Draw on an exisiting window ?
« on: January 26, 2010, 08:51:43 pm »
But it also works with Windows GDI. sf::RenderWindow creates a new window OVER the existing game window... Is there no way to directly draw onto the game window like its possible with GDI ?

4
General / Draw on an exisiting window ?
« on: January 26, 2010, 08:29:20 pm »
I've tried it with sf::RenderWindow cause I need the Draw function.. But the whole screen gets black and the test string is flickering like hell..
I did it like that:

Code: [Select]
sf::RenderWindow MyWindow(MyHwnd);
while (true)
{
MyWindow.Draw (sMyString);
MyWindow.Display();

Sleep (1);
}


Is there a way to get rid of it ?

5
General / Draw on an exisiting window ?
« on: January 26, 2010, 06:52:38 pm »
Ok I'll test it out by myself. But how can I draw on the window ? Didn't found a function for it yet... Just to create my own window.. Thanks again.

6
General / Draw on an exisiting window ?
« on: January 26, 2010, 04:39:14 pm »
Hello there. Just wondering if its possible to draw on an existing window with SFML.. For example in garrys mod, so that I can draw an ingame clock and stuff like that.

If thats possible, which functions do I need in order for being able to draw onto this window?

Thanks.

Pages: [1]