uspgamedev / ugdk

USP Game Development Kit or USPGameDev Kit =D
uspgamedev.org
zlib License
18 stars 2 forks source link

Remove raw pointer usage [TRACKER] #38

Open henriquegemignani opened 10 years ago

henriquegemignani commented 10 years ago

Use smart pointers to automate memory management and document clearly when a function steals ownership.

Certainly more...

EDIT (by @Kazuo256):

Track of raw pointers-related issues:

Raw pointers that will not be removed:

RudaF commented 7 years ago

Another files that use raw pointers for further change

modules\ugdk-2d\include\ugdk\desktop\2D\window.h modules\ugdk-2d\include\ugdk\desktop\graphic\canvas.h modules\ugdk-2d\include\ugdk\desktop\graphic\defaultshaders.h modules\ugdk-2d\include\ugdk\desktop\graphic\exceptions.h modules\ugdk-2d\include\ugdk\desktop\graphic\immediate.h modules\ugdk-2d\include\ugdk\desktop\graphic\manager.h modules\ugdk-2d\include\ugdk\desktop\graphic\module.h modules\ugdk-2d\include\ugdk\desktop\graphic\primitive.h modules\ugdk-2d\include\ugdk\desktop\graphic\primitivecontroller.h modules\ugdk-2d\include\ugdk\desktop\graphic\primitivesetup.h modules\ugdk-2d\include\ugdk\desktop\graphic\rendertexture.h modules\ugdk-2d\include\ugdk\desktop\graphic\sprite.h modules\ugdk-2d\include\ugdk\desktop\graphic\textureatlas.h modules\ugdk-2d\include\ugdk\desktop\graphic\testureunit.h modules\ugdk-2d\include\ugdk\desktop\graphic\vertexdata.h modules\ugdk-2d\include\ugdk\desktop\text\font.h modules\ugdk-2d\include\ugdk\desktop\text\functions.h modules\ugdk-2d\include\ugdk\desktop\text\label.h modules\ugdk-2d\include\ugdk\desktop\text\manager.h modules\ugdk-2d\include\ugdk\desktop\text\module.h modules\ugdk-2d\include\ugdk\desktop\text\textbox.h modules\ugdk-2d\include\ugdk\desktop\ui\drawable\texturedrectangle.h modules\ugdk-2d\include\ugdk\desktop\ui\button.h modules\ugdk-2d\include\ugdk\desktop\ui\drawable.h modules\ugdk-2d\include\ugdk\desktop\ui\menu.h modules\ugdk-2d\include\ugdk\desktop\ui\node.h

josealvim commented 7 years ago

raw-pointer(core).txt

Kazuo256 commented 7 years ago

We'll probably have to split this issue into many.

josealvim commented 7 years ago

In modules In ugdk-core presume all in namespace ugdk

rubens-bolgheroni commented 7 years ago