Hi some problems whit datatypes and animation, please have a look at my code.
The problem is that I'm only able to view the first frame, I have not found any examples in the SDK, and not on amigawiki page. I have tried to google but, these days google mostly displays sponsored ads, and other nonsense.
https://github.com/khval/AmosKittens/b ... /OS/AmigaOS/animation.cppIt looks to me that "ADTM_LOADNEWFORMATFRAME" does not work,
I have better souccess whit "ADTM_LOADFRAME", but even so can't get frame above frame "0"
alf_TimeStamp what is also lacking is description of scale of time in TimeStamp is it in micro seconds, seconds, milliseconds, it does not say in the header file nor in the autodocs for animation datatype.
Also frame.alf_Duration always returns 0.
While should need to explain the code…
There are 3 different attempts etch in their own function.
try_frame()
this function try’s to set frame number and then try get bitmap from the frame, using SetDTAttrs() and
SetDTAttrs(),
new_frame()
This tries to get frame by using “struct adtNewFormatFrame”, and setting the TimeStamp and use DoDTMethodA().
old_frame()
This tries to get frame by using “struct adtFrame”, and setting the TimeStamp and use DoDTMethodA(), to retrieve that frame.
Edited by LiveForIt on 2019/11/16 9:24:35