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 1 of 1

Thread: expression two dimensional bool array

  1. #1
    Newbie Newbie
    Join Date
    Jun 2013
    Posts
    1

    Lightbulb 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: cmuems.com/2012/c/files/2012/10/ConwaysGameOfLife_states.png <- like first array on left
    Last edited by matimod; 06-03-2013 at 02:01 PM.

Posting Permissions

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