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

Pages: [1]
SFML projects / Re: MyLib, Datapacker, File integrity checker osv
« on: January 12, 2012, 11:33:34 pm »
Quote from: ".teri"
Quote from: "Haikarainen"

With SFML (WIP):
Code: [Select]

my::Data::Package Test;

sf::Image Img;
Img.LoadFromMemory(Test.GetFileData("irimage.png"), Test.GetFileSize("irimage.png"));

I dont know... sf::InputStream is created for avoid load resources from memory.

Sorry for being a baddie and asking stupid questions, but what's the advantage of using sf::InputStream instead of LoadFromMemory?

General / SFML Complete Game Tutorial
« on: January 12, 2012, 03:31:17 pm »
Some short feedback:
There are a few instances where the names of the function arguments in the declarations don't match with the names in the function implementation. Specifically arguments of type sf::RenderWindow (off the top of my head you used 'rdw' 'window' 'renderWindow'). I know the compiler doesn't mind, but I think it's better to keep the names the same, especially in a tutorial.

Also, even though it gets long I think you should mention every change to every file you make in each part. Personally I re-write all the code instead of copy-pasting it and it gets harder to follow along when there are required changes that aren't mentioned. Take a look at how lazyfoo did his SDL tutorials.

Overall I think it's very good though  8) so thanks a lot.
Just needs a little bit of polish.

General / SFML Complete Game Tutorial
« on: January 10, 2012, 07:53:48 pm »
I just found your tutorial and I'm going through it. It's been a while since I worked with C++ and I never really used static variables or functions much (well, at all really) so I'm just wondering about the use of the scope operator ("::"). You use it for the enum (GameState) that's defined inside the class (Game) even though the functions in which you use it belong to the very same class. Is that simply because those are static functions and they can be accessed without an instanced object of the class?

Maybe it's a dumb question but I've never seen that operator used like that before :P

Pages: [1]