Created
December 6, 2011 01:47
-
-
Save dalinaum/1436319 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma version(1) | |
#pragma rs java_package_name(jp.flatlib.ap02) | |
#include "rs_graphics.rsh" | |
int root() | |
{ | |
// 배경 지우기 | |
rsgClearColor( 1.0f, 0.5f, 0.0f, 0.0f ); | |
// 채워진 사각형 그리기 | |
rsgDrawRect( 100.0f, 200.0f, 150.0f, 250.0f, 0.0f ); | |
// 문자열 그리기 | |
rsgFontColor( 1.0f, 1.0f, 1.0f, 1.0f ); | |
rsgDrawText( "RenderScript test", 50.0f, 50.0f ); | |
return 33; // 30fps | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment