c++ - how to draw polygons in OpenGL that have an outline drawn

Description

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?

LearnOpenGL - Geometry Shader

ofBook - Graphics

OpenGL Programming Guide Second Edition - Niksula

OpenGL Cylinder, Prism & Pipe

How to draw a polygon in C++ such that the lines do not intersect? - Stack Overflow

An introduction on OpenGL with 2D Graphics - OpenGL Tutorial

Tutorial 33: Polygon Modes, Colors and Blending

C program to color the different figures drawn on the console using OpenGL - GeeksforGeeks

Generating Outlines in OpenGL - CodeProject

OpenGL Sphere

$ 9.50USD
Score 4.8(611)
In stock
Continue to book