Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
OpenGLでこのような形状を描くにはどうすればよいですか?
つまり、OpenGL でポリゴンを描画する方法を知っています。アウトラインを黒に、塗りつぶしの色を (たとえば) 黄色にする方法を知りたいですか?
5 つの頂点があります。それらで を描き、GL_POLYGON次に を描きGL_LINE_LOOPます。
GL_POLYGON
GL_LINE_LOOP
GL_POLYGON凸多角形に対してのみ有効であることに注意してください。