May
30
2012

3D rotate for RenderScript - rsMatrixRotate()

Refer to the RenderScript.rs in the example “Perform transform of Translate and Rotate on RenderScript”, the rsMatrixRotate() function define the rotation.
void rsMatrixRotate(rs_matrix4×4 *m, float rot, float x, float y, float z)

Modify RenderScript.rs of last exercise “Draw circle in Android RenderScript”.
//declare RendorScript Version
#pragma version(1)

//declare package
#pragma rs java_package_name(com.exercise.AndroidRenderScript);

//include graphics library
#include “rs_graphics.rsh”

rs_mesh my_rs_mesh;

float …

Written by admin in: android gps |

No Comments

RSS feed for comments on this post.

Sorry, the comment form is closed at this time.

© 2006-2011 Vietnamese GPS | Digital Mobile Map | www.streetmapmobile.com | www.j2megps.com | www.andgps.com