dimalit/dialog-quest

Decide wich to use: frame x/y or horz/vert number of frames

Opened this issue · 0 comments

*.anim files now specify frames_x and frames_y. These parameters are used in 
constructor of Animation class and SetupAnim of OverlayRenderComponent. 
Originally there were frame_w and frame_h. But Proton's SetupAnim only wants 
fames_x and frames_y. Of course, we coukd easily convert by dividing 
tex_w/frame_w, but texture full width is lost after SetupAnim was called at 
least once (see Proton's SurfaceAnim class). Alternative approach - expose 
SetupAnimByFrameSize in OverlayRenderComponent (but don't want to touch Proton 
classes).

Original issue reported on code.google.com by dim2...@gmail.com on 20 Jun 2013 at 3:43