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

Pages: 1 ... 4 5 [6] 7
76
Feature requests / Radian helper functions
« on: April 14, 2008, 09:56:53 pm »
Most compilers will be able to optimize this function call away (yeah, I hate preprocessor makros).
But I have to admit that I prefer radians myself.
Replacing degrees with radians would imho be a good solution.
So instead of Rotate(float degree), write Rotate(float radians). Thinking of cmath, etc. this is probably used more often.

77
General / Compatibility to other computers
« on: April 14, 2008, 09:29:24 pm »
Make sure that the target computer has the visualc++ 2008 redistributables installed (which I assume is the case if other apps run) and you don't redistribute an apllication containing debug information. Also make sure that you link with the correct libs (non-debug, static, in recent svn-versions marked with a -s suffix).
Static linking definitely works on vc++, I just compiled an application 2 days ago using TeamSuite 2008 which has been run successfully on a pc without VisualStudio intalled.

Here is a guide what I did:

1. Pull down the latest sources from svn

2. Open the SFML.sln in the vc2008 dir

3. Select Release

4. Rigth-click the solution and select recreate all (or something similar)

5. You will now find the libs in sfmldir/lib/vc2008

6. Create a new project and select win32 application, disable the option to use precompiled headers

6. Go to the release configuration and add the sfml-include directory to the c++ options and the sfml-lib directory to the linker settings.

7. Then add the required libs to the linker settings (for example sfml-graphics-s.lib)

8. Now add your source files to the project

9. Select release mode and compile

10. Hopefully you now have a working executable (it worked for me)

If you need more specific information where to find the settings, I can look it up as soon as I get back to a computer with VisualStudio.
If this doesn't work you can still try to add the required sfml-source files to you project directly (you will still have to configure the external libs like freetype, so this probably won't simplfy things).
Looking at the msdn docs could help too, I think they have a chapter about reditributing applications.

78
Feature requests / italic and bold for sf::String
« on: April 10, 2008, 07:53:42 pm »
This kind of feature already exists in svn.
Just look at sf::String::SetStyle.

79
General discussions / SFML 1.3 / nightly builds
« on: April 04, 2008, 04:08:33 pm »
What happens if you compile and run any of the samples?

80
Graphics / Why is SFML in Debugconfiguration so slow?
« on: April 04, 2008, 04:05:27 pm »
For a single map 18 fps seem to be too slow, even in debug mode, I was getting better speeds on my old computer with a Radeon 9200 and a Pentium 4 (always above 100 fps in debug).
(I assume that you use VisualStudio)
And this was non-optimized code rendering 16x16 tilemaps using sf::Sprite (somewhat slow when compared to custom OpenGL rendering).
Can you give any computer specs? If it is too slow, there is probably not much you can do.
If you have access to some good profiling tools, it may help you to optimize your rendering code.

81
General discussions / SFML 1.3 / nightly builds
« on: April 04, 2008, 03:24:44 pm »
You need to call App.Display() inside the loop, otherwise no events will be received and the window will not be refreshed.
Just look how this is done in the examples.

82
General discussions / SFML 1.3 / nightly builds
« on: April 04, 2008, 12:27:30 pm »
You seem not to link with the OpenGL libs.

I'm not a big fan of MinGW anyway.
MinGW is imho outdated for windows development (and has some limitations on vista, as far as I can remember).
It is based on the gcc 3.4.x series and those would be even outdated on Linux.
It had a huge boost back in the days when it was one of the best (in terms of standard-compliance and speed) free c++ compilers available for windows.
But the visual c compilers are now even faster, also quite standard compliant, integrate better into windows
and since the Windows SDK is now free to download and use, I recommend using the included vc++ compiler.
I think CodeBlocks supports it as well. Or go with the VisualC++-Express editions.

You will have less problems building sfml after all.:wink:

83
General / Huge MinGW Libraries!!
« on: March 31, 2008, 10:18:26 pm »
The -d libraries are the debug libraries.
In general, debug libraries tend to be bigger than the release ones.
About the MinGW binaries being bigger than the msvc:
MinGW probably links some static runtimes whereas msvc mainly uses dynamic linking and presumes that the user has the msvc runtimes already installed (you can also link the msvc runtimes statically (I think?) even if this might not be the best idea).
I'm not sure about this, though.

84
General / Recompile SFML issue
« on: March 27, 2008, 11:41:48 pm »
Which version are you using exactly?
I did a clean install of Team Suite 2008 on Vista and no problems here.
Make sure that the Windows SDK is set up correctly.

85
Feature requests / Colorkeys for Drawables
« on: March 27, 2008, 03:46:16 pm »
Why are you using bitmaps at all?
The easiest solution would be to add an alpha-channel to the images and save them as png or tga.

86
Window / Window creation (Linux)
« on: March 26, 2008, 03:15:53 pm »
It worked. Everything is fine now. :D

87
Window / Window creation (Linux)
« on: March 26, 2008, 01:21:13 am »
Quote from: "Redien"
There is a routine for fetching the desktop resolution (sf::VideoMode::GetDesktopMode()).

Going to check that out tomorrow, but it sounds like this is the solution.

88
Window / Window creation (Linux)
« on: March 25, 2008, 05:33:52 pm »
Quote from: "Aszarsha"
In fact, the user should call Window::SetPosition if he want to center the window, not SFML. :)

But then you would have to access the xdisplay settings which makes things non cross-platform.
Maybe the best solution would be something like sf::Window::Center().

89
Window / Window creation (Linux)
« on: March 25, 2008, 11:21:54 am »
Glad to hear it. :D

90
General discussions / Toggle Resize between different video modes
« on: March 25, 2008, 11:20:07 am »
Maybe I didn't get you right, but sf::RenderWindow::SetView could be what you are looking for.
If you want to have a 320*240 screen diplayed in a 640*480 window, you could just
write something like:

Code: [Select]

 sf::RenderWindow App(sf::VideoMode(640, 480), "ViewExample");
 sf::View View(sf::FloatRect(0, 0, 320, 240));
App.SetView(&View);


Hope that helps.

Pages: 1 ... 4 5 [6] 7