Panda3D
 All Classes Functions Variables Enumerations
config_palettizer.cxx
1 // Filename: config_palettizer.cxx
2 // Created by: drose (12Sep03)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 #include "config_palettizer.h"
16 #include "palettizer.h"
17 #include "eggFile.h"
18 #include "paletteGroup.h"
19 #include "paletteGroups.h"
20 #include "textureReference.h"
21 #include "textureProperties.h"
22 #include "imageFile.h"
23 #include "sourceTextureImage.h"
24 #include "destTextureImage.h"
25 #include "textureImage.h"
26 #include "paletteImage.h"
27 #include "texturePlacement.h"
28 #include "texturePosition.h"
29 #include "palettePage.h"
30 
31 #include "dconfig.h"
32 
33 Configure(config_palettizer);
34 
35 ConfigureFn(config_palettizer) {
36  init_palettizer();
37 }
38 
39 ////////////////////////////////////////////////////////////////////
40 // Function: init_libpalettizer
41 // Description: Initializes the library. This must be called at
42 // least once before any of the functions or classes in
43 // this library can be used. Normally it will be
44 // called by the static initializers and need not be
45 // called explicitly, but special cases exist.
46 ////////////////////////////////////////////////////////////////////
47 void
48 init_palettizer() {
49  static bool initialized = false;
50  if (initialized) {
51  return;
52  }
53  initialized = true;
54 
55  Palettizer::init_type();
56  EggFile::init_type();
57  PaletteGroup::init_type();
58  PaletteGroups::init_type();
59  TextureReference::init_type();
60  TextureProperties::init_type();
61  ImageFile::init_type();
62  SourceTextureImage::init_type();
63  DestTextureImage::init_type();
64  TextureImage::init_type();
65  PaletteImage::init_type();
66  TexturePlacement::init_type();
67  TexturePosition::init_type();
68  PalettePage::init_type();
69 
70  // Registration of writable object's creation functions with
71  // BamReader's factory
85 }
static void register_with_read_factory()
Registers the current object as something that can be read from a Bam file.
static void register_with_read_factory()
Registers the current object as something that can be read from a Bam file.
static void register_with_read_factory()
Registers the current object as something that can be read from a Bam file.
static void register_with_read_factory()
Registers the current object as something that can be read from a Bam file.
static void register_with_read_factory()
Registers the current object as something that can be read from a Bam file.
static void register_with_read_factory()
Registers the current object as something that can be read from a Bam file.
static void register_with_read_factory()
Registers the current object as something that can be read from a Bam file.
static void register_with_read_factory()
Registers the current object as something that can be read from a Bam file.
static void register_with_read_factory()
Registers the current object as something that can be read from a Bam file.
Definition: eggFile.cxx:786
static void register_with_read_factory()
Registers the current object as something that can be read from a Bam file.
static void register_with_read_factory()
Registers the current object as something that can be read from a Bam file.
static void register_with_read_factory()
Registers the current object as something that can be read from a Bam file.
static void register_with_read_factory()
Registers the current object as something that can be read from a Bam file.
Definition: palettizer.cxx:988