LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 09-06-2001, 08:24 AM   #1
Jeffrey
Member
 
Registered: Feb 2001
Location: MI
Posts: 67

Rep: Reputation: 15
Red face 2d/3d rendering


how should i go about rendering graphics? i get just about everything in programming but how to go about rendering graphics!!! wtf should i do? write a sub program to draw certain types of objects on the screen? like write a subprogram and do something like:

Render object.ball (where render is a script to load a graphic and put it where object.ball.ypos and object.ball.xpos is or something?!?!!?)

oh well, i suck at programming. itd be cool to at least make a small sidescroller on turbo-pascal though.

(or actually finish that rpg)

 
Old 09-06-2001, 11:44 PM   #2
isajera
Senior Member
 
Registered: Jun 2001
Posts: 1,635

Rep: Reputation: 45
well.. if you first learned graphics programming in turbo pascal (like i did), then programming under linux is going to be a bit of a nasty shock. it's not the easiest - what you probably want to do is download a few example programs for Xlib, and work from there. another useful package to learn, and much easier to work with, would be opengl. the best thing to do tho, is just to look around the source code of some programs and learn from them.
 
Old 09-20-2001, 08:26 AM   #3
Jeffrey
Member
 
Registered: Feb 2001
Location: MI
Posts: 67

Original Poster
Rep: Reputation: 15
opengl is a library for compiling programs with isnt it?
where can i find something like that for c?
 
Old 09-20-2001, 07:37 PM   #4
isajera
Senior Member
 
Registered: Jun 2001
Posts: 1,635

Rep: Reputation: 45
open gl is a library package for c - like <stdio.h> or <system/types.h> - it's usually <gl/gl.h> or something like that. i haven't used it in a few months and can't remember right off the top of my head.
you might want to find a book on open gl - there are two books that are considered the defacto bibles for gl - they're commonly referred to as the green book and the red book. both by some guy named mark or mike k-something. kilgard i think. again, can't remember off the top of my head. they're both good, but the green one is specifically for gl and X-windows.
 
  


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
3D rendering software logosys Linux - Software 5 07-28-2005 04:46 PM
Hardware Rendering xianzai Programming 2 01-08-2004 12:58 PM
Font rendering (again) fasta Slackware 5 11-12-2003 11:10 AM
Direct Rendering 74039186 Linux - Hardware 8 10-21-2003 02:44 PM
rendering of LinuxQ BigNate Linux - Software 10 06-16-2003 02:08 AM

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

All times are GMT -5. The time now is 06:06 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