DebugActor references

DebugActor references

Postby DanKolle » Fri Apr 21, 2017 3:08 pm

Hello guys,

I was looking at oxygine and noticed that there are DebugActor references all over the place. To me it seemed that in all these places the defines OX_DEBUG && !OXYGINE_EDITOR should be checked, or am I mistaken?

I ask because DebugActor brings in a lot of dependencies you would otherwise not need. I want to use oxygine not as a game engine but as an opengl renderer, so a lot of the user interface I would not need.

I also noticed that there are many places which check for "#ifdef OX_DEBUG" instead of "#if OX_DEBUG" whichwould not allow me to define "OX_DEBUG=0" to prevent the debugging stuff from being included.

Please let me know what you think. Thanks.
Dan
DanKolle
 
Posts: 1
Joined: Fri Apr 21, 2017 3:01 pm

Re: DebugActor references

Postby admin » Sat Apr 22, 2017 8:47 pm

DanKolle wrote:I also noticed that there are many places which check for "#ifdef OX_DEBUG" instead of "#if OX_DEBUG" whichwould not allow me to define "OX_DEBUG=0" to prevent the debugging stuff from being included.

you could add your patch to oxygine
after lines
Code: Select all
#if _DEBUG || DEBUG
#   ifndef OX_DEBUG
#       define OX_DEBUG 1
#   endif
#endif


add
Code: Select all
#ifdef OX_NDEBUG
#undef OX_DEBUG
#endif
User avatar
admin
Site Admin
 
Posts: 733
Joined: Mon Oct 21, 2013 6:47 pm

Re: DebugActor references

Postby admin » Sat Apr 22, 2017 8:48 pm

OXYGINE_EDITOR is not official feature, It is being used for oxygine-editor where I'm using oxygine for rendering too
User avatar
admin
Site Admin
 
Posts: 733
Joined: Mon Oct 21, 2013 6:47 pm


Return to oxygine-framework

Who is online

Users browsing this forum: No registered users and 3 guests

cron