The Artima Developer Community
Sponsored Link

Agile Buzz Forum
OpenGL 3.0 "future proof" APIs, the first cut

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
James Robertson

Posts: 29924
Nickname: jarober61
Registered: Jun, 2003

David Buck, Smalltalker at large
OpenGL 3.0 "future proof" APIs, the first cut Posted: Aug 24, 2008 7:29 PM
Reply to this message Reply

This post originated from an RSS feed registered with Agile Buzz by James Robertson.
Original Post: OpenGL 3.0 "future proof" APIs, the first cut
Feed Title: Michael Lucas-Smith
Feed URL: http://www.michaellucassmith.com/site.atom
Feed Description: Smalltalk and my misinterpretations of life
Latest Agile Buzz Posts
Latest Agile Buzz Posts by James Robertson
Latest Posts From Michael Lucas-Smith

Advertisement

I've just finished making three lessons for the new OpenGL 3.0 branch. Here are some key features of this API set - first of all, all of the APIs are oriented around a non "fixed-function" rendering pipeline. What that means is, when you run it, you have true control over all the steps the graphics card takes when you render.

Knowing how to do this when you're swamped with all the old APIs is pretty hard, so by limiting ourselves to only the non-deprecated functions, we get a leg up on others trying to learn.

As a result, the first three lessons are very basic - they deal with creating geometry, uploading it to the graphics card and then rendering it out. The second lesson adds colour and the third lesson shows how to make interleaved data structures.

We have to learn to crawl before we can walk, which is painful if you already knew how to run but someone takes your legs away. Next time I play with this stuff I'll figure out how to add a projection matrix in using a uniform shader variable - and how to do texture mapping again with a fragment shader. Baby steps.

For the lessons, I'm building them progressively - that means I'll comment the new details in each lesson, expecting that you've read the previous lesson - at least until I start changing around to completely new lesson forms.

There are two reified classes in the OpenGL package now too - Program and Buffer. The Buffer is all about buffer objects in OpenGL and the Program class wraps up all the shader and program APIs that you commonly want to use. This made the lessons much easier to write and I hope easier to follow too.

Read: OpenGL 3.0 "future proof" APIs, the first cut

Topic: Smalltalk in Frankfurt, Germany Previous Topic   Next Topic Topic: DSLs: to buy, to build or to sell?

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use