Which API are you trying to use? Metal? There's a great WWDC on Metal basics that will show you how to render a triangle to the screen if that's all you are trying to do. You can add your particular coordinates to a metal buffer. You can do it without an index buffer for a simple shape like a triangle.
Topic:
Graphics & Games
SubTopic:
General
Tags: