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.


Topics - peaman

Pages: [1]
1
Feature requests / Some ideas
« on: May 13, 2008, 01:38:04 pm »
It would be nice if Sprites had separate centers for scale, rotation, and position.
I also don't like it that when you scale a sprite, the rotation center doesn't stay in the  center of the sprite.

A function for checking overlaping of sprites would be nice. It should also consider scale and rotation of the sprites.

bool sf::Sprite::Collides(const fs::Sprite &s1, const fs::Sprite &s2);

So if two non-trasparent pixels of the sprites would overlap, the function would return true.

Btw why have Sprites a method called Scale() and another called SetScale()? Do they differ in any way?

2
Window / Bug in event TextEntered?
« on: May 13, 2008, 08:28:26 am »
Hello

I wrote a program that displays text the user enters, but when one presses backspace it won't react to any subsquent input. Is this a bug?

3
General discussions / PostFX - random numbers?
« on: May 11, 2008, 01:54:40 pm »
Hello

Anybody knows how to generate random numbers in glsl? I'm trying to write a blur effect with jitter. I know there are functions like noise1, noise2 etc. but somehow they seem not to do anything but return zero. Maybe I'm doing something wrong?

best regards

Pages: [1]