관리자   |   포스트   |    로그아웃

아이튜브(itubes.co.kr)'s 반짝정보

아이튜브
아이튜브는 여성, 아동, 교육, 휴대폰 관련해 품질이 좋거나 가격이 저렴한 상품을 소개합니다. 아이튜브스 블로그에서 추천하는 제품들은 시간이 지나면 할인혜택이 종료되고 품절되는 경우가 많습니다. 발빠르게 혜택을 얻으시기 바랍니다.
ITUBE 아동, 육아정보

http://itubes.co.kr/rss
2. polygon
Category : Open GL/study Date : 2010/03/30 14:33

GL_POINTS

 

사용자 삽입 이미지

GL_LINE_STRIP

 

사용자 삽입 이미지

GL_LINE_LOOP

 

 

사용자 삽입 이미지

GL_LINES

 

사용자 삽입 이미지

GL_TRIANGLES

 

사용자 삽입 이미지

GL_TRIANGLE_STRIP

Draws a series of triangles (three-sided polygons) using vertices v0, v1, v2, then v2, v1, v3 (note the order), then v2, v3, v4, and so on. The ordering is to ensure that the triangles are all drawn with the same orientation so that the strip can correctly form part of a surface.

사용자 삽입 이미지

GL_TRIANGLE_FAN

Same as GL_TRIANGLE_STRIP, except that the vertices are drawn v0, v1, v2, then v0, v2, v3, then v0, v3, v4, and so on.

사용자 삽입 이미지



-------------------------------------------------------------------------------------------



// Translates 4 units into the screen.
gl.glTranslatef(0, 0, -4); // OpenGL docs


If you run the application now the screen is still black. Why? Because OpenGL ES render from where the current position is, that by default is at point: 0, 0, 0 the same position that the view port is located. And OpenGL ES don’t render the things that are too close to the view port. The solution to this is to move the draw position a few steps into the screen before rendering the square:

-----------------------------------------------------------------------------------------

Run the application again and you will see that the square is drawn but quickly moves further and further into the screen. OpenGL ES doesn’t reset the drawing point between the frames that you will have to do yourself:

// Replace the current matrix with the identity matrix
gl.glLoadIdentity(); // OpenGL docs



엮인글 쓰기 0 | 덧글 쓰기 0 | 목록 열기 상위로
http://itubes.co.kr/trackback/680
Today 182 : Yesterday 306 : Total 416927 / Subscribe to RSS / Guest Book COPYRIGHT(C) 2008.01.07 아이튜브스(itubes.co.kr) ALL RIGHT RESERVED.
최근 올라온 글
전체 (507)
생활 (58)
이벤트 (317)
휴대폰 (49)
IT 제품 (12)
이슈 (3)
주식투자 (7)
소프트웨어 (15)
트윗 (25)
안드로이드 (8)
Open GL (12)
study (0)
program (0)
Box2D (1)
Http (0)
Notification (0)
JavaModeling (0)
Inten (0)
Bada (0)
ITUBE ENTERTAINMENT

블로그 최근 덧글
관리자만 볼 수 있는 댓글...
 2011 – 비밀방문자
dsdfsf
 2011 – Test
19