Panda3D

lwoSurfaceBlock.h
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 lwoSurfaceBlock.h
10 * @author drose
11 * @date 2001-04-24
12 */
13
14 #ifndef LWOSURFACEBLOCK_H
15 #define LWOSURFACEBLOCK_H
16
17 #include "pandatoolbase.h"
18
19 #include "lwoGroupChunk.h"
20 #include "lwoSurfaceBlockHeader.h"
21
22 /**
23 * A texture layer or shader, part of a LwoSurface chunk.
24 */
25 class LwoSurfaceBlock : public LwoGroupChunk {
26 public:
27 virtual bool read_iff(IffInputFile *in, size_t stop_at);
28 virtual void write(std::ostream &out, int indent_level = 0) const;
29
30 virtual IffChunk *make_new_chunk(IffInputFile *in, IffId id);
31
32 PT(LwoSurfaceBlockHeader) _header;
33
34 private:
35 static TypeHandle _type_handle;
36 };
37
38 #endif
IffChunk
The basic kind of record in an EA "IFF" file, which the LightWave object file is based on.
Definition: iffChunk.h:30
IffId
A four-byte chunk ID appearing in an "IFF" file.
Definition: iffId.h:26
IffInputFile
A wrapper around an istream used for reading an IFF file.
Definition: iffInputFile.h:30
LwoGroupChunk
A particular kind of LwoChunk that is expected to contain an arbitrary number of child chunks.
Definition: lwoGroupChunk.h:30
LwoSurfaceBlockHeader
The header chunk within a LwoSurfaceBlock chunk.
Definition: lwoSurfaceBlockHeader.h:24
LwoSurfaceBlock
A texture layer or shader, part of a LwoSurface chunk.
Definition: lwoSurfaceBlock.h:25
LwoSurfaceBlock::make_new_chunk
virtual IffChunk * make_new_chunk(IffInputFile *in, IffId id)
Allocates and returns a new chunk of the appropriate type based on the given ID, according to the con...
Definition: lwoSurfaceBlock.cxx:72
LwoSurfaceBlock::read_iff
virtual bool read_iff(IffInputFile *in, size_t stop_at)
Reads the data of the chunk in from the given input file, if possible.
Definition: lwoSurfaceBlock.cxx:37
TypeHandle
TypeHandle is the identifier used to differentiate C++ class types.
Definition: typeHandle.h:81
lwoGroupChunk.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
lwoSurfaceBlockHeader.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
pandatoolbase.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.