View Full Version : How to create and control table in OpenGL
wzhao53
11-27-2003, 04:19 PM
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!
SirKnight
11-27-2003, 04:57 PM
Make a two-dimensional array?
cell_t MyTable[SIZE_X][SIZE_Y];
-SirKnight
[This message has been edited by SirKnight (edited 11-27-2003).]
wzhao53
11-27-2003, 05:16 PM
Thanks, what I want is draw a table on OpenGL.
Originally posted by SirKnight:
Make a two-dimensional array?
cell_t MyTable[SIZE_X][SIZE_Y];
-SirKnight
[This message has been edited by SirKnight (edited 11-27-2003).]
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.