More complicated shape

I’m trying to create a somewhat more complicated shape in OpenGL, but I’m not really sure how to go about doing it. Basically, it’s a triangular prism with a circular hole down the center. I’ve looked through all the built-in glut shapes, but I’m not sure what to use. Any advice would be greatly appreciated!

glut don’t manage all possible shapes, is also very outdated.

In this case you want to create a boolean.

If you want to proceed with the procedural approach you must compute the vertexes and the indexes (normal and uvmap) by yourself using your maths skill.
Otherwise download blender, model you object that you like and save it as .obj, then parse the obj file and load the model.