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

$ 14.99

4.7
(620)
In stock
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?

An introduction on OpenGL with 2D Graphics - OpenGL Tutorial

Drawing Antialiased Lines with OpenGL, by Mapbox

LearnOpenGL - Instancing

c++ - Is there a better way to do this? - Stack Overflow

Connecting The Dots, Basic Rendering in OpenGL

Interactive Techniques in Three-dimensional Scenes (Part 1): Moving 3D Objects with the Mouse using OpenGL 2.1 - CodeProject

Shapes (SFML / Learn / 2.0 Tutorials)

OpenGL Programming/GLStart/Tut3 - Wikibooks, open books for an open world

QPainter Class

Describing Points, Lines, and Polygons, OpenGL Programming Guide: State Management and Drawing Geometric Objects

OpenGL - Drawing polygons