Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Marmalade SDK: Exception: Multiply Overflow

I was performing some Transformations (scaling) on 2D sprites like this:
CIwMat2D matrix;
rot.Scale(IW_FIXED(2));
When I ran the app I received the following exception:
IwAssert failure (GEOM, 350). Message: Multiply overflow
The avoid this exception, you must set your Matrix to the Identity matrix before applying transformations on it like this:
CIwMat2D matrix;
matrix.SetIdentity();
rot.Scale(IW_FIXED(2));


This post first appeared on Learn Android, please read the originial post: here

Share the post

Marmalade SDK: Exception: Multiply Overflow

×

Subscribe to Learn Android

Get updates delivered right to your inbox!

Thank you for your subscription

×