Jump to content
  • Advertisement
  • entries
  • comments
  • views


Sign in to follow this  


Ok, I got about half way through recoding (read "hacking") my engine, and it looks horrid, and ugly, and guess what... it doesn't work now. So, I guess its back to the drawing board AGAIN... I'm starting to think that I'm never going to get it done. But, I now know all of the code required for the code based and I had restarted coding about an hour and a half ago. This is the current layout:

String operation functions

All entirely coded nice and neat with some pretty hefty debugging code. The only TRUE singleton at the moment is DebugOutput. I say true because TexturePool is somewhat of a singleton. I defined both the constructor and destructor as private, and assigned Direct3D as friend. So, my Direct3D class contains the only instance of TexturePool, which the user can access via GetTexturePool(). I'm thinking about changing this though, I'm not sure if I like the idea. So, after a long coding session, I'm back to where I was, my vertexbuffer class. I'm not sure if its going to be templated (since if I templated it, it would be the only class that required you to pass in a Direct3D instance), but I like doing it this way, since then the user doesn't have to specify the size of the vertex and there are no nasty conversions going on.

So, how do you handle your vertexbuffers?
Sign in to follow this  


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

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!