Search found 4 matches

by BluePanda
Sun Aug 06, 2017 7:55 am
Forum: Beginners Help
Topic: Is the code wrong?
Replies: 2
Views: 540

Re: Is the code wrong?

CuteAlien wrote:I'm also not familiar with that code, but "Amount" seems to get the +128 in the constructor.
Hmm, you're right. I made a mistake. How carelessness I was!
And,
Thanks you for your kindness.
by BluePanda
Sat Aug 05, 2017 9:10 am
Forum: Beginners Help
Topic: Is the code wrong?
Replies: 2
Views: 540

Is the code wrong?

When I read the SVertexManipulator.h file, I found the code as follows:       class SVertexColorContrastBrightnessManipulator : public IVertexManipulator     {     public:         SVertexColorContrastBrightnessManipulator(f32 factor, s32 amount) : Factor(factor), Amount(amount+128) {}         void o...
by BluePanda
Tue Aug 01, 2017 2:01 pm
Forum: Beginners Help
Topic: Why irr need to define its own map class?
Replies: 2
Views: 552

Re: Why irr need to define its own map class?

Irrlicht does not use STL at all. The reason is mainly historical. Back when Irrlicht was written STL had more troubles. So most game engines used their own classes. It also has some advantages once in a while (it's easier to port to new platforms, there is more control and we can have freedom to a...
by BluePanda
Tue Aug 01, 2017 1:17 pm
Forum: Beginners Help
Topic: Why irr need to define its own map class?
Replies: 2
Views: 552

Why irr need to define its own map class?

Hi everyone, today when I read the irr src code, I met the class map file. Suddenly, I realize that irr doesn't use STL map class but define its own map class.So, I confuse Why? Is it necessary? To be platform independent?Or, want to be faster? Is there any other reason? A hopeful beginner, BluePanda