Game Development Community

Load a internal GBitmap into a TextureHandle

by Nathan Bowhay - ESAL · in Torque Game Engine · 12/18/2006 (6:27 pm) · 0 replies

I have made a Gbitmap internally and would like to render it on the screen. In order to do so I have to use dglDrawBitmap(texture, offset, GFlip_Y); and in order to use this function I need a TextureObject. I have looked in several places and have a TextureHandle.

How do I go about loading my internal Gbitmap into my TextureHandle? I tried myTexture.refresh(&myBitmap); but this doesn't refresh it. TextureHandle seems to only like outside files.

Any help would be great.

Thank you in advance!