API BREAKER: Replacing defines in irrTypes.h which are conflicting with c++ reserved identifier rules.
C++ has undefined behavior for identifiers starting with __ or with _ followed by an uppercase letter. We still have many more (in IrrCompileConfig.h and in all header-guards), will likely replace those later as well. As a workaround for users which might use irrlicht defines in their code, I've added the header irrLegacyDefines.h Including that allows to continue using old defines for a while - or make it easier to have code which compiles with old and new Irrlicht library versions. git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6251 dfc29bdd-3216-0410-991c-e03cc46cb475
This commit is contained in:
@@ -28,53 +28,53 @@ namespace gui
|
||||
CGUIProfiler(IGUIEnvironment* environment, IGUIElement* parent, s32 id, core::rect<s32> rectangle, IProfiler* profiler);
|
||||
|
||||
//! Show first page of profile data
|
||||
virtual void firstPage(bool includeOverview) _IRR_OVERRIDE_;
|
||||
virtual void firstPage(bool includeOverview) IRR_OVERRIDE;
|
||||
|
||||
//! Show next page of profile data
|
||||
virtual void nextPage(bool includeOverview) _IRR_OVERRIDE_;
|
||||
virtual void nextPage(bool includeOverview) IRR_OVERRIDE;
|
||||
|
||||
//! Show previous page of profile data
|
||||
virtual void previousPage(bool includeOverview) _IRR_OVERRIDE_;
|
||||
virtual void previousPage(bool includeOverview) IRR_OVERRIDE;
|
||||
|
||||
//! Try to show as many group-pages together as possible instead of showing at most one group per page.
|
||||
/** \param groupsTogether When true show several groups on one page, when false show max. one group per page. Default is false. */
|
||||
virtual void setShowGroupsTogether(bool groupsTogether) _IRR_OVERRIDE_;
|
||||
virtual void setShowGroupsTogether(bool groupsTogether) IRR_OVERRIDE;
|
||||
|
||||
//! Can several groups be displayed per page?
|
||||
virtual bool getShowGroupsTogether() const _IRR_OVERRIDE_;
|
||||
virtual bool getShowGroupsTogether() const IRR_OVERRIDE;
|
||||
|
||||
//! Sets another skin independent font.
|
||||
virtual void setOverrideFont(IGUIFont* font) _IRR_OVERRIDE_;
|
||||
virtual void setOverrideFont(IGUIFont* font) IRR_OVERRIDE;
|
||||
|
||||
//! Gets the override font (if any)
|
||||
virtual IGUIFont* getOverrideFont() const _IRR_OVERRIDE_;
|
||||
virtual IGUIFont* getOverrideFont() const IRR_OVERRIDE;
|
||||
|
||||
//! Get the font which is used right now for drawing
|
||||
virtual IGUIFont* getActiveFont() const _IRR_OVERRIDE_;
|
||||
virtual IGUIFont* getActiveFont() const IRR_OVERRIDE;
|
||||
|
||||
//! Sets whether to draw the background. By default disabled,
|
||||
virtual void setDrawBackground(bool draw) _IRR_OVERRIDE_;
|
||||
virtual void setDrawBackground(bool draw) IRR_OVERRIDE;
|
||||
|
||||
//! Checks if background drawing is enabled
|
||||
/** \return true if background drawing is enabled, false otherwise */
|
||||
virtual bool isDrawBackgroundEnabled() const _IRR_OVERRIDE_;
|
||||
virtual bool isDrawBackgroundEnabled() const IRR_OVERRIDE;
|
||||
|
||||
//! Allows to freeze updates which makes it easier to read the numbers
|
||||
virtual void setFrozen(bool freeze) _IRR_OVERRIDE_;
|
||||
virtual void setFrozen(bool freeze) IRR_OVERRIDE;
|
||||
|
||||
//! Are updates currently frozen
|
||||
virtual bool getFrozen() const _IRR_OVERRIDE_;
|
||||
virtual bool getFrozen() const IRR_OVERRIDE;
|
||||
|
||||
//! Filters prevents data that doesn't achieve the conditions from being displayed
|
||||
virtual void setFilters(irr::u32 minCalls, irr::u32 minTimeSum, irr::f32 minTimeAverage, irr::u32 minTimeMax) _IRR_OVERRIDE_;
|
||||
virtual void setFilters(irr::u32 minCalls, irr::u32 minTimeSum, irr::f32 minTimeAverage, irr::u32 minTimeMax) IRR_OVERRIDE;
|
||||
|
||||
virtual IGUIElement* getElementFromPoint(const core::position2d<s32>& point) _IRR_OVERRIDE_
|
||||
virtual IGUIElement* getElementFromPoint(const core::position2d<s32>& point) IRR_OVERRIDE
|
||||
{
|
||||
// This element should never get focus from mouse-clicks
|
||||
return 0;
|
||||
}
|
||||
|
||||
virtual void draw() _IRR_OVERRIDE_;
|
||||
virtual void draw() IRR_OVERRIDE;
|
||||
|
||||
protected:
|
||||
|
||||
|
Reference in New Issue
Block a user