Skip to main content

OpenGL Library (glLib*)

A library to let the paranoid do cool stuff too...


Ian Mallett
(geometrian)
I for one got sick of having to figure out how to do everything in PyOpenGL. Don't get me wrong--PyOpenGL is a brilliant module, and usually, it wasn't so hard, but it could have been made easier. Forgot how to turn on texturing, or lighting? Google fifteen minutes and add the one line of code you need. Can't figure out why your polygons don't show up? Start over. Can't remember how to make a quadric sphere? Dredge up some decades old code to search for how.

I decided to change all that and actually make some PyOpenGL basecode for a change, instead of redoing it every time.

This code is the result.

Additionally, this code will let you do things you didn't know how to do before. Do you want to load a heightmap? Do you want to have a nice smooth camera ride? Have you ever done mipmapping? Do you want shadows? Answer: 'Yes'.

So, down to it:
This code should make doing PyOpenGL much easier for most of us. You may use this code anywhere you like, BUT please give my credit for your nice game's backend, and if you explicitly take credit for it, I may have to kill you ;-)

Please note, this is a semi-beta release. Everything works (unless you have an old computer which doesn't like shadowing), but the code is not documented nor particularly stable (it is easy to crash it by doing something bad, and you'll have no idea what happened). That said, the code is designed to be easy to read.

Have fun!

Changes

Links

Home Page
http://geometrian.com/programming/index.php

Releases

OpenGL Library (glLib*) 1.3 — 14 Sep, 2008

OpenGL Library (glLib*) 1.4 — 16 Sep, 2008

Pygame.org account Comments

  • coleman 2012-04-07 07:29:33

    Agree

    alianaalisa 2020-07-25 07:38:23.242766

    Peak Residence by Tuan Sing & Rich Capital . Hotline 61009266. Get Discounts, Direct Developer Price, Brochure, Floor Plan, Price List & More. (Former Peak Court) Peak Residence Condo

    alianaalisa 2020-07-22 11:14:14.321267

    Your work here on this blog has been top notch from day 1. You've been continously providing amazing articles for us all to read and I just hope that you keep it going on in the future as well. Cheers! cupons amazon

    alianaalisa 2020-08-06 14:38:34.679848

    789casino ONLINE, legal gambling website, online football betting good value ready to earn money from Get property link Baccarat online 789 casino online service excellent deposit and withdrawal system. That you must be impressed Stable system guarantees the safety of your credit. With various promotions that we have for you to choose from Support team to take care of you to make our games comfortable. 123bet เว็บพนันถูกกฏหมาย
  • Indie Kid 2014-12-20 23:02:54

    This looks like it will be the one thing I can actually work out how to use with 3d graphics, and I will use it with all my 3D stuff. Is that fine with you, as long as I give you credit?

  • alianaalisa 2020-07-18 11:08:32.019749

    I am happy to find this post very useful for me, as it contains lot of information. I always prefer to read the quality content and this thing I found in you post. Thanks for sharing. bitmain antminer T19
  • alianaalisa 2020-07-27 12:17:55.666633

    Thanks for taking the time to discuss this, I feel strongly that love and read more on this topic. If possible, such as gain knowledge, would you mind updating your blog with additional information? It is very useful for me. florence residences
  • filmizukne 2020-07-28 09:45:04.255117

    It’s appropriate time to make some plans for the future and it is time to be happy. I have read this post and if I could I wish to suggest you few interesting things or advice. Perhaps you could write next articles referring to this article. I desire to read even more things about it! corporate giveaways 2016 in pakistan