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

Pages: [1]
1
Feature requests / Re: Image rotation
« on: August 06, 2015, 02:32:18 pm »
RokB, re-arranging the pixels is computationally expensive. Transforming the getPixel() and setPixel() co-ordinates would be comparatively much faster. One problem with that approach is when you create a texture from that image. It looks like it would have to do the pixel re-arranging before/during that conversion.

Another problem would arise when using Image::copy() it seems, which is necessary for creating complex images. Personally, I think it would be a lot simpler to create a function rearranging the image rather than to go around tweaking everything that currently uses the class. I've already done so for my own use. It's not insanely expensive and it's not like it's the sort of thing you'd be using very often.

2
Feature requests / Re: Image rotation
« on: August 06, 2015, 02:13:59 pm »
There wouldn't have to be copies of the image when rotating. The image can be rotated by rearranging the pixels.

3
Feature requests / Re: Image rotation
« on: August 06, 2015, 09:59:54 am »
I believe vertical/horizontal mirroring is already provided, which is why I thought it was odd that rotation isn't.

4
Feature requests / Re: Image rotation
« on: August 06, 2015, 09:10:57 am »
Would this still be considered? This would indeed be very useful when creating complex images.

5
Window / Re: Creating a window crashes program.
« on: December 04, 2012, 01:32:46 am »
Sorry. There must have been something wrong with my MinGW installation, even though I don't know exactly what. I downloaded your compiler and recompiled SFML and everything works now. Thanks.

6
Window / Re: Creating a window crashes program.
« on: December 03, 2012, 11:54:29 pm »
I did actually notice that and I thought it was weird, but I am definitely using the correct code.

#include <iostream>
#include <SFML/Graphics.hpp>

using std::cout;
using std::endl;

int main(int argc, char* argv[])
{
        sf::Window window(sf::VideoMode(800, 600), "Hello World");

        return 0;
}
 

7
Window / Re: Creating a window crashes program.
« on: December 03, 2012, 10:35:35 pm »
I tried recompiling it again. I'm pretty sure I'm using the correct version. This was in the debugger.



I also get a segmentation fault.

8
Window / Creating a window crashes program.
« on: December 03, 2012, 01:39:38 am »
Hello. I've been using SFML for a while now and I just upgraded to MinGW GCC 4.7.2. Now, whenever I try to create a window, my program crashes. I'm using SFML 2.0 and I already tried recompiling it and using the already compiled builds posted on the forum.

Creating a window crashes my progam:
int main(int argc, char* argv[])
{
        sf::Window window(sf::VideoMode(800, 600, 32), "test"); // crashes

        return 0;
}
 

But other things don't, so as far as I know it's just the window:
int main(int argc, char* argv[])
{
        sf::CircleShape circle;
        circle.setFillColor(sf::Color::Blue); // won't crash

        return 0;
}
 

Thanks in advance.

Pages: [1]