mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-19 13:15:00 -04:00
add more loader options
This commit is contained in:
parent
3f87411790
commit
dced1a00cb
@ -1,52 +1,54 @@
|
|||||||
// Filename: loaderOptions.h
|
// Filename: loaderOptions.h
|
||||||
// Created by: drose (05Oct05)
|
// Created by: drose (05Oct05)
|
||||||
//
|
//
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// PANDA 3D SOFTWARE
|
// PANDA 3D SOFTWARE
|
||||||
// Copyright (c) 2001 - 2004, Disney Enterprises, Inc. All rights reserved
|
// Copyright (c) 2001 - 2004, Disney Enterprises, Inc. All rights reserved
|
||||||
//
|
//
|
||||||
// All use of this software is subject to the terms of the Panda 3d
|
// All use of this software is subject to the terms of the Panda 3d
|
||||||
// Software license. You should have received a copy of this license
|
// Software license. You should have received a copy of this license
|
||||||
// along with this source code; you will also find a current copy of
|
// along with this source code; you will also find a current copy of
|
||||||
// the license at http://etc.cmu.edu/panda3d/docs/license/ .
|
// the license at http://etc.cmu.edu/panda3d/docs/license/ .
|
||||||
//
|
//
|
||||||
// To contact the maintainers of this program write to
|
// To contact the maintainers of this program write to
|
||||||
// panda3d-general@lists.sourceforge.net .
|
// panda3d-general@lists.sourceforge.net .
|
||||||
//
|
//
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
#ifndef LOADEROPTIONS_H
|
#ifndef LOADEROPTIONS_H
|
||||||
#define LOADEROPTIONS_H
|
#define LOADEROPTIONS_H
|
||||||
|
|
||||||
#include "pandabase.h"
|
#include "pandabase.h"
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
// Class : LoaderOptions
|
// Class : LoaderOptions
|
||||||
// Description : Specifies parameters that may be passed to the
|
// Description : Specifies parameters that may be passed to the
|
||||||
// loader.
|
// loader.
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
class EXPCL_PANDA LoaderOptions {
|
class EXPCL_PANDA LoaderOptions {
|
||||||
PUBLISHED:
|
PUBLISHED:
|
||||||
// At the moment, we only have this one set of flags. Maybe one day
|
// At the moment, we only have this one set of flags. Maybe one day
|
||||||
// there will be more options.
|
// there will be more options.
|
||||||
enum LoaderFlags {
|
enum LoaderFlags {
|
||||||
LF_search = 0x0001,
|
LF_search = 0x0001,
|
||||||
LF_report_errors = 0x0002,
|
LF_report_errors = 0x0002,
|
||||||
LF_convert_anim = 0x0004,
|
LF_convert_skeleton = 0x0004,
|
||||||
};
|
LF_convert_channels = 0x0008,
|
||||||
|
LF_convert_anim = 0x000c, // skeleton + channels
|
||||||
INLINE LoaderOptions(int flags = LF_search | LF_report_errors);
|
};
|
||||||
INLINE LoaderOptions(const LoaderOptions ©);
|
|
||||||
INLINE void operator = (const LoaderOptions ©);
|
INLINE LoaderOptions(int flags = LF_search | LF_report_errors);
|
||||||
|
INLINE LoaderOptions(const LoaderOptions ©);
|
||||||
INLINE void set_flags(int flags);
|
INLINE void operator = (const LoaderOptions ©);
|
||||||
INLINE int get_flags() const;
|
|
||||||
|
INLINE void set_flags(int flags);
|
||||||
private:
|
INLINE int get_flags() const;
|
||||||
int _flags;
|
|
||||||
};
|
private:
|
||||||
|
int _flags;
|
||||||
#include "loaderOptions.I"
|
};
|
||||||
|
|
||||||
#endif
|
#include "loaderOptions.I"
|
||||||
|
|
||||||
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user