mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 08:44:19 -04:00
*** empty log message ***
This commit is contained in:
parent
6499b58430
commit
a560dbefd7
@ -189,3 +189,18 @@ INLINE PNMFileType *PNMImageHeader::
|
|||||||
get_type() const {
|
get_type() const {
|
||||||
return _type;
|
return _type;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
////////////////////////////////////////////////////////////////////
|
||||||
|
// Function: PNMImageHeader::set_type
|
||||||
|
// Access: Public
|
||||||
|
// Description: Sets the file type of this PNMImage. This will be
|
||||||
|
// the default type used when an image is read, if the
|
||||||
|
// type cannot be determined by magic number or inferred
|
||||||
|
// by extension, or the type used when the image is
|
||||||
|
// written, if the type cannot be inferred from the
|
||||||
|
// filename extension.
|
||||||
|
////////////////////////////////////////////////////////////////////
|
||||||
|
INLINE void PNMImageHeader::
|
||||||
|
set_type(PNMFileType *type) {
|
||||||
|
_type = type;
|
||||||
|
}
|
||||||
|
@ -61,6 +61,7 @@ public:
|
|||||||
|
|
||||||
INLINE bool has_type() const;
|
INLINE bool has_type() const;
|
||||||
INLINE PNMFileType *get_type() const;
|
INLINE PNMFileType *get_type() const;
|
||||||
|
INLINE void set_type(PNMFileType *type);
|
||||||
|
|
||||||
bool read_header(const Filename &filename, PNMFileType *type = NULL);
|
bool read_header(const Filename &filename, PNMFileType *type = NULL);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user