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

Pages: 1 [2]
16
Graphics / Incompatibility with sf::Image and stl::list??
« on: October 14, 2012, 06:40:00 am »
Does anyone know if there is an incompatibility here? My animation class runs smoothly every time, but when I try to automate the process of reading several animations by queuing them in an stl::list, they don't show on-screen.

I'm positive the issue is something like this. The function I'm calling to draw it returns the sf::Sprite of the current frame, but it isn't showing anything. The program doesn't crash or anything either, so I'm thinking the Image doesn't stay in memory when it's in a list.

Anybody know anything about this?

17
SFML projects / Re: Sprint
« on: July 29, 2012, 10:24:53 pm »
Looks good so far. I think this has potential.

I noticed you're linking against dynamic libraries; was this intentional?

18
Graphics / Re: Crash when Setting Sprite Values
« on: July 29, 2012, 03:53:09 am »
I'll keep that in mind from now on, thanks. :P

Yep, that was it. I forgot to set a value to aIndex.

sprite_queue is a global list. I run through it each drawing cycle. When parsing a new map or exiting the program, it clears the list. I have a separate queue for sf::Image which have corresponding ids.

19
Graphics / Crash when Setting Sprite Values
« on: July 28, 2012, 10:54:03 pm »
void sursprite::Add()
{
    main.SetSubRect( sf::IntRect( aX[aIndex], aY[aIndex], ( w + aX[aIndex] ), ( h + aY[aIndex] ) ) );
    sprite_queue.push_back( *this );
}
At line 3 in the above function, my program crashes. aX & aY are equal to zero. w & h are equal to 32.

Pages: 1 [2]
anything