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

Pages: [1]
1
Graphics / SFML 2 Sprite Scaling
« on: October 30, 2012, 02:41:08 am »
Hey folks,

I recently upgraded to SFML 2 from 1.6, and noticed a difference in the graphics package. In the old one, when I used "Sprite.setScale" and enlarged the image, it seemed to do some sort of interpolation to create a nice smooth image. In the new one, it just enlarges the pixels so I have an extremely pixelated images. Is there a way to do it the old way?

Thanks!

2
Graphics / Saving resized images
« on: October 09, 2012, 10:01:40 pm »
Hello,

I have a data set, which I convert to a sf::Image object, which I put into a sf::Sprite object, which I then scale, and finally display. What I need to do is save this final, scaled image to a file.

I see that the sf::Image object has a "saveToFile" function, but this will save the original image and not the scaled one. My question is, is there a way to:

a) save the scaled sprite to a file?
b) scale the actual Image object, instead of just the sprite?

Thanks!

3
I have solved it. When it's set to "standard windows libraries", it includes the following in the "Additional Dependencies" field:

kernel32.lib
user32.lib
gdi32.lib
winspool.lib
comdlg32.lib
advapi32.lib
shell32.lib
ole32.lib
oleaut32.lib
uuid.lib
odbc32.lib
odbccp32.lib

So I just had to manually include those after I changed it to "MFC using Shared DLL", and voila!

4
General / 1.6 Static Linking in VS2010 with MFC in Shared DLL [SOLVED]
« on: August 28, 2012, 09:19:36 pm »
Hello,

I'm using SFML 1.6 in VS2010 (I recompiled from source for VS2010). I use the static libraries, and it works well when the project setting is:
 - "Use of MFC: Use standard Windows libraries"

using this test code:
#include <SFML/System.hpp>
#include <SFML/Graphics.hpp>
#include <SFML/Window.hpp>
int main(){
        sf::RenderWindow wnd( sf::VideoMode(100,200), "Angled Image");
}

Unfortunately, I need this project to also use some other libraries, which use a MFC shared DLL. So, as soon as I change that setting to:
 - "Use of MFC: MFC in a Shared DLL"

I get a linker error, "error LNK1120: 38 unresolved externals". Does SFML use some libraries that would be included when I set "use standard Windows libraries", but I might have to manually include when I change that? Or, you know, any other reason this setting might mess up my build?

Thanks!

Pages: [1]