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

Pages: 1 [2]
Graphics / [solved]Copying pixels/image to a larger image?
« on: April 11, 2010, 09:16:28 pm »
How do you copy an image (NOT RESIZE) to a larger one?

I tried copying pixels onto a larger image and it overwrites it or errors out.

Graphics / [mostly solved]Clear() for sprites/images too?
« on: April 10, 2010, 06:45:03 pm »
Hi, when I worked in flash with blitting you had control over the 'clear' (fill) of each image to clean up the pixels before drawing.

Are you doing this automatically in SFML?

How do I get control of this in SFML?

SFML website / Site often appears down
« on: April 10, 2010, 07:45:42 am »
Hi, I've been trying to use this site/forums all week and many times they will not load (and it's only this site).

It's never completely down, but you have to make many attempts to get through sometimes.

I don't have any blocking software/hardware and I'm using Firefox.

Not trying to complain here, just letting you know.

Thanks for reading.

Graphics / [solved]Loading all images from a folder
« on: April 10, 2010, 07:41:56 am »
Hi, first I'd like to say thanks to Laurent for creating SFML.

I haven't programmed in C++ in many years, but I'm converting my game from Actionscript 3. First I need to convert my tools though.

I have thousands of images that need to be processed so I load them by getting a directory list which returns an array of strings. Next I sort by 'png'.

For example, my code in AS3:
Code: [Select]
var imgs=[];

function Img_Load(path)
var f=new File();
var l=f.getDirectoryListing(),x=0;

for(var i=0;i<l.length;i++)
var s=l[i].nativePath,t=s;

I'm not really sure how I should start with this.

What's the recommended/cross-platform way to get directory listings/work with files?

Should this be a feature I write on my own or should I extend SFML/SOIL?

Shouldn't there be one cross-platform way for all file loading/handling?

EDIT: I just looked at your roadmap, does this do what I'm talking about:

"FS#83 - DataStream framework for resource loading "


Pages: 1 [2]