Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: glRect()

  1. #1
    Junior Member Newbie
    Join Date
    Apr 2001
    Location
    Riverside, CA, USA
    Posts
    18

    glRect()

    how can i create a rectangle using glRect() in the 3d image? that is i wanted to draw a rectangle on the floor inside 3d house.

    i try glRect( 30, 0, 0, 35, 0, 0 );

    prameters are x1, y1, z1, x2, y2, z2;

  2. #2
    Intern Newbie
    Join Date
    Mar 2001
    Location
    UK
    Posts
    46

    Re: glRect()

    use

    glBegin(GL_QUADS)

    vertex....

    glEnd();

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •