GPWiki.org
GPWiki.org
It is currently Sun May 26, 2013 2:21 am

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Vb6/DX8 Loading Textures
PostPosted: Thu Jun 21, 2012 4:23 am 
Hey guys, my first post here... I have a bit of experience with DD7 and since using it, I have slightly worked with DX8 and DX9. Now, from my experience, I have discovered that in order to keep the old graphic cards happy, textures should be loaded with widths/heights in powers of two...

I am trying to make a user-friendly interface for a project that is closer to a game engine than an actual game. In DX9/Vb.Net I accomplished this by loading my graphic file in a Bitmap class, using GDI+ to render the bitmap to a slightly larger bitmap and then loading the texture from memory...

My question is, can this be accomplished in vb6/dx8? Any hints/tips to get the ball rolling for me?

Thanks!


Top
  
 
PostPosted: Mon Oct 15, 2012 10:52 am 
Here you have a module to load in memory textures by two different ways, one is using hash tables and the other two arrays. It is also dynamic, so you can have control about memory.

Image

It loads pngs but it can be extended to other formats.


Top
  
 
PostPosted: Mon Oct 15, 2012 10:54 am 
Rookie

Joined: Mon Oct 15, 2012 10:40 am
Posts: 1
Sorry, here is the link: https://code.google.com/p/parraengine/source/browse/trunk/client/codigo/modGraphicsLoader.bas


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group