AGS Pointers for Dummies: Difference between revisions

Jump to navigation Jump to search
No edit summary
Line 49: Line 49:


==Comparing Pointers==
==Comparing Pointers==
We've seen how to assign values to pointers, and how to test whether or not they are null, so let's take a look at comparing them to other pointers of the same type:
We've seen how to assign values to pointers, and how to test whether or not they are null, so let's take a look at comparing them to other pointers and variables of the same type:


   GUI *GUIUnderMouse = GUI.GetAtScreenXY(mouse.x, mouse.y);
   GUI *GUIUnderMouse = GUI.GetAtScreenXY(mouse.x, mouse.y);
Anonymous user

Navigation menu