GIDForums  

Go Back   GIDForums > Computer Programming Forums > OpenGL Programming
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 28-Nov-2008, 07:23
vbnet2005 vbnet2005 is offline
New Member
 
Join Date: Dec 2006
Posts: 5
vbnet2005 is on a distinguished road

Problem with allowing the user to move the object left, right, up, down


Hi,

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  
Old 21-Jan-2009, 07:24
Mexican Bob's Avatar
Mexican Bob Mexican Bob is offline
Member
 
Join Date: Mar 2008
Location: Chicxulub, Yucatán
Posts: 226
Mexican Bob is a jewel in the roughMexican Bob is a jewel in the roughMexican Bob is a jewel in the rough

Re: Problem with allowing the user to move the object left, right, up, down


Quote:
Originally Posted by vbnet2005
Hi,

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?

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:
Originally Posted by vbnet2005
also, how do you apply a background image to your window instead of just a plain colour?

glBitmap?
glBindTexture?


MxB
 
 

Recent GIDBlogToyota - 2009 May Promotion by Nihal

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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

All times are GMT -6. The time now is 17:37.


vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.