opengl with serial port

hello
i need an opengl function to get data from a serial comport

?..OpenGL is a graphics APIā€¦perhaps if you rephrase the question an answer may pop up?

i am working on an opengl project that draw some graphics according on the key pressed in a keypad.
so i need to get the data from the key pad :slight_smile:

Nadia, perhaps it would be best to ask in another forum since reading from the keypad doesnt really have much to do with OpenGL specifically.

i have found a code to draw the shapes when i press any key.
but i want a function to keep each shape in the screen what can i use?
and how can i outputting words from a file into the opengl window?