View Single Post
Re: code to get the illumination at any point on the map
Old
  (#46)
Immortal_BLG
Member
 
Status: Offline
Posts: 171
Join Date: Nov 2007
Location: Russian Federation
Default Re: code to get the illumination at any point on the map - 24-03-2012

This function is not recursive, since the compiler is case sensitive, so "IsSoftwareDrawingMode" - the name of the function, "isSoftwareDrawingMode" - is a global constant, which is computed only once (at the first call of the function that contains this variable - "IsSoftwareDrawingMode") and serves as the return value. You can rename the variable "isSoftwareDrawingMode" at will and it will not change anything. Why static? Because of speedup. I have already written above that the result will be calculated only once - it's what we want....
  
Reply With Quote