Panda3D

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