O'Reilly Network: OpenGL Rendering and Drawing | Linux Today

O’Reilly Network: OpenGL Rendering and Drawing

Written By
Web Webster
Web Webster
Jun 24, 2000

“Now that you’ve read the preceding companion piece to this
article, “Preparing to Build a OpenGL Application,” you’re ready to
tackle rendering and drawing. Let’s jump right in to the details of
rendering.”

“The function registered as the Display (and usually Idle)
callback is where control is passed whenever it’s time to draw the
next frame of the display. For our program this is the
cbRenderScene() function, and it’s also where our motion
calculations are done.”

“In more advanced applications, physics calculations may be
executing in another process or be based on the actual amount of
time it took to render the last frame. This is necessary for
objects’ motions to be independent of frame-rate.”

“…OpenGL is the lowest-level, cross-platform, common
hardware accelerated 3D API available. The demo program we’ve
provided here should compile and run with only minor tweaking under
any Unix with OpenGL or a clone installed. It should also work
without much effort in a Windows- or Mac-based development
environment, although we haven’t tried that.


Complete Story

Web Webster

Web Webster

Web Webster has more than 20 years of writing and editorial experience in the tech sector. He’s written and edited news, demand generation, user-focused, and thought leadership content for business software solutions, consumer tech, and Linux Today, he edits and writes for a portfolio of tech industry news and analysis websites including webopedia.com, and DatabaseJournal.com.

Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.