expression two dimensional bool array

Hello, I’m realy newbie at openGL.

So sorry if it is so easy to you, and for my poor english

I wrote Game of Life in C and Cuda, now i want to represent some array in openGL.
Can someone show me example how to do it?

For example square bool array example[10][10];
And i want draw white square 5px x 5px when it is true in cell and black square or nothing where it is false in cell

Is it possible that this drawing will be changing when values in array change?

Please i realy need your help

it should looks like: <- like first array on left