LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 12-16-2004, 11:50 PM   #1
varunnarang
LQ Newbie
 
Registered: Oct 2004
Location: India
Distribution: RHL 9.0
Posts: 22

Rep: Reputation: 15
POSIX and Graphics programming in C


Can some one help me to know what is POSIX ( | or POSIX standards) also I need some help about the graphics programming in C/C++ in Linux. What header files I need to use to program the graphics. Please help me with an example and some source on internet.
 
Old 12-16-2004, 11:58 PM   #2
sh1ft
Member
 
Registered: Feb 2004
Location: Ottawa, Ontario, Can
Distribution: Slackware, ubuntu
Posts: 391

Rep: Reputation: 32
What kind of graphics programming are you trying to do? I assume OpenGL?

Maybe have a look here:

http://nehe.gamedev.net/

You need to get familiar with GLUT and OpenGL (obviously).
 
Old 12-17-2004, 05:36 AM   #3
varunnarang
LQ Newbie
 
Registered: Oct 2004
Location: India
Distribution: RHL 9.0
Posts: 22

Original Poster
Rep: Reputation: 15
Thanks for the previous answer. But I need to know that if I need to draw a line or a circle or I need to implement some line or circle drawing algorithms, what is the way for that.
Thanks & Regards,
Varun Narang.
 
Old 01-05-2005, 09:27 AM   #4
jnxxxx
LQ Newbie
 
Registered: Oct 2003
Posts: 1

Rep: Reputation: 0
The question is what exactly you wan't to do...?

If you're looking to write basic code to draw lines/circles pixel-by-pixel
this has been done before - if you don't wan't to invent the wheel again.

But basic algorithms can be found in a book (the first bible on the subject)
Donald E. Knuth ... Addison Wesley ... Computer Graphics :Principles and Practice

Hearn,Donald and M. Pauline Baker, Computer Graphics, C version, 2nd Edition, Prentice Hall, Inc. Upper Saddle River, New Jersey, 1997, 652 pages, ISBN 0-13-530924-7.

Some web-links that I googled quickly - could be of use:

Lines:
http://www.cs.unc.edu/~mcmillan/comp...re6/Lines.html
http://www.edepot.com/algorithm.html

Circles:
http://www.cs.unc.edu/~mcmillan/comp...e7/circle.html

Hoping that solved the problem - if not already solved...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
POSIX Thread programming problem... rajsun Programming 0 10-07-2005 11:18 PM
Posix programming environment setup jfitzger68 Programming 5 07-22-2005 01:12 PM
Serial port programming problem (Win32 VS POSIX) chanwing Programming 1 06-29-2005 11:17 AM
c programming compliant with posix ---HELP! v333k Programming 4 02-28-2005 03:08 PM
POSIX thread Programming msriram_linux Programming 4 11-21-2004 03:14 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration