Home » Extra libraries, Code snippets, applications etc. » Applications created with U++ » UltimateOpenGL [BETA] 3D engine (A 3D engine to make game)
Re: UltimateOpenGL [BETA] 3D Engine [message #52761 is a reply to message #52756] |
Tue, 19 November 2019 21:32 |
|
Xemuth
Messages: 387 Registered: August 2018 Location: France
|
Senior Member |
|
|
Hello Koldo & Klugier,
Klugier wrote on Mon, 18 November 2019 22:42
Backing to Xemuth I think you made grate work here and probably you had a lot of fun writing this application. I am glad you decided to publish it as an open source. We definitely need more initiative like this. Thanks and good luck in developing this project and other projects in the future!
Yeah I had lot of fun writing it
Klugier wrote on Mon, 18 November 2019 22:42
At the end, I would like to give you some power tips for the future. I notice that you use following code in your header files (.h):
This should be avoided at all cost, because when somebody includes that file it will also inherit this namespace shortcut. To overcome that issue you can put your class into Upp namespace or directly use namespace Upp::. You can find more information on https://stackoverflow.com/questions/5849457/using-namespace- in-c-headers.
you are right, it's now fixed !
Klugier wrote on Mon, 18 November 2019 22:42
Sometimes you pass string as a copy when you can pass it by const reference to avoid copy:
GameObject::GameObject(String _name){ // <- Copy
name = _name; // <- Copy one more time
}
Should be replace with
GameObject::GameObject(const String& _name){ // <- No copy, address (reference) is passed
name = _name; // <- Copy
}
As you may see with const& we avoid one extra copy that is not need in above case.
Yeah I know, I just sometime forget it
[Updated on: Thu, 05 December 2019 13:05] Report message to a moderator
|
|
|
|
|
UltimateOpenGL [BETA] 3D engine
By: Xemuth on Mon, 18 November 2019 15:45
|
|
|
Re: UltimateOpenGL [BETA] 3D motor
By: koldo on Mon, 18 November 2019 19:53
|
|
|
Re: UltimateOpenGL [BETA] 3D Engine
By: Xemuth on Mon, 18 November 2019 20:06
|
|
|
Re: UltimateOpenGL [BETA] 3D motor
By: Klugier on Mon, 18 November 2019 22:42
|
|
|
Re: UltimateOpenGL [BETA] 3D motor
By: koldo on Tue, 19 November 2019 08:10
|
|
|
Re: UltimateOpenGL [BETA] 3D motor
By: koldo on Tue, 19 November 2019 09:06
|
|
|
Re: UltimateOpenGL [BETA] 3D Engine
By: Xemuth on Tue, 19 November 2019 21:44
|
|
|
Re: UltimateOpenGL [BETA] 3D Engine
By: Xemuth on Tue, 19 November 2019 21:43
|
|
|
Re: UltimateOpenGL [BETA] 3D Engine
By: Xemuth on Tue, 19 November 2019 21:32
|
|
|
Re: UltimateOpenGL [BETA] 3D Engine
By: Xemuth on Fri, 22 November 2019 21:41
|
|
|
Re: UltimateOpenGL [BETA] 3D engine
By: Xemuth on Mon, 02 December 2019 14:56
|
|
|
Re: UltimateOpenGL [BETA] 3D engine
By: Xemuth on Tue, 03 December 2019 23:42
|
|
|
Re: UltimateOpenGL [BETA] 3D engine
By: koldo on Thu, 02 January 2020 18:16
|
|
|
Re: UltimateOpenGL [BETA] 3D engine
By: Xemuth on Thu, 02 January 2020 18:22
|
Goto Forum:
Current Time: Fri May 03 02:54:22 CEST 2024
Total time taken to generate the page: 0.04271 seconds
|