partsyspacket.h File Reference

Object for packing particle system initialization parameters before sending them over the network. More...

#include "lluuid.h"

Include dependency graph for partsyspacket.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  LLPartInitData
class  LLPartSysCompressedPacket

Functions

void gSetInitDataDefaults (LLPartInitData *setMe)

Variables

const U64 PART_SYS_MAX_TIME_IN_USEC = 1000000
const int PART_SYS_NO_Z_BUFFER_BYTE = 0
const int PART_SYS_NO_Z_BUFFER_BIT = 2
const int PART_SYS_SLOW_ANIM_BYTE = 0
const int PART_SYS_SLOW_ANIM_BIT = 1
const int PART_SYS_FOLLOW_VEL_BYTE = 0
const int PART_SYS_FOLLOW_VEL_BIT = 4
const int PART_SYS_IS_LIGHT_BYTE = 0
const int PART_SYS_IS_LIGHT_BIT = 8
const int PART_SYS_SPAWN_COPY_BYTE = 0
const int PART_SYS_SPAWN_COPY_BIT = 0x10
const int PART_SYS_COPY_VEL_BYTE = 0
const int PART_SYS_COPY_VEL_BIT = 0x20
const int PART_SYS_INVISIBLE_BYTE = 0
const int PART_SYS_INVISIBLE_BIT = 0x40
const int PART_SYS_ADAPT_TO_FRAMERATE_BYTE = 0
const int PART_SYS_ADAPT_TO_FRAMERATE_BIT = 0x80
const U16 MAX_PART_SYS_PACKET_SIZE = 256
const U8 PART_SYS_KILL_P_MASK = 0x02
const U8 PART_SYS_BOUNCE_P_MASK = 0x04
const U8 PART_SYS_BOUNCE_B_MASK = 0x08
const U8 PART_SYS_VEL_OFFSET_MASK = 0x10
const U8 PART_SYS_ALPHA_SCALE_DIFF_MASK = 0x20
const U8 PART_SYS_SCALE_RANGE_MASK = 0x40
const U8 PART_SYS_M_IMAGE_UUID_MASK = 0x80
const U8 PART_SYS_BYTE_3_ALPHA_MASK = 0x01
const U8 PART_SYS_BYTE_SPAWN_MASK = 0x01
const U8 PART_SYS_BYTE_ENVIRONMENT_MASK = 0x02
const U8 PART_SYS_BYTE_LIFESPAN_MASK = 0x04
const U8 PART_SYS_BYTE_DECAY_DAMP_MASK = 0x08
const U8 PART_SYS_BYTE_WIND_DIFF_MASK = 0x10
const int PART_SYS_ACTION_BYTE = 1
const U8 PART_SYS_SPAWN = 0x01
const U8 PART_SYS_BOUNCE = 0x02
const U8 PART_SYS_AFFECTED_BY_WIND = 0x04
const U8 PART_SYS_AFFECTED_BY_GRAVITY = 0x08
const U8 PART_SYS_EVALUATE_WIND_PER_PARTICLE = 0x10
const U8 PART_SYS_DAMP_MOTION = 0x20
const U8 PART_SYS_WIND_DIFFUSION = 0x40
const int PART_SYS_KILL_BYTE = 2
const U8 PART_SYS_KILL_PLANE = 0x01
const U8 PART_SYS_GLOBAL_DIE = 0x02
const U8 PART_SYS_DISTANCE_DEATH = 0x04
const U8 PART_SYS_TIME_DEATH = 0x08


Detailed Description

Object for packing particle system initialization parameters before sending them over the network.

LicenseInfo
firstyear=2000&license=viewergpl

Copyright (c) 2000-2007, Linden Research, Inc.

Second Life Viewer Source Code The source code in this file ("Source Code") is provided by Linden Lab to you under the terms of the GNU General Public License, version 2.0 ("GPL"), unless you have obtained a separate licensing agreement ("Other License"), formally executed by you and Linden Lab. Terms of the GPL can be found in doc/GPL-license.txt in this distribution, or online at http://secondlife.com/developers/opensource/gplv2

There are special exceptions to the terms and conditions of the GPL as it is applied to this Source Code. View the full text of the exception in the file doc/FLOSS-exception.txt in this software distribution, or online at http://secondlife.com/developers/opensource/flossexception

By copying, modifying or distributing this software, you acknowledge that you have read and understood your obligations described above, and agree to abide by those obligations.

ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, COMPLETENESS OR PERFORMANCE. $/LicenseInfo$

Definition in file partsyspacket.h.


Function Documentation

void gSetInitDataDefaults ( LLPartInitData setMe  ) 

Definition at line 39 of file partsyspacket.cpp.

