![]() |
|
|||||||
|
|
Thread Tools | Search this Thread | Rate Thread |
|
#1
|
|||
|
|||
Problem with allowing the user to move the object left, right, up, downHi,
I have a box on screen which uses keyboard input to allow the user to move the object left,right, up, down. What i want to know it, once the user takes the box out of the window, how do i get it to reappear? eg, user moves the box to the left, off the screen and so repears on the right hand side, etc. also, how do you apply a background image to your window instead of just a plain colour? Thanks! |
|||
|
#2
|
||||
|
||||
Re: Problem with allowing the user to move the object left, right, up, downQuote:
It depends on your intention and usage of the box. You could make the box move in 3D coordinate space bounded by the viewport, or you could simply bind a key event to "recenter" the box. There are likely 10,000 other choices. Coming "back" onto the other side is a simple math problem. Quote:
glBitmap? glBindTexture? MxB |
Recent GIDBlog
Toyota - 2009 May Promotion by Nihal
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Simple computer related questions | Switch | Computer Hardware Forum | 7 | 21-Feb-2009 12:11 |
| A few questions for someone in the programming industry. | WAEvans | Miscellaneous Programming Forum | 0 | 08-Oct-2006 10:19 |
| Some simple questions | jac | C++ Forum | 4 | 12-Sep-2006 07:37 |
| Simple questions? | Netizen Dave | Apache Web Server Forum | 3 | 17-Mar-2004 05:45 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The