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/5l8Ez.jpg)
OpenGL get the outline of multiple overlapping objects - Game Development Stack Exchange
![](https://i.stack.imgur.com/4l0tS.png)
c++ - Vertex not read in opengl - Stack Overflow
![](https://i.stack.imgur.com/e0dzp.png)
c++ - How to create outline - Stack Overflow
![](https://i.stack.imgur.com/Ttcio.jpg)
c++ - OpenGL: color value at the edge of an object - Stack Overflow
![](https://i.stack.imgur.com/M8Jwv.gif)
c++ - Drawing a colored grid with OpenGL? - Stack Overflow
Solved Write C++ program to draw the following shape using
![](https://open.gl/media/img/c2_dc2.png)
OpenGL - Drawing polygons
![](https://static.miraheze.org/rosettacodewiki/9/9d/SphereAda.png)
Draw a sphere - Rosetta Code
Graphics Programming With Perl, PDF, Rgb Color Model
![](https://i.stack.imgur.com/BLMSJ.png)
c++ - Concave GL_POLYGON doesn't color in? - Stack Overflow
![](https://timallanwheeler.com/blog/wp-content/uploads/2023/08/image-2.png)
timw – Tim Wheeler
![](https://root.cern.ch/root/htmldoc/guides/users-guide/pictures/0300002A.png)
ROOTUsersGuide
How to build a simple 3D cube in OpenGL - Quora
How to build a simple 3D cube in OpenGL - Quora
![](https://www3.ntu.edu.sg/home/ehchua/programming/opengl/images/Output_OGL01Shape3D.png)
3D Graphics with OpenGL by Examples