References LLPartInitData::alpha_range, LLPartInitData::alphaDecay, LLPartInitData::bounce_b, LLPartInitData::bouncePlaneNormal, LLPartInitData::bouncePlaneZ, LLPartInitData::createMe, LLPartInitData::currentGravity, LLPartInitData::dampMotionFactor, LLPartInitData::diffEqAlpha, LLPartInitData::diffEqScale, LLPartInitData::distanceDeath, LLPartInitData::globalLifetime, LLPartInitData::gravityWeight, i, IMG_SHOT, LLPartInitData::individualLifetime, LLPartInitData::individualLifetimeRange, LLPartInitData::initialParticles, LLPartInitData::killPlaneNormal, LLPartInitData::killPlaneZ, LLPartInitData::maxParticles, LLPartInitData::mDistBeginFadeout, LLPartInitData::mDistEndFadeout, LLPartInitData::mFlags, LLPartInitData::mImageUuid, PART_SYS_ACTION_BYTE, PART_SYS_AFFECTED_BY_GRAVITY, PART_SYS_AFFECTED_BY_WIND, PART_SYS_DISTANCE_DEATH, PART_SYS_KILL_BYTE, PART_SYS_TIME_DEATH, LLPartInitData::scale_range, LLPartInitData::scaleDecay, LLPartInitData::spawnDirection, LLPartInitData::spawnDirectionRange, LLPartInitData::spawnFreqencyRange, LLPartInitData::spawnFrequency, LLPartInitData::spawnRange, LLPartInitData::spawnVelocity, LLPartInitData::spawnVelocityRange, LLPartInitData::speedLimit, TRUE, LLPartInitData::vel_offset, LLPartInitData::windDiffusionFactor, and LLPartInitData::windWeight.

Referenced by LLPartSysCompressedPacket::LLPartSysCompressedPacket(), and LLPartSysCompressedPacket::toLLPartInitData().


Variable Documentation

const U16 MAX_PART_SYS_PACKET_SIZE = 256

Definition at line 161 of file partsyspacket.h.

Referenced by LLPartSysCompressedPacket::LLPartSysCompressedPacket().

const int PART_SYS_ACTION_BYTE = 1

Definition at line 183 of file partsyspacket.h.

Referenced by gSetInitDataDefaults().

const int PART_SYS_ADAPT_TO_FRAMERATE_BIT = 0x80

Definition at line 156 of file partsyspacket.h.

const int PART_SYS_ADAPT_TO_FRAMERATE_BYTE = 0

Definition at line 155 of file partsyspacket.h.

const U8 PART_SYS_AFFECTED_BY_GRAVITY = 0x08

Definition at line 187 of file partsyspacket.h.

Referenced by gSetInitDataDefaults().

const U8 PART_SYS_AFFECTED_BY_WIND = 0x04

Definition at line 186 of file partsyspacket.h.

Referenced by gSetInitDataDefaults().

const U8 PART_SYS_ALPHA_SCALE_DIFF_MASK = 0x20

Definition at line 170 of file partsyspacket.h.

Referenced by LLPartSysCompressedPacket::fromLLPartInitData(), LLPartSysCompressedPacket::toLLPartInitData(), and LLPartSysCompressedPacket::writeFlagByte().

const U8 PART_SYS_BOUNCE = 0x02

Definition at line 185 of file partsyspacket.h.

const U8 PART_SYS_BOUNCE_B_MASK = 0x08

Definition at line 166 of file partsyspacket.h.

Referenced by LLPartSysCompressedPacket::fromLLPartInitData(), LLPartSysCompressedPacket::toLLPartInitData(), and LLPartSysCompressedPacket::writeFlagByte().

const U8 PART_SYS_BOUNCE_P_MASK = 0x04

Definition at line 165 of file partsyspacket.h.

Referenced by LLPartSysCompressedPacket::fromLLPartInitData(), LLPartSysCompressedPacket::toLLPartInitData(), and LLPartSysCompressedPacket::writeFlagByte().

const U8 PART_SYS_BYTE_3_ALPHA_MASK = 0x01

Definition at line 173 of file partsyspacket.h.

Referenced by LLPartSysCompressedPacket::fromLLPartInitData(), LLPartSysCompressedPacket::toLLPartInitData(), and LLPartSysCompressedPacket::writeFlagByte().

const U8 PART_SYS_BYTE_DECAY_DAMP_MASK = 0x08

Definition at line 178 of file partsyspacket.h.

Referenced by LLPartSysCompressedPacket::fromLLPartInitData(), and LLPartSysCompressedPacket::toLLPartInitData().

const U8 PART_SYS_BYTE_ENVIRONMENT_MASK = 0x02

Definition at line 176 of file partsyspacket.h.

Referenced by LLPartSysCompressedPacket::fromLLPartInitData(), and LLPartSysCompressedPacket::toLLPartInitData().

const U8 PART_SYS_BYTE_LIFESPAN_MASK = 0x04

Definition at line 177 of file partsyspacket.h.

Referenced by LLPartSysCompressedPacket::fromLLPartInitData(), and LLPartSysCompressedPacket::toLLPartInitData().

