IonicWind Software

Aurora Compiler => General Discussion => Topic started by: LarryMc on July 30, 2007, 04:44:26 AM

Title: What are they?
Post by: LarryMc on July 30, 2007, 04:44:26 AM
Are these METHODS or class MEMBERS?

declare *VLine(int y1,int y2,int x,unsigned int clr);
declare *HLine(int x1,int x2,int y,unsigned int clr);
declare *GetPixel(int x,int y),unsigned int;
declare *PutAlphaPixel(int x,int y,unsigned int clr,int alpha);
declare *PutPixel(int x,int y,unsigned int clr);
declare *PutPixelFast(int x,int y,unsigned int clr);


Larry
Title: Re: What are they?
Post by: Ionic Wind Support Team on July 30, 2007, 04:49:04 AM
They are function (method) pointers.  So in essance they are both.

If you have the source code see C2DSurface::FunctionMapper()  for how they are set based on the BPP of the screen.

Paul.
Title: Re: What are they?
Post by: LarryMc on July 30, 2007, 04:59:49 AM
Just wondering how to properly document them.

Should they appear like class members only on the class overview page or

Should they have a page pf their own like methods?

Larry
Title: Re: What are they?
Post by: LarryMc on July 30, 2007, 05:28:11 AM
Looks to me like they should have a page of their own the way methods do.

Larry
Title: Re: What are they?
Post by: Ionic Wind Support Team on July 30, 2007, 06:23:06 AM
Yes they are methods, used through pointers