Home » , , » Marmalade SDK: Exception: Multiply Overflow

Marmalade SDK: Exception: Multiply Overflow

Written By MR HARI on Selasa, 16 Oktober 2012 | 01.53

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));
Share this article :

0 komentar:

Posting Komentar

 
Support : Your Link | Your Link | Your Link
Copyright © 2013. Android Center - All Rights Reserved
Template Created by Creating Website Published by Mas Template
Proudly powered by Blogger