• Advertisement
Sign in to follow this  
  • entries
    63
  • comments
    56
  • views
    44149

Abstracting OpenGL

Sign in to follow this  

160 views

After implementing a transformation from screencoordinates to worldcoordinates (for use with mouse selecting in 3D world), and thereby thoroughly messing up my code's reliance on OpenGL matrices and my own matrix class, I've decided to abstract OpenGL altogether, so I can replace OpenGL's matrix routines with my own.

I did this yesterday, and while all my own commands directly pipe into the OpenGL commands at the moment, I should be able to simply replace functions whenever I need them. So I'll be replacing the matrix functions first of all and see if that works.

Also I've had a few ideas on abstracting vertex/fragment programs, so I might try to implement that this evening, or tomorrow evening.

My GUI system is also starting to be usefull. So I might post some pictures of that soon.

In addition to all of this, I've been contacted by a few people to help up fix their .3ds loaders (after a post I made helping someone else). While my loader now does load some meshes that other loaders I've found on the net don't, I've still got two meshes on my drive that it doesn't load correctly. I'm trying to work those out, and then see if it works. If it does, I'll write a tip/tutorial about it.
Sign in to follow this  


0 Comments


Recommended Comments

There are no comments to display.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Advertisement