Taking a course on openGL and am required to write them in C which i havn't used in years. I will pay very well (I will get fg) for help that saves me time learning what I need for the assignment. The assignment is to use openGL to provide a canvas for drawing shapes. The canvas has several modes, each enabling the user to draw and store a different shape by clicking up to three clicked vertices. The shape array is redrawn every time a new shape is stored to the array.
My issue is that my C is rusty and I can't figure out how to store these shapes to an array. So from what I understand I need a few things:
1. write a vertex struct that stores an x and y coordinate
2. Write a shape struct that stores 3 vertices and an int representing the type of shape
3. Allocate an array of shape structs with maxShapes being the maximum index.
Any help with this will be paid VERY VERY well. The more help the more fg. I cannot stress this enough. I am very busy with work this week and can not afford to waste time trying to learn this by trial and error. If you are nice, knowledgeable, and articulate I will likely use you again. PM or post if interested~ I am leaving for work atm and will check this in about 10 hours.