c++ - how to draw polygons in OpenGL that have an outline drawn with a black pen and another fill color - Stack Overflow
![c++ - how to draw polygons in OpenGL that have an outline drawn with a black pen and another fill color - Stack Overflow](https://i.stack.imgur.com/7bRKU.jpg)
How can I draw a shape like this in OpenGL? I mean, I know how to draw polygons in OpenGL. I want to know how to make the outline black and the fill color ( for example ) yellow?
![](https://i.stack.imgur.com/K2jLO.png)
c# - How correctly draw a polygon with OpenTK - Stack Overflow
![](https://www.informit.com/content/images/chap2_9780321552624/elementLinks/02_08_geometric_primitive.jpg)
Describing Points, Lines, and Polygons, OpenGL Programming Guide: State Management and Drawing Geometric Objects
![](https://i.stack.imgur.com/hxECd.png)
c++ - openGL gl_Polygon mix color issue - Stack Overflow
How to build a simple 3D cube in OpenGL - Quora
![](https://static.miraheze.org/rosettacodewiki/9/9d/SphereAda.png)
Draw a sphere - Rosetta Code
How to build a simple 3D cube in OpenGL - Quora
![](https://i.stack.imgur.com/NNoG0.png)
c++ - Drawing a line in modern OpenGL - Stack Overflow
How to build a simple 3D cube in OpenGL - Quora
![](https://i.stack.imgur.com/fPeRF.png)
c++ - Drawing tessallated LineLoops in OpenGL/GLSL - Stack Overflow
![](https://jonlennartaasenden.files.wordpress.com/2020/11/image-2.png)
firemonkey Jon L. Aasenden
![](https://timallanwheeler.com/blog/wp-content/uploads/2023/11/polygon_collision_win.gif)
timw – Tim Wheeler
How to build a simple 3D cube in OpenGL - Quora
![](https://i.stack.imgur.com/PAIVN.png)
c++ - Black lines between 2d textures - Stack Overflow
symptote
![](https://doksi.net/_shared/generated/doksik/img/180/78/378.webp)
OpenGL Superbible