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

Pages: [1] 2 3 ... 6
1
Graphics / Re: Crash if I set vertex color
« on: March 16, 2014, 06:41:30 pm »
Any. Just trying to make a generic graphing program, like Desmos.

2
Graphics / Re: Crash if I set vertex color
« on: March 16, 2014, 02:17:21 am »
Wow...that was bad.


Turns out my array.resize() was too small. woops. Although I am wondering why the error only occurred after a few frames...

3
Graphics / Re: Crash if I set vertex color
« on: March 16, 2014, 01:50:30 am »
No, it doesn't seem to be that. I replaced all the dlls and made sure the linked stuff was from the same SFML build.

4
Graphics / Crash if I set vertex color
« on: March 15, 2014, 11:35:08 pm »
This is the weirdest bug I've ever seen...

Some code:
void Graph::update(SceneData dimens) {
    for (int x = 0; x <= dimens.screenWidth; x++) {
        points[x].position = sf::Vector2f( x, (dimens.xLow+(x*dimens.step)));
        points[x].color = sf::Color::Black;
    }
}
 

and

    Graph graph;
    graph.update(dimens);

    while (window.isOpen()){

        sf::Event event;
        while (window.pollEvent(event))
        {
            if (event.type == sf::Event::Closed)
                window.close();
        }

        window.clear(sf::Color::White);
        window.draw(xAxis);
        window.draw(yAxis);
        window.draw(graph.points);
        window.display();
    }
    return 0;
}

So when I run this, the graph draw fine and stays on the screen. However, if I move my mouse for more than a second it crashes. This does NOT happen when I run it using the CodeBlocks debugger, so the only info I have about the crash is from the Windows crash dialog, which says its in ntdll.dll. It also does not happen if I comment out

points[x].color = sf::Color::Black;
 

I have no idea what moving the mouse and setting the color have to do with each other, so...yeah.
Any ideas?

5
Window / Window Initialization
« on: February 01, 2014, 02:39:17 am »
When I try to create a window object in Visual Studio C++, the line
sf::Window window = sf::Window(sf::VideoMode(200,200),"Title");
works fine, but when I try the same thing in Code::Blocks MinGW, I get a nonCopyable error. Instead I have to use
sf::Window window(sf::VideoMode(200, 200), "Title");
Any reason why?

6
General / Re: Flipped Textures
« on: July 04, 2013, 10:45:28 pm »
Gotcha, but that is knid of annoying though, because then you have to do it for every single coordinate

7
General / Re: Flipped Textures
« on: July 03, 2013, 08:56:11 pm »
what do you mean?

8
General / Re: Problem with debuging VisualStudio 2012
« on: July 03, 2013, 07:52:59 pm »
Did you add "-d" to the libraries you linked for the debug build?

9
General / Flipped Textures
« on: July 03, 2013, 07:34:22 pm »
Im using Opengl with SFML and im trying to map a texture, but its coming out flipped. In order to get the texture to appear the 'proper' OpenGL way (with the origin at the bottom left), I have to flip the sf::Image horizontally and then vertically. Is this the right way, or am I doing it wrong?

Ive looked around for answer to this but i cant find one. I found this:
http://en.sfml-dev.org/forums/index.php?topic=1273.0
but it doesnt seem to have a solution.

10
DotNet / text affecting other text
« on: March 31, 2013, 05:48:26 am »
wassup,
im running into problems using two Text objects. i think it may be a bug but im not sure. anyway the problem is this: im using getLocalBounds of both texts to center them. However, if i update one text's string and not the other's, it causes the unchanged text's bounds to also change, causing it to go ff center. I dont know why this is. It only happens when i update one text. if i comment out that update, the other stops moving around. If you guys have any ideas thatd be great. thanks

11
DotNet / pollevent
« on: January 15, 2012, 06:35:52 pm »
thanks.
the sfml .net binding is pretty different from the c version. Unfortunately, i cant find the documentation. in the doc folder, there's only some XML files.

12
DotNet / pollevent
« on: January 14, 2012, 06:28:56 pm »
im starting out using the .net binding, but when i try to use the window.pollevent, it says the funtion is inaccesible due to its protection level. help?

13
DotNet / SFML 2.0 and .NET Binding
« on: January 12, 2012, 05:07:23 am »
those conversion problems... im having them too. when i open up the sfml.net in visual c#, the conversion thing happens, but in the conversion log, most of the things say not converted.. Then when i try to compile i get errors.

14
General discussions / cross-platform c++ resource container library?
« on: January 10, 2012, 11:21:32 pm »
Quote from: "Tank"
If you really only want to pack multiple files into a container, why not do it yourself? It's quite simple to do (an index with offsets to the files and sizes and the data itself). You can even apply compression before you save and decompression before you load.


Could you show a code sample or link me to a resource. It'd be very helpful

15
SFML projects / SFGUI
« on: December 16, 2011, 08:00:03 pm »
if i dont have to go through all that cmake crap, i can help with mingw 32

Pages: [1] 2 3 ... 6