Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Please tell me how to access serialport(RS232) data using OpenGL.
Heard about SDL(Simple DirectMedia Layer),but didn't get how to use SDL and OpenGL to access RS232 data.
There's a typo in your question. There must be - rs232 is a serial protocol, but SDL and OpenGl are libraries for displaying video. The 2 don't mix. This site is useful
Please give us some context for your question----If you describe the overall problem you are trying to solve, then it will help us interpret the details.
Please tell me how to access serialport(RS232) data using OpenGL.
Heard about SDL(Simple DirectMedia Layer),but didn't get how to use SDL and OpenGL to access RS232 data.
Please give us some context for your question----If you describe the overall problem you are trying to solve, then it will help us interpret the details.
Thankyou for the response,
We are building a gamecontroller for car racing.
User gives input through the steering,built using a potentiometer,that data is sent to PC via RS232 cable.
These part is done n working fine.
now,We are developing a racing game in OpenGL, we need to access the data coming through the serial port.
Is there any API in OpenGL to access the serial port data..?
Does SDL will help us..? or Do v have any Library to do so in OpenGL?
Your development environment will include utilities for dealing with a serial port----I assume that it will be in one of the header files.
I am not a progammer, but if you describe your development environment, I am sure someone will know how to access serial devices. But, meanwhile, look thru your header files to see if anything looks relevant.
Data from rs232 lands somewhere. It's your job to find out where it lands, and what addresses it. Install the 'info' pages with your distro, which have a useful page on all C functions. You really need to get to know your system before you go coding for it these days.And don't put serial ports in any new soiftware; they are old, and blow easily. Most new boxes don't even have one.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.