Adress of an array in record?
From: Michael Lundqvist (vinterbacken3_at_telia.com)
Date: 11/20/04
- Next message: Rudy Velthuis: "Re: Adress of an array in record?"
- Previous message: Rob Kennedy: "Re: Delphi, .NET and Mono?"
- Next in thread: Rudy Velthuis: "Re: Adress of an array in record?"
- Reply: Rudy Velthuis: "Re: Adress of an array in record?"
- Reply: David Reeve: "Re: Adress of an array in record?"
- Reply: Michael Lundqvist: "Re: Adress of an array in record?"
- Reply: Michael Lundqvist: "Re: Adress of an array in record?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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?
- Next message: Rudy Velthuis: "Re: Adress of an array in record?"
- Previous message: Rob Kennedy: "Re: Delphi, .NET and Mono?"
- Next in thread: Rudy Velthuis: "Re: Adress of an array in record?"
- Reply: Rudy Velthuis: "Re: Adress of an array in record?"
- Reply: David Reeve: "Re: Adress of an array in record?"
- Reply: Michael Lundqvist: "Re: Adress of an array in record?"
- Reply: Michael Lundqvist: "Re: Adress of an array in record?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|