const U8 PART_SYS_BYTE_SPAWN_MASK = 0x01

Definition at line 175 of file partsyspacket.h.

Referenced by LLPartSysCompressedPacket::fromLLPartInitData(), and LLPartSysCompressedPacket::toLLPartInitData().

const U8 PART_SYS_BYTE_WIND_DIFF_MASK = 0x10

Definition at line 179 of file partsyspacket.h.

Referenced by LLPartSysCompressedPacket::fromLLPartInitData(), and LLPartSysCompressedPacket::toLLPartInitData().

const int PART_SYS_COPY_VEL_BIT = 0x20

Definition at line 150 of file partsyspacket.h.

const int PART_SYS_COPY_VEL_BYTE = 0

Definition at line 149 of file partsyspacket.h.

const U8 PART_SYS_DAMP_MOTION = 0x20

Definition at line 189 of file partsyspacket.h.

const U8 PART_SYS_DISTANCE_DEATH = 0x04

Definition at line 196 of file partsyspacket.h.

Referenced by gSetInitDataDefaults().

const U8 PART_SYS_EVALUATE_WIND_PER_PARTICLE = 0x10

Definition at line 188 of file partsyspacket.h.

const int PART_SYS_FOLLOW_VEL_BIT = 4

Definition at line 140 of file partsyspacket.h.

const int PART_SYS_FOLLOW_VEL_BYTE = 0

Definition at line 139 of file partsyspacket.h.

const U8 PART_SYS_GLOBAL_DIE = 0x02

Definition at line 195 of file partsyspacket.h.

const int PART_SYS_INVISIBLE_BIT = 0x40

Definition at line 153 of file partsyspacket.h.

const int PART_SYS_INVISIBLE_BYTE = 0

Definition at line 152 of file partsyspacket.h.

const int PART_SYS_IS_LIGHT_BIT = 8

Definition at line 143 of file partsyspacket.h.

const int PART_SYS_IS_LIGHT_BYTE = 0

Definition at line 142 of file partsyspacket.h.

const int PART_SYS_KILL_BYTE = 2

Definition at line 193 of file partsyspacket.h.

Referenced by gSetInitDataDefaults().

const U8 PART_SYS_KILL_P_MASK = 0x02

Definition at line 164 of file partsyspacket.h.

Referenced by LLPartSysCompressedPacket::fromLLPartInitData(), LLPartSysCompressedPacket::toLLPartInitData(), and LLPartSysCompressedPacket::writeFlagByte().

const U8 PART_SYS_KILL_PLANE = 0x01

Definition at line 194 of file partsyspacket.h.

const U8 PART_SYS_M_IMAGE_UUID_MASK = 0x80

Definition at line 172 of file partsyspacket.h.

Referenced by LLPartSysCompressedPacket::fromLLPartInitData(), LLPartSysCompressedPacket::toLLPartInitData(), and LLPartSysCompressedPacket::writeFlagByte().

const U64 PART_SYS_MAX_TIME_IN_USEC = 1000000

Definition at line 40 of file partsyspacket.h.

const int PART_SYS_NO_Z_BUFFER_BIT = 2

Definition at line 133 of file partsyspacket.h.

const int PART_SYS_NO_Z_BUFFER_BYTE = 0

Definition at line 132 of file partsyspacket.h.

const U8 PART_SYS_SCALE_RANGE_MASK = 0x40

Definition at line 171 of file partsyspacket.h.

Referenced by LLPartSysCompressedPacket::fromLLPartInitData(), LLPartSysCompressedPacket::toLLPartInitData(), and LLPartSysCompressedPacket::writeFlagByte().

const int PART_SYS_SLOW_ANIM_BIT = 1

Definition at line 137 of file partsyspacket.h.

const int PART_SYS_SLOW_ANIM_BYTE = 0

Definition at line 136 of file partsyspacket.h.

const U8 PART_SYS_SPAWN = 0x01

Definition at line 184 of file partsyspacket.h.

const int PART_SYS_SPAWN_COPY_BIT = 0x10

Definition at line 147 of file partsyspacket.h.

const int PART_SYS_SPAWN_COPY_BYTE = 0

Definition at line 146 of file partsyspacket.h.

const U8 PART_SYS_TIME_DEATH = 0x08

Definition at line 197 of file partsyspacket.h.

Referenced by gSetInitDataDefaults().

const U8 PART_SYS_VEL_OFFSET_MASK = 0x10

Definition at line 169 of file partsyspacket.h.

Referenced by LLPartSysCompressedPacket::fromLLPartInitData(), LLPartSysCompressedPacket::toLLPartInitData(), and LLPartSysCompressedPacket::writeFlagByte().

const U8 PART_SYS_WIND_DIFFUSION = 0x40

Definition at line 190 of file partsyspacket.h.


Generated on Thu Jul 1 06:10:56 2010 for Second Life Viewer by  doxygen 1.4.7