]> git.saurik.com Git - wxWidgets.git/commitdiff
Fixes to allow OGL building as a DLL
authorRobin Dunn <robin@alldunn.com>
Fri, 25 Jul 2003 21:20:57 +0000 (21:20 +0000)
committerRobin Dunn <robin@alldunn.com>
Fri, 25 Jul 2003 21:20:57 +0000 (21:20 +0000)
Also removed the hack I put in last week to allow building without the
deprecated headers and fixed it the right way.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22298 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

29 files changed:
contrib/build/ogl/makefile.vc
contrib/build/ogl/ogl.bkl
contrib/include/wx/ogl/basic.h
contrib/include/wx/ogl/basicp.h
contrib/include/wx/ogl/bmpshape.h
contrib/include/wx/ogl/canvas.h
contrib/include/wx/ogl/composit.h
contrib/include/wx/ogl/constrnt.h
contrib/include/wx/ogl/divided.h
contrib/include/wx/ogl/drawn.h
contrib/include/wx/ogl/drawnp.h
contrib/include/wx/ogl/lines.h
contrib/include/wx/ogl/linesp.h
contrib/include/wx/ogl/mfutils.h
contrib/include/wx/ogl/misc.h
contrib/include/wx/ogl/ogl.h
contrib/include/wx/ogl/ogldiag.h
contrib/src/ogl/basic.cpp
contrib/src/ogl/basic2.cpp
contrib/src/ogl/bmpshape.cpp
contrib/src/ogl/canvas.cpp
contrib/src/ogl/composit.cpp
contrib/src/ogl/constrnt.cpp
contrib/src/ogl/divided.cpp
contrib/src/ogl/drawn.cpp
contrib/src/ogl/lines.cpp
contrib/src/ogl/mfutils.cpp
contrib/src/ogl/ogldiag.cpp
contrib/src/ogl/oglmisc.cpp

index 9e2418042604fede5d5bdf094ed5aa6c0897aeec..c5105e93a2a9a976726969dd5d4aa2813c4e1193 100644 (file)
@@ -13,7 +13,7 @@
 ### Variables: ###
 
 OBJS = vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
-OGLDLL_CXXFLAGS = $(CPPFLAGS) /M$(__RUNTIME_LIBS)$(__DEBUGFLAG_3) /DWIN32 $(__DEBUGFLAG) /Fd..\..\src\ogl\..\..\..\lib\vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl_vc$(VENDORTAG).pdb $(____DEBUGFLAG) $(__OPTIMIZEFLAG)  /D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) /I..\..\src\ogl\..\..\..\include /I..\..\src\ogl\..\..\..\lib\vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) /I..\..\src\ogl\..\..\..\src\tiff /I..\..\src\ogl\..\..\..\src\jpeg /I..\..\src\ogl\..\..\..\src\png /I..\..\src\ogl\..\..\..\src\zlib  /I..\..\src\ogl\..\..\..\src\regex /I..\..\src\ogl\..\..\..\src\expat\lib /Fp$(OBJS)\wxprec_ogldll.pch /I..\..\src\ogl\..\..\include /DWXUSINGDLL /DWXMAKINGDLL_OGL /DwxUSE_DEPRECATED=0 $(CXXFLAGS)  /Yuwx/wxprec.h
+OGLDLL_CXXFLAGS = $(CPPFLAGS) /M$(__RUNTIME_LIBS)$(__DEBUGFLAG_3) /DWIN32 $(__DEBUGFLAG) /Fd..\..\src\ogl\..\..\..\lib\vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl_vc$(VENDORTAG).pdb $(____DEBUGFLAG) $(__OPTIMIZEFLAG)  /D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) /I..\..\src\ogl\..\..\..\include /I..\..\src\ogl\..\..\..\lib\vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) /I..\..\src\ogl\..\..\..\src\tiff /I..\..\src\ogl\..\..\..\src\jpeg /I..\..\src\ogl\..\..\..\src\png /I..\..\src\ogl\..\..\..\src\zlib  /I..\..\src\ogl\..\..\..\src\regex /I..\..\src\ogl\..\..\..\src\expat\lib /Fp$(OBJS)\wxprec_ogldll.pch /I..\..\src\ogl\..\..\include /DWXUSINGDLL /DWXMAKINGDLL_OGL $(CXXFLAGS)  /Yuwx/wxprec.h
 OGLLIB_CXXFLAGS = $(CPPFLAGS) /M$(__RUNTIME_LIBS)$(__DEBUGFLAG_3) /DWIN32 $(__DEBUGFLAG) /Fd..\..\src\ogl\..\..\..\lib\vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl.pdb $(____DEBUGFLAG) $(__OPTIMIZEFLAG)  /D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) /I..\..\src\ogl\..\..\..\include /I..\..\src\ogl\..\..\..\lib\vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) /I..\..\src\ogl\..\..\..\src\tiff /I..\..\src\ogl\..\..\..\src\jpeg /I..\..\src\ogl\..\..\..\src\png /I..\..\src\ogl\..\..\..\src\zlib  /I..\..\src\ogl\..\..\..\src\regex /I..\..\src\ogl\..\..\..\src\expat\lib /Fp$(OBJS)\wxprec_ogllib.pch /I..\..\src\ogl\..\..\include $(CXXFLAGS) /Yuwx/wxprec.h
 
 ### Conditionally set variables: ###
