Adress of an array in record?

From: Michael Lundqvist (vinterbacken3_at_telia.com)
Date: 11/20/04


Date: Fri, 19 Nov 2004 23:41:02 GMT

Hi,
I have a record where I define an array.

type
 TKnot=record
  Ucount:GLint;
  Vcount:GLint;
  KnotArray:Array of glFloat;
  KnotAdr:Pointer;
end;

Now I want the adress of the array. The adress is to be passed into...

gluNurbsSurface(wcNurb.Nurb,
          wcNurb.Knot.Ucount,@Knots , // No. of knots and knot array u
direction
          wcNurb.Knot.Vcount,@Knots, // No. of knots and knot array v
direction
          wcNurb.CtrlPoint.DistUDir, // Distance between control points
in u dir.
          wcNurb.CtrlPoint.DistVDir, // Distance between control points
in v dir.
          @CP, // adress of Control points
          wcNurb.UOrder, wcNurb.VOrder, // u and v order of surface
          wcNurb.Suface);

As you can see @Knots should be replaced with the adress of "KnotArray" in
the record.

I have tryed @wcNurb.Knot.KnotArray but it does not work.
@(wcNurb.Knot.KnotArray) does not work.

How can I do this?



Relevant Pages