View Single Post
  #3   (View Single Post)  
Old 12th September 2011
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,276
Default

Quote:
Originally Posted by xmorg View Post
my question is, is the argument, wm->wregions[y][x] not a pointer to struct?
No, wm->wregions[y][x] is a region.
  • wm->wregions is the beginning address of an array of region pointers. This array forms one dimension. Given that y is used as the index, one can visualize this array as denoting the vertical axis.
  • Each wm->wregions[y] element (where each is a pointer to another array of region's...) points to another singly-dimensioned array which can be visualized as representing the horizontal axis. Note the symbolism of x.

Last edited by ocicat; 12th September 2011 at 07:28 AM.
Reply With Quote