Getting a TGLImageFrame from a TImage

BlitzMax Forums/BlitzMax Beginners Area/Getting a TGLImageFrame from a TImage

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Should it be frames[1]?


Nope, it throws an error for trying to go beyond the bounds of the array if I go beyond 0.

Or perhaps you need to cast after your 'frm='?


I tried cutting out casting altogether and just going for the ImageFrame base class.

Local TFrame:TImageFrame
TFrame=Image.frames[0]


TFrame is also Null.

Are you sure that you are in OpenGL and not D3D? :)


Well I'm sure I have SetGraphicsDriver GLMax2DDriver() at the beginning of my code and I'm sure I don't called SetGraphicsDriver ever again, so I'm pretty sure. By not casting to the GL-specific version, and still getting a null TImageFrame, that would appear to indicate that it's another problem. I'm baffled though.