Jump to content

  • Log In with Google      Sign In   
  • Create Account


Nimajecyrb

Member Since 11 Nov 2010
Offline Last Active Jun 08 2014 08:41 PM

#4777022 game loop problem

Posted by Nimajecyrb on 21 February 2011 - 08:15 AM

Looks to me like you have a list of vec2's and are trying to assign its value to a POINT in this line

POINT P = *I ;

Option A: Write a function that will determine whether the point is on the screen (not hard) and make it accept a vec2
Option B: Declare P as vec2 instead of POINT. ( Which will probably mess up the next line)

Option C: Declare your list as POINTS instead of vec2s.

Option D: Simply declare P as is. Then assign P.x to *i.x and P.y to *i.y


PARTNERS