Search This Blog

Tuesday, March 13, 2012

GLSL project in XCode4

To create an shader based OpenGL command line app using XCode4 follow these steps (at least they worked for me):

  1. Create a "Command Line Tool" application 
  2. Add the "OpenGL" and "GLUT" frameworks (click on the project -> target, "Build Phases" tab and add them in the "Link Binary With Libraries" panel)
  3. Write the main to setup GLUT and load/use shaders
  4. Write your shaders
  5. In the Project Setting -> Target -> Build Phases, drag the shader files onto the  "Compile Sources" panel
  6. In the Project Setting -> Target -> Build Phases, add a new and "Copy Files" phase and drag the shaders onto it. Make sure to set the "Destination" option to "Executables"
Hope this helps!


  1. Thank you for a great explanation. I was looking online for a similar idea and really appreciate it

  2. During the CNC manufacturing course of, position management is determined via an open-loop or closed-loop system. With the former, the signaling runs in a single course between the CNC controller and motor. With a closed-loop system, the controller is able to receiving feedback, which makes error correction attainable. Thus, a closed-loop system can rectify irregularities in velocity and position. It assists in making informed enterprise choices by offering a thorough grasp of the industry and doing in-depth market CNC machining phase research.