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: How to create and control table in OpenGL

  1. #1
    Junior Member Newbie
    Join Date
    Nov 2003
    Posts
    15

    How to create and control table in OpenGL

    I will like to create something like a table in OpenGL, then use something like (m,n) or other method to control each cell, like background color and write a number in cell.

    How can I do that?

    Thanks!

  2. #2
    Senior Member OpenGL Pro
    Join Date
    May 2001
    Location
    Kristianstad,Skåne,Sweden
    Posts
    1,651

    Re: How to create and control table in OpenGL

    Have a peek at the documentation on:

    glBegin( GL_QUADS);
    glColor3f( r, g, b);
    glVertex3f( x, y, z);
    glVertex3f( x, y, z);
    glVertex3f( x, y, z);
    glVertex3f( x, y, z);
    glEnd();

    Mikael

Posting Permissions

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