|
|
|
|
아이튜브 |
|
아이튜브는 여성, 아동, 교육, 휴대폰 관련해 품질이 좋거나 가격이 저렴한 상품을 소개합니다.
아이튜브스 블로그에서 추천하는 제품들은 시간이 지나면 할인혜택이 종료되고 품절되는 경우가 많습니다.
발빠르게 혜택을 얻으시기 바랍니다.
| |
|
|
|
ITUBE 아동, 육아정보
http://itubes.co.kr/rss
| |
| | |
|
1. Orthographic , Perspective
|
| Category : Open GL/study |
Date : 2010/03/30 07:28 |
|
Orthographic:
Perspective:
gl.glMatrixMode(GL10.GL_PROJECTION); float size = .01f * (float) Math.tan(Math.toRadians(45.0) / 2); float ratio = _width / _height; // perspective: gl.glFrustumf(-size, size, -size / ratio, size / ratio, 0.01f, 100.0f); // orthographic: //gl.glOrthof(-1, 1, -1 / ratio, 1 / ratio, 0.01f, 100.0f);//we set our viewport to make a orthographic view//for the border in the order of left, right, bottom, top, zNear, zFar.
//we set up our viewport gl.glViewport(0, 0, (int) _width, (int) _height); //------------------------------------------------------------ gl.glMatrixMode(GL10.GL_MODELVIEW); gl.glEnable(GL10.GL_DEPTH_TEST);// If we don’t enable that, we will see the last drawn object always in front of all other objects // define the color we want to be displayed as the "clipping wall" gl.glClearColor(0f, 0f, 0f, 1.0f); // enable the differentiation of which side may be visible gl.glEnable(GL10.GL_CULL_FACE); // which is the front? the one which is drawn counter clockwise gl.glFrontFace(GL10.GL_CCW); // we set up our model environment
| |
| |
|
|
 |
http://itubes.co.kr/trackback/678 |
| | |
|
| | |
| |
|
|
|
최근 올라온 글 |
|
|
| |
|
|
|
ITUBE ENTERTAINMENT
|
| |
블로그 최근 덧글 |
|
|
| |
|
|
|
|