index dc263b4c9ac0d57be31d42cb6ac16644f66f271d..8d6cd5d8b739f4cb8959086298eea6cda5327238 100644 (file)
@@ -43,7 +43,6 @@
     <dll id="ogldll" template="wx_contrib_dll" cond="SHARED=='1'">
         <define>WXUSINGDLL</define>
         <define>WXMAKINGDLL_OGL</define>
-       <define>wxUSE_DEPRECATED=0</define>  <!-- this is a hack, we should do the RightThing later -->
         <sources>$(OGL_SRC)</sources>
         <wx-lib>core</wx-lib>
         <wx-lib>base</wx-lib>
index 588258afd7b257c30838531115b30f066a76c1ad..47b68d3de12abb53058797c77346ee058adce2f6 100644 (file)
@@ -16,6 +16,7 @@
 #pragma interface "basic.h"
 #endif
 
+
 #define OGL_VERSION     2.0
 
 #ifndef DEFAULT_MOUSE_TOLERANCE
@@ -119,7 +120,7 @@ class WXDLLEXPORT wxExprDatabase;
 
 
 
-class wxShapeEvtHandler: public wxObject, public wxClientDataContainer
+class WXDLLIMPEXP_OGL wxShapeEvtHandler: public wxObject, public wxClientDataContainer
 {
  DECLARE_DYNAMIC_CLASS(wxShapeEvtHandler)
 
@@ -184,7 +185,7 @@ class wxShapeEvtHandler: public wxObject, public wxClientDataContainer
   wxShape*              m_handlerShape;
 };
 
-class wxShape: public wxShapeEvtHandler
+class WXDLLIMPEXP_OGL wxShape: public wxShapeEvtHandler
 {
  DECLARE_ABSTRACT_CLASS(wxShape)
 
@@ -561,7 +562,7 @@ class wxShape: public wxShapeEvtHandler
   long                  m_branchStyle;
 };
 
-class wxPolygonShape: public wxShape
+class WXDLLIMPEXP_OGL wxPolygonShape: public wxShape
 {
  DECLARE_DYNAMIC_CLASS(wxPolygonShape)
  public:
@@ -634,7 +635,7 @@ class wxPolygonShape: public wxShape
   double        m_originalHeight;
 };
 
-class wxRectangleShape: public wxShape
+class WXDLLIMPEXP_OGL wxRectangleShape: public wxShape
 {
  DECLARE_DYNAMIC_CLASS(wxRectangleShape)
  public:
@@ -669,7 +670,7 @@ protected:
   double m_cornerRadius;
 };
 
-class wxTextShape: public wxRectangleShape
+class WXDLLIMPEXP_OGL wxTextShape: public wxRectangleShape
 {
  DECLARE_DYNAMIC_CLASS(wxTextShape)
  public:
@@ -685,7 +686,7 @@ class wxTextShape: public wxRectangleShape
   void Copy(wxShape& copy);
 };
 
-class wxEllipseShape: public wxShape
+class WXDLLIMPEXP_OGL wxEllipseShape: public wxShape
 {
  DECLARE_DYNAMIC_CLASS(wxEllipseShape)
  public:
@@ -722,7 +723,7 @@ protected:
   double m_height;
 };
 
-class wxCircleShape: public wxEllipseShape
+class WXDLLIMPEXP_OGL wxCircleShape: public wxEllipseShape
 {
  DECLARE_DYNAMIC_CLASS(wxCircleShape)
  public:
index c0927c0c170fbc15ab36170c8f52d4aef666c7bb..5c5b40317a52e6e7e8694bfd499d59c9ce7e4134 100644 (file)
 #pragma interface "basicp.h"
 #endif
 
+
 #define CONTROL_POINT_SIZE       6
 
-class wxShapeTextLine: public wxObject
+class WXDLLIMPEXP_OGL wxShapeTextLine: public wxObject
 {
  DECLARE_DYNAMIC_CLASS(wxShapeTextLine)
 public:
@@ -40,13 +41,13 @@ protected:
    double        m_y;
 };
 
-class wxShape;
-class wxControlPoint: public wxRectangleShape
+class WXDLLIMPEXP_OGL wxShape;
+class WXDLLIMPEXP_OGL wxControlPoint: public wxRectangleShape
 {
  DECLARE_DYNAMIC_CLASS(wxControlPoint)
 
- friend class wxShapeEvtHandler;
- friend class wxShape;
+ friend class WXDLLIMPEXP_OGL wxShapeEvtHandler;
+ friend class WXDLLIMPEXP_OGL wxShape;
 
  public:
   wxControlPoint(wxShapeCanvas *the_canvas = NULL, wxShape *object = NULL, double size = 0.0, double the_xoffset = 0.0,
@@ -88,11 +89,11 @@ public:
   static double sm_controlPointDragPosY;
 };
 
-class wxPolygonShape;
-class wxPolygonControlPoint: public wxControlPoint
+class WXDLLIMPEXP_OGL wxPolygonShape;
+class WXDLLIMPEXP_OGL wxPolygonControlPoint: public wxControlPoint
 {
  DECLARE_DYNAMIC_CLASS(wxPolygonControlPoint)
-  friend class wxPolygonShape;
+  friend class WXDLLIMPEXP_OGL wxPolygonShape;
  public:
   wxPolygonControlPoint(wxShapeCanvas *the_canvas = NULL, wxShape *object = NULL, double size = 0.0, wxRealPoint *vertex = NULL,
     double the_xoffset = 0.0, double the_yoffset = 0.0);
@@ -123,7 +124,7 @@ public:
  *
  */
 
-class wxShapeRegion: public wxObject
+class WXDLLIMPEXP_OGL wxShapeRegion: public wxObject
 {
  DECLARE_DYNAMIC_CLASS(wxShapeRegion)
 
@@ -200,7 +201,7 @@ public:
  * User-defined attachment point
  */
 
-class wxAttachmentPoint: public wxObject
+class WXDLLIMPEXP_OGL wxAttachmentPoint: public wxObject
 {
  DECLARE_DYNAMIC_CLASS(wxAttachmentPoint)
 
index 5389351fe46a4aded0ad30e7309333657eee3ae4..86251e55458abe32641b14d59577dc8aa3ce9fb4 100644 (file)
@@ -16,9 +16,8 @@
 #pragma interface "bmpshape.h"
 #endif
 
-#include <wx/ogl/basic.h>
 
-class wxBitmapShape: public wxRectangleShape
+class WXDLLIMPEXP_OGL wxBitmapShape: public wxRectangleShape
 {
  DECLARE_DYNAMIC_CLASS(wxBitmapShape)
  public:
index 7511de9a73386908a6aa74286a01d7d222d8eec2..d65589029ae0dde72cba15c79c66a63744aeec5f 100644 (file)
@@ -16,6 +16,7 @@
 #pragma interface "canvas.h"
 #endif
 
+
 // Drag states
 #define NoDragging             0
 #define StartDraggingLeft      1
 #define StartDraggingRight     3
 #define ContinueDraggingRight  4
 
-extern const wxChar* wxShapeCanvasNameStr;
+WXDLLIMPEXP_OGL extern const wxChar* wxShapeCanvasNameStr;
 
 // When drag_count reaches 0, process drag message
 
-class wxDiagram;
+class WXDLLIMPEXP_OGL wxDiagram;
 
-class wxShapeCanvas: public wxScrolledWindow
+class WXDLLIMPEXP_OGL wxShapeCanvas: public wxScrolledWindow
 {
  DECLARE_DYNAMIC_CLASS(wxShapeCanvas)
  public:
index 618629d4ffd89b9b2458285bd756058d90e91678..19afcfffcb75e9cae6e15ccfa9080f537937581e 100644 (file)
 #pragma interface "composit.h"
 #endif
 
-class wxDivisionShape;
-class wxOGLConstraint;
+
+class WXDLLIMPEXP_OGL wxDivisionShape;
+class WXDLLIMPEXP_OGL wxOGLConstraint;
 
 /*
  * A composite object is an invisible rectangle surrounding all children
  *
  */
 
-class wxCompositeShape: public wxRectangleShape
+class WXDLLIMPEXP_OGL wxCompositeShape: public wxRectangleShape
 {
  DECLARE_DYNAMIC_CLASS(wxCompositeShape)
 public:
@@ -122,7 +123,7 @@ protected:
 #define DIVISION_SIDE_RIGHT     3
 #define DIVISION_SIDE_BOTTOM    4
 
-class wxDivisionShape: public wxCompositeShape
+class WXDLLIMPEXP_OGL wxDivisionShape: public wxCompositeShape
 {
  DECLARE_DYNAMIC_CLASS(wxDivisionShape)
  public:
index bd0616e491cf01d83bac8051c66806ce03b6626a..338e4dfed252e1a8c6e268ce8d3f4f227d7642c5 100644 (file)
 #pragma interface "constrnt.h"
 #endif
 
+
 /*
  * OGL Constraints
  *
  */
 
-class wxOGLConstraintType: public wxObject
+class WXDLLIMPEXP_OGL wxOGLConstraintType: public wxObject
 {
  DECLARE_DYNAMIC_CLASS(wxOGLConstraintType)
 public:
@@ -57,7 +58,7 @@ extern wxList* wxOGLConstraintTypes;
 #define gyCONSTRAINT_MIDALIGNED_LEFT      14
 #define gyCONSTRAINT_MIDALIGNED_RIGHT     15
 
-class wxOGLConstraint: public wxObject
+class WXDLLIMPEXP_OGL wxOGLConstraint: public wxObject
 {
  DECLARE_DYNAMIC_CLASS(wxOGLConstraint)
  public:
index e307e7dc7e0c5c845c185466d97bb64a87c8e30b..dea08ce1c30cca95c6c5078ad3dadd09ba557b7c 100644 (file)
 #define _OGL_DIVIDED_H_
 
 #if defined(__GNUG__) && !defined(__APPLE__)
-#pragma interface "basic.h"
+#pragma interface "divided.h"
 #endif
 
+
 /*
  * Definition of a region
  *
@@ -27,7 +28,7 @@
  */
 
 extern wxFont *g_oglNormalFont;
-class wxDividedShape: public wxRectangleShape
+class WXDLLIMPEXP_OGL wxDividedShape: public wxRectangleShape
 {
  DECLARE_DYNAMIC_CLASS(wxDividedShape)
 
index 75f3d00a9a3a9a67084a6667fdfb59da6ad67ffe..ffe35762a3ee53b766125a295b63b924f90b36de 100644 (file)
 #pragma interface "drawn.h"
 #endif
 
-#include <wx/ogl/basic.h>
 
 #define oglMETAFLAGS_OUTLINE         1
 #define oglMETAFLAGS_ATTACHMENTS     2
 
-class wxDrawnShape;
-class wxPseudoMetaFile: public wxObject
+class WXDLLIMPEXP_OGL wxDrawnShape;
+class WXDLLIMPEXP_OGL wxPseudoMetaFile: public wxObject
 {
  DECLARE_DYNAMIC_CLASS(wxPseudoMetaFile)
  public:
@@ -130,7 +129,7 @@ public:
 #define oglDRAWN_ANGLE_180      2
 #define oglDRAWN_ANGLE_270      3
 
-class wxDrawnShape: public wxRectangleShape
+class WXDLLIMPEXP_OGL wxDrawnShape: public wxRectangleShape
 {
  DECLARE_DYNAMIC_CLASS(wxDrawnShape)
  public:
index dd083219b8ff5c21b849f9db47ae95e0708b679e..d80643301b3bfb4f5244cd83aea7e4a2356f93e1 100644 (file)
@@ -16,7 +16,6 @@
 #pragma interface "drawnp.h"
 #endif
 
-#include <wx/ogl/drawn.h>
 
 /*
  * Drawing operations
@@ -55,7 +54,7 @@
  *
  */
 
-class wxDrawOp: public wxObject
+class WXDLLIMPEXP_OGL wxDrawOp: public wxObject
 {
 public:
   inline wxDrawOp(int theOp) { m_op = theOp; }
@@ -93,7 +92,7 @@ protected:
  *
  */
 
-class wxOpSetGDI: public wxDrawOp
+class WXDLLIMPEXP_OGL wxOpSetGDI: public wxDrawOp
 {
  public:
   wxOpSetGDI(int theOp, wxPseudoMetaFile *theImage, int theGdiIndex, int theMode = 0);
@@ -118,7 +117,7 @@ public:
  *
  */
 
-class wxOpSetClipping: public wxDrawOp
+class WXDLLIMPEXP_OGL wxOpSetClipping: public wxDrawOp
 {
 public:
   wxOpSetClipping(int theOp, double theX1, double theY1, double theX2, double theY2);
@@ -143,7 +142,7 @@ public:
  *
  */
 
-class wxOpDraw: public wxDrawOp
+class WXDLLIMPEXP_OGL wxOpDraw: public wxDrawOp
 {
  public:
   wxOpDraw(int theOp, double theX1, double theY1, double theX2, double theY2,
@@ -176,7 +175,7 @@ public:
  *
  */
 
-class wxOpPolyDraw: public wxDrawOp
+class WXDLLIMPEXP_OGL wxOpPolyDraw: public wxDrawOp
 {
 public:
   wxOpPolyDraw(int theOp, int n, wxRealPoint *thePoints);
index d274c88f0bc2d38bdd9128191912c8cd86688675..4ecf39fd18547978e025057ad9814ee289a792d9 100644 (file)
 #pragma interface "lines.h"
 #endif
 
-class wxLabelShape;
-class wxPseudoMetaFile;
-class wxLineControlPoint;
+
+class WXDLLIMPEXP_OGL wxLabelShape;
+class WXDLLIMPEXP_OGL wxPseudoMetaFile;
+class WXDLLIMPEXP_OGL wxLineControlPoint;
 /*
  * Arcs with multiple arrowheads
  *
@@ -46,7 +47,7 @@ class wxLineControlPoint;
 #define LINE_ALIGNMENT_TO_NEXT_HANDLE     2
 #define LINE_ALIGNMENT_NONE               0
 
-class wxArrowHead: public wxObject
+class WXDLLIMPEXP_OGL wxArrowHead: public wxObject
 {
  DECLARE_DYNAMIC_CLASS(wxArrowHead)
 
@@ -88,8 +89,8 @@ class wxArrowHead: public wxObject
 };
 
 // Line object
-class wxLabelShape;
-class wxLineShape: public wxShape
+class WXDLLIMPEXP_OGL wxLabelShape;
+class WXDLLIMPEXP_OGL wxLineShape: public wxShape
 {
  DECLARE_DYNAMIC_CLASS(wxLineShape)
 
index ffe08df3ce657c243211ced34ee4c245ed94aa63..ebf2c1cbd84e58ff851bd9887163970dba9fd774 100644 (file)
 #pragma interface "linesp.h"
 #endif
 
-class wxLineShape;
-class wxLineControlPoint: public wxControlPoint
+
+class WXDLLIMPEXP_OGL wxLineShape;
+class WXDLLIMPEXP_OGL wxLineControlPoint: public wxControlPoint
 {
   DECLARE_DYNAMIC_CLASS(wxLineControlPoint)
-  friend class wxLineShape;
+  friend class WXDLLIMPEXP_OGL wxLineShape;
  public:
 
   wxLineControlPoint(wxShapeCanvas *the_canvas = NULL, wxShape *object = NULL, double size = 0.0,
@@ -51,8 +52,8 @@ public:
 /*
  * Temporary arc label object
  */
-class wxLabelShape: public wxRectangleShape
+
+class WXDLLIMPEXP_OGL wxLabelShape: public wxRectangleShape
 {
   DECLARE_DYNAMIC_CLASS(wxLabelShape)
 
index 7e8a6e6a8a95464056136de40764918e12f47f79..45a62fe5be56741d489d3e3c858390516a271ff9 100644 (file)
@@ -17,6 +17,7 @@
 #pragma interface "mfutils.h"
 #endif
 
+
 #include <wx/metafile.h>
 
 #ifndef GetRValue
 
 #endif // metafile functions
 
-class wxMetaRecord: public wxObject
+class WXDLLIMPEXP_OGL wxMetaRecord: public wxObject
 {
   public:
   int metaFunction;
@@ -180,7 +181,7 @@ class wxMetaRecord: public wxObject
   ~wxMetaRecord(void);
 };
 
-class wxXMetaFile: public wxObject
+class WXDLLIMPEXP_OGL wxXMetaFile: public wxObject
 {
  public:
   double lastX;
index 2bce6eeec9c83890de44f2ace567dc336994785e..70416d30e48e41c53f6fcf56cac228e69c6db128 100644 (file)
@@ -16,6 +16,7 @@
 #pragma interface "misc.h"
 #endif
 
+
 // List to use when copying objects; may need to associate elements of new objects
 // with elements of old objects, e.g. when copying constraint.s
 extern wxList oglObjectCopyMapping;
@@ -27,51 +28,51 @@ extern wxList oglObjectCopyMapping;
 
 // Centres the given list of wxShapeTextLine strings in the given box
 // (changing the positions in situ). Doesn't actually draw into the DC.
-void oglCentreText(wxDC& dc, wxList *text, double m_xpos, double m_ypos,
+WXDLLIMPEXP_OGL void oglCentreText(wxDC& dc, wxList *text, double m_xpos, double m_ypos,
                 double width, double height,
                 int formatMode = FORMAT_CENTRE_HORIZ | FORMAT_CENTRE_VERT);
 
 // Given a string, returns a list of strings that fit within the given
 // width of box. Height is ignored.
-wxStringList *oglFormatText(wxDC& dc, const wxString& text, double width, double height, int formatMode = 0);
+WXDLLIMPEXP_OGL wxStringList* oglFormatText(wxDC& dc, const wxString& text, double width, double height, int formatMode = 0);
 
 // Centres the list of wxShapeTextLine strings, doesn't clip.
 // Doesn't actually draw into the DC.
-void oglCentreTextNoClipping(wxDC& dc, wxList *text_list,
+WXDLLIMPEXP_OGL void oglCentreTextNoClipping(wxDC& dc, wxList *text_list,
                               double m_xpos, double m_ypos, double width, double height);
 
 // Gets the maximum width and height of the given list of wxShapeTextLines.
-void oglGetCentredTextExtent(wxDC& dc, wxList *text_list,
+WXDLLIMPEXP_OGL void oglGetCentredTextExtent(wxDC& dc, wxList *text_list,
                               double m_xpos, double m_ypos, double width, double height,
                               double *actual_width, double *actual_height);
 
 // Actually draw the preformatted list of wxShapeTextLines.
-void oglDrawFormattedText(wxDC& context, wxList *text_list,
+WXDLLIMPEXP_OGL void oglDrawFormattedText(wxDC& context, wxList *text_list,
                        double m_xpos, double m_ypos, double width, double height,
                        int formatMode = FORMAT_CENTRE_HORIZ | FORMAT_CENTRE_VERT);
 
 // Give it a list of points, finds the centre.
-void oglFindPolylineCentroid(wxList *points, double *x, double *y);
+WXDLLIMPEXP_OGL void oglFindPolylineCentroid(wxList *points, double *x, double *y);
 
-void oglCheckLineIntersection(double x1, double y1, double x2, double y2,
+WXDLLIMPEXP_OGL void oglCheckLineIntersection(double x1, double y1, double x2, double y2,
                              double x3, double y3, double x4, double y4,
                              double *ratio1, double *ratio2);
 
-void oglFindEndForPolyline(double n, double xvec[], double yvec[],
+WXDLLIMPEXP_OGL void oglFindEndForPolyline(double n, double xvec[], double yvec[],
                            double x1, double y1, double x2, double y2, double *x3, double *y3);
 
 
-void oglFindEndForBox(double width, double height,
+WXDLLIMPEXP_OGL void oglFindEndForBox(double width, double height,
                       double x1, double y1,         // Centre of box (possibly)
                       double x2, double y2,         // other end of line
                       double *x3, double *y3);      // End on box edge
 
-void oglFindEndForCircle(double radius,
+WXDLLIMPEXP_OGL void oglFindEndForCircle(double radius,
                          double x1, double y1,  // Centre of circle
                          double x2, double y2,  // Other end of line
                          double *x3, double *y3);
 
-void oglGetArrowPoints(double x1, double y1, double x2, double y2,
+WXDLLIMPEXP_OGL void oglGetArrowPoints(double x1, double y1, double x2, double y2,
                       double length, double width,
                       double *tip_x, double *tip_y,
                       double *side1_x, double *side1_y,
@@ -88,10 +89,10 @@ void oglGetArrowPoints(double x1, double y1, double x2, double y2,
  * Author: Ian Harrison
  */
 
-void oglDrawArcToEllipse(double x1, double y1, double a1, double b1, double x2, double y2, double x3, double y3,
+WXDLLIMPEXP_OGL void oglDrawArcToEllipse(double x1, double y1, double a1, double b1, double x2, double y2, double x3, double y3,
   double *x4, double *y4);
 
-bool oglRoughlyEqual(double val1, double val2, double tol = 0.00001);
+WXDLLIMPEXP_OGL bool oglRoughlyEqual(double val1, double val2, double tol = 0.00001);
 
 extern wxFont*          g_oglNormalFont;
 extern wxPen*           g_oglBlackPen;
index a9eb003abef16b5ea3d624b25588ab875079f979..f10025a9becd5caeaaf288b43c78b97da1564a9e 100644 (file)
 #ifndef _OGL_OGL_H_
 #define _OGL_OGL_H_
 
-#include <wx/ogl/basic.h>      // Basic shapes
-#include <wx/ogl/lines.h>      // Lines and splines
-#include <wx/ogl/divided.h>    // Vertically-divided rectangle
-#include <wx/ogl/composit.h>   // Composite images
-#include <wx/ogl/canvas.h>     // wxShapeCanvas for displaying objects
-#include <wx/ogl/ogldiag.h>    // wxDiagram
+#ifdef WXMAKINGDLL_OGL
+    #define WXDLLIMPEXP_OGL WXEXPORT
+#elif defined(WXUSINGDLL)
+    #define WXDLLIMPEXP_OGL WXIMPORT
+#else // not making nor using DLL
+    #define WXDLLIMPEXP_OGL
+#endif
+
+
+#include "wx/ogl/basic.h"      // Basic shapes
+#include "wx/ogl/basicp.h"
+#include "wx/ogl/lines.h"      // Lines and splines
+#include "wx/ogl/linesp.h"
+#include "wx/ogl/divided.h"    // Vertically-divided rectangle
+#include "wx/ogl/composit.h"   // Composite images
+#include "wx/ogl/canvas.h"     // wxShapeCanvas for displaying objects
+#include "wx/ogl/ogldiag.h"    // wxDiagram
+
+#include "wx/ogl/bmpshape.h"
+#include "wx/ogl/constrnt.h"
+#include "wx/ogl/drawn.h"
+#include "wx/ogl/drawnp.h"
+#include "wx/ogl/mfutils.h"
+#include "wx/ogl/misc.h"
 
 // TODO: replace with wxModule implementation
-extern void wxOGLInitialize();
-extern void wxOGLCleanUp();
+extern WXDLLIMPEXP_OGL void wxOGLInitialize();
+extern WXDLLIMPEXP_OGL void wxOGLCleanUp();
 
 #endif
  // _OGL_OGL_H_
index 0f907a2962cd49f21a4d64cb0fbf7913134a7a19..7a1b807b953558a304ec4fe9927207bb16f8d64b 100644 (file)
 #pragma interface "ogldiag.h"
 #endif
 
-#if wxUSE_DEPRECATED
-#include <wx/deprecated/wxexpr.h>
-#endif
 
 #if wxUSE_PROLOGIO
 #include <wx/deprecated/wxexpr.h>
 #endif
 
-#include <wx/ogl/basic.h>
 
-class wxDiagram: public wxObject
+class WXDLLIMPEXP_OGL wxDiagram: public wxObject
 {
  DECLARE_DYNAMIC_CLASS(wxDiagram)
 
@@ -101,7 +97,7 @@ protected:
   wxList*               m_shapeList;
 };
 
-class wxLineCrossing: public wxObject
+class WXDLLIMPEXP_OGL wxLineCrossing: public wxObject
 {
 public:
     wxLineCrossing() { m_lineShape1 = NULL; m_lineShape2 = NULL; }
@@ -114,7 +110,7 @@ public:
     wxLineShape*    m_lineShape2;
 };
 
-class wxLineCrossings: public wxObject
+class WXDLLIMPEXP_OGL wxLineCrossings: public wxObject
 {
 public:
     wxLineCrossings();
index de5d1790c706dc15e010fe6c04aa609037528c12..2d16def3c10929689322fc53186291e9561c5645 100644 (file)
@@ -24,7 +24,7 @@
 #include <wx/wx.h>
 #endif
 
-#if wxUSE_DEPRECATED
+#if wxUSE_PROLOGIO
 #include <wx/deprecated/wxexpr.h>
 #endif
 
 #include <ctype.h>
 #include <math.h>
 
-#include <wx/ogl/basic.h>
-#include <wx/ogl/basicp.h>
-#include <wx/ogl/composit.h>
-#include <wx/ogl/lines.h>
-#include <wx/ogl/canvas.h>
-#include <wx/ogl/divided.h>
-#include <wx/ogl/misc.h>
+#include "wx/ogl/ogl.h"
+
 
 // Control point types
 // Rectangle and most other shapes
index 21aba04dad8febfb49e34b22fc2e0c3d0b3cd757..19c6bac3c53eb61a176b2af6b925965cc5764b79 100644 (file)
@@ -24,7 +24,7 @@
 #include <wx/wx.h>
 #endif
 
-#if wxUSE_DEPRECATED
+#if wxUSE_PROLOGIO
 #include <wx/deprecated/wxexpr.h>
 #endif
 
 #include <ctype.h>
 #include <math.h>
 
-#include <wx/ogl/basic.h>
-#include <wx/ogl/basicp.h>
-#include <wx/ogl/composit.h>
-#include <wx/ogl/lines.h>
-#include <wx/ogl/canvas.h>
-#include <wx/ogl/divided.h>
-#include <wx/ogl/misc.h>
+#include "wx/ogl/ogl.h"
+
 
 // Control point types
 // Rectangle and most other shapes
index 058262db6a7be8da4af0a792c460a386f36c2543..a82ff25e9b945dfe85e71ab16148bda680d5352b 100644 (file)
 #include <wx/wx.h>
 #endif
 
-#if wxUSE_DEPRECATED
+#if wxUSE_PROLOGIO
 #include <wx/deprecated/wxexpr.h>
 #endif
 
-#include <wx/ogl/basic.h>
-#include <wx/ogl/basicp.h>
-#include <wx/ogl/canvas.h>
-#include <wx/ogl/bmpshape.h>
-#include <wx/ogl/misc.h>
+#include "wx/ogl/ogl.h"
+
 
 /*
  * Bitmap object
index 77fa05b67e98dadfabc58cc85a7c4e309881b85a..167a09ea6fcfbc6a2890dde0aa742cac55b082d1 100644 (file)
@@ -24,7 +24,7 @@
 #include <wx/wx.h>
 #endif
 
-#if wxUSE_DEPRECATED
+#if wxUSE_PROLOGIO
 #include <wx/deprecated/wxexpr.h>
 #endif
 
 #include <math.h>
 #include <stdlib.h>
 
-#include <wx/ogl/basic.h>
-#include <wx/ogl/basicp.h>
-#include <wx/ogl/canvas.h>
-#include <wx/ogl/ogldiag.h>
-#include <wx/ogl/misc.h>
-#include <wx/ogl/lines.h>
-#include <wx/ogl/composit.h>
+#include "wx/ogl/ogl.h"
 
 #define CONTROL_POINT_SIZE       6
 
index 42b2f375c1f426de89ee21e61c7a72b9c2122015..96b368479483c797df6d7d644dbdb145c88e3d86 100644 (file)
 #include <wx/wx.h>
 #endif
 
-#if wxUSE_DEPRECATED
+#if wxUSE_PROLOGIO
 #include <wx/deprecated/wxexpr.h>
 #endif
 
-#include <wx/ogl/basic.h>
-#include <wx/ogl/basicp.h>
-#include <wx/ogl/constrnt.h>
-#include <wx/ogl/composit.h>
-#include <wx/ogl/misc.h>
-#include <wx/ogl/canvas.h>
+#include "wx/ogl/ogl.h"
+
 
 #if wxUSE_PROLOGIO
 // Sometimes, objects need to access the whole database to
index f62585c9314230d1bc5f16c8c09c6a09ef622328..c5e5650f094cea2c1efd074a055cc1958c6b9ae1 100644 (file)
 #include <wx/wx.h>
 #endif
 
-#if wxUSE_DEPRECATED
+#if wxUSE_PROLOGIO
 #include <wx/deprecated/wxexpr.h>
 #endif
 
-#include <wx/ogl/basic.h>
-#include <wx/ogl/constrnt.h>
-#include <wx/ogl/canvas.h>
+#include "wx/ogl/ogl.h"
+
 
 wxList *wxOGLConstraintTypes = NULL;
 
index 767bfa69e4a61878ec60b1d37d0c8c7069d9c45b..2b16d5749cd8d5d41f3ea3e5dec3c88e00e390fe 100644 (file)
 #include <wx/wx.h>
 #endif
 
-#if wxUSE_DEPRECATED
+#if wxUSE_PROLOGIO
 #include <wx/deprecated/wxexpr.h>
 #endif
 
-#include <wx/ogl/basic.h>
-#include <wx/ogl/basicp.h>
-#include <wx/ogl/canvas.h>
-#include <wx/ogl/divided.h>
-#include <wx/ogl/lines.h>
-#include <wx/ogl/misc.h>
+#include "wx/ogl/ogl.h"
+
 
 class wxDividedShapeControlPoint: public wxControlPoint
 {
index 88bae8f5caa4172d6f2f0ff978365c227e38eadf..4801501c5e7a2e833b8def15cc4ffd01144717aa 100644 (file)
 #include <wx/wx.h>
 #endif
 
-#if wxUSE_DEPRECATED
+#if wxUSE_PROLOGIO
 #include <wx/deprecated/wxexpr.h>
 #endif
 
-#include <wx/ogl/basic.h>
-#include <wx/ogl/basicp.h>
-#include <wx/ogl/canvas.h>
-#include <wx/ogl/mfutils.h>
-#include <wx/ogl/drawn.h>
-#include <wx/ogl/drawnp.h>
-#include <wx/ogl/misc.h>
+#include "wx/ogl/ogl.h"
+
 
 #include <math.h>
 
index 76f10c4aeb6c71d6ef1624d7d24931a3dc196261..b0f0d6dca2a81b45a081513d264fafdc08a83ebc 100644 (file)
@@ -25,7 +25,7 @@
 #include <wx/wx.h>
 #endif
 
-#if wxUSE_DEPRECATED
+#if wxUSE_PROLOGIO
 #include <wx/deprecated/wxexpr.h>
 #endif
 
 #include <ctype.h>
 #include <math.h>
 
-#include <wx/ogl/basic.h>
-#include <wx/ogl/basicp.h>
-#include <wx/ogl/lines.h>
-#include <wx/ogl/linesp.h>
-#include <wx/ogl/drawn.h>
-#include <wx/ogl/misc.h>
-#include <wx/ogl/canvas.h>
+#include "wx/ogl/ogl.h"
+
 
 // Line shape
 IMPLEMENT_DYNAMIC_CLASS(wxLineShape, wxShape)
@@ -519,7 +514,7 @@ bool wxLineShape::HitTest(double x, double y, int *attachment, double *distance)
       seg_len*((x-point1->x)*dy-(y-point1->y)*dx)/(dy*dy+dx*dx);
     double distance_from_prev =
       seg_len*((y-point1->y)*dy+(x-point1->x)*dx)/(dy*dy+dx*dx);
-    
+
     if ((fabs(distance_from_seg) < extra &&
          distance_from_prev >= 0 && distance_from_prev <= seg_len)
         || inLabelRegion)
index 27f471e4142229617e99df6f09f83d31cc2837e3..0f3e33e2c48a04d71f134866f88aaf672069be72 100644 (file)
@@ -27,7 +27,8 @@
 #include <wx/metafile.h>
 #include <wx/utils.h>
 
-#include <wx/ogl/mfutils.h>
+#include "wx/ogl/ogl.h"
+
 #include <stdio.h>
 
 static char _buf[1024]; // a temp buffer to use inplace of wxBuffer, which is deprecated.
index 503d4cb809b6f960e7d141b76e716f231c9e6720..ebebf6b62022d0c99b5ec056687d9f79bf2127c1 100644 (file)
@@ -24,7 +24,7 @@
 #include <wx/wx.h>
 #endif
 
-#if wxUSE_DEPRECATED
+#if wxUSE_PROLOGIO
 #include <wx/deprecated/wxexpr.h>
 #endif
 
 #include <math.h>
 #include <stdlib.h>
 
-#include <wx/ogl/basic.h>
-#include <wx/ogl/basicp.h>
-#include <wx/ogl/canvas.h>
-#include <wx/ogl/ogldiag.h>
-#include <wx/ogl/lines.h>
-#include <wx/ogl/composit.h>
-#include <wx/ogl/misc.h>
+#include "wx/ogl/ogl.h"
+
 
 IMPLEMENT_DYNAMIC_CLASS(wxDiagram, wxObject)
 
index cd29d7437b13356b649de9760d8351c342a21e03..7de32c2c77a080509adc54d494e123ecdb7c8fe2 100644 (file)
@@ -24,7 +24,7 @@
 #include <wx/wx.h>
 #endif
 
-#if wxUSE_DEPRECATED
+#if wxUSE_PROLOGIO
 #include <wx/deprecated/wxexpr.h>
 #endif
 
 #include <math.h>
 #include <stdlib.h>
 
-#include <wx/ogl/basic.h>
-#include <wx/ogl/basicp.h>
-#include <wx/ogl/misc.h>
-#include <wx/ogl/constrnt.h>
-#include <wx/ogl/composit.h>
+#include "wx/ogl/ogl.h"
+
 
 wxFont*         g_oglNormalFont;
 wxPen*          g_oglBlackPen;