OGRE_NEW
- spacegaier
- OGRE Team Member
- Posts: 4304
- Joined: Mon Feb 04, 2008 2:02 pm
- Location: Germany
- x 135
- Contact:
Re: OGRE_NEW
Code: Select all
#define OGRE_NEW new
OGRE_NEW - use to allocate an object which have custom new/delete operators
to handle custom allocations, usually this means it's derived from Ogre::AllocatedObject.
Free the memory using OGRE_DELETE. You can in fact use the regular new/delete
for these classes but you won't get any line number debugging if you do.
The memory category is automatically derived for these classes; for all other
allocations you have to specify it.
Ogre Admin [Admin, Dev, PR, Finance, Wiki, etc.] | BasicOgreFramework | AdvancedOgreFramework
Don't know what to do in your spare time? Help the Ogre wiki grow! Or squash a bug...
Don't know what to do in your spare time? Help the Ogre wiki grow! Or squash a bug...