Re: Help with code for picking

New Message Reply Date view Thread view Subject view Author view

From: c937161++at++student.dtu.dk
Date: 05/04/2000 00:18:27


Hi

On Thu, 4 May 2000, Hugh Fisher wrote:

[picking]

> And when the mouse is clicked I do this:
>
> float cx, cy;
> int nHits;
> pfHit ** hits;
>

Unless you allocate some memory for hits somewhere else in your code, this
might be your problem. You could do like this

   pfHit **hits[MAX_HITS];

Kind regards

--
Hans Palbøl


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Thu May 04 2000 - 00:18:45 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.