Results 1 to 2 of 2

Thread: Rectangle

  1. #1
    Junior Member Newbie
    Join Date
    Sep 2009
    Posts
    1

    Rectangle

    Hi everybody!
    I'm just a begginer in OpenGL. I have a task.
    Present 4 rectangles of a black color. What I need is to choose
    with a keys up/down/left/right the rectangle(the sides of the rectangle have to be highlighted) and to mark it with a white color.
    Please, give me an idea how to do it!
    Thanks a lot !

  2. #2
    Senior Member Regular Contributor
    Join Date
    Dec 2008
    Location
    USA
    Posts
    134

    Re: Rectangle

    It doesn't seem like you have much experience with OpenGL, so take a look at the Getting Started page.

    You need some library, like GLUT, SDL, FreeGLUT, GLFW to create a window and recieve events. When the arrow keys get pressed, you'll be notified and can take the appropriate action. Consult the documentation for the library you choose.

Similar Threads

  1. Several Rectangle or One rectangle with cuts
    By Mickey PT in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 08-03-2011, 04:39 AM
  2. Empy Rectangle
    By SteeleR in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 10-27-2006, 01:31 PM
  3. TEXTURE RECTANGLE
    By Frozen_Elemental in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 10-13-2002, 03:04 AM
  4. clipping rectangle
    By weedus in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 09-30-2002, 08:09 AM
  5. Rectangle in 3D
    By in forum OpenGL: Basic Coding
    Replies: 13
    Last Post: 02-07-2002, 01:40 AM

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