Browse Source

pnmimagetypes: unexpose PNMFileType* classes

They are not exposed to Python, and I cannot think of a good reason to use these classes directly in C++ code.

Call init_libpnmimagetypes() to register these classes with the PNMFileTypeRegistry instead.
rdb 5 years ago
parent
commit
68a4031b22

+ 1 - 1
panda/src/pnmimagetypes/pnmFileTypeBMP.h

@@ -25,7 +25,7 @@
 /**
  * For reading and writing Windows BMP files.
  */
-class EXPCL_PANDA_PNMIMAGETYPES PNMFileTypeBMP : public PNMFileType {
+class PNMFileTypeBMP : public PNMFileType {
 public:
   PNMFileTypeBMP();
 

+ 1 - 1
panda/src/pnmimagetypes/pnmFileTypeEXR.h

@@ -36,7 +36,7 @@ class ImfStdIstream;
 /**
  * For reading and writing EXR floating-point or integer files.
  */
-class EXPCL_PANDA_PNMIMAGETYPES PNMFileTypeEXR : public PNMFileType {
+class PNMFileTypeEXR : public PNMFileType {
 public:
   PNMFileTypeEXR();
 

+ 1 - 1
panda/src/pnmimagetypes/pnmFileTypeIMG.h

@@ -25,7 +25,7 @@
 /**
  * For reading and writing headerless R,G,B files.
  */
-class EXPCL_PANDA_PNMIMAGETYPES PNMFileTypeIMG : public PNMFileType {
+class PNMFileTypeIMG : public PNMFileType {
 public:
   PNMFileTypeIMG();
 

+ 1 - 1
panda/src/pnmimagetypes/pnmFileTypeJPG.h

@@ -55,7 +55,7 @@ extern "C" {
 /**
  * For reading and writing Jpeg files.
  */
-class EXPCL_PANDA_PNMIMAGETYPES PNMFileTypeJPG : public PNMFileType {
+class PNMFileTypeJPG : public PNMFileType {
 public:
   PNMFileTypeJPG();
 

+ 1 - 1
panda/src/pnmimagetypes/pnmFileTypePNG.h

@@ -28,7 +28,7 @@
 /**
  * For reading and writing PNG files.
  */
-class EXPCL_PANDA_PNMIMAGETYPES PNMFileTypePNG : public PNMFileType {
+class PNMFileTypePNG : public PNMFileType {
 public:
   PNMFileTypePNG();
 

+ 1 - 1
panda/src/pnmimagetypes/pnmFileTypePNM.h

@@ -25,7 +25,7 @@
 /**
  * For reading and writing basic PNM files--*.pbm, *.ppm, *.pnm.
  */
-class EXPCL_PANDA_PNMIMAGETYPES PNMFileTypePNM : public PNMFileType {
+class PNMFileTypePNM : public PNMFileType {
 public:
   PNMFileTypePNM();
 

+ 1 - 1
panda/src/pnmimagetypes/pnmFileTypePfm.h

@@ -25,7 +25,7 @@
  * For reading and writing PFM files using the basic PNMImage interface, as if
  * they were basic RGB files.
  */
-class EXPCL_PANDA_PNMIMAGETYPES PNMFileTypePfm : public PNMFileType {
+class PNMFileTypePfm : public PNMFileType {
 public:
   PNMFileTypePfm();
 

+ 1 - 1
panda/src/pnmimagetypes/pnmFileTypeSGI.h

@@ -25,7 +25,7 @@
 /**
  * For reading and writing SGI RGB files.
  */
-class EXPCL_PANDA_PNMIMAGETYPES PNMFileTypeSGI : public PNMFileType {
+class PNMFileTypeSGI : public PNMFileType {
 public:
   PNMFileTypeSGI();
 

+ 1 - 1
panda/src/pnmimagetypes/pnmFileTypeSoftImage.h

@@ -25,7 +25,7 @@
 /**
  * For reading and SoftImage native image files.
  */
-class EXPCL_PANDA_PNMIMAGETYPES PNMFileTypeSoftImage : public PNMFileType {
+class PNMFileTypeSoftImage : public PNMFileType {
 public:
   PNMFileTypeSoftImage();
 

+ 1 - 1
panda/src/pnmimagetypes/pnmFileTypeStbImage.h

@@ -27,7 +27,7 @@
  * when compiling without support for more specific libraries that are more
  * full-featured, such as libpng or libjpeg.
  */
-class EXPCL_PANDA_PNMIMAGETYPES PNMFileTypeStbImage : public PNMFileType {
+class PNMFileTypeStbImage : public PNMFileType {
 public:
   PNMFileTypeStbImage();
 

+ 1 - 2
panda/src/pnmimagetypes/pnmFileTypeTGA.h

@@ -26,11 +26,10 @@
 
 struct ImageHeader;
 
-
 /**
  * For reading and writing Targa image files.
  */
-class EXPCL_PANDA_PNMIMAGETYPES PNMFileTypeTGA : public PNMFileType {
+class PNMFileTypeTGA : public PNMFileType {
 public:
   PNMFileTypeTGA();
 

+ 1 - 1
panda/src/pnmimagetypes/pnmFileTypeTIFF.h

@@ -30,7 +30,7 @@
 /**
  * For reading and writing TIFF files.
  */
-class EXPCL_PANDA_PNMIMAGETYPES PNMFileTypeTIFF : public PNMFileType {
+class PNMFileTypeTIFF : public PNMFileType {
 public:
   PNMFileTypeTIFF();