For a Program I'm writing in C++, I need some squares in different colors to be drawn in a window and than disappear again. (Or be overdrawn)
I'm using Xcode and I figured the easiest way to go is the Quartz 2D API, which seems to support exactly the graphics functionality I need.
But now I'm lost. How do I link the API in my source code?
All I learned in my lectures is that you can link a header file with something like #include "myHeader.h"
to link the definition of self written classes, or #include <iostream>
to include standard libraries.
I'd really appreciate a way to use this specific API, or better yet, a way to figure out how to link any given API.
EDIT: At this point the code looks still like this:
#include <iostream>
using namespace std;
int main()
{
return 0;
}
And I'm still wondering what line of code comes after the first #include