LibTrace

Programming - The Texture class

The "Texture" class is the base class for all textures. Each texture has a "*master" and a "*slave" which are pointers to other textures. These are to allow Textures to mixed and merged together easily. Anything in the master texture overwrites anything that this texture sets, and anything we set will overwrite what the slave texture sets.
Surface Texture::get_surface(Vector pos)
Surface Texture::get_surface_(Vector pos)



Surface Texture::get_surface(Vector pos)
This function will find the exact surface properties at the point "pos". The master and slave textures have been accounted for and any unset values have been set to their defaults. Mainly used internally.
Surface Texture::get_surface_(Vector pos)
This function will find the exact surface properties at the point "pos". The master and slave textures have been accounted for but any unset values have been left in case any further manipulation is required. Mainly used internally.