Re: [Flightgear-devel] MSVC Build Problems in src/Main/main.cxx

2003-01-02 Thread Jonathan Polley
For those who may care, I fixed the MacOS problems.  It turns out that 
the OpenGL Extension that FlightGear are referencing have ARB 
extensions rather than EXT.  I.e.,

glPointParameterfvEXT
glPointParameterfEXT

becomes

glPointParameterfvARB
glPointParameterfARB

Jonathan Polley


Here is the CVS diff.

Index: main.cxx
===
RCS file: /var/cvs/FlightGear-0.9/FlightGear/src/Main/main.cxx,v
retrieving revision 1.53
diff -r1.53 main.cxx
53a54,58
 #if defined (__APPLE__)
 #define GL_SGIS_point_parameters 1
 #include OpenGL/glext.h
 #endif

748a754,757
 #if defined (__APPLE__)
 glPointParameterfvARB(GL_DISTANCE_ATTENUATION_EXT, 
quadratic);
 glPointParameterfARB(GL_POINT_SIZE_MIN_EXT, 1.0);
 #else
750c759,760
 glPointParameterfEXT(GL_POINT_SIZE_MIN_EXT, 1.0);
---
 glPointParameterfEXT(GL_POINT_SIZE_MIN_EXT, 1.0);
 #endif
792a803,806
 #if defined (__APPLE__)
 glPointParameterfvARB(GL_DISTANCE_ATTENUATION_EXT,
   default_attenuation);
 #else
794a809
 #endif


___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel


Re: [Flightgear-devel] MSVC Build Problems in src/Main/main.cxx

2003-01-02 Thread Norman Vine

- Original Message - 
From: Jonathan Polley [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, January 02, 2003 9:13 PM
Subject: Re: [Flightgear-devel] MSVC Build Problems in src/Main/main.cxx


 For those who may care, I fixed the MacOS problems.  It turns out that 
 the OpenGL Extension that FlightGear are referencing have ARB 
 extensions rather than EXT.  I.e.,
 
 glPointParameterfvEXT
 glPointParameterfEXT
 
 becomes
 
 glPointParameterfvARB
 glPointParameterfARB
 
 Jonathan Polley
 
 
 Here is the CVS diff.
 
 Index: main.cxx
 ===
 RCS file: /var/cvs/FlightGear-0.9/FlightGear/src/Main/main.cxx,v
 retrieving revision 1.53
 diff -r1.53 main.cxx
 53a54,58
   #if defined (__APPLE__)
   #define GL_SGIS_point_parameters 1
   #include OpenGL/glext.h
   #endif
  
 748a754,757
   #if defined (__APPLE__)
   glPointParameterfvARB(GL_DISTANCE_ATTENUATION_EXT, 
 quadratic);
   glPointParameterfARB(GL_POINT_SIZE_MIN_EXT, 1.0);
   #else
 750c759,760
  glPointParameterfEXT(GL_POINT_SIZE_MIN_EXT, 1.0);
 ---
   glPointParameterfEXT(GL_POINT_SIZE_MIN_EXT, 1.0);
   #endif
 792a803,806
   #if defined (__APPLE__)
   glPointParameterfvARB(GL_DISTANCE_ATTENUATION_EXT,
 default_attenuation);
   #else
 794a809
   #endif
 
 
 ___
 Flightgear-devel mailing list
 [EMAIL PROTECTED]
 http://mail.flightgear.org/mailman/listinfo/flightgear-devel
 

___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel



Re: [Flightgear-devel] MSVC Build Problems in src/Main/main.cxx

2003-01-01 Thread Norman Vine
Jonathan Polley writes:


 The latest updat to src/Main/main.cxx is generating the following errors for MSVC 
6.0 (and I assume for all Windows compilers).
 
 c:\fgdev\flightgear\src\main\main.cxx(749) : error C2065: 
'GL_DISTANCE_ATTENUATION_EXT' : undeclared identifier
 c:\fgdev\flightgear\src\main\main.cxx(750) : error C2065: 'GL_POINT_SIZE_MIN_EXT' : 
undeclared identifier

AFAIK these are post OpenGL version 1.1 hence not supported by the M$oft headers 
and require including the equivalant of extgl.h or just defining them ourselves

#ifndef GL_EXT_point_parameters
#define GL_EXT_point_parameters 1

#define GL_POINT_SIZE_MIN_EXT   0x8126
#define GL_POINT_SIZE_MAX_EXT   0x8127
#define GL_POINT_FADE_THRESHOLD_SIZE_EXT0x8128
#define GL_DISTANCE_ATTENUATION_EXT 0x8129

typedef void (APIENTRY * glPointParameterfEXTPROC) (GLenum pname, GLfloat param);
typedef void (APIENTRY * glPointParameterfvEXTPROC) (GLenum pname, const GLfloat 
*params);

extern glPointParameterfEXTPROC glPointParameterfEXT;
extern glPointParameterfvEXTPROC glPointParameterfvEXT;

#endif /* GL_EXT_point_parameters */

HTH

Norman

___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel



Re: [Flightgear-devel] MSVC Build Problems in src/Main/main.cxx

2003-01-01 Thread Jonathan Polley
I just noticed that the problem also exists for MacOS 10.2(.3), which I 
believe is at least OpenGL 1.3 (and 10.2.3 is OpenGL 1.4).  Any ideas 
as to what is missing?

Thanks,

Jonathan Polley

On Wednesday, January 1, 2003, at 10:25  AM, Norman Vine wrote:

Jonathan Polley writes:



The latest updat to src/Main/main.cxx is generating the following 
errors for MSVC 6.0 (and I assume for all Windows compilers).

c:\fgdev\flightgear\src\main\main.cxx(749) : error C2065: 
'GL_DISTANCE_ATTENUATION_EXT' : undeclared identifier
c:\fgdev\flightgear\src\main\main.cxx(750) : error C2065: 
'GL_POINT_SIZE_MIN_EXT' : undeclared identifier

AFAIK these are post OpenGL version 1.1 hence not supported by the 
M$oft headers
and require including the equivalant of extgl.h or just defining 
them ourselves

#ifndef GL_EXT_point_parameters
#define GL_EXT_point_parameters 1

#define GL_POINT_SIZE_MIN_EXT   0x8126
#define GL_POINT_SIZE_MAX_EXT   0x8127
#define GL_POINT_FADE_THRESHOLD_SIZE_EXT0x8128
#define GL_DISTANCE_ATTENUATION_EXT 0x8129

typedef void (APIENTRY * glPointParameterfEXTPROC) (GLenum pname, 
GLfloat param);
typedef void (APIENTRY * glPointParameterfvEXTPROC) (GLenum pname, 
const GLfloat *params);

extern glPointParameterfEXTPROC glPointParameterfEXT;
extern glPointParameterfvEXTPROC glPointParameterfvEXT;

#endif /* GL_EXT_point_parameters */

HTH

Norman

___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel


___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel



[Flightgear-devel] MSVC Build Problems in src/Main/main.cxx

2002-12-31 Thread Jonathan Polley
The latest updat to src/Main/main.cxx is generating the following errors for MSVC 6.0 
(and I assume for all Windows compilers).

c:\fgdev\flightgear\src\main\main.cxx(749) : error C2065: 
'GL_DISTANCE_ATTENUATION_EXT' : undeclared identifier
c:\fgdev\flightgear\src\main\main.cxx(750) : error C2065: 'GL_POINT_SIZE_MIN_EXT' : 
undeclared identifier

Thanks,

Jonathan Polley

Of COURSE they can do that.  They're engineers!

___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel