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

Pages: 1 [2]
16
Graphics / Re: Resolution-Independent Rendering?
« on: November 23, 2013, 05:21:07 pm »
There is no way to render to a texture on the GPU ?

17
Graphics / Re: Resolution-Independent Rendering?
« on: November 23, 2013, 05:00:11 pm »
No, but i found a tutorial doing EXACTLY what I'm doing, which is weird, since this method reduces the performance of my program to about 5 frames per second:

window.clear();
                renderTarget.clear();
        RenderFrame();
                renderTarget.display();
                contentTexture = renderTarget.getTexture();
                auto spr = sf::Sprite(contentTexture);
                window.draw(spr);
        window.display();

edit: I will use views now, I'm still interested why this does kill the performance.

18
Graphics / Resolution-Independent Rendering?
« on: November 23, 2013, 04:35:14 pm »
Hi,
I'm new to smfl and I was wondering how I can scale my content to fit into the window without having a global scale variable which has to be used in every frame. I tried a simple approach with RenderTextures, but calling the GetTexture() method every frame seems to be VERY slow. Any ideas?

19
General / vs2012: toAnsiString returns scrambled data [Solved]
« on: November 18, 2013, 08:40:17 pm »
Hi, when I'm trying to covert a sf string to a regular c++ string, I'm getting a broken value. When debugging I'm getting a wrong value for size and <Error reading characters of string.> for each character. What's going on here ?


edit: Solved, didn't link the debug dlls, my bad!

Pages: 1 [2]