Hi all and thx in advance.
I am able to load, create and display a IBGLTexture and set the frame size and manually animate it.
However, I would now like to create a sprite (as this is managed in a sprite engine rather than me managing them) but I am unable to get them to work:
TmpText1:= BGLTexture('F:\Google Drive\CODE\MeoGeo2017\media\Ball1[016x032x032].png');
TmpText1.SetFrameSize(32,32);
TmpText1.SetFrame(1);
bSpr:= TBGLSprite.Create(TmpText1,0);
bSpr.Location:=PointF(100.0,100.0);
//bSpr.Texture.SetFrameSize(32,32);
//bSpr.Texture.SetFrame(1);
bSpr.FrameLoopStart:=1;
bSpr.FrameLoopEnd:=16;
If I remove the SetFrameSize and SetFrame (1), I can display the full texture (series of frames). However, as soon as I add these lines, nothing is displayed?
in the ReDraw I have this:
BGLVS.Sprites.OnTimer;
BGLVS.Sprites.OnDraw;
Am I doing something wrong?