Lecture #1 ========== This lecture gives a basic introduction to configuring the `Arduino `_ board on Linux, as well as programming and uploading sketches on it. We also study our very first OpenGL example that opens a window when the program is run. The window closes upon pressing the ``ESC`` key. All OpenGL examples dicussed in CS 428 have been inspired by this `source `_. | **Scribe Notes by Ryan Goldstein:** `Source1 <../scribe_notes/lecture1_notes_Ryan_Goldstein.md>`_ `PDF1 <../scribe_notes/lecture1_notes_Ryan_Goldstein.pdf>`_ | **Scribe Notes by Tavel Findlater:** `Source2 <../scribe_notes/lecture1_notes_Tavel_Findlater.docx>`_ `PDF2 <../scribe_notes/lecture1_notes_Tavel_Findlater.pdf>`_ :: #include #include #include void key_callback(GLFWwindow* window,int key,int scancode,int action,int mode) { if(key==GLFW_KEY_ESCAPE && action==GLFW_PRESS) glfwSetWindowShouldClose(window,GL_TRUE); } int main() { glfwInit(); #if __APPLE__ glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT,GL_TRUE); #endif glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR,3); glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR,3); glfwWindowHint(GLFW_OPENGL_PROFILE,GLFW_OPENGL_CORE_PROFILE); glfwWindowHint(GLFW_RESIZABLE,GL_FALSE); GLFWwindow *window=glfwCreateWindow(800,600,"Learn OpenGL",nullptr,nullptr); if(window==nullptr) { std::cout<<"Failed to create GLFW window!"<