Simple 2D OpenGL code

Hi, I have a 2D FDTD code for eletromagnetic simulations on CUDA. I’m thinking in a graph output via OpenGL and I read some articles, like dr Dobbs tutorial and Nvidia OpenGL + CUDA at the programming guide. But I would like just to have a graphical matrix with squares with diferent colors. I would appreciate if someone could give me a hint or some similar example of it.


Maicon Faria