Wednesday, April 1, 2015

Android 4.1에서 RenderScript 변경점

Android-16에서 변경점:
구버전:
1. RSSurfaceView는 GLSurfaceView와 유사한 동작을 하며 GLRenderer를 set한다.
2. RenderScriptGL이라는 객체를 사용하며, GLSL shader program을 지원한다.
3. 2번과 연동되어 rsg_graphics.rsh를 지원하며 void main()대신에 int main()을 사용한다.

신버전:
1. RSSurfaceView, RenderScriptGL을 사용하지 않는다.
2. 따라서 GLSL을 사용하지 못하고 독자적으로 .rs에서 내장함수를 사용한다.
3. rsg_graphics.rsh를 사용할수 없다. int main()을 RenderScriptGL을 사용하지 않고는 call할 방법이 없다.

No comments:

Post a Comment