Creating OpenGL applications that use GLUT



Similar documents
Compiler Setup and DirectX/OpenGL Setup

MatrixSSL Getting Started

Introduction to the use of the environment of Microsoft Visual Studio 2008

1. Open Thunderbird. If the Import Wizard window opens, select Don t import anything and click Next and go to step 3.

Supported platforms & compilers Required software Where to download the packages Geant4 toolkit installation (release 9.6)

Installation Guidelines (MySQL database & Archivists Toolkit client)

Getting started with 2c8 plugin for Microsoft Sharepoint Server 2010

Code::Blocks Student Manual

Computer Science and Engineering MacOS Cisco VPN Client Installation and Setup Guide

Learn how to create web enabled (browser) forms in InfoPath 2013 and publish them in SharePoint InfoPath 2013 Web Enabled (Browser) forms

Chapter 1: Getting Started

IBM TCP/IP Network Port Monitor

Appendix K Introduction to Microsoft Visual C++ 6.0

Microsoft Visual Studio 2010 Instructions For C Programs

Shopping Cart Software

owncloud Configuration and Usage Guide

Wavecrest Certificate

Using Microsoft Visual Studio API Reference

Installing C++ compiler for CSc212 Data Structures

Code Estimation Tools Directions for a Services Engagement

enter the administrator user name and password for that domain.

Adobe Summit 2015 Lab 718: Managing Mobile Apps: A PhoneGap Enterprise Introduction for Marketers

10 STEPS TO YOUR FIRST QNX PROGRAM. QUICKSTART GUIDE Second Edition

Developing, Deploying, and Debugging Applications on Windows Embedded Standard 7

Appendix M: Introduction to Microsoft Visual C Express Edition

Step-by-step installation guide for monitoring untrusted servers using Operations Manager ( Part 3 of 3)

Building graphic-rich and better performing native applications. Pro. Android C++ with the NDK. Onur Cinar

How to FTP (How to upload files on a web-server)

1. Scope of Service. 1.1 About Boxcryptor Classic

Installing (1.8.7) 9/2/ Installing jgrasp

AES Crypt User Guide

How To Sync Google Drive On A Mac Computer With A Gmail Account On A Gcd (For A Student) On A Pc Or Mac Or Mac (For An Older Person) On An Ipad Or Ipad (For Older People) On

eggon SDK for ios 7 Integration Instructions

Waspmote IDE. User Guide

NVIDIA CUDA GETTING STARTED GUIDE FOR MAC OS X

How to Install Applications (APK Files) on Your Android Phone

Using Free PGI and Xcode

Q N X S O F T W A R E D E V E L O P M E N T P L A T F O R M v Steps to Developing a QNX Program Quickstart Guide

Code::Block manual. for CS101x course. Department of Computer Science and Engineering Indian Institute of Technology - Bombay Mumbai

PaperStream Connect. Setup Guide. Version Copyright Fujitsu

SETUP SSL IN SHAREPOINT 2013 (USING SELF-SIGNED CERTIFICATE)

etoken Enterprise For: SSL SSL with etoken

Migrating from MyYSU Mail to Office 365 Microsoft Outlook 2010

Visual Studio 2008 Express Editions

Version Control with Subversion and Xcode

Monitoring Oracle Enterprise Performance Management System Release Deployments from Oracle Enterprise Manager 12c

Download and Installation Instructions. Android SDK and Android Development Tools (ADT)

Eclipse installation, configuration and operation

SIM900 Eclipse environment install Application Note_V1.00

Eclipse.org CDT and Cygwin: A Tutorial on Installation and Functionality

MY WORLD GIS. Installation Instructions

Getting Started using the SQuirreL SQL Client

Generating Visual Studio Project Files

Drobo How-To Guide. Topics. What You Will Need. Using Drobo and Backblaze for Simple Online Backup

Apple OS / ios Installation Guide Includes MAC OSx and ios based devices

DEPLOYING A VISUAL BASIC.NET APPLICATION

APNS Certificate generating and installation

EBSCO MEDIA FILE TRANSFER SOFTWARE INSTALLATION INSTRUCTIONS

Using Karel with Eclipse

Using Microsoft Expression Web to Upload Your Site

M a r k B o o k C Y, M a r k B o o k A M, v e r s i o n, e d i t i o n. MarkBook for Windows on a Mac 1

USING STUFFIT DELUXE THE STUFFIT START PAGE CREATING ARCHIVES (COMPRESSED FILES)

Xcode Project Management Guide. (Legacy)

Enterprise Apple Xserve Wiki and Blog using Active Directory. Table Of Contents. Prerequisites 1. Introduction 1

Setting Up a Dreamweaver Site Definition for OIT s Web Hosting Server

Other documents in this series are available at: servernotes.wazmac.com

Optional Lab: Data Backup and Recovery in Windows 7

Wireless Printing Setup Guide

Uninstalling the software Uninstallation procedure is different between Mac OS X 10.5 and 10.6 & Please follow the instruction below.

Symantec Client Firewall Policy Migration Guide

Adafruit's Raspberry Pi Lesson 5. Using a Console Cable

Instructions to connect to GRCC Remote Access using a Macintosh computer

1. Download VPN client software for Macintosh (Note: You must be connected to the campus network to perform this step.)

Setting Up SSL on IIS6 for MEGA Advisor

Installation Guide. Installing MYOB AccountRight in a Remote Desktop Services Environment

ECA IIS Instructions. January 2005

Cloud Server powered by Mac OS X. Getting Started Guide. Cloud Server. powered by Mac OS X. AKJZNAzsqknsxxkjnsjx Getting Started Guide Page 1

Installation of ADS SiMKit startup script and designkit on Windows for SiMKit version 4.4

Unity Version Control

Setting Up ALERE with Client/Server Data

The "Eclipse Classic" version is recommended. Otherwise, a Java or RCP version of Eclipse is recommended.

Setting up Sudoku example on Android Studio


Create a New Database in Access 2010

NVIDIA CUDA GETTING STARTED GUIDE FOR MAC OS X

Installing Sun's VirtualBox on Windows XP and setting up an Ubuntu VM

Spotlight. Effectively Search The Content Of Your Computer

Select the name of the application and click on Force Quit.

Downloading ebooks to a PC & Transferring the ebook to a Sony Reader or Nook

Lab - Data Backup and Recovery in Windows 7

Contents. Getting Started...1. Managing Your Drives Backing Up & Restoring Folders Synchronizing Folders Managing Security...

Visual C Tutorial

Word 2010: Mail Merge to with Attachments

Gladinet Cloud Backup V3.0 User Guide

INTRODUCTION to ESRI ARCGIS For Visualization, CPSC 178

Initial Setup of Mozilla Thunderbird with IMAP for OS X Lion

FUGU - SFTP FOR MACS- REFERENCE GUIDE

Configuring.NET based Applications in Internet Information Server to use Virtual Clocks from Time Machine

Transcription:

Licenciatura em Engenharia Informática e de Computadores Computação Gráfica Creating OpenGL applications that use GLUT Short guide to creating OpenGL applications in Windows and Mac OSX

Contents Obtaining GLUT (not in OSX) A file structure to ease portability Source code portability between OSX and all other Synonyms Project, Target, Solution Visual Studio How to create a new Solution, then a new Project Xcode How to create a new Project, then a new Target

Getting GLUT Windows Go to Nate Robins page at user.xmission.com/~nate/glut.html Download glut-3.7.6-bin.zip Unpack the ZIP file Create a neat GLUT folder structure (see next slide) OSX Comes with the OS, no need to do anything Be aware: no freeglut please, it is not endorsed by the OpenGL ARB

GLUT (for Windows) Files in ZIP file glut.def glut.h glut32.dll glut32.lib README-win32.txt Recommended file structure glut include lib GL glut32.lib glut.def glut.h glut32.dll

Recommended File Structure (ensuring portability) glut mywork src VS solution root Xcode solution root Project 1 Project 2 Project n Advantages One single source code shared by both environments Directory structure can be stored on mounted network drivers, Dropbox, cloud, etc.

Making sure OpenGL source code is portable As simple as. #if defined( APPLE ) defined(macosx) #include <GLUT/glut.h> #else #include <GL/glut.h> #endif

Synonyms Visual Studio Solution Project Xcode Project Target

Visual Studio - creating a new Solution Open Visual Studio A new solution is automatically created when you create the first Project

Visual Studio creating a new OpenGL Project Open Visual Studio Select File > New > Project Select Visual C++ from Installed Templates Select Win32 Console Application On the bottom dialogue Enter project name Move to the root of your work (e.g., mywork) Check Create directory for solution (if first project) Enter solution name (if first project) Press OK

Visual Studio creating a new OpenGL Project Click Next when Win32 Application Wizard shows Unselect Precompiled headers Select Empty project Click Finish

Visual Studio creating a new OpenGL Project On Solution Explorer Add implementation files to Source files Right click Source files Select Add Select New Item or Existing Item (if files already exist) Follow instructions Do the same for Header files

Visual Studio creating a new OpenGL Project On Solution Explorer Right click on project name, select Properties Select C/C++ > Additional Include Directories Browse to the parent of the glut/include directory, select it, press OK Select Linker > Additional Library Directories Browse to the glut/lib directory, select it, press OK Press Apply and OK Note: use relative paths to directories to ensure you can compile and run on different computers Congratulations, you are now ready to build your application

Visual Studio & Directories Very Important Requirement Executables are written to the Debug (or Release) directory under the your solution s directory (not project s) glut32.dll must be in that directory or in the system directory Running OpenGL Applications From within VS An application runs using its project s root directory as current directory By double clicking on the executable Application runs in the Debug (or Release) directory of your solution s root directory

Xcode - creating a new Project Start Xcode Select Create a new Xcode Project Under Mac OS X on the left panel choose Other then select Empty Project on the upper right panel and press Choose.. On the New Project dialogue, fill the name of the project in Save As: and select the project s root directory A Project Window shows up

Xcode adding source/header files Right click on the project name on the Project Window For existing files Select Existing Files for existing ones, browse and select them (you can even select an whole directory) New files Select New File, then C++ or Header File and click Next Fill in the file name and select its location When creating a.cpp file remember to check/uncheck the box to automatically create a.h file

Xcode creating an Open GL target On the Project Window, right click on Targets, select Add, then New Target Select Shell Tool (Xcode 3) or Command Line Tool(Xcode 4), click Next, fill in the target s name and click Finish Close the target Info window that shows up Right click on the newly created target name Xcode 3: select Add, Existing Frameworks, then select GLUT.framework and OpenGL.framework and press Add Xcode 4: select Build Phases, choose Link Binaries with Libraries and proceed to pick the two frameworks as above. To add source / header files Select the files and drag them to the target

Xcode default run directories Run from within Xcode Target runs on project_root/build/debug (or Release) To change this: Set your target as the Active Target Select Project, then Edit Active Executable target_name Edit the Set the working directory to: section at the bottom of the window that opens to your requirements Run from Finder (double-clicking on target) User home directory Run from Terminal The terminal s current working directory

Acknowledgements Diana Gouveia Ribeiro (70096) differences from Xcode 3 to Xcode 4