To render a texture from scratch, you must first create the !#$@%~ universe

| 1 Comment | No TrackBacks
Hooo, boy, did I bang my head against a wall today.  I did finally wrangle OpenGL into displaying some textures, some of the time, so I've sort of completed yesterday's goal, but not entirely.  I can render the textures to a quad okay, but I just can't get the faster draw_texture extension to work:


By the way, if you want to help with that, speak up; I'll appreciate the help.  I... well, honestly, for all the time I spent on this today I didn't do that much more than that.  Getting OpenGL into the correct state to display textures was a bit of a hassle.  It all makes sense in retrospect, but if you've forgotten to call one little function (like say, specify which matrix you're modifying) here or there, it's a giant pain in the butt to remember every step you need to take (why would I need to enable 2D Textures?  I'm already telling you to use them).

Also, apparently, be it a feature of OpenGLES, or just the small number of stable libraries for the Android NDK, glu (An openGL utility library) was unavailable to me.  So I had to implement my own version of gluPerspective.  No biggie.  Oh, gluPerspective uses glFrustum and I don't have that either?  Guess I'll have to implement that, too...  Big matrix refresher.

I'm keeping a big list of things for Programmer Potpourri on Friday, so make sure you stay tuned.  To entice you, here's an item that didn't make the cut:  I made a couple of sourdough loaves yesterday, and they are delicious.  I will miss them when they're gone.  I really ought to stop messing willy-nilly with the recipe though, because substituting too much Whole Wheat flour tends to leave it a little dense / uncooked in the middle sometimes.  Oh well.

No TrackBacks

TrackBack URL: http://claytonhughes.com/cgi/mt4/mt-tb.cgi/20

1 Comment

I still have no idea what you're talking about, but your title made me laugh. Also, your sourdough bread sounds delicious!

Leave a comment

About this Entry

This page contains a single entry by Clayton Hughes published on July 5, 2010 10:35 PM.

Short(er) Entry Tonight (Maybe) was the previous entry in this blog.

First Day of Summer is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

Categories

OpenID accepted here Learn more about OpenID
Powered by Movable Type 4.3-en