Results 1 to 3 of 3

Thread: Random positions , and Mouse event

  1. #1
    Junior Member Newbie
    Join Date
    Mar 2011
    Posts
    2

    Random positions , and Mouse event

    Hello every one ,

    I'm begginer in OpenGL ,,
    rand() function
    Whats the number should be after the % ..
    should any one give me a small discription of it ,,
    it's syntax ,, and should i use a single one for all objects or one for all ??

    the mouse event whe i want to move the object to the mouse clicking position i know i should translete the mouse coordinate to the monitor coordinate how this will be done ?

    thank u

  2. #2
    Senior Member Regular Contributor
    Join Date
    Nov 2010
    Location
    Brazil, Rio de Janeiro
    Posts
    147

    Re: Random positions , and Mouse event


  3. #3
    Junior Member Newbie
    Join Date
    Mar 2011
    Posts
    2

    Re: Random positions , and Mouse event

    Thanks McLeary that was helpful ,, but if I want to use it to generate random coordinate for an object which numbers i should range it in to keep it in the screen boundries

    thanks

Similar Threads

  1. Regarding mouse event handler,
    By noobprogrammer89 in forum OpenGL: Advanced Coding
    Replies: 3
    Last Post: 11-14-2011, 02:40 AM
  2. Problem on Mouse Event
    By beams in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 10-21-2011, 03:16 PM
  3. mouse event problem
    By m0j1_2010 in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 05-21-2010, 01:32 PM
  4. Mouse positions
    By mdog1234 in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 02-20-2003, 05:52 AM
  5. Mouse event
    By in forum OpenGL: macOS
    Replies: 2
    Last Post: 02-19-2002, 12:07 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean