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

By A Mystery Man Writer

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?

OpenGL Sphere

OpenGL 101: Drawing primitives - points, lines and triangles

c++ - Code for n-sided prism in OpenGL - Stack Overflow

Drawing n-pointed star opengl c++ - Stack Overflow

Drawing your own objects - Box2D tutorials - iforce2d

Connecting The Dots, Basic Rendering in OpenGL

LearnOpenGL - Geometry Shader

JOGL Graphical Shapes

c++ - OpenGL: While drawing a polygon, what if the first vertex is outside of the screen space (Triangle fans) - Stack Overflow

©2016-2024, travellemur.com, Inc. or its affiliates