Go to the documentation of this file.
23 #ifndef GNASH_SWF_MORPH_SHAPE_H
24 #define GNASH_SWF_MORPH_SHAPE_H
32 class movie_definition;
void read(SWFStream &in, SWF::TagType tag, movie_definition &m, const RunResources &r)
Parse path data from a SWFStream.
Definition: ShapeRecord.cpp:225
TagType
SWF tag types. Symbolic names copied from Ming.
Definition: SWF.h:31
Immutable data representing the definition of a movie display element.
Definition: DefinitionTag.h:48
@ i
Definition: GnashKey.h:155
void addFillStyle(const FillStyle &fs)
Definition: ShapeRecord.cpp:96
std::pair< FillStyle, boost::optional< FillStyle > > OptionalFillPair
Either a single or a morph-pair FillStyle.
Definition: TypesParser.h:52
DefineMorphShape tag.
Definition: DefineMorphShapeTag.h:46
const Subshapes & subshapes() const
Definition: ShapeRecord.h:158
unsigned read_variable_count()
Read a length in a byte or three.
Definition: SWFStream.h:244
Anonymous namespace for callbacks, local functions, event handlers etc.
Definition: dbus_ext.cpp:41
virtual void addDisplayObject(std::uint16_t, DefinitionTag *)
Add a DefinitionTag with given ID to the CharactersDictionary.
Definition: movie_definition.h:233
Base class for render handlers.
Definition: Renderer.h:189
virtual ~DefineMorphShapeTag()
Definition: DefineMorphShapeTag.h:52
@ m
Definition: GnashKey.h:159
@ DEFINEMORPHSHAPE2
Definition: SWF.h:111
Definition: ShapeRecord.h:41
#define UNUSED(x)
Definition: utility.h:113
Client program's interface to the definition of a movie or sprite.
Definition: movie_definition.h:96
Rectangle class, see swf defined rectangle record.
Definition: SWFRect.h:45
@ r
Definition: GnashKey.h:164
@ DEFINEMORPHSHAPE
Definition: SWF.h:76
const ShapeRecord & shape2() const
Definition: DefineMorphShapeTag.h:64
std::uint32_t read_u32()
Read a aligned unsigned 32-bit value from the stream.
Definition: SWFStream.cpp:361
void addSubshape(const Subshape &subshape)
Definition: ShapeRecord.h:162
Class to group together per-run and external resources for Gnash.
Definition: RunResources.h:54
const ShapeRecord & shape1() const
Definition: DefineMorphShapeTag.h:60
#define IF_VERBOSE_PARSE(x)
Definition: log.h:378
OptionalFillPair readFills(SWFStream &in, SWF::TagType t, movie_definition &md, bool readMorph)
Read FillStyles from a stream.
Definition: TypesParser.cpp:161
virtual DisplayObject * createDisplayObject(Global_as &gl, DisplayObject *parent) const
Create a DisplayObject with the given parent.
Definition: DefineMorphShapeTag.cpp:69
void log_parse(StringType msg, Args... args)
Definition: log.h:313
movie_root & getRoot(const as_environment &env)
Definition: as_environment.cpp:645
virtual void drawShape(const SWF::ShapeRecord &shape, const Transform &xform)=0
The Global object ultimately contains all objects in an ActionScript run.
Definition: Global_as.h:50
std::uint16_t read_u16()
Read a aligned unsigned 16-bit value from the stream.
Definition: SWFStream.cpp:332
void display(Renderer &renderer, const ShapeRecord &shape, const Transform &base) const
Definition: DefineMorphShapeTag.cpp:76
std::uint8_t read_u8()
Read a aligned unsigned 8-bit value from the stream.
Definition: SWFStream.cpp:319
static void loader(SWFStream &in, TagType tag, movie_definition &m, const RunResources &r)
Definition: DefineMorphShapeTag.cpp:46
DisplayObject is the base class for all DisplayList objects.
Definition: DisplayObject.h:169
Holds information needed to draw a shape.
Definition: ShapeRecord.h:127
A DisplayObject that tweens between two shapes.
Definition: MorphShape.h:49
SWF stream wrapper class.
Definition: SWFStream.h:59
SWFRect readRect(SWFStream &in)
Read a bit-packed rectangle from an SWF stream.
Definition: TypesParser.cpp:130
void align()
Consume all bits of current byte.
Definition: SWFStream.h:135
void ensureBytes(unsigned long needed)
Ensure the requested number of bytes are available for an aligned read in the currently opened tag.
Definition: SWFStream.cpp:50
@ SWF
Definition: GnashKey.h:331
void addLineStyle(const LineStyle &ls)
Definition: ShapeRecord.h:86
void setBounds(const SWFRect &bounds)
Definition: ShapeRecord.h:179
@ DEFINEMORPHSHAPE2_
Definition: SWF.h:98