From daf31cc691d50fcdd493bb8f9e75d7f6b1f7871a Mon Sep 17 00:00:00 2001 From: David Rose Date: Fri, 22 Feb 2008 20:36:40 +0000 Subject: [PATCH] compile on osx --- panda/src/display/drawableRegion.I | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/panda/src/display/drawableRegion.I b/panda/src/display/drawableRegion.I index f4c3d92436..7c28fcba42 100644 --- a/panda/src/display/drawableRegion.I +++ b/panda/src/display/drawableRegion.I @@ -163,9 +163,9 @@ get_clear_stencil_active() const { // Description: Sets the clear-active flag for any bitplane. //////////////////////////////////////////////////////////////////// INLINE void DrawableRegion:: -set_clear_active(int id, bool clear_active) { - nassertv((id >= 0)&&(id < RTP_COUNT)); - _clear_active[id] = clear_active; +set_clear_active(int n, bool clear_active) { + nassertv((n >= 0)&&(n < RTP_COUNT)); + _clear_active[n] = clear_active; } //////////////////////////////////////////////////////////////////// @@ -174,9 +174,9 @@ set_clear_active(int id, bool clear_active) { // Description: Gets the clear-active flag for any bitplane. //////////////////////////////////////////////////////////////////// INLINE bool DrawableRegion:: -get_clear_active(int id) const { - nassertr((id >= 0)&&(id < RTP_COUNT), false); - return _clear_active[id]; +get_clear_active(int n) const { + nassertr((n >= 0)&&(n < RTP_COUNT), false); + return _clear_active[n]; } //////////////////////////////////////////////////////////////////// @@ -268,9 +268,9 @@ get_clear_stencil() const { // Description: Sets the clear value for any bitplane. //////////////////////////////////////////////////////////////////// INLINE void DrawableRegion:: -set_clear_value(int id, const Colorf &color) { - nassertv((id >= 0) && (id < RTP_COUNT)); - _clear_value[id] = color; +set_clear_value(int n, const Colorf &color) { + nassertv((n >= 0) && (n < RTP_COUNT)); + _clear_value[n] = color; } //////////////////////////////////////////////////////////////////// @@ -279,10 +279,10 @@ set_clear_value(int id, const Colorf &color) { // Description: Returns the clear value for any bitplane. //////////////////////////////////////////////////////////////////// INLINE const Colorf &DrawableRegion:: -get_clear_value(int id) const { +get_clear_value(int n) const { static Colorf blank(0.5,0.5,0.5,0.0); - nassertr((id >= 0) && (id < RTP_COUNT), blank); - return _clear_value[id]; + nassertr((n >= 0) && (n < RTP_COUNT), blank); + return _clear_value[n]; } ////////////////////////////////////////////////////////////////////