I have been trying to get my head around the TextureManager and Image functions and can't seem to get them to play nicely Basically, I am trying to create a Minimap that only shows the visited locations, so the texture displayed in the GUI needs to be updated via code.
It looks like I can load a base Texture using:
- Code: Select all
myTex = textureManager.loadTexture ( "minimap.png", "" )
But I can't work out how to create an Image from this Texture so that I can then change through code using something like:
- Code: Select all
myImg:setColourAt ( tVec, BLACK )
I believe it's something to do with creating a new Image (this is the bit I can't seem to get working) and then, possibly:
- Code: Select all
myImg:createEmptyImageLike ( myTex )
Any help would be greatly appreciated
Shando