openGL heart

Hi all,
can anybody tell me how can i draw a heart in openGL???

and i have another question
can i take input from users in openGL not from cin statment ???

We have a beginners’ forum for questions like this. Please post your question there.



Figure out what vertex positions you need on paper and put them in an array. Then render the array using line strips. Basically you’re playing connect the dots.


Get an OpenGL Volume Renderer which accepts DICOM images as input, and a 4-D CT heart dataset.

It would look something like this:

(Of course, this may be overkill for your purposes.) :smiley: