Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
Reply-To: <nhv@cape.com>
From: "Norman Vine" <nhv@cape.com>
To: "'Nam H Kim'" <nhk15@student.canterbury.ac.nz>, <cygwin@cygwin.com>
Subject: RE: how do you complile OpenGL files?
Date: Mon, 7 May 2001 00:11:13 -0400
Message-ID: <000101c0d6ab$c1ea8de0$a300a8c0@nhv>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook 8.5, Build 4.71.2232.26
In-Reply-To: <3AF5E857.2530B366@student.canterbury.ac.nz>
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
Importance: Normal

Nam H Kim writes:
> 
>currently I am using Cygwin for my most of c works..
>but I got an OpenGl project so I downloaded the OpenGl sources through
>the setup program a week ago.
> 
>but still I can't figure out how to compile my OpenGl files..
> 
>could you tell me how to do it??

Make sure you
#include <windows.h>
before #including any of 
<GL/gl.h> <GL/glu.h> or <GL/glut.h>

and compile using the -mwin32 compiler flag 

also see 
http://sources.redhat.com/ml/cygwin/2001-05/msg00257.html

If you are still having problems
you could check out how PLib works
http://plib.sourceforge.net

FYI
PLib is an OpenSource OpenGL based cross platform 
 < Unix, Windows, Mac, Irix >
"Game" Library that includes amongst other things

PUI  - Portable User Interface
FNT - Font package
SG  -  Simple Geometry
SSG - Performer inspired Simple SceneGraph

FWIW
I am part of the PLib development team and insure that it
always works 'OTB' with Cygwin

I recomend getting the current source from CVS
as there have been many improvements since the
last 'official' release.

Cheers

Norman VIne


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

