#include "../Container/FlagSet.h"
#include "../Container/Ptr.h"
#include "../Core/Variant.h"
#include <EASTL/optional.h>
|
enum | Urho3D::AttributeMode {
Urho3D::AM_EDIT = 0,
Urho3D::AM_FILE = 1 << 0,
Urho3D::AM_NOEDIT = 1 << 1,
Urho3D::AM_NODEID = 1 << 2,
Urho3D::AM_COMPONENTID = 1 << 3,
Urho3D::AM_NODEIDVECTOR = 1 << 4,
Urho3D::AM_READONLY = 1 << 5,
Urho3D::AM_PREFAB = 1 << 6,
Urho3D::AM_TEMPORARY = 1 << 7,
Urho3D::AM_DEFAULT = 1 << 0 | 1 << 6
} |
|
enum | Urho3D::AttributeScopeHint { Urho3D::AttributeScopeHint::Attribute,
Urho3D::AttributeScopeHint::Serializable,
Urho3D::AttributeScopeHint::Node,
Urho3D::AttributeScopeHint::Scene
} |
|
|
| Urho3D::URHO3D_FLAGSET (AttributeMode, AttributeModeFlags) |
|
◆ AttributeMode
Enumerator |
---|
AM_EDIT | Attribute shown only in the editor, but not serialized.
|
AM_FILE | Attribute used for file serialization.
|
AM_NOEDIT | Attribute should not be shown in the editor.
|
AM_NODEID | Attribute is a node ID and may need rewriting.
|
AM_COMPONENTID | Attribute is a component ID and may need rewriting.
|
AM_NODEIDVECTOR | Attribute is a node ID vector where first element is the amount of nodes.
|
AM_READONLY | Attribute is readonly. Can't be used with binary serialized objects.
|
AM_PREFAB | Attribute should be saved in prefab.
|
AM_TEMPORARY | Attribute should be saved in temporary storages even when other serialization is disabled.
|
AM_DEFAULT | Default mode, same as AM_FILE and AM_PREFAB.
|
◆ AttributeScopeHint
Attribute scope hint. Indicates the scope of changes caused by an attribute. Used for undo/redo in the Editor.
bool inOrder_
In order flag.
Definition: Connection.h:56
void SetHorizontalAlignment(HorizontalAlignment align)
Definition: Text3D.cpp:251
unsigned long long GetMemoryBudget(StringHash type) const
Definition: ResourceCache.cpp:633
Vector3 GetDesiredVelocity() const
Definition: CrowdAgent.cpp:471
constexpr StringHash() noexcept
Construct with zero value.
Definition: StringHash.h:46
ea::fixed_vector< GraphEnterPin, 1 > enterPins_
Enter pins. Define execution flow.
Definition: GraphNode.h:192
static void RegisterObject(Context *context)
Register object factory.
Definition: Graph.cpp:43
ea::string pixelShaderName_
Pixel shader name.
Definition: Technique.h:230
void Clear(unsigned outerSize)
Clear inner vectors. Reset outer vector to fixed size.
Definition: MultiVector.h:158
TileMapLayerType2D GetType() const
Return type.
Definition: TmxFile2D.h:48
float GetSuspensionStiffness() const
Get suspension stiffness.
VariantType type_
Type of attribute.
Definition: ParticleGraphMemory.h:129
void OpenInternal()
Open a window document if it was not already open.
Definition: RmlUIComponent.cpp:187
IntVector2 ConvertSystemToUI(const IntVector2 &systemPos) const
Convert system mouse position (or offset) to scaled UI position (or offset).
Definition: UI.cpp:770
void SerializeInBlock(Archive &archive) override
Serialize content from/to archive. May throw ArchiveException.
Definition: PluginManager.cpp:269
InternalState
Internal baking state.
Definition: LightBaker.h:79
static void RegisterObject(Context *context)
Definition: Texture2DArray.cpp:55
bool IsCompressed() const
Definition: Sound.h:117
TmxFile2D(Context *context)
Construct.
Definition: TmxFile2D.cpp:376
void SetResizePopup(bool enable)
Definition: DropDownList.cpp:191
ResourceRef GetTextureRef() const
Get texture (for attribute).
Definition: RmlCanvasComponent.cpp:132
void CollectParameters(StringVariantMap ¶ms) const
Fill missing parameters with defaults.
Definition: RenderPath.cpp:22
double radius_
Radius.
Definition: TetrahedralMesh.h:119
float GetAnimationLodBias() const
Definition: ParticleEffect.h:306
float rowHeight_
Row height.
Definition: Text.h:284
ArchiveBlock OpenSafeSequentialBlock(const char *name)
Open safe Sequential block. Will be automatically closed when returned object is destroyed.
Definition: Archive.h:190
bool GetHardwareShadowSupport() const
Definition: Graphics.h:227
float timeScale_
Time step scale.
Definition: ParticleGraphLayer.h:142
void MixMonoToStereoIP(Sound *sound, int dest[], unsigned samples, int mixRate, float effectiveFrequency)
Mix mono sample to stereo buffer interpolated.
Definition: SoundSource.cpp:893
bool threadedUpdate_
Threaded update flag.
Definition: Scene.h:357
CollisionEventMode
Rigid body collision event signaling mode.
Definition: RigidBody.h:43
void LoadPropertySet(const XMLElement &element)
Load property set.
Definition: TmxFile2D.cpp:80
bool enabled_
Is adapter enabled.
Definition: DirectionalPadAdapter.h:134
static void RegisterObject(ParticleGraphSystem *context)
Register particle node factory.
Definition: Break.cpp:38
CubemapRenderer * GetCubemapRenderer() const
Return cubemap renderer, available for dynamic probes.
Definition: ReflectionProbe.h:191
SerializableResource(Context *context)
Construct.
Definition: SerializableResource.cpp:14
@ DD_DISABLED
Drag and drop disabled.
Definition: UIElement.h:107
ListView * GetListView() const
Definition: DropDownList.h:94
virtual void InitializeOnServer()
Perform initialization. Called once.
Definition: NetworkCallbacks.h:76
void SetNetworkObject(BehaviorNetworkObject *owner)
Internal. Set owner NetworkObject.
Definition: BehaviorNetworkObject.cpp:47
void SetEnterAnimation(Animation *value)
Set enter animation.
Definition: TriggerAnimator.cpp:66
void SetBoneNames(const StringVector &names)
Definition: IKChainSolver.h:26
float scaleCorrection_
Scaling factor correct by.
Definition: VirtualReality.h:296
AnimatedModel * GetModel() const
Return connected animated model.
Definition: AnimationState.cpp:218
float GetDampingRatio() const
Definition: ConstraintWeld2D.h:64
unsigned lightMask_
Light mask.
Definition: Terrain.h:383
bool IsObject() const
Definition: JSONValue.h:214
bool sendFinishedEvent_
Ready to send effect finish event flag.
Definition: ParticleEmitter.h:163
unsigned GetUpdateFrequency() const
Definition: ReplicationManager.cpp:320
ea::vector< SharedPtr< Pass > > passes_
Passes.
Definition: Technique.h:328
void BeginThreadedUpdate()
Begin a threaded update. During threaded update components can choose to delay dirty processing.
Definition: Scene.cpp:853
void OnDocumentClosed(Rml::ElementDocument *document)
Definition: RmlUIComponent.cpp:250
bool animated_
Animation enable flag.
Definition: Skeleton.h:83
unsigned checksum_
Scene source file checksum.
Definition: Scene.h:345
void SetInnerAction(FiniteTimeAction *action)
Set inner action.
Definition: Ease.cpp:83
ea::vector< float > vertexData_
UI rendering vertex data.
Definition: UI.h:411
void SetNumTriggers(unsigned num)
Definition: Animation.cpp:557
float reach_
Surround sound forward/back reach.
Definition: SoundSource.h:178
BehaviorNetworkObject * GetNetworkObject() const
Return owner NetworkObject.
Definition: BehaviorNetworkObject.h:58
ea::pair< unsigned, unsigned char * > AddVertices(unsigned count)
Allocate vertices. Returns index of first vertex and writeable buffer of sufficient size.
Definition: VertexBuffer.h:165
CollisionCircle2D(Context *context)
Construct.
Definition: CollisionCircle2D.cpp:36
float GetSourceHeight(int x, int z) const
Return a source terrain height value, clamping to edges. The source data is used for smoothing.
Definition: Terrain.cpp:1318
void SetMaxParticleSize(const Vector2 &size)
Definition: ParticleEffect.cpp:535
float width_
Width of trail.
Definition: RibbonTrail.h:252
Definition: PhysicsWorld.h:72
unsigned readBufferOffset_
Read buffer position.
Definition: File.h:146
void SetCastShadows(bool enable)
Definition: Terrain.cpp:438
const SceneComponentIndex & GetComponentIndex()
Return component index for template type. Invalidated when indexed component is added or removed!
Definition: Scene.h:122
Color GetEffectiveColor() const
Definition: Light.cpp:422
ea::vector< unsigned char > offMeshAreas_
Offmesh connection areas.
Definition: NavBuildData.h:75
Definition: MultitouchAdapter.h:42
bool autoPlacementEnabled_
Whether the auto placement is enabled.
Definition: LightProbeGroup.h:214
T AbsMod(T x, T y)
Return always positive remainder of X/Y.
Definition: MathDefs.h:221
ea::string GetName() const
Definition: Microphone.h:68
SharedPtr< BufferedSoundStream > GetLinked() const
Gets the linked stream target if any.
Definition: Microphone.cpp:185
ValueAnimationInfo * GetAttributeAnimationInfo(const ea::string &name) const
Return attribute animation info by name.
Definition: ObjectAnimation.cpp:256
bool GetBool() const
Return boolean.
Definition: PListFile.cpp:197
void Close()
Close the window.
Definition: Graphics.cpp:196
Lightmap stitching settings.
Definition: LightBakingSettings.h:145
int GetRecommendedMultiSample() const
Returns recommended MSAA level.
Definition: VirtualReality.h:221
void SetUpperAngle(float upperAngle)
Definition: ConstraintRevolute2D.cpp:94
void SetUIElement(UIElement *element)
Set UI element to filter touch events. Only touch events originated in the element going to be handle...
Definition: PointerAdapter.cpp:309
SharedPtr< Texture > backupTexture_
Backup texture.
Definition: Texture.h:237
const CustomVariantValue & AsCustomValue() const
Get custom variant value.
Definition: Variant.h:480
virtual void OnUpdateBegin(const CommonFrameInfo &frameInfo)
Definition: BatchCompositor.cpp:339
IntVector2 size_
Current size.
Definition: AreaAllocator.h:64
static const Vector2 ONE
(1,1) vector.
Definition: Vector2.h:443
void SetSuspensionStiffness(float stiffness)
Set suspension max travel.
int textureAnisotropy_
Texture anisotropy level.
Definition: Renderer.h:371
int maxNonThreadedWorkMs_
Maximum milliseconds per frame to spend on low-priority work, when there are no worker threads.
Definition: WorkQueue.h:262
@ Connected
Connection is ready for sending and receiving data.
Matrix3x4(float v00, float v01, float v02, float v03, float v10, float v11, float v12, float v13, float v20, float v21, float v22, float v23) noexcept
Construct from values.
Definition: Matrix3x4.h:107
float w_
W coordinate.
Definition: Vector4.h:255
unsigned position_
Size of required attribute buffer.
Definition: ParticleGraphMemory.h:138
Static model component.
Definition: StaticModel.h:42
Typed resource reference.
Definition: Variant.h:113
float animationLodBias_
Animation LOD bias.
Definition: AnimatedModel.h:232
void SetAmbientColor(const Color &color)
Definition: Zone.cpp:110
const bool isPose_
Indicates this action pulls the base pose information for the given hand.
Definition: VirtualReality.h:139
IntVector2 position_
Position in screen coordinates.
Definition: Input.h:72
bool GetSerializeParticles() const
Definition: ParticleEmitter.h:110
bool SetFloat(const ea::string &name, float value)
Set a float attribute.
Definition: XMLElement.cpp:367
ea::optional< Quaternion > lastKnownCameraRotation_
Last known camera rotation to keep track of yaw and pitch.
Definition: FreeFlyController.h:140
int Height() const
Definition: Rect.h:425
unsigned lastFrame_
Last frame counter for knowing when to erase the custom world transforms of previous frame.
Definition: Skybox.h:60
void HandleConsoleCommand(StringHash eventType, VariantMap &eventData)
Handle a console command event.
Definition: FileSystem.cpp:1220
Mouse cursor UI element.
Definition: Cursor.h:94
float Ease(float time) const override
Apply easing function to the time argument.
Definition: Ease.h:259
void SuspendApplication(Archive &output, unsigned version)
Suspend application. It's highly recommended to release all plugin-related objects here.
Definition: PluginApplication.cpp:118
ea::string fileName_
URI-like path to the file.
Definition: FileIdentifier.h:66
float GetRadiusThickness() const
Get Radius Thickness.
Definition: Circle.cpp:78
void SetName(const ea::string &name)
Definition: Resource.cpp:167
Definition: RenderPipelineDebugger.h:43
BoundingBox(const Polyhedron &poly)
Construct from a polyhedron.
Definition: BoundingBox.h:108
void SetTexture(Texture *texture)
Definition: Sprite.cpp:193
unsigned uvChannel_
Lightmap UV channel. 2nd channel by default.
Definition: LightBakingSettings.h:60
ArchiveBlock OpenBlock(const char *name, unsigned sizeHint, bool safe, ArchiveBlockType type)
Definition: Archive.h:173
static void RegisterObject(Context *context)
Definition: CollisionShape2D.cpp:54
Vector2(float x, float y) noexcept
Construct from coordinates.
Definition: Vector2.h:211
void ProcessRayQuery(const RayOctreeQuery &query, ea::vector< RayQueryResult > &results) override
Process octree raycast. May be called from a worker thread.
Definition: RibbonTrail.cpp:130
void SetMinFps(int fps)
Definition: Engine.cpp:826
void SetData(const ByteVector &data)
Set data.
Definition: BinaryFile.cpp:108
bool IsReadOnly() const
Return whether buffer is read-only.
Definition: MemoryBuffer.h:62
void Render(const SharedRenderPassState &sharedState) override
Execute render commands.
Definition: AmbientOcclusionPass.cpp:116
bool SetSize(unsigned vertexCount, const ea::vector< VertexElement > &elements, bool dynamic=false)
Set size, vertex elements and dynamic mode. Previous data will be lost.
Definition: VertexBuffer.cpp:145
StringHash GetHash() const
Definition: ConstString.h:51
float GetMapWidth() const
Definition: TileMapDefs2D.cpp:35
RenderBuffer * GetColorOutput() const
Return color render buffer. Changes on SwapColorBuffers.
Definition: RenderBufferManager.h:149
Mutex octreeMutex_
Mutex for octree reinsertions.
Definition: Octree.h:300
unsigned GetCollisionLayer() const
Definition: RigidBody.h:272
Named pipe for interprocess communication.
Definition: NamedPipe.h:36
LogLevel level_
Logging level.
Definition: Log.h:200
static float SolveCubic(const Vector3 &abc)
Calculate most positive root of cubic equation x^3 + a*x^2 + b*x + c = 0.
Definition: TetrahedralMesh.cpp:337
Rect(const Vector4 &vector) noexcept
Construct from a Vector4.
Definition: Rect.h:57
virtual void UpdateSourceBatches()=0
Update source batches.
unsigned EvaluateInstanceSize() const override
Evaluate size required to place new node instance.
Definition: Curve.cpp:102
bool occludee_
Occludee flag.
Definition: Drawable.h:453
float constantBias_
Constant bias.
Definition: Light.h:104
void ResetBones()
Reset node transforms of skeleton bones.
Definition: AnimatedModel.cpp:583
bool GetResizePopup() const
Definition: DropDownList.h:106
unsigned GetMaxLayers() const
Definition: DynamicNavigationMesh.h:95
UI element that can be navigated with arrows.
Definition: RmlNavigable.h:67
ea::vector< DebugTriangle > noDepthTriangles_
Triangles rendered without depth test.
Definition: DebugRenderer.h:196
ActionBuilder & BackInOut()
Combine with BackInOut action.
Definition: ActionBuilder.cpp:303
void SetCursorShape(WindowDragMode mode, Cursor *cursor) const
Set cursor shape based on drag mode.
Definition: Window.cpp:367
Batch compositor for single scene pass.
Definition: BatchCompositor.h:139
unsigned long long GetBytesInPerSec() const
Definition: Connection.cpp:665
static const Vector2 RIGHT
(1,0) vector.
Definition: Vector2.h:437
bool addLights_
Whether to add directional light source if scene doesn't contain any light sources.
Definition: GLTFImporter.h:73
const IntVector2 & GetEffectShadowOffset() const
Definition: Text.h:184
ParticleGraphNodeInstance * CreateInstanceAt(void *ptr, ParticleGraphLayerInstance *layer) override
Place new instance at the provided address.
Definition: Uniform.h:91
bool BeginLoadXML(Deserializer &source)
Helper function for loading XML files.
Definition: Material.cpp:266
void Update(float timeStep)
Update state manager. This is called automatically by the engine every frame.
Definition: StateManager.cpp:616
Message box dialog.
Definition: SystemMessageBox.h:33
void OnSceneSet(Scene *scene) override
Handle scene being assigned.
Definition: AnimationController.cpp:1000
void OnSetEnabled() override
Handle enabled/disabled state change.
Definition: ParticleEmitter2D.cpp:73
AnimationStateVector animationStates_
Animation states. Shared with AnimatedModel when possible.
Definition: AnimationStateSource.h:33
bool Save(Serializer &dest, int pointSize, const ea::string &indentation="\t")
Save as a new bitmap font type in XML format. Return true if successful.
Definition: FontFaceBitmap.cpp:267
HorizontalAlignment GetHorizontalAlignment() const
Definition: UIElement.cpp:1536
PipelineState * GetState(StaticPipelineStateId id, const PipelineStateOutputDesc &outputDesc)
Get or create pipeline state for given ID and output layout.
Definition: StaticPipelineStateCache.cpp:36
AnimationChannelFlags channelMask_
Bitmask of included data (position, rotation, scale).
Definition: AnimationTrack.h:61
void SetVisible(bool enable)
Definition: UIElement.cpp:985
Octree(Context *context)
Construct.
Definition: Octree.cpp:405
int Refs() const noexcept
Return the object's reference count, or 0 if the pointer is null.
Definition: Ptr.h:305
void SetRotation(float angle)
Definition: Sprite.cpp:184
unsigned GetNumChildren(bool recursive=false) const
Return number of child elements.
Definition: UIElement.cpp:1658
StringHash GetNameHash() const
Name hash of the pin.
Definition: ParticleGraphPin.h:90
bool BackgroundLoadResource(StringHash type, const ea::string &name, bool sendEventOnFailure=true, Resource *caller=nullptr)
Background load a resource. An event will be sent when complete. Return true if successfully stored t...
Definition: ResourceCache.cpp:528
unsigned GetNumPins() const override
Get number of pins.
Definition: Helpers.cpp:118
unsigned GetVertexCount() const
Definition: CollisionPolygon2D.h:54
Vector3 halfSize_
World bounding box half size.
Definition: Octree.h:157
void CreateBody()
Create body.
Definition: RigidBody2D.cpp:334
RaycastVehicleWheel * GetWheel(unsigned index) const
Get wheel.
Definition: RaycastVehicle.cpp:360
BoundingBox GetTileBoundingBoxColumn(const IntVector2 &tileIndex) const
Return bounding box of the tile in the world space. Y coordinate spans from -infinity to infinity.
Definition: NavigationMesh.cpp:529
virtual void Update(const FrameInfo &frameInfo)=0
Called for defined pipelines before rendering. Frame info is only partially filled.
void SetNumSoftwareSkinningBones(unsigned numBones)
Set number of bones used for software skinning.
Definition: Renderer.cpp:342
ea::unordered_map< ea::string, Variant, ea::hash< ea::string >, ea::equal_to< ea::string >, EASTLAllocatorType, true > StringVariantMap
Map from string to Variant. Cache string hashes.
Definition: Variant.h:106
IntVector2 GetSize() const
Definition: Graphics.h:184
SharedPtr< XMLFile > loadParameters_
Parameter file acquired during BeginLoad.
Definition: Texture3D.h:66
unsigned stepRate_
Instancing data steprate.
Definition: GraphicsDefs.h:130
Rect Projected(const Matrix4 &projection) const
Return projected by a 4x4 projection matrix.
Definition: Frustum.cpp:209
bool zoneDirty_
Zone inconclusive or dirtied flag.
Definition: Drawable.h:457
Static sprite component.
Definition: StaticSprite2D.h:33
BoundingBox GetBoundingBox() const
Definition: NavArea.h:57
float scaleWeight_
Weight of the scale channel.
Definition: AnimationTrack.h:67
SharedPtr< FiniteTimeAction > Reverse() const override
Create reversed action.
Definition: Ease.cpp:402
const BoundingBox & GetBoundingBox() const
Definition: Drawable.h:287
void SetGravity(const Vector3 &gravity)
Set gravity.
Definition: KinematicCharacterController.cpp:485
unsigned Synchronize(float overtime)
Definition: TickSynchronizer.cpp:73
RmlUI * GetOwnerSubsystem() const
Get owner subsystem pointer.
Definition: RmlUI.h:212
~KinematicCharacterController() override
Destruct.
Definition: KinematicCharacterController.cpp:67
float erp_
Error reduction parameter.
Definition: Constraint.h:223
bool storeUV_
Whether to store main texture UV.
Definition: RaytracerScene.h:56
2D array template.
Definition: Array2D.h:110
ea::unique_ptr< int[]> clipBuffer_
Clipping buffer for mixing.
Definition: Audio.h:154
void WarpKinematic(const Vector3 &position)
Instantly reset character position to new value.
Definition: KinematicCharacterController.cpp:457
void FromAngleAxis(float angle, const Vector3 &axis)
Define from an angle (in degrees) and axis.
Definition: Quaternion.cpp:37
Technique(Context *context)
Construct.
Definition: Technique.cpp:247
static const AnimationParameters EMPTY
Empty AnimationParameters.
Definition: AnimationController.h:129
void InitializeView(RenderPipelineView *view)
Initialize render path before using it in view.
Definition: RenderPath.cpp:28
void StopLockless()
Stop sound without locking the audio mutex. Called internally.
Definition: SoundSource.cpp:628
void SetFinishParticleSizeVariance(float finishParticleSizeVariance)
Set finish particle size variance.
Definition: ParticleEffect2D.cpp:406
unsigned EvaluateInstanceSize() const override
Evaluate size required to place new node instance.
Definition: Helpers.cpp:122
ea::optional< ClockSynchronizerMessage > PollMessage()
Receive outgoing message if there is any. Should be called as late as possible.
Definition: ClockSynchronizer.cpp:176
Color or depth-stencil surface that can be rendered into.
Definition: RenderSurface.h:40
Attribute(Context *context)
Construct.
Definition: Attribute.cpp:58
Animation * animation_
Current animation.
Definition: SpriterInstance2D.h:99
void SetWindowTitle(const ea::string &windowTitle)
Definition: Graphics.cpp:249
static const VariantBuffer emptyBuffer
Empty buffer.
Definition: Variant.h:1651
void SetSelected(Component *component, bool selected, bool activated=true)
Set whether the component is selected.
Definition: SceneSelection.cpp:200
ea::vector< Vector4 > light_
Indirect light. W component represents normalization weight.
Definition: LightTracer.h:114
unsigned GetTimerPeriod() const
Return current low-resolution timer period in milliseconds.
Definition: Timer.h:106
StringHash GetAnimationNameHash() const
Return animation name hash.
Definition: Animation.h:104
unsigned which_
Last seen index by SDL.
Definition: Microphone.h:110
static const Variant EMPTY
Empty variant.
Definition: Variant.h:1649
SharedPtr< FiniteTimeAction > Reverse() const override
Create reversed action.
Definition: ActionInstant.cpp:52
unsigned GetControlledIdAttr() const
Get Controlled Node ID attribute.
Definition: SplinePath.h:121
ParticleGraphLayerInstance * GetLayerInstance() const
Get graph layer instance.
Definition: TemplateNode.h:91
bool IsChildOf(UIElement *element) const
Return whether is a direct or indirect child of specified element.
Definition: UIElement.cpp:1588
size_t Length(Rml::FileHandle file) override
Returns the length of the file.
Definition: RmlFile.cpp:81
void UpdateEventSubscription()
Update whether should be subscribed to scene or global update events for shader parameter animation.
Definition: Material.cpp:1062
unsigned GetDragButtonCount() const
Definition: UIElement.h:713
bool GetConnected() const
Get true if connected to node.
Definition: ParticleGraphPin.cpp:79
WeakPtr< Zone > lastAmbientStartZone_
Last zone used for ambient gradient start color.
Definition: Zone.h:235
bool SavePNG(const ea::string &fileName) const
Save in PNG format. Return true if successful.
Definition: Image.cpp:1337
void SetTargetPosition(const Vector3 &position)
Definition: CrowdAgent.cpp:324
Region of shadow map that contains one or more shadow split.
Definition: RenderPipelineDefs.h:290
virtual unsigned GetShadowMapSize(Light *light, unsigned numActiveSplits) const =0
Return best shadow map size for given light. Should be safe to call from multiple threads.
void HandleAsyncLoadFinished()
Handle scene loaded event.
Definition: Connection.cpp:777
Repeat(Context *context)
Construct.
Definition: Repeat.cpp:97
static const unsigned Infinity3
Special index for infinite vertex of outer tetrahedron, cubic equation.
Definition: TetrahedralMesh.h:240
void DrawDebugGeometry(DebugRenderer *debug, bool depthTest) override
Visualize the component as debug geometry.
Definition: TerrainPatch.cpp:210
bool IsCompleted() const
Return whether all work is finished.
Definition: WorkQueue.cpp:562
bool IsEmpty() const
Definition: Geometry.h:135
Rect drawRect_
Draw rectangle.
Definition: StaticSprite2D.h:193
3D text component.
Definition: Text3D.h:36
unsigned CalculatePipelineStateHash() const
Definition: RenderPipelineDefs.h:394
void OnSceneSet(Scene *scene) override
Handle scene being assigned, identify our DynamicNavigationMesh.
Definition: Obstacle.cpp:91
void SetMaxRadius(float maxRadius)
Set max radius.
Definition: ParticleEffect2D.cpp:421
JSONValue(const ea::map< ea::string, JSONValue > &value)
Construct with a JSON object.
Definition: JSONValue.h:134
constexpr StringHash(unsigned value) noexcept
Construct with an initial value.
Definition: StringHash.h:52
float value_
ProgressBar current value.
Definition: ProgressBar.h:114
~CollisionEdge2D() override
Destruct.
const float * Data() const
Return float data.
Definition: Color.h:147
void CommitScene()
Commit the rest of changes to scene. Scene collector is used here.
Definition: IncrementalLightBaker.cpp:542
Camera component.
Definition: Camera.h:54
WeakPtr< Renderer2D > renderer_
Renderer2D.
Definition: Drawable2D.h:154
Definition: PrefabResource.h:35
LightContainer lights_
Container with per-pixel and per-vertex lights.
Definition: LightAccumulator.h:206
const StringVector & GetTags() const
Definition: UIElement.h:699
bool HasChild(const ea::string &name) const
Return whether has a child element.
Definition: XMLElement.cpp:645
float maxDistance_
Maximum ray distance.
Definition: OctreeQuery.h:259
ea::vector< UIElement * > GetItems() const
Return all items.
Definition: ListView.cpp:847
dtCrowd * crowd_
Internal Detour crowd object.
Definition: CrowdManager.h:211
float fontSize_
Font size.
Definition: Text.h:256
void OnWorldBoundingBoxUpdate() override
Recalculate the world-space bounding box.
Definition: RibbonTrail.cpp:434
ConfigVariableDefinitionMap definitions_
Definitions of supported variables with metadata and default values.
Definition: ConfigFile.h:117
virtual bool AllocateMesh(unsigned maxTiles)
Allocate the navigation mesh without building any tiles. Return true if successful.
Definition: NavigationMesh.cpp:346
VariantType GetUniformType() const
Get attribute type.
Definition: Uniform.h:55
bool HasRegisteredPaths() const
Return whether paths have been registered.
Definition: FileSystem.h:93
void SetMemoryBudget(StringHash type, unsigned long long budget)
Definition: ResourceCache.cpp:372
LightBakingQuality GetQuality() const
Return baking quality.
Definition: LightBaker.h:67
void RemapMousePos(IntVector2 &screenPos)
Convert screen coordinates to context-local coordinates of RmlUI instance.
Definition: RmlCanvasComponent.cpp:154
virtual ea::vector< unsigned char > GetNavigationDataAttr() const
Return navigation data attribute.
Definition: NavigationMesh.cpp:910
ResourceRef GetModelAttr() const
Return model attribute.
Definition: StaticModel.cpp:391
bool GetInterpolation() const
Definition: Audio.h:93
void SetAutoUpdate(bool enable)
Definition: View3D.cpp:117
Vector3 ClosestPoint(const Ray &ray) const
Return closest point to another ray.
Definition: Ray.cpp:34
void SetMaxIndices(unsigned num)
Definition: DecalSet.cpp:272
@ AM_NODEID
Attribute is a node ID and may need rewriting.
Definition: Attribute.h:45
unsigned GetNumLayers() const
Return number of layers.
Definition: TmxFile2D.h:197
Sprite2D * GetSprite() const
Return sprite.
Definition: AnimationSet2D.cpp:206
Graph node that adapts to input pins dynamically.
Definition: PatternMatchingNode.h:75
unsigned maxSamples_
Max number of samples per element.
Definition: LightBakingSettings.h:99
void SetMaxLodLevelsAttr(unsigned value)
Set max LOD levels attribute.
Definition: Terrain.cpp:798
void SetMinSize(const IntVector2 &minSize)
Definition: UIElement.cpp:631
void SendAttributeAnimationAddedEvent(const ea::string &name)
Send attribute animation added event.
Definition: ObjectAnimation.cpp:265
SkinningMode
Skinning mode.
Definition: Renderer.h:175
Matrix3(const float data[]) noexcept
Construct from a float array.
Definition: Matrix3.h:68
void SetNeutralValue(float value)
Set neutral value. Neutral value is transformed into 0.0f.
Definition: AxisAdapter.cpp:51
ea::map< ea::string, JSONValue >::const_iterator ConstJSONObjectIterator
Constant JSON object iterator.
Definition: JSONValue.h:363
T Tan(T angle)
Definition: MathDefs.h:181
bool GetButtonDown(unsigned index) const
Definition: Input.h:110
void FromRotationTo(const Vector3 &start, const Vector3 &end)
Define from the rotation difference between two direction vectors.
Definition: Quaternion.cpp:69
bool autoExit_
Auto-exit flag.
Definition: Engine.h:194
void Refresh()
Update caches if dirty.
Definition: RmlNavigable.cpp:168
Archive block scope guard.
Definition: Archive.h:65
ea::unordered_map< ea::pair< StringHash, StringHash >, BackgroundLoadItem > backgroundLoadQueue_
Resources that are queued for background loading.
Definition: BackgroundLoader.h:85
const SubsystemCache & GetSubsystems() const
Return all subsystems from Context.
Definition: Object.cpp:397
float x_
X coordinate.
Definition: Quaternion.h:499
void SetScaleCorrection(float value)
Scale correction can also be done on the VRRig node.
Definition: VirtualReality.h:218
void Fill(const T &value)
Fill array with given value.
Definition: Array2D.h:175
virtual btCollisionShape * UpdateDerivedShape(int shapeType, const Vector3 &newWorldScale)
Definition: CollisionShape.cpp:1181
Definition: NormalizedEffectTime.h:37
bool IsReady() const
Return whether synchronizer is ready to use.
Definition: ClockSynchronizer.h:100
void UpdateAmbientGradient()
Recalculate the ambient gradient colors from neighbor zones. Not safe to call from worker threads due...
Definition: Zone.cpp:288
ea::vector< LightmapGeometryBakingScene > bakingScenes_
Baking scenes.
Definition: LightmapGeometryBuffer.h:94
bool HasProperty(const ea::string &name) const
Return has property.
Definition: TileMapDefs2D.cpp:173
SystemUI widget used to edit 2D texture.
Definition: TextureCubeInspectorWidget.h:34
constexpr bool operator!=(const StringHash &rhs) const
Test for inequality with another hash.
Definition: StringHash.h:94
bool SetQuery(const ea::string &queryString, const ea::string &variableString=EMPTY_STRING, bool bind=true)
Set XPath query string and variable string. The variable string format is "name1:type1,...
Definition: XMLElement.cpp:1212
static void RegisterObject(Context *context)
Definition: StaticModelGroup.cpp:56
void SetUseClipping(bool enable)
Definition: Camera.cpp:243
void SetOrientation(Orientation orientation)
Definition: Slider.cpp:164
const ColorFrame * GetColorFrame(unsigned index) const
Return a color animation frame, or null if outside range.
Definition: ParticleEffect.cpp:780
Animated model component.
Definition: AnimatedModel.h:38
static void RegisterObject(Context *context)
Definition: CustomGeometry.cpp:60
bool initialized_
Initialized flag.
Definition: UI.h:441
const Color & GetFinishColorVariance() const
Return finish color variance.
Definition: ParticleEffect2D.h:186
void SetLightType(LightType type)
Definition: Light.cpp:267
int maxParticles_
Max particles.
Definition: ParticleEffect2D.h:295
void SetColorWrite(bool enable)
Definition: Technique.cpp:83
float GetFogStart() const
Definition: Zone.h:134
Octree * GetOctree() const
Return octree.
Definition: Octree.h:95
virtual bool IsWithinScissor(const IntRect ¤tScissor)
Return whether is visible and inside a scissor rectangle and should be rendered.
Definition: UIElement.cpp:413
ea::string GetShaderVariationName() const
Return full shader variation name with defines.
Definition: ShaderVariation.cpp:112
Base class for animatable object, an animatable object can be set animation on it's attributes,...
Definition: Animatable.h:65
unsigned updateFps_
Definition: Network.h:153
float GetERP() const
Definition: Constraint.h:163
SkinningMode GetSkinningMode() const
Return skinning mode.
Definition: Renderer.h:252
DirectionalPadAdapter(Context *context)
Construct.
Definition: DirectionalPadAdapter.cpp:93
void SetPixelShaderDefineExcludes(const ea::string &excludes)
Definition: Technique.cpp:137
void SetDuration(float duration)
Set action duration.
Definition: FiniteTimeAction.cpp:76
static void BulkTranspose(float dest[], const float src[], unsigned count)
Bulk transpose matrices.
Definition: Matrix2.h:238
ParticleEffect(Context *context)
Construct.
Definition: ParticleEffect.cpp:59
bool RemoveDrawable(Drawable *drawable)
Remove drawable. Returns true if drawable was removed.
Definition: OutlineGroup.cpp:163
float GetTangentialAcceleration() const
Return tangential acceleration.
Definition: ParticleEffect2D.h:168
bool GetButtonPress(unsigned index) const
Definition: Input.h:114
float GetRatio() const
Definition: ConstraintGear2D.h:64
void ApplyForce(const Vector3 &force)
Apply force to center of mass.
Definition: RigidBody.cpp:482
Definition: Uniform.h:107
WeakPtr< Shader > owner_
Source shader.
Definition: ShaderVariation.h:75
b2JointDef * GetJointDef() override
Return joint def.
Definition: ConstraintRope2D.cpp:90
void Unmount(MountPoint *mountPoint)
Remove mount point from the virtual file system.
Definition: VirtualFileSystem.cpp:190
Convex constructed of 6 planes.
Definition: Frustum.h:51
virtual ~BakedLightCache()
Destruct.
const Matrix3x4 & GetTransformMatrix() const
Update and return rendering transform, also used to transform child sprites.
Definition: Sprite.cpp:217
ea::string materialName_
Baking materials.
Definition: LightBakingSettings.h:58
void SetNumGeometries(unsigned num)
Definition: CustomGeometry.cpp:217
const std::type_info & GetTypeInfo() const
Get the type info.
Definition: Variant.h:234
Vector3 position_
Offset position.
Definition: CollisionShape.h:324
void HandleNavigationTileAdded(StringHash eventType, VariantMap &eventData)
Handle navigation mesh tile added.
Definition: CrowdAgent.cpp:664
@ JSONNT_FLOAT_DOUBLE
Float or double.
Definition: JSONValue.h:65
OuterCollection outer_
Internal collection.
Definition: MultiVector.h:235
const ea::string & GetProperty(const ea::string &name) const
Return property value.
Definition: TileMapDefs2D.cpp:154
bool RemoveTrack(const ea::string &name)
Remove a track by name. Return true if was found and removed successfully. This is unsafe if the anim...
Definition: Animation.cpp:500
~ConstraintRevolute2D() override
Destruct.
const ea::string & GetShape() const
Definition: Cursor.h:125
unsigned viewMask_
Drawable layers to include.
Definition: OctreeQuery.h:257
virtual void UpdateBatchesDelayed(const FrameInfo &frame)
Batch update from main thread. Called on demand only if RequestUpdateBatchesDelayed() is called from ...
Definition: Drawable.h:230
SharedPtr< XMLFile > xmlFile_
XML file for XML mode.
Definition: Scene.h:65
CollisionGeometryDataCache gimpactTrimeshCache_
Cache for GImpact trimesh geometry data by model and LOD level.
Definition: PhysicsWorld.h:375
void DrawSolidCircle(const b2Vec2 ¢er, float32 radius, const b2Vec2 &axis, const b2Color &color) override
Draw a solid circle.
Definition: PhysicsWorld2D.cpp:237
unsigned GetNumViews() const
Definition: Renderer.h:262
bool GetUpdateNodePosition() const
Definition: CrowdAgent.h:177
HighPrecisionVector3()=default
Construct default.
T Atan2(T y, T x)
Definition: MathDefs.h:197
void SetKnot(const Variant &knot, unsigned index)
Set the value of an existing knot.
Definition: Spline.cpp:104
@ FM_FOCUSABLE_DEFOCUSABLE
Is focusable and also defocusable by pressing ESC.
Definition: UIElement.h:81
void CollectParameters(StringVariantMap ¶ms) const override
Definition: FullScreenShaderPass.cpp:41
void SeekInternal(unsigned newPosition)
Seek in file internally using either C standard IO functions or SDL RWops for Android asset files.
Definition: File.cpp:556
float cutoff_
Cutoff aka Cos(FOV * 0.5) (for spot lights).
Definition: BakedLight.h:71
SharedPtr< ObjectAnimation > objectAnimation_
Animation.
Definition: Animatable.h:156
static struct PhysicsWorldConfig config
Overrides of the internal configuration.
Definition: PhysicsWorld.h:325
Octant * GetRootOctant()
Return root octant.
Definition: Octree.h:264
ea::vector< SharedPtr< Viewport > > viewports_
Backbuffer viewports.
Definition: Renderer.h:359
bool BeginLoad(Deserializer &source) override
Load resource from stream. May be called from a worker thread. Return true if successful.
Definition: ObjectAnimation.cpp:60
virtual void Update(UpdateContext &context)
Update particles.
Definition: Helpers.cpp:107
Matrix3x4 reflectionMatrix_
Reflection matrix calculated from the plane.
Definition: Camera.h:393
bool emitting_
Currently emitting flag.
Definition: ParticleEmitter.h:157
AreaAllocator allocator_
Used region allocator.
Definition: LightmapCharter.h:93
const PListValueMap & GetValueMap() const
Return value map.
Definition: PListFile.cpp:242
void ReleaseShape()
Release the collision shape.
Definition: CollisionShape.cpp:878
bool animationStatesDirty_
Definition: AnimationController.h:279
bool operator<(const SharedPtr< U1, U2 > &rhs) const noexcept
Test for less than with another shared pointer.
Definition: Ptr.h:241
ea::string message_
Log message.
Definition: Console.h:103
void SetRenderTarget(RenderSurface *target, const Color &clearColor=Color::TRANSPARENT_BLACK)
Set render target where this instance will render into.
Definition: RmlUI.cpp:680
Vector3 EulerAngles() const
Definition: Quaternion.cpp:190
unsigned numUploadAttempts_
Definition: ReplicatedAnimation.h:102
NavigationPushiness GetNavigationPushiness() const
Definition: CrowdAgent.h:212
Lightmap UV generation settings.
Definition: LightmapUVGenerator.h:35
const Color & GetDefaultFogColor() const
Get default zone fog color.
Definition: StateManager.h:125
LineEdit * GetPathEdit() const
Definition: FileSelector.h:104
Deserializer()
Construct with zero size.
Definition: Deserializer.cpp:37
void UpdateMaterial()
Update material.
Definition: ParticleEmitter2D.cpp:260
void ClearInt(unsigned uintColor)
Clear the image with an integer color. R component is in the 8 lowest bits.
Definition: Image.cpp:1285
~RigidBody() override
Destruct. Free the rigid body and geometries.
Definition: RigidBody.cpp:83
bool GetEffectRoundStroke() const
Definition: Text3D.cpp:473
void ProcessIdentity(int msgID, MemoryBuffer &msg)
Process an Identity message from the client. Called by Network.
Definition: Connection.cpp:581
Vector3 gravityOverride_
Gravity override vector.
Definition: RigidBody.h:325
RenderBufferParams params_
Definition: RenderBuffer.h:101
static const ChannelMask ABGR
Mask for 0xAABBGGRR layout.
Definition: Color.h:49
unsigned GetNumDecals() const
Definition: DecalSet.h:159
NumericRange()
Construct invalid.
Definition: NumericRange.h:36
int maxFontTextureSize_
Font texture maximum size.
Definition: UI.h:439
Octree component. Should be added only to the root scene node.
Definition: Octree.h:214
SharedPtr< ActionState > StartAction(Object *target) override
Create new action state from the action.
Definition: Ease.cpp:239
AbstractFilePtr file_
File for binary mode.
Definition: Scene.h:63
ea::shared_array< float > heightData_
Height data.
Definition: Terrain.h:321
~Network() override
Destruct.
Definition: Network.cpp:72
void SetSelectionColor(const Color &color)
Definition: UISelectable.cpp:57
Post-processing pass that adjusts HDR scene exposure.
Definition: AutoExposurePass.h:18
void OnNodeSet(Node *previousNode, Node *currentNode) override
Handle node being assigned.
Definition: RigidBody2D.cpp:517
int width_
Width.
Definition: Image.h:67
ea::vector< LightProbe > LightProbeVector
Vector of light probes.
Definition: LightProbeGroup.h:50
unsigned animationRevision_
Revision of Animation object. Used to detect changes in animation.
Definition: AnimationState.h:233
GraphPinRef< GraphExitPin > GetExit(const ea::string_view name)
Get exit pin.
Definition: GraphNode.cpp:200
Definition: DrawableProcessor.h:50
void Normalize()
All equivalent views should be literally equal after normalization.
Definition: ModelView.cpp:696
Definition: StereoRenderPipeline.h:19
void SavePipelineStateCache(const FileIdentifier &fileName)
Save pipeline state cache.
Definition: Graphics.cpp:346
unsigned GetWakeThreshold() const
Definition: Microphone.h:79
ShaderProgramCompositorSettings settings_
Definition: ShaderProgramCompositor.h:140
void UpdateVertexBuffer(const FrameInfo &frame)
Rewrite RibbonTrail vertex buffer.
Definition: RibbonTrail.cpp:532
void DrawBatch(const OcclusionBatch &batch, unsigned threadIndex)
Draw a batch. Called internally.
Definition: OcclusionBuffer.cpp:457
void DrawDebugGeometry(DebugRenderer *debug, bool depthTest) override
Visualize the component as debug geometry.
Definition: Drawable.cpp:178
void SetMaterial(Material *material)
Definition: DecalSet.cpp:251
Splash screen application state.
Definition: SplashScreen.h:35
float GetElapsedTime() const
Definition: Scene.h:246
ea::string GetAbsoluteNameFromIdentifier(const FileIdentifier &fileName) const override
Return absolute file name for existing identifier in this mount point, if supported.
Definition: MountedAliasRoot.cpp:113
Variant(const IntVector2 &value)
Construct from an IntVector2.
Definition: Variant.h:644
float Element(unsigned i, unsigned j) const
Return matrix element.
Definition: Matrix4.h:642
static void * ThreadFunctionStatic(void *data)
Helper that executes Thread::ThreadFunction().
float GetRadius() const
Get Radius.
Definition: Cone.cpp:77
void Update()
Update baker. May start or finish baking depending on current state.
Definition: LightBaker.cpp:192
float GetDistanceSquared(const Vector3 &worldPos) const
Return squared distance to position. In orthographic mode uses only Z coordinate.
Definition: Camera.cpp:545
void SetEntity(const ea::string &entity)
Definition: AnimatedSprite2D.cpp:152
unsigned selectionAttr_
Selected item index attribute.
Definition: DropDownList.h:133
bool SetStringVariantMap(const StringVariantMap &value)
Set a string variant map attribute. Creates child elements as necessary.
Definition: XMLElement.cpp:559
int GetHeight() const
Definition: Texture.h:116
unsigned GetTimes() const
Get number of repetitions.
Definition: Repeat.h:54
SharedPtr< Node > soundNode_
Node that contains SoundSource component.
Definition: RmlEventListeners.h:96
Uniformly bending IK chain.
Definition: InverseKinematics.h:184
Vector3 SampleTemporalBonePosition(const NetworkTime &time, unsigned index) const
Definition: TrackedAnimatedModel.cpp:112
T ToRadians(const T degrees)
Convert degrees to radians.
Definition: MathDefs.h:109
void HandleLogMessage(StringHash eventType, VariantMap &eventData)
Handle a log message.
Definition: Console.cpp:134
unsigned GetNumActiveParticles() const
Return number of active particles.
Definition: ParticleGraphLayerInstance.h:75
float GetMaxAccel() const
Definition: CrowdAgent.h:184
float maxRadius_
Max radius.
Definition: ParticleEffect2D.h:309
bool WriteResourceRefList(const ResourceRefList &value)
Write a resource reference list.
Definition: Serializer.cpp:242
Component * owner_
Parent component.
Definition: SpriterInstance2D.h:93
ShadowMapAllocatorSettings settings_
Definition: ShadowMapAllocator.h:85
bool Contains(const IntVector2 &index) const
Return whether the index is contained in the array.
Definition: Array2D.h:55
XMLElement FirstResult()
Definition: XMLElement.cpp:1144
float GetInAirRPM() const
Definition: RaycastVehicle.cpp:528
Matrix3x4() noexcept
Construct an identity matrix.
Definition: Matrix3x4.h:39
XML document resource.
Definition: XMLFile.h:43
float fov_
FOV angle (for spot lights).
Definition: BakedLight.h:69
void CompleteTransition()
Complete transition into the current state.
Definition: StateManager.cpp:379
StringVariantMap bundle_
Target state arguments.
Definition: StateManager.h:192
Drawable component that creates a tail.
Definition: RibbonTrail.h:65
Vector2 hotSpot_
Hot spot.
Definition: Sprite2D.h:112
bool ReloadResource(const ea::string_view resourceName)
Reload a resource. Return true on success. The resource will not be removed from the cache in case of...
Definition: ResourceCache.cpp:300
Writable and readable render buffer texture (2D or cubemap).
Definition: RenderBuffer.h:78
StringVector * GetStringVectorPtr()
Return a pointer to a modifiable string vector or null on type mismatch.
Definition: Variant.h:1604
void SetConstraintType(ConstraintType type)
Definition: Constraint.cpp:147
Vector2 position_
Hit worldspace position.
Definition: PhysicsWorld2D.h:47
unsigned long long GetTotalMemoryUse() const
Definition: ResourceCache.cpp:645
ConstraintType constraintType_
Constraint type.
Definition: Constraint.h:207
TextureFormat GetFormat() const
Definition: Texture.h:100
float GetLodHeight(int x, int z, unsigned lodLevel) const
Return interpolated height for a specific LOD level.
Definition: Terrain.cpp:1328
@ O_ISOMETRIC
Isometric.
Definition: TileMapDefs2D.h:41
ea::intrusive_list< EventHandler > eventHandlers_
Event handlers. Sender is null for non-specific handlers.
Definition: Object.h:234
void SetUpdateEnabled(bool enable)
Definition: PhysicsWorld2D.cpp:351
const TechniqueEntry & GetTechniqueEntry(unsigned index) const
Return technique entry by index.
Definition: Material.cpp:886
unsigned GetMSec(bool reset)
Return elapsed milliseconds and optionally reset.
Definition: Timer.cpp:208
void SetInternalEdge(bool enable)
Definition: PhysicsWorld.cpp:426
void SetPositionDelta(const Vector3 &delta)
Set position delta.
Definition: Move.cpp:405
float DistanceToPoint(const Vector3 &point) const
Return distance to point.
Definition: BoundingBox.cpp:199
void SetShadowMask(unsigned mask)
Definition: Terrain.cpp:418
b2JointDef * GetJointDef() override
Return Joint def.
Definition: ConstraintPulley2D.cpp:112
const IntVector2 & GetCheckedOffset() const
Definition: CheckBox.h:67
float GetMaxAgentRadius() const
Definition: CrowdManager.h:148
Vector3 ReadPackedVector3(float maxAbsCoord)
Read a Vector3 packed into 3 x 16 bits with the specified maximum absolute range.
Definition: Deserializer.cpp:183
Sound listener component.
Definition: SoundListener.h:31
virtual void FreeGCHandle(void *handle)=0
Release specified gc handle. It becomes invalid.
void Normalize()
Normalize to unit length.
Definition: Quaternion.h:317
PListFile(Context *context)
Construct.
Definition: PListFile.cpp:299
ParticleGraph & GetEmitGraph()
Get emit graph.
Definition: ParticleGraphLayer.cpp:246
ea::string ToString() const
Return as string.
Definition: Vector4.cpp:37
static int Close(SDL_RWops *context)
Close the object. Only meaningful for files, no-op otherwise.
Definition: RWOpsWrapper.h:91
const ea::string & GetName() const override
Returns human-readable name of the mount point.
Definition: MountedDirectory.h:51
ea::unordered_map< ea::string, TimedFileChange > changes_
Pending changes. These will be returned and removed from the list when their timer has exceeded the d...
Definition: FileWatcher.h:104
virtual void TransitionComplete()
Transition into the state complete. Executed by StateManager.
Definition: StateManager.cpp:103
~Navigable() override
Destruct.
ea::optional< ea::pair< InternalType, NetworkFrame > > GetRawOrPrior(NetworkFrame frame) const
Return raw value at the given or prior frame.
Definition: NetworkValue.h:483
Vector4 Ab_
Dot product with (Nx, Ny, Nz, 1), blue channel.
Definition: SphericalHarmonics.h:291
SharedPtr< Object > CreateObject(StringHash typeNameHash)
Create an object by type. Return pointer to it or null if no reflection is found.
Definition: ObjectReflection.cpp:264
VariantType type_
Type of the variable. May be different from default value type if default value is null.
Definition: ConfigFile.h:50
unsigned CalculateNumMorphs() const
Calculate number of morphs in the model.
Definition: ModelView.cpp:688
float GetRegionMinSize() const
Definition: NavigationMesh.h:250
unsigned subObject_
Drawable specific subobject if applicable.
Definition: OctreeQuery.h:219
void PostTask(TaskFunction &&task, TaskPriority priority=TaskPriority::Medium)
Post the task for any processing thread.
Definition: WorkQueue.cpp:375
float GetRandomVelocity() const
Return random velocity.
Definition: ParticleEffect.cpp:801
Vector4 ToVector4(float z=0.0f, float w=0.0f) const
Return Vector4 vector.
Definition: Vector4.h:288
Client part of ReplicationManager subsystem.
Definition: ClientReplica.h:123
void SetAnimationName(const ea::string &name)
Definition: Animation.cpp:455
void SetLinear(bool linear)
Set whether the texture data is in linear color space (instead of gamma space).
Definition: Texture.cpp:139
const JSONValue & GetRoot() const
Return root value.
Definition: JSONFile.h:73
bool Equals(const Rect &rhs) const
Test for equality with another rect with epsilon.
Definition: Rect.h:213
void InitializePipelineStateCache(const FileIdentifier &fileName)
Definition: Graphics.cpp:325
EmitterPosition(Context *context)
Construct EmitterPosition.
Definition: EmitterPosition.cpp:44
void SetEffectStrokeThickness(int thickness)
Definition: Text.cpp:393
void SetZoneMask(unsigned mask)
Set zone mask. Is and'ed with zone's zone mask to see if the object should belong to the zone.
Definition: ParticleGraphEmitter.cpp:173
const T * GetOptional(const IntVector2 &index) const
Return constant element by index or null if out of bounds.
Definition: Array2D.h:199
float hitFraction_
Hit fraction.
Definition: PhysicsWorld.h:94
void ApplyFrameLimit()
Get the timestep for the next frame and sleep for frame limiting if necessary.
Definition: Engine.cpp:1008
void SetElapsedTime(float time)
Definition: Scene.cpp:761
Viewport * GetViewport(unsigned index) const
Definition: Renderer.cpp:347
void ResetForces()
Reset accumulated forces.
Definition: RigidBody.cpp:536
void SetMaxEmissionRate(float rate)
Definition: ParticleEffect.cpp:525
Frustum GetViewSpaceFrustum(const Matrix3x4 &view) const
Return spotlight frustum in the specified view space.
Definition: Light.cpp:448
bool sortChildren_
Sort children according to priority flag.
Definition: UIElement.h:807
const Vector2 & GetOwnerBodyAnchor() const
Definition: ConstraintDistance2D.h:62
unsigned lodLevel_
Current LOD level.
Definition: TerrainPatch.h:156
CrowdAgentState previousAgentState_
Agent's previous agent state used to check for state changes.
Definition: CrowdAgent.h:287
bool IsInputCapturedInternal() const
Return true if input is captured by this instance of RmlUI.
Definition: RmlUI.cpp:823
static const unsigned NumSuperMeshVertices
Number of initial super-mesh vertices.
Definition: TetrahedralMesh.h:358
float GetDuration() const override
Get action duration.
Definition: Sequence.cpp:165
Definition: LocalToWorldInstance.h:35
float elapsedLength_
Elapsed length inside the trail.
Definition: RibbonTrail.h:55
const unsigned char * GetData() const
Return data.
Definition: VectorBuffer.h:66
void SetPlayingAttr(bool value)
Set sound playing attribute.
Definition: SoundSource.cpp:533
const ReflectionProbeData * GetReflectionProbe() const
Return reflection probe data. Pointer is valid until Zone is destroyed.
Definition: Zone.cpp:192
void SetDensity(float density)
Definition: CollisionShape2D.cpp:125
unsigned viewMask_
View mask of current camera for visibility checking.
Definition: Renderer2D.h:128
bool IsSorted() const
Definition: BillboardSet.h:141
float realLightmapSize_
Size of lightmap chart as float.
Definition: LightTracer.h:81
MouseButtonFlags dragButtons
Which button combo initiated the drag.
Definition: UI.h:290
Vector3 AngularVelocity() const
Definition: Quaternion.cpp:246
bool HasBinormal() const
Return whether the vertex has binormal.
Definition: ModelView.h:97
RenderSurface * renderTarget_
Null if rendering to backbuffer.
Definition: RenderBuffer.h:136
b2Body * GetBody() const
Return Box2D body.
Definition: RigidBody2D.h:191
int GetOrderInLayer() const
Definition: Drawable2D.h:127
Graphics subsystem. Manages the application window, rendering state and GPU resources.
Definition: Graphics.h:82
Color derivedColor_
Derived color. Only valid when no gradient.
Definition: UIElement.h:910
static void RegisterObject(Context *context)
Register object factory and attributes.
Definition: KinematicCharacterController.cpp:72
Entity.
Definition: SpriterData2D.h:106
Movement HandleFlightStick(const JoystickState *state, float timeStep)
Handle flight stick input.
Definition: FreeFlyController.cpp:200
void SetMeshName(const ea::string &newName)
Set the name of this navigation mesh.
Definition: NavigationMesh.cpp:271
~ConstraintPulley2D() override
Destruct.
const CrowdAgentVelocityCallback & GetVelocityCallback() const
Return current velocity callback.
Definition: CrowdAgent.h:102
float radius_
Radius.
Definition: Skeleton.h:87
Signal with specified or default sender type.
Definition: Signal.h:246
bool SaveTGA(const ea::string &fileName) const
Save in TGA format. Return true if successful.
Definition: Image.cpp:1355
void MarkForAuxView(unsigned frameNumber)
Mark material for auxiliary view rendering.
Definition: Material.cpp:881
CollisionGeometryData * GetGeometryData() const
Return the shared geometry data.
Definition: CollisionShape.h:229
void Write(LogLevel level, ea::string_view format, const Arg &arg, const Args &... args) const
Write formatted message to log if there are extra arguments.
Definition: Log.h:124
void ApplySkinning(ea::span< const Matrix3x4 > worldTransforms)
Apply skinning.
Definition: SoftwareModelAnimator.cpp:108
void HandleTouchBegin(StringHash eventType, VariantMap &eventData)
Handle touch begin event.
Definition: RmlUI.cpp:573
RenderSurface * GetLinkedRenderTarget() const
Definition: RenderSurface.h:100
void SetAnchor(const Vector2 &anchor)
Definition: ConstraintPrismatic2D.cpp:60
Settings that affect only preview scene.
Definition: GLTFImporter.h:70
void UpdateGeometries()
Update drawable geometries if needed.
Definition: DrawableProcessor.cpp:792
void EvaluateLayout(const ParticleGraphLayer &layer)
Evaluate attribute buffer size and layout.
Definition: ParticleGraphLayer.cpp:260
ActionBuilder & ExponentialIn()
Combine with ExponentialIn action.
Definition: ActionBuilder.cpp:375
2D particle effect resource.
Definition: ParticleEffect2D.h:44
Definition: OctreeQuery.h:224
Definition: ActionBuilder.h:30
Material * GetMaterial() const
Definition: Text3D.cpp:413
void MixOutput(void *dest, unsigned samples)
Mix sound sources into the buffer.
Definition: Audio.cpp:372
MouseMode GetMouseMode() const
Definition: StateManager.h:94
void SetSkeleton(const Skeleton &skeleton, bool createBones)
Set skeleton.
Definition: AnimatedModel.cpp:622
static void RegisterObject(ParticleGraphSystem *context)
Register particle node factory.
Definition: Uniform.cpp:106
bool FilterImplicitAttributes(XMLElement &dest) const override
Filter implicit attributes in serialization process.
Definition: Text.cpp:468
float GetLowerAngle() const
Definition: ConstraintRevolute2D.h:76
void ApplyAttributes() override
Perform post-load after deserialization. Acquire the components from the scene nodes.
Definition: RaycastVehicle.cpp:328
void SetUpdateNodePosition(bool unodepos)
Definition: CrowdAgent.cpp:371
float velocityMax_
Particle velocity maximum.
Definition: ParticleEffect.h:488
bool IsTrigger() const
Definition: RigidBody.h:264
Base interface of render pipeline viewport instance.
Definition: RenderPipeline.h:41
static void RegisterObject(ParticleGraphSystem *context)
Register particle node factory.
Definition: Subtract.cpp:38
void Subscribe(Receiver *receiver, Priority priority, Callback handler)
Subscribe to event. Callback receives only signal arguments.
Definition: Signal.h:281
float GetScale() const
Return UI scale.
Definition: RmlUI.cpp:675
bool LoadDict(PListValueMap &dict, const XMLElement &dictElem)
Load dictionary.
Definition: PListFile.cpp:341
float shadowFadeDistance_
Shadow fade start distance.
Definition: Light.h:509
Matrix4 Inverse() const
Return inverse.
Definition: Matrix4.cpp:79
float acceleratedSpeed_
Camera accelerated speed.
Definition: FreeFlyController.h:123
float lastTimeStep_
Last scene timestep.
Definition: RibbonTrail.h:264
virtual ~NavBuildData()
Destructor.
Definition: NavBuildData.cpp:42
void MarkZoneDirty(Zone *zone)
Notify Octree that zone parameters changed. For internal use only.
Definition: Octree.cpp:659
TetrahedralMeshSurfaceEdge()=default
Construct default.
void Define(ea::span< const Vector3 > positions)
Define mesh from vertices.
Definition: TetrahedralMesh.cpp:147
unsigned EvaluateInstanceSize() const override
Evaluate size required to place new node instance.
Definition: CurlNoise3D.cpp:54
Quaternion CalculateRotationDeltaFromPrevious() const
Calculate rotation delta from positions, using previous positions as reference.
Definition: InverseKinematics.cpp:109
BoundingBox() noexcept
Construct with zero size.
Definition: BoundingBox.h:48
unsigned GetFreeNodeID()
Get free node ID.
Definition: Graph.cpp:227
Vector3 previousOffset_
Previous offset to camera for determining whether sorting is necessary.
Definition: BillboardSet.h:234
DirectionalPadAdapterFlags enabledSubscriptions_
Enabled subscriptions.
Definition: DirectionalPadAdapter.h:136
ResourceRef GetMaterialAttr() const
Return material attribute.
Definition: RibbonTrail.cpp:909
unsigned GetPrimaryViewMask() const
Return view mask for primary rendering.
Definition: Camera.h:177
ea::string path_
Unversioned plugin module path.
Definition: ModulePlugin.h:55
void UpdateParameters(const RenderPipelineSettings &settings, const StringVariantMap ¶ms) override
Definition: ToneMappingPass.cpp:60
void RecreateFixture()
Recreate fixture.
Definition: CollisionChain2D.cpp:119
Terrain * GetSouthNeighbor() const
Definition: Terrain.h:187
void SetMaxAnchor(const Vector2 &anchor)
Definition: UIElement.cpp:812
void SetDecalsAttr(const ea::vector< unsigned char > &value)
Set decals attribute.
Definition: DecalSet.cpp:520
static void RegisterObject(Context *context)
Definition: SpriteSheet2D.cpp:50
ea::vector< Matrix3x4 > worldTransforms_
World transforms of valid (existing and visible) instances.
Definition: StaticModelGroup.h:91
ea::vector< IndexBufferDesc > loadIBData_
Index buffer data for asynchronous loading.
Definition: Model.h:257
Abstract graph node pin.
Definition: GraphPin.h:36
ea::vector< uint8_t > attributes_
Memory used to store all layer related arrays: nodes, indices, attributes.
Definition: ParticleGraphLayerInstance.h:143
bool IsInOctree() const
Return whether the drawable is added to Octree.
Definition: Drawable.h:368
double GetDouble(double min, double max)
Return random double in range [min, max] with uniform distribution.
Definition: RandomEngine.h:91
static const unsigned VARIANT_VALUE_SIZE
Size of variant value. 16 bytes on 32-bit platform, 32 bytes on 64-bit platform.
Definition: Variant.h:432
Baking scenes for the set of lightmap charts.
Definition: LightmapGeometryBuffer.h:91
void Discard()
Discard existing content of the buffer.
Definition: IndexBuffer.cpp:214
Plane Transformed(const Matrix3 &transform) const
Return transformed by a 3x3 matrix.
Definition: Plane.cpp:70
bool Delete(const ea::string &fileName)
Delete a file. Return true if successful.
Definition: FileSystem.cpp:784
double GetDouble(double defaultValue=0.0) const
Return double value.
Definition: JSONValue.h:225
Vector3 boundingBoxMaxPoint_
Bounding box max point.
Definition: ParticleEmitter2D.h:172
Surface triangle of tetrahedral mesh with adjacency information.
Definition: TetrahedralMesh.h:131
static void RegisterObject(Context *context)
Definition: PhysicsWorld.cpp:259
FloatRange cascadeZRange_
Definition: ShadowSplitProcessor.h:121
RenderTargetView GetView(unsigned slice) const override
Return render surface. Face could be specified for cubemap texture.
Definition: RenderBuffer.cpp:185
void AddTriMeshGeometry(NavBuildData *build, Geometry *geometry, const Matrix3x4 &transform)
Add a triangle mesh to the geometry data.
Definition: NavigationMesh.cpp:1184
StringHash nameHash_
Pin name hash.
Definition: ParticleGraphPin.h:140
static void RegisterObject(Context *context)
Definition: RigidBody2D.cpp:70
void SetBlendMode(BlendMode blendMode)
Definition: ParticleEmitter2D.cpp:114
void OnTreeDirty()
Internal. Marks chain tree as dirty.
Definition: IKSolverComponent.cpp:107
ea::shared_ptr< const ea::vector< BakedSceneBackground > > BakedSceneBackgroundArrayPtr
Immutable array of scene backgrounds.
Definition: BakedSceneBackground.h:57
void OnSceneSet(Scene *scene) override
Handle scene being assigned.
Definition: ParticleEmitter2D.cpp:175
ea::vector< ea::vector< SharedPtr< Geometry > > > geometries_
Animated model geometries.
Definition: SoftwareModelAnimator.h:104
float GetSpecularIntensity() const
Definition: Light.h:319
void UpdateGeometry(const FrameInfo &frame) override
Prepare geometry for rendering. Called from a worker thread if possible (no GPU update).
Definition: TerrainPatch.cpp:142
bool GetIsWorldspace() const
Get Is Worldspace.
Definition: RenderBillboard.cpp:100
void OnClickEnd(const IntVector2 &position, const IntVector2 &screenPosition, MouseButton button, MouseButtonFlags buttons, QualifierFlags qualifiers, Cursor *cursor, UIElement *beginElement) override
React to mouse click end.
Definition: Slider.cpp:103
Rml::ElementDocument * document_
Currently open document. Null if document was closed.
Definition: RmlUIComponent.h:198
ParticleGraphPin pins_[2]
Pins.
Definition: Attribute.h:145
ea::vector< ea::pair< ea::string, ea::string > > defines_
Vector of defines.
Definition: ShaderDefs.h:101
void SetVariant(const Variant &variant, Context *context=nullptr)
Set variant, context must provide for resource ref.
Definition: JSONValue.cpp:440
T Get(ea::enable_if_t<!ea::is_enum_v< T >, int >=0) const
Return the value, template version.
bool ignoreEvents_
Ignore events flag, used when changing line edits manually.
Definition: FileSelector.h:210
ea::vector< BakedLight > bakedLights_
Lights to bake.
Definition: BakedSceneChunk.h:61
virtual void ApplyValue(const Variant &newValue)
Apply new animation value to the target object. Called by Update().
Definition: ValueAnimationInfo.cpp:124
void SetCollisionLayer(unsigned layer)
Set collision layer.
Definition: KinematicCharacterController.cpp:384
dtNavMeshQuery * navMeshQuery_
Detour navigation mesh query.
Definition: NavigationMesh.h:352
XMLElement CreateRoot(const ea::string &name)
Clear the document and create a root element.
Definition: XMLFile.cpp:179
void InitializeView(RenderPipelineView *view) override
Initialize render pass before using it in view.
Definition: AutoExposurePass.cpp:55
ea::unique_ptr< b2World > world_
Box2D physics world.
Definition: PhysicsWorld2D.h:249
static void RegisterObject(Context *context)
Definition: CollisionBox2D.cpp:50
void QueueUpdate(Drawable *drawable)
Mark drawable object as requiring an update and a reinsertion.
Definition: Octree.cpp:734
ea::vector< float > axes_
Axis position from -1 to 1.
Definition: Input.h:145
Vector2 Normalized() const
Return normalized to unit length.
Definition: Vector2.h:360
void MixMonoToSurround(Sound *sound, int *dest, unsigned samples, int mixRate, float effectiveFrequency, SpeakerMode speakers)
Mix a mono track to surround buffer.
Definition: SoundSource.cpp:1295
Window * GetFadeOverlay()
Get fade overlay.
Definition: StateManager.cpp:583
unsigned numParticles_
Nummber of particles.
Definition: ParticleEmitter2D.h:160
void BeginFrame(float timeStep)
Begin new frame, with (last) frame duration in seconds and send frame start event.
Definition: Timer.cpp:108
~CheckBox() override
Destruct.
bool IsWatching() const override
Returns true if FileChanged events are enabled.
Definition: MountPoint.cpp:84
void Invalidate()
Invalidate cache.
Definition: BatchStateCache.cpp:104
void Merge(const Vector2 &point)
Merge a point.
Definition: Rect.h:159
Pass * GetPass(unsigned passIndex) const
Return a pass, or null if not found.
Definition: Technique.h:288
ea::vector< SphericalHarmonicsDot9 > sphericalHarmonics_
Incoming light baked into spherical harmonics.
Definition: LightProbeGroup.h:56
SharedPtrType Lock() const noexcept
Convert to a shared pointer. If expired, return a null shared pointer.
Definition: Ptr.h:472
float aspectRatio_
Spotlight aspect ratio.
Definition: Light.h:505
float DotProduct(const Vector2 &rhs) const
Calculate dot product.
Definition: Vector2.h:324
virtual void OnExit()
Executed when last compatible body leaves the trigger.
Definition: TriggerAnimator.cpp:91
void AddAction(FiniteTimeAction *action)
Add action.
Definition: Parallel.cpp:117
ActionBuilder & SineInOut()
Combine with SineInOut action.
Definition: ActionBuilder.cpp:357
ea::unique_ptr< Spriter::SpriterInstance > spriterInstance_
Spriter instance.
Definition: AnimatedSprite2D.h:159
bool colorUsableWithMultipleRenderTargets_
Definition: RenderPipelineDefs.h:180
ea::vector< const char * > ToCStringVector(const StringVector &strings)
Cast StringVector to C string vector.
Definition: Variant.h:1689
const IntVector2 & GetHotSpot() const
Definition: Sprite.h:96
ActionBuilder & DelayTime(float duration)
Combine with DelayTime action.
Definition: ActionBuilder.cpp:426
Vector3 lastKnownEulerAngles_
Last known yaw, pitch and roll to prevent gimbal lock.
Definition: FreeFlyController.h:142
Scene background description.
Definition: BakedSceneBackground.h:38
void SerializeInBlock(Archive &archive) override
Serialize content from/to archive. May throw ArchiveException.
Definition: Attribute.cpp:99
Matrix3x4 view_
View transform.
Definition: DebugRenderer.h:198
Bitmap font face description.
Definition: FontFaceBitmap.h:34
Base class for objects with automatic serialization through attributes.
Definition: Serializable.h:42
float speed_
Animation speed.
Definition: ValueAnimationInfo.h:92
void AddObstacle(Obstacle *obstacle, bool silent=false)
Used by Obstacle class to add itself to the tile cache, if 'silent' an event will not be raised.
Definition: DynamicNavigationMesh.cpp:842
void AddDrawable(Drawable *drawable)
Add drawable is added to octree. For internal use only.
Definition: Octree.cpp:592
LightMode lightMode_
Light baking mode.
Definition: Light.h:471
Definition: LerpInstance.h:31
bool isClient_
Definition: Connection.h:293
void DefineSplit(const Matrix4 &projection, float nearZ, float farZ)
Define a split (limited) frustum from a projection matrix, with near & far distances specified.
Definition: Frustum.cpp:151
ea::vector< SourceBatch > batches_
Draw call source data.
Definition: Drawable.h:439
void ClearControlPoints()
Clear the Control Points from the SplinePath.
Definition: SplinePath.cpp:176
void SetAreaCost(unsigned queryFilterType, unsigned areaID, float cost)
Set the cost of an area for the specified query filter type.
Definition: CrowdManager.cpp:348
Vector3 SignedScale(const Matrix3 &rotation) const
Return the scaling part with the sign. Reference rotation matrix is required to avoid ambiguity.
Definition: Matrix4.h:571
void * handle_
File handle.
Definition: File.h:136
Movement HandleMouse() const
Handle mouse input.
Definition: FreeFlyController.cpp:341
IntVector2 GetSize() const
Definition: UI.cpp:2125
int priority_
Zone priority.
Definition: Zone.h:231
unsigned layers_
Texture array layers number.
Definition: Texture2DArray.h:74
void ReleaseFixture()
Release fixture.
Definition: CollisionShape2D.cpp:221
void SetNumIterations(int num)
Definition: PhysicsWorld.cpp:410
Template base of any TrackedComponent that automatically registers itself in registry.
Definition: TrackedComponent.h:161
bool IsDone() const override
Gets a value indicating whether this instance is done.
Definition: ActionInstantState.cpp:42
void AddRigidBody(RigidBody *body)
Add a rigid body to keep track of. Called by RigidBody.
Definition: PhysicsWorld.cpp:787
Variant max_
Max value.
Definition: Random.h:85
virtual void OnHover(const IntVector2 &position, const IntVector2 &screenPosition, MouseButtonFlags buttons, QualifierFlags qualifiers, Cursor *cursor)
React to mouse hover.
Definition: UIElement.cpp:449
virtual bool IsClockSynchronized() const =0
Return whether the clock is synchronized between client and server.
float GetFrequencyHz() const
Definition: ConstraintWheel2D.h:88
void SetLoopMode(LoopMode2D loopMode)
Definition: AnimatedSprite2D.cpp:183
void Render()
Render UI.
Definition: RmlUI.cpp:833
Quaternion lastKnownRotation_
Last known rotation of the node.
Definition: ShakeComponent.h:115
b2FrictionJointDef jointDef_
Box2D joint def.
Definition: ConstraintFriction2D.h:71
BakedSceneBackgroundArrayPtr backgrounds_
Definition: BakedSceneCollector.h:148
bool Open(const ea::string &fileName, unsigned startOffset=0)
Open the package file. Return true if successful.
Definition: PackageFile.cpp:54
const IntVector2 & GetSize() const
Definition: UIElement.h:464
SharedPtr< IndexBuffer > indexBuffer_
Index buffer.
Definition: Geometry.h:153
void SetLength(float length)
Definition: ConstraintDistance2D.cpp:104
const ea::vector< SourceBatch > & GetBatches() const
Return draw call source data.
Definition: Drawable.h:349
unsigned indexStart_
Start index.
Definition: Geometry.h:159
void SetEngineForce(float value)
Set engine force.
const WeakPtr< Texture > parentTexture_
Parent texture.
Definition: RenderSurface.h:143
Vector4 Ag_
Dot product with (Nx, Ny, Nz, 1), green channel.
Definition: SphericalHarmonics.h:289
void HandleScenePostUpdate(StringHash eventType, VariantMap &eventData)
Handle scene post-update event.
Definition: RibbonTrail.cpp:182
bool Play()
Restart sound output.
Definition: Audio.cpp:243
HighPrecisionVector3 operator*(double rhs) const
Multiply with scalar.
Definition: TetrahedralMesh.h:101
SharedPtr< ImageCube > loadImageCube_
Face image files acquired during BeginLoad.
Definition: TextureCube.h:76
~TextureCube() override
Destruct.
Definition: TextureCube.cpp:67
SharedPtr< FileSystem > fileSystem_
Filesystem.
Definition: FileWatcher.h:100
const ea::unordered_map< StringHash, SharedPtr< ObjectReflection > > & GetObjectReflections() const
Return reflections of all objects.
Definition: ObjectReflection.h:172
void SerializeInBlock(Archive &archive) override
Serialize content from/to archive. May throw ArchiveException.
Definition: Parallel.cpp:152
SDL_RWops * GetRWOps()
Return the RWOps structure.
Definition: RWOpsWrapper.h:49
static const Color RED
Opaque red color.
Definition: Color.h:281
void SetViewport(unsigned index, Viewport *viewport)
Definition: StateManager.cpp:224
unsigned viewportIndex_
Viewport index to be set when component is added to a node.
Definition: UIComponent.h:81
static void RegisterObject(ParticleGraphSystem *context)
Register particle node factory.
Definition: WorldToLocal.cpp:38
AbstractFilePtr OpenFile(const FileIdentifier &fileName, FileMode mode) const
Open file in the virtual file system. Returns null if file not found.
Definition: VirtualFileSystem.cpp:221
bool clipChildren_
Clip children flag.
Definition: UIElement.h:805
void UpdateSelectionEffect()
Update selection effect when selection or focus changes.
Definition: ListView.cpp:988
int GetMultiSample() const
Return multisampling level.
Definition: RenderSurface.cpp:104
float splineTension_
Spline tension.
Definition: ValueAnimation.h:164
float GetTraumaFalloff() const
Get trauma falloff (how many units to loose per second).
Definition: ShakeComponent.h:70
Definition: MultitouchAdapter.h:37
virtual IntRect GetViewportRect() const =0
Rect ReadRect()
Read a Rect.
Definition: Deserializer.cpp:162
const ea::unordered_map< ea::string, ea::vector< StringHash > > & GetObjectCategories() const
Return categories of reflected objects.
Definition: ObjectReflection.h:174
Reference count structure.
Definition: RefCounted.h:33
ea::vector< const SourceBatch2D * > sourceBatches_
Source batches.
Definition: Renderer2D.h:58
Button * GetCancelButton() const
Definition: FileSelector.h:120
void HandleTouchMove(StringHash eventType, VariantMap &eventData)
Handle touch move event.
Definition: RmlUI.cpp:600
bool useFixtureMass_
Use fixture mass (calculate mass & inertia from collision shapes automatically).
Definition: RigidBody2D.h:208
float Translate(float pos, float deadZone) const
Translate axis value into 0..1 range. Returns 0 if the value is outside of the range.
Definition: InputMap.cpp:434
IntVector2 layoutMinSize_
Parent's minimum size calculated by layout. Used internally.
Definition: UIElement.h:890
void SetEnabled(bool enable)
Definition: Component.cpp:115
ea::string sourceCode_
Shader source code.
Definition: Shader.h:78
LightmapChartGeometryBuffer(unsigned index, unsigned size)
Construct valid.
Definition: LightmapGeometryBuffer.h:132
Template implementation of the action handler invoke helper (stores a function pointer of specific cl...
Definition: CallFunc.h:64
void Set(const ea::string &key, JSONValue value)
Set JSON value with key.
Definition: JSONValue.cpp:340
virtual void Render() override
Called for updated pipelines in appropriate order.
Definition: StereoRenderPipeline.cpp:515
void FinalizeBoneBoundingBoxes()
Finalize master model bone bounding boxes by merging from matching non-master bones....
Definition: AnimatedModel.cpp:884
bool bufferDirty_
Vertex buffer needs rewrite flag.
Definition: RibbonTrail.h:246
Terrain * GetEastNeighbor() const
Definition: Terrain.h:195
Definition: UIComponent.h:39
ea::function< void()> onError_
Called once, if connection fails to connect (only if onConnected_ was never called)....
Definition: NetworkConnection.h:65
Slider bar UI element.
Definition: Slider.h:31
ParticleGraphEmitter * GetEmitter() const
Get emitter component.
Definition: TemplateNode.h:95
unsigned numProcessingThreads_
Total number of threads, including main thread.
Definition: WorkQueue.h:254
bool BuildTiles(const IntVector2 &from, const IntVector2 &to)
Rebuild part of the navigation mesh in the rectangular area. Return true if successful.
Definition: NavigationMesh.cpp:466
void Dispose()
Dispose all data.
Definition: AnimationSet2D.cpp:507
Data structure used to represent the drag data associated to a UIElement.
Definition: UI.h:287
Variant GetVectorVariant(const ea::string &name) const
Return a float, Vector or Matrix attribute as Variant.
Definition: XMLElement.cpp:1068
Vector3() noexcept
Construct a zero vector.
Definition: Vector3.h:205
BoundingBox Padded(const Vector3 &minPadding, const Vector3 &maxPadding) const
Return this bounding box expanded by given value.
Definition: BoundingBox.h:275
void Exit()
Close the graphics window and set the exit flag. No-op on iOS/tvOS, as an iOS/tvOS application can no...
Definition: Engine.cpp:870
static const Vector3 ZERO
Zero vector.
Definition: Vector3.h:505
unsigned GetNumPins() const override
Get number of pins.
Definition: Constant.h:59
unsigned shadowMask_
Shadow mask.
Definition: ParticleGraphEmitter.h:135
Dynamically sized buffer that can be read and written to as a stream.
Definition: VectorBuffer.h:32
void ConnectToAnimationStateSource(AnimationStateSource *source)
Connect to AnimationStateSource that provides animation states.
Definition: AnimatedModel.cpp:1079
Color Lerp(const Color &rhs, float t) const
Return linear interpolation of this color with another color.
Definition: Color.cpp:241
int GetFrom() const
Get From.
Definition: Sphere.cpp:95
FrustumOctreeQuery(ea::vector< Drawable * > &result, const Frustum &frustum, DrawableFlags drawableFlags=DRAWABLE_ANY, unsigned viewMask=DEFAULT_VIEWMASK)
Construct with frustum and query parameters.
Definition: OctreeQuery.h:140
EaseBounceOut(Context *context)
Construct.
Definition: Ease.cpp:243
LightProbeGroup(Context *context)
Construct.
Definition: LightProbeGroup.cpp:65
Transform track applied to the Node that is not used as Bone for AnimatedModel.
Definition: AnimationState.h:59
ea::string name_
Name of the thread. It will be propagated to underlying OS thread if possible.
Definition: Thread.h:79
SharedPtr< Material > material_
Material.
Definition: Renderer2D.h:118
Intersection IsInside(const Rect &rect) const
Test if another rect is inside, outside or intersects.
Definition: Rect.h:225
float time_
Input scalar. Time for animation, may be something else.
Definition: VariantCurve.h:52
virtual void OnTextInput(const ea::string &text)
React to text input event.
Definition: UIElement.h:191
Vector2 GetDirection() const
Get aggregated direction vector with X pointing right and Y pointing down (similar to gamepad axis).
Definition: DirectionAggregator.cpp:152
float size_
Size.
Definition: ParticleEmitter2D.h:42
void ClearState()
Definition: PipelineStateBuilder.cpp:195
Reflection of a class derived from Object.
Definition: ObjectReflection.h:43
XrSpaceLocation headLocation_
Location tracking of the head.
Definition: OpenXR.h:305
void GetBatches(ea::vector< UIBatch > &batches, ea::vector< float > &vertexData, const IntRect ¤tScissor) override
Return UI rendering batches.
Definition: UISelectable.cpp:40
~LineEdit() override
Destruct.
float emissionTimer_
New particle emission timer.
Definition: ParticleEmitter.h:151
static constexpr float factors[9]
Array of factors.
Definition: SphericalHarmonics.h:38
void ApplyAttributes() override
Apply attribute changes that can not be applied immediately. Called after scene load or a network upd...
Definition: DecalSet.cpp:197
virtual UIElement * LoadChildXML(const XMLElement &childElem, XMLFile *styleFile)
Create a child by loading from XML data with style. Returns the child element if successful,...
Definition: UIElement.cpp:286
unsigned GetMaxParticles() const
Return max particles.
Definition: ParticleEmitter2D.h:119
UpdateGeometryType GetUpdateGeometryType() override
Return whether a geometry update is necessary, and if it can happen in a worker thread.
Definition: RibbonTrail.cpp:411
const ea::vector< unsigned char > & GetMorphsAttr() const
Return morphs attribute.
Definition: AnimatedModel.cpp:764
void SetDefaultStyle(XMLFile *style)
Definition: UIElement.cpp:1067
SphericalHarmonicsColor9 CalculateSphericalHarmonics() const
Calculate spherical harmonics for the cube map.
Definition: ImageCube.cpp:283
DebugRenderer * debugRenderer_
Debug renderer.
Definition: PhysicsWorld.h:405
virtual bool Define(RenderSurface *renderTarget, Viewport *viewport) override
Definition: StereoRenderPipeline.cpp:375
FaceCameraMode GetFaceCameraMode() const
Definition: ParticleEffect.h:418
Generic animation track, stores keyframes of single animatable entity.
Definition: AnimationTrack.h:79
void MixStereoToStereo(Sound *sound, int dest[], unsigned samples, int mixRate, float effectiveFrequency)
Mix stereo sample to stereo buffer.
Definition: SoundSource.cpp:1056
Vector2 hotSpot_
Hot spot.
Definition: StaticSprite2D.h:191
Vector3 GetWheelPosition(int wheel) const
Get wheel position relative to RigidBody.
Definition: RaycastVehicle.cpp:494
unsigned LogBaseTwo(unsigned value)
Return log base two or the MSB position of the given value.
Definition: MathDefs.h:322
ea::vector< SharedPtr< Viewport > > viewports_
Viewports.
Definition: RenderSurface.h:151
float panning_
Stereo panning.
Definition: SoundSource.h:176
ea::unordered_map< unsigned, SharedPtr< GraphNode > > nodes_
Replicated scene nodes by ID.
Definition: Graph.h:102
Context * GetContext() const override
Definition: LightmapRenderPipeline.h:58
bool LoadFont(const ea::string &resourceName, bool fallback=false)
Definition: RmlUI.cpp:490
Vector3 Orthogonalize(const Vector3 &axis) const
Make vector orthogonal to the axis.
Definition: Vector3.h:387
ea::vector< ea::vector< GeometryDesc > > loadGeometries_
Geometry definitions for asynchronous loading.
Definition: Model.h:259
ParticleGraphPin & GetPin(unsigned index) override
Get pin by index.
Definition: Constant.h:62
bool Save(Serializer &dest) const override
Save resource with default indentation (one tab). Return true if successful.
Definition: JSONFile.cpp:214
void RenderUpdate()
Update the UI for rendering. Called by HandleRenderUpdate().
Definition: UI.cpp:425
void TestDrawables(Drawable **start, Drawable **end, bool inside) override
Intersection test for drawables.
Definition: OctreeQuery.cpp:126
ea::pair< unsigned, unsigned > Index
Index in multi-vector (pair of outer and inner indices).
Definition: MultiVector.h:42
bool visible_
Visible.
Definition: TileMapLayer2D.h:135
void ResetUseTimer()
Reset last used timer.
Definition: OcclusionBuffer.cpp:324
IntRect layoutBorder_
Layout borders.
Definition: UIElement.h:833
const Vector2 & GetOtherBodyGroundAnchor() const
Definition: ConstraintPulley2D.h:66
void SetLineEditText(LineEdit *edit, const ea::string &text)
Set the text of an edit field and ignore the resulting event.
Definition: FileSelector.cpp:283
void Invalidate()
Invalidate cache.
Definition: BatchStateCache.cpp:39
bool IsButtonDown() const
Is button down (left mouse button, touch or gamepad A button).
Definition: PointerAdapter.h:69
unsigned char areaID_
Area ID.
Definition: NavBuildData.h:51
void CalculateMissingTangents()
Calculate tangents for geometries without tangents in vertex format.
Definition: ModelView.cpp:1476
float Distance(const Vector3 &point) const
Return signed distance to a point.
Definition: Plane.h:103
HorizontalAlignment GetTextAlignment() const
Definition: Text.h:156
ea::string GetLanguage()
Definition: Localization.cpp:64
static void RegisterObject(Context *context)
Definition: RibbonTrail.cpp:107
Pass * GetPass(unsigned index, const ea::string &passName) const
Return pass by technique index and pass name.
Definition: Material.cpp:921
int left_
Left coordinate.
Definition: Rect.h:486
unsigned numParticles_
Number of particles.
Definition: ParticleEffect.h:444
SharedPtr< Window > window_
Fileselector window.
Definition: FileSelector.h:170
Terrain * GetWestNeighbor() const
Definition: Terrain.h:191
float fov_
Field of view.
Definition: Camera.h:365
bool depthWrite_
Depth write mode.
Definition: Technique.h:222
bool fixedScreenSize_
Billboards fixed screen size flag.
Definition: ParticleEffect.h:454
void SetNumOfBlinks(unsigned times)
Set number of blinks.
Definition: Attribute.h:105
ParticleGraphPin pins_[1]
Pins.
Definition: Print.h:76
AnimationBlendMode
Animation blending mode.
Definition: AnimationState.h:50
VariantMap & GetEventDataMap() const
Return a preallocated map for event data. Used for optimization to avoid constant re-allocation of ev...
Definition: Object.cpp:337
float pointSize_
Point size.
Definition: FontFace.h:115
const ea::string & GetString(const ea::string &defaultValue=EMPTY_STRING) const
Return string value. The 'defaultValue' may potentially be returned as is, so it is the responsibilit...
Definition: JSONValue.h:227
RuntimeException(ea::string_view format, const T &firstArg, const Ts &... otherArgs)
Construct exception with formatted message.
Definition: Exception.h:45
ea::vector< PinSpan > spans_
Allocated spans.
Definition: ParticleGraphMemory.h:135
ConstraintFriction2D(Context *context)
Construct.
Definition: ConstraintFriction2D.cpp:35
float GetNearDistance() const
Definition: SoundSource3D.h:73
SharedPtr< Font > defaultFont_
Default font.
Definition: TextRenderer3D.h:159
void Reset()
Reset. Clear all remembered nodes and components.
Definition: SceneResolver.cpp:41
void SetFace(unsigned index, const Vector3 &v0, const Vector3 &v1, const Vector3 &v2)
Set a triangle face by index.
Definition: Polyhedron.cpp:293
ea::vector< Matrix3x4 > skinMatrices_
Skinning matrices.
Definition: AnimatedModel.h:218
Object * Get(StringHash type) const
Return subsystem by dynamic type.
Definition: SubsystemCache.h:87
void SetTexture(Texture2D *texture)
Definition: Sprite2D.cpp:104
WeakPtr< Audio > audio_
Audio subsystem.
Definition: SoundSource.h:164
Definition: AutoExposurePass.h:75
void SerializeInBlock(Archive &archive) override
Serialize content from/to archive. May throw ArchiveException.
Definition: Ease.cpp:119
void SetCollisionMask(unsigned mask)
Set collision mask.
Definition: KinematicCharacterController.cpp:398
int GetFontOversampling() const
Definition: UI.h:258
bool Define(const CommonFrameInfo &frameInfo)
Definition: SceneProcessor.cpp:219
EngineType engine_
Underlying engine.
Definition: RandomEngine.h:128
unsigned GetNumGeometries() const
Definition: StaticModel.h:90
DragAndDropModeFlags dragDropMode_
Drag and drop flags.
Definition: UIElement.h:827
WeakPtr< AnimationController > controller_
Owner controller.
Definition: AnimationState.h:224
void SetValue(const Variant &variant)
Definition: GraphPin.cpp:83
AbstractFilePtr OpenFile(const FileIdentifier &fileName, FileMode mode) override
Definition: MountedExternalMemory.cpp:93
ea::string ToString() const
Return as string.
Definition: StringHash.cpp:56
ParticleGraphNodeInstance * CreateInstanceAt(void *ptr, ParticleGraphLayerInstance *layer) override
Place new instance at the provided address.
Definition: EffectTime.cpp:59
LightBatchQueue * lightQueue_
Light queue.
Definition: Light.h:493
unsigned EvaluateInstanceSize() const override
Evaluate size required to place new node instance.
Definition: Slerp.cpp:56
static void RegisterObject(ParticleGraphSystem *context)
Register particle node factory.
Definition: RenderBillboard.cpp:38
Vector3 position_
Position in local space of light probe group.
Definition: LightProbeGroup.h:43
bool IsLooped(float positionThreshold=0.001f, float rotationThreshold=0.001f, float scaleThreshold=0.001f) const
Return whether the track is looped, i.e. the first and the last keyframes have the same value.
Definition: AnimationTrack.cpp:62
XMLElement NextResult() const
Definition: XMLElement.cpp:1093
Vector3 parentPos_
Parent position. Trail bone type uses this.
Definition: RibbonTrail.h:53
void SetFocus(bool enable)
Definition: UIElement.cpp:957
LightmapChart(unsigned index, unsigned size)
Construct valid.
Definition: LightmapCharter.h:100
Helper class to iterate over the range.
Definition: IteratorRange.h:32
bool IsLightShadowed(Light *light) override
Definition: SceneProcessor.cpp:502
Vector3 Translation() const
Return the translation part.
Definition: Matrix3x4.h:638
T * GetSubsystem() const
Template version of returning a subsystem.
Definition: Object.h:240
Variant(Variant &&value)
Move-construct from another variant.
Definition: Variant.h:725
void SetMaxParticles(unsigned maxParticles)
Set max particles.
Definition: ParticleEmitter2D.cpp:123
bool active_
The input is in an active state of being used, ie. a button being held.
Definition: VirtualReality.h:146
bool GetBlockEvents() const
Return sending and receiving events blocking status.
Definition: Object.h:207
void SetLineAntiAlias(bool enable)
Definition: DebugRenderer.cpp:74
SharedPtr< Image > GetSubimage(const IntRect &rect) const
Return subimage from the image by the defined rect or null if failed. 3D images are not supported....
Definition: Image.cpp:2228
bool GetDepthWrite() const
Definition: Technique.h:151
UIElement * GetTouchedElement()
Definition: Input.cpp:90
Definition: CircleInstance.h:35
void SetMaxTimeToLive(float time)
Definition: ParticleEffect.cpp:545
InnerIterator innerEnd_
Inner iterator (end).
Definition: MultiVector.h:149
void Resize(unsigned newSize)
Resize array.
Definition: JSONValue.cpp:306
PropertySet2D * GetTilePropertySet(unsigned gid) const
Return tile property set by gid, if not exist return 0.
Definition: TmxFile2D.cpp:575
Sphere(const Vector3 *vertices, unsigned count) noexcept
Construct from an array of vertices.
Definition: Sphere.h:74
void Update(float time, Variant &var) override
Called every frame with it's delta time and attribute value.
Definition: AttributeActionState.cpp:106
Object * receiver_
Event receiver.
Definition: CallFunc.h:58
Deprecated.
Definition: WorkQueue.h:93
ea::optional< int > activeTouchId_
Identifier of active touch.
Definition: DirectionAggregator.h:139
StringHash type_
Object type.
Definition: Variant.h:158
bool GetUseSystemClipboard() const
Definition: UI.h:234
unsigned GetCorrectedLodLevel(unsigned lodLevel)
Return a corrected LOD level to ensure stitching can work correctly.
Definition: TerrainPatch.cpp:300
Rml::ElementDocument * loadedDocument_
Pointer to a document that was loaded in place of unloaded one.
Definition: RmlUI.h:58
void Invalidate()
Invalidate all pipeline states.
Definition: StaticPipelineStateCache.cpp:19
ParticleGraphEmitter * emitter_
Emitter that owns the layer instance.
Definition: ParticleGraphLayerInstance.h:168
Definition: NavBuildData.h:104
T ExponentialDecay(T x)
Calculate exponential decay function.
Definition: MathDefs.h:159
Frustum query for spot light forward lit geometries and shadow casters.
Definition: LightProcessorQuery.h:68
bool IsLoaded() const override
Returns true if plugin is loaded and functional.
Definition: ScriptBundlePlugin.h:40
Base class for octree queries.
Definition: OctreeQuery.h:41
SharedPtr< SoundStream > soundStream_
Sound stream that is being played.
Definition: SoundSource.h:237
FontType
Font file type.
Definition: Font.h:40
unsigned chartIndex_
Lightmap chart index.
Definition: LightmapCharter.h:67
void SetImageRect(const IntRect &rect)
Definition: BorderImage.cpp:83
ResourceRef GetMaterialAttr() const
Return material attribute.
Definition: Text3D.cpp:590
unsigned GetAvailableSize() const
Definition: HttpRequest.cpp:311
bool LoadArray(PListValueVector &array, const XMLElement &arrayElem)
Load array.
Definition: PListFile.cpp:366
InputMap * GetInputMap() const
Return input map.
Definition: MoveAndOrbitController.cpp:75
virtual StringHash GetPostUpdateEvent() const
Return post update event type. Should stay the same for any given instance of the component.
Definition: LogicComponent.cpp:72
bool interpolation_
Interpolation flag.
Definition: PhysicsWorld.h:395
Vector3 GetPoint(const Vector3 &directionHint) const
Return point on the sphere closest to given direction.
Definition: Sphere.cpp:33
void CalculateUVs(Decal &decal, const Matrix3x4 &view, const Matrix4 &projection, const Vector2 &topLeftUV, const Vector2 &bottomRightUV)
Calculate UV coordinates for the decal.
Definition: DecalSet.cpp:956
void SetGain(float gain)
Definition: SoundSource.cpp:280
const ea::string & GetTitle() const
Definition: MessageBox.cpp:126
void Set(NetworkFrame frame, ValueSpan value)
Set value for given frame if possible.
Definition: NetworkValue.h:687
void StopWatching()
Stop watching all the directories.
Definition: MultiFileWatcher.cpp:41
void RefreshMemoryUse()
Recalculate the memory used by the material.
Definition: Material.cpp:1041
ea::unordered_map< WeakPtr< NetworkConnection >, SharedPtr< Connection > > clientConnections_
Server's client connections.
Definition: Network.h:163
Vector2 sizeMin_
Particle size minimum.
Definition: ParticleEffect.h:478
void SetTranslation(Vector3 value)
Set Translation.
Definition: Box.cpp:76
IntVector3 GetIntVector3(const ea::string &name) const
Return an IntVector3 attribute, or default if missing.
Definition: XMLElement.cpp:886
bool SetRect(const ea::string &name, const Rect &value)
Set a Rect attribute.
Definition: XMLElement.cpp:412
static bool Compare(const ea::unique_ptr< T > &lhs, const ea::unique_ptr< T > &rhs)
Compare types.
Definition: Variant.h:349
bool HasColorGradient() const
Definition: UIElement.h:627
void SetFixedHeight(int height)
Set fixed height.
Definition: UIElement.cpp:692
void SetBoundingBox(const BoundingBox &bnds)
Definition: NavArea.h:61
SharedPtr< Geometry > geometry_
Geometry.
Definition: BillboardSet.h:212
EaseExponentialInOut(Context *context)
Construct.
Definition: Ease.cpp:396
JSONValue(const char *value)
Construct with a C string.
Definition: JSONValue.h:122
void SetMass(float mass)
Definition: RigidBody2D.cpp:122
Definition of a model's vertex morph.
Definition: Model.h:55
LightProcessor * GetLightProcessor() const
Definition: ShadowSplitProcessor.h:72
Vector3 position_
Position.
Definition: Drawable2D.h:40
External context that is not present in the key but is necessary to create new pipeline state for UI ...
Definition: BatchStateCache.h:203
unsigned numVariations_
Number of unique variations so far.
Definition: Shader.h:84
unsigned lightmapIndex_
Lightmap index.
Definition: StaticModel.h:166
unsigned EvaluateInstanceSize() const override
Evaluate size required to place new node instance.
Definition: Expire.cpp:54
bool HasNeighbor(unsigned neighborIndex) const
Return whether the triangle has given neighbour.
Definition: TetrahedralMesh.h:145
ea::vector< Vertex2D > vertices_
Vertices.
Definition: Drawable2D.h:76
bool CreateCrowd()
Create and initialized internal Detour crowd object. When it is a recreate, it preserves the configur...
Definition: CrowdManager.cpp:579
void SetLinkedDepthStencil(RenderSurface *depthStencil)
Definition: RenderSurface.cpp:73
virtual void InitializeFromSnapshot(NetworkFrame frame, Deserializer &src, bool isOwned)
Read full snapshot and initialize object. Called once.
Definition: NetworkCallbacks.h:106
bool activate_
If the RigidBody should be activated.
Definition: RaycastVehicle.h:157
bool showPercentText_
Flag to show the percent text.
Definition: ProgressBar.h:116
void Merge(const Vector3 &point)
Merge a point.
Definition: Sphere.h:129
~Connection() override
Destruct.
Definition: Connection.cpp:86
Fixed-length segment that consists of two nodes.
Definition: InverseKinematics.h:82
void AddTextureTime(const Rect &uv, float time)
Add a texture frame sorted in the correct position based on time.
Definition: ParticleEffect.cpp:666
ea::vector< ModelMorph > morphs_
Vertex morphs.
Definition: Model.h:249
void OnSceneSet(Scene *scene) override
Handle scene being assigned.
Definition: StaticSprite2D.cpp:258
unsigned GetAreaID() const
Definition: NavArea.h:49
unsigned northID_
Node ID of north neighbor.
Definition: Terrain.h:395
constexpr bool operator>(const StringHash &rhs) const
Test if greater than another hash.
Definition: StringHash.h:100
void SetIndent(int indent)
Definition: UIElement.cpp:1105
static const XMLElement EMPTY
Empty XMLElement.
Definition: XMLElement.h:323
rcContext * ctx_
Recast context.
Definition: NavBuildData.h:79
void UpdateBatches(const FrameInfo &frame) override
Calculate distance and prepare batches for rendering. May be called from worker thread(s),...
Definition: AnimatedModel.cpp:313
float Transform(float value) const
Transform axis value. The output is normalized around neutral position into range -1....
Definition: AxisAdapter.cpp:71
void ApplyMorphs(ea::span< const ModelMorph > morphs)
Apply morphs. Safe to call from worker thread.
Definition: SoftwareModelAnimator.cpp:90
Frustum() noexcept=default
Construct a degenerate frustum with all points at origin.
unsigned GetQueryFilterType() const
Definition: CrowdAgent.h:200
ea::string pixelShaderDefineExcludes_
Pixel shader define excludes.
Definition: Technique.h:238
Window UI element that can optionally by moved or resized.
Definition: Window.h:48
void SetUseScreenKeyboard(bool enable)
Definition: UI.cpp:626
@ CA_STATE_INVALID
The agent is not in a valid state.
Definition: CrowdAgent.h:53
unsigned GetUseTimer()
Return time since last use in milliseconds.
Definition: OcclusionBuffer.cpp:451
void Update(UpdateContext &context, const NodePattern &pattern)
Update particles.
Definition: Helpers.cpp:172
Color(const Color &color, float a) noexcept
Construct from another color and modify the alpha.
Definition: Color.h:68
Vector2 Lerp(const Vector2 &rhs, float t) const
Linear interpolation with another vector.
Definition: Vector2.h:348
SharedPtr< ShadowMapAllocator > shadowMapAllocator_
Definition: SceneProcessor.h:139
void Disconnect()
Disconnect. If wait time is non-zero, will block while waiting for disconnect to finish.
Definition: Connection.cpp:192
float GetStartParticleSizeVariance() const
Return start particle size variance.
Definition: ParticleEffect2D.h:195
void SetRadius(float value)
Set Radius.
Definition: Cone.cpp:75
virtual void ReadReliableDelta(NetworkFrame frame, Deserializer &src)
Read reliable delta update. Delta is applied to previous reliable delta or snapshot message.
Definition: NetworkCallbacks.h:114
void SetLinearVelocity(const Vector2 &linearVelocity)
Definition: RigidBody2D.cpp:271
unsigned GetNumBillboards() const
Definition: BillboardSet.h:122
Definition: DrawableProcessor.h:124
ea::vector< float > lodErrors_
Geometrical error per LOD level.
Definition: TerrainPatch.h:152
bool AddDecal(Drawable *target, const Vector3 &worldPosition, const Quaternion &worldRotation, float size, float aspectRatio, float depth, const Vector2 &topLeftUV, const Vector2 &bottomRightUV, float timeToLive=0.0f, float normalCutoff=0.1f, unsigned subGeometry=M_MAX_UNSIGNED)
Add a decal at world coordinates, using a target drawable's geometry for reference....
Definition: DecalSet.cpp:297
float GetRotationStart() const
Return rotation start.
Definition: ParticleEffect2D.h:231
Vector3 GetTangent() const
Return tangent as 3-vector.
Definition: ModelView.h:86
void OnSceneSet(Scene *scene) override
Handle node being assigned.
Definition: CrowdAgent.cpp:618
unsigned numDrawables_
Number of drawable objects in this octant and child octants.
Definition: Octree.h:161
ParticleGraphPin pins_[1]
Pins.
Definition: Uniform.h:100
unsigned faceIndex_
Face that owns this edge.
Definition: TetrahedralMesh.h:188
void RemoveKnot()
Remove the last knot on the spline.
Definition: Spline.h:105
IntRect border_
Border dimensions on screen.
Definition: BorderImage.h:140
TextureCube(Context *context)
Construct.
Definition: TextureCube.cpp:61
float lodDistance_
LOD distance.
Definition: Geometry.h:167
unsigned ToHash() const
Return hash value for HashSet & HashMap.
Definition: Variant.h:149
bool IsClient() const
Definition: Connection.h:161
ea::string queryString_
XPath query string.
Definition: XMLElement.h:424
float range_
ProgressBar range.
Definition: ProgressBar.h:112
AbstractFilePtr OpenFile(const FileIdentifier &fileName, FileMode mode) override
Definition: MountedDirectory.cpp:112
Class that represents specific set of flavor components.
Definition: ApplicationFlavor.h:49
void SetShowPercentText(bool enable)
Definition: ProgressBar.cpp:113
CascadeParameters(float split1, float split2, float split3, float split4, float fadeStart, float biasAutoAdjust=1.0f)
Construct with initial values.
Definition: Light.h:119
static void RegisterObject(Context *context)
Definition: Model.cpp:71
void StopSound(Sound *sound)
Stop any sound source playing a certain sound clip.
Definition: Audio.cpp:303
int GetInt(int defaultValue=0) const
Return integer value.
Definition: JSONValue.h:219
T value_
Value.
Definition: Variant.h:428
ea::vector< SharedPtr< Geometry > > geometries_
All geometries.
Definition: CustomGeometry.h:145
LightmapChartRegion(unsigned index, const IntVector2 &position, const IntVector2 &size, unsigned maxSize)
Construct actual region.
Definition: LightmapCharter.h:47
const VariantType dataType_
Data-type that the stored data can be expected to be.
Definition: VirtualReality.h:135
NetworkTime GetInputTime() const
Definition: ClientReplica.h:82
Base action state.
Definition: Ease.h:35
float minHeight_
Minimum height.
Definition: CollisionShape.h:140
virtual bool AddTile(const ea::vector< unsigned char > &tileData)
Add tile to navigation mesh.
Definition: NavigationMesh.cpp:516
Definition: CubemapRenderer.h:114
unsigned position_
Stream position.
Definition: Deserializer.h:158
const ByteVector & GetData() const
Return immutable data.
Definition: BinaryFile.cpp:120
void UnmountAll()
Remove all mount points.
Definition: VirtualFileSystem.cpp:206
Vector2 GetCharSize(unsigned index)
Definition: Text.cpp:430
unsigned page_
Texture page. M_MAX_UNSIGNED if not yet resident on any texture.
Definition: FontFace.h:61
unsigned dragButtonCount_
Drag button count.
Definition: UIElement.h:857
void SetAttributeName(ea::string_view animatedAttribute)
Set action duration.
Definition: AttributeAction.cpp:60
ConstraintType GetConstraintType() const
Definition: Constraint.h:123
AnimationState(AnimationController *controller)
Construct .
Definition: AnimationState.cpp:110
Vector4(const Vector3 &v1, float w) noexcept
Construct from 3-dimensional vector and a scalar.
Definition: Vector4.h:47
void FinishSaving(Serializer *dest) const
Finish saving. Sets the scene filename and checksum.
Definition: Scene.cpp:1158
void SetDrawAabb(bool drawAabb)
Definition: PhysicsWorld2D.cpp:373
static const char * GetXmlRootName()
Get name of XML root element.
Definition: SceneResource.cpp:246
void Disconnect()
Disconnect pin.
Definition: GraphPin.cpp:64
A set of flags defined by an Enum.
Definition: FlagSet.h:46
virtual void OnDragMove(const IntVector2 &position, const IntVector2 &screenPosition, const IntVector2 &deltaPos, MouseButtonFlags buttons, QualifierFlags qualifiers, Cursor *cursor)
React to mouse drag motion.
Definition: UIElement.cpp:461
Definition: ClockSynchronizer.h:88
float GetRatio() const
Definition: ConstraintPulley2D.h:78
void SetFontAttr(const ResourceRef &value)
Set font attribute.
Definition: Text.cpp:442
Technique * GetDefaultTechnique() const
Definition: Renderer.cpp:368
Drawable * drawable_
Drawable.
Definition: OctreeQuery.h:170
VertexMaskFlags GetElementMask() const
Definition: VertexBuffer.h:89
Matrix4 GetGPUProjection(bool ignoreFlip=false) const
Definition: Camera.cpp:470
ScaleBy(Context *context)
Construct.
Definition: Move.cpp:528
void Clear()
Reset to empty.
Definition: Variant.h:737
void DrawIKSegment(DebugRenderer *debug, const IKNode &beginNode, const IKNode &endNode) const
Draw IK segment line in DebugRenderer.
Definition: IKSolverComponent.cpp:188
void TestDrawables(Drawable **start, Drawable **end, bool inside) override
Intersection test for drawables.
Definition: LightProcessorQuery.cpp:110
Utility class to filter random uint value which mostly stays the same.
Definition: ClockSynchronizer.h:38
void SetScaleInLightmap(float scale)
Set scale in lightmap.
Definition: StaticModel.h:124
void SerializeInBlock(Archive &archive) override
Serialize content from/to archive. May throw ArchiveException.
Definition: GraphPin.cpp:42
Signal< void()> OnParametersChanged
Invoked when render path parameters change.
Definition: RenderPipeline.h:92
String hash to/from string.
Definition: ArchiveSerializationBasic.h:101
float minRadius_
Min radius.
Definition: ParticleEffect2D.h:313
RenderPipelineDebugger * GetDebugger() override
Definition: DefaultRenderPipeline.h:58
StaticModelForLightmap(Context *context)
Construct.
Definition: StaticModelForLightmap.cpp:39
void SetKnots(const ea::vector< Variant > &knots)
Set the knots of the spline.
Definition: Spline.h:95
ActionBuilder(Context *context)
Construct.
Definition: ActionBuilder.cpp:40
void SetForceAutoHint(bool enable)
Definition: UI.cpp:640
Cursor image and hotspot information.
Definition: Cursor.h:55
void * GetSDLWindow()
Get the SDL_Window as a void* to avoid having to include the graphics implementation.
Definition: Graphics.h:282
StringVector ReadLines() const
Return data as text lines.
Definition: BinaryFile.cpp:132
static constexpr int NavigationDataVersion
Version of compiled navigation data. Navigation data should be discarded and rebuilt on mismatch.
Definition: DynamicNavigationMesh.h:52
unsigned CalculatePipelineStateHash() const
Definition: RenderPipelineDefs.h:510
bool useGradient_
Gradient flag.
Definition: UIBatch.h:95
virtual InternalResourceFormat GetDefaultInternalFormat() const
Default internal resource format on save.
Definition: Resource.h:189
void Commit()
Commit all updates. Called on every frame.
Definition: Octree.cpp:339
bool GetUseTextureRect() const
Definition: StaticSprite2D.h:137
unsigned GetMorphRangeCount(unsigned bufferIndex) const
Return vertex buffer morph range vertex count.
Definition: Model.cpp:776
float Lightness() const
Return lightness as defined for HSL: average of the largest and smallest values of the RGB components...
Definition: Color.cpp:152
void SetMaterialAttr(const ResourceRef &value)
Set material attribute.
Definition: BillboardSet.cpp:384
float traumaPower_
Current trauma power.
Definition: ShakeComponent.h:95
static void RegisterObject(Context *context)
Definition: CollisionChain2D.cpp:45
bool Contains(const StringHash &hash) const
Return whether the string in contained in the register.
Definition: StringHashRegister.cpp:89
float GetEffectDepthBias() const
Return effect Z bias.
Definition: Text.h:224
void OnDragBegin(const IntVector2 &position, const IntVector2 &screenPosition, MouseButtonFlags buttons, QualifierFlags qualifiers, Cursor *cursor) override
React to mouse drag begin.
Definition: LineEdit.cpp:137
float GetNegativeSensitivity() const
Get negative sensitivity value.
Definition: AxisAdapter.h:50
void OnSetEnabled() override
Handle enabled/disabled state change.
Definition: DecalSet.cpp:203
Viewport definition either for a render surface or the backbuffer.
Definition: Viewport.h:42
AttributeScopeHint scopeHint_
Scope hint for the entire object.
Definition: ObjectReflection.h:119
static void RegisterObject(Context *context)
Definition: CrowdManager.cpp:96
bool DrawOcclusion(OcclusionBuffer *buffer) override
Draw to occlusion buffer. Return true if did not run out of triangles.
Definition: StaticModel.cpp:199
unsigned lightMask_
Light mask.
Definition: ParticleGraphEmitter.h:133
SharedPtr< ActionState > StartAction(Object *target) override
Create new action state from the action.
Definition: Misc.cpp:121
T * GetValuePtr()
Return pointer to value of the specified type. Return null pointer if type does not match.
Definition: Variant.h:239
unsigned GetSelection() const
Definition: ListView.cpp:893
const ea::string & GetString() const
Return string or empty on type mismatch.
Definition: Variant.h:1433
Color() noexcept
Construct with default values (opaque white).
Definition: Color.h:56
BoundingBox GetChunkBoundingBox(const IntVector3 &chunkIndex) override
Return bounding box of unique nodes of the chunk.
Definition: BakedSceneCollector.cpp:252
const float * Data() const
Return float data.
Definition: Quaternion.h:479
Color colorDelta_
Color delta.
Definition: ParticleEmitter2D.h:52
unsigned GetPingBufferSize() const
Return number of ping synchronization samples used.
Definition: Network.h:101
void Clear()
Clear array or object.
Definition: JSONValue.cpp:387
ea::vector< IntVector3 > GetChunks() override
Return all scene chunks.
Definition: BakedSceneCollector.cpp:211
Normalized(Context *context)
Construct Normalized.
Definition: Normalized.cpp:63
void AddSkeleton(const Skeleton &skeleton, const Color &color, bool depthTest=true)
Add a skeleton.
Definition: DebugRenderer.cpp:391
ParticleGraphPin & GetPin(unsigned index) override
Get pin by index.
Definition: Helpers.cpp:120
void Commit()
Commit all added data to GPU.
Definition: IndexBuffer.cpp:219
Navigation area stub.
Definition: NavBuildData.h:46
IntVector2 numPatches_
Terrain size in patches.
Definition: Terrain.h:359
FrameInfo frame_
Frame info for rendering.
Definition: Renderer.h:369
~OcclusionBuffer() override
Destruct.
Lightmap seam description.
Definition: LightmapGeometryBuffer.h:52
bool StartServer(const URL &url, unsigned int maxConnections=128)
Start a server on a port using UDP protocol. Return true if successful.
Definition: Network.cpp:214
bool Exists(const FileIdentifier &fileName) const override
Definition: MountedAliasRoot.cpp:67
Vector2 max_
Maximum vector.
Definition: Rect.h:275
ea::string Save() const
Save state as string.
Definition: RandomEngine.cpp:62
bool skinningDirty_
Skinning dirty flag.
Definition: DecalSet.h:262
SystemMessageBox(Context *context, const ea::string &messageString=EMPTY_STRING, const ea::string &titleString=EMPTY_STRING)
Construct. If layout file is not given, use the default message box layout. If style file is not give...
Definition: SystemMessageBox.cpp:38
Vector2 Abs() const
Return absolute vector.
Definition: Vector2.h:345
VertexLightContainer GetVertexLights() const
Definition: LightAccumulator.h:179
unsigned GetLightmapIndex() const
Return lightmap index.
Definition: Terrain.h:278
SharedPtr< UIElement3D > rootElement_
UIElement to be rendered into texture. It also handles screen to UI coordinate translation.
Definition: UIComponent.h:77
VertexBuffer * GetVertexBuffer() const
Return vertex buffer.
Definition: TerrainPatch.cpp:285
float GetTime() const
Return time position.
Definition: ValueAnimationInfo.h:72
bool DecodeVariableLength(T &value, unsigned &offset, unsigned char byte)
Definition: MathDefs.h:444
IntRectIterator & operator++()
Pre-increment.
Definition: Rect.h:510
void GetFaces(ea::vector< ea::vector< DecalVertex > > &faces, Drawable *target, unsigned batchIndex, const Frustum &frustum, const Vector3 &decalNormal, float normalCutoff)
Get triangle faces from the target geometry.
Definition: DecalSet.cpp:693
bool IsTextSelectable() const
Definition: LineEdit.h:124
Base class for NetworkValue and NetworkValueVector.
Definition: NetworkValue.h:52
bool IsVisibleEffective() const
Definition: UIElement.cpp:1600
bool GetAlphaToCoverage() const
Definition: Material.h:292
bool GetBool(const ea::string &name) const
Return bool attribute, or false if missing.
Definition: XMLElement.cpp:808
Viewport * GetViewport() const
Definition: View3D.cpp:149
int ignoreJoystickId_
Joystick to ignore (SDL gyroscope virtual joystick)
Definition: DirectionAggregator.h:135
unsigned GetNumGeometries() const
Definition: CustomGeometry.h:106
bool Save(Serializer &dest) const override
Save resource. Return true if successful.
Definition: SpriteSheet2D.cpp:55
float SumRGB() const
Return sum of RGB components.
Definition: Color.h:175
Vector3 v1_
Vertex a.
Definition: DebugRenderer.h:82
void RelocateTo(void *dest) override
Move object over destination.
Definition: Variant.h:409
XML output archive.
Definition: XMLArchive.h:102
virtual void WriteUnreliableDelta(NetworkFrame frame, Serializer &dest)
Write unreliable delta update.
Definition: NetworkCallbacks.h:94
void SendAllBuffers()
Send out all buffered messages.
Definition: Connection.cpp:279
static unsigned deferredPassIndex
Index for deferred G-buffer pass. Initialized once GetPassIndex() has been called for the first time.
Definition: Technique.h:316
unsigned parentIndex_
Index of parent bone in the array. Should be undefined for exactly one root bone.
Definition: ModelView.h:227
Vector2 position_
Position.
Definition: TmxFile2D.h:149
void SetPingIntervalMs(unsigned interval)
Set interval of pings by server.
Definition: Network.cpp:310
RawTexture * GetPositionBuffer() const
Definition: LightmapRenderPipeline.h:48
Light parameters needed to calculate SH lighting.
Definition: LightAccumulator.h:38
void Reset()
Reset number of triangles.
Definition: OcclusionBuffer.cpp:145
const IntVector2 & GetOffset() const
Definition: Sprite2D.h:84
void UpdateAsyncLoading()
Update asynchronous loading.
Definition: Scene.cpp:1063
void SetPositionIterations(int positionIterations)
Definition: PhysicsWorld2D.cpp:434
GlobalIlluminationType giType_
Global illumination type.
Definition: Drawable.h:443
void RemoveCollisionShape(CollisionShape *shape)
Remove a collision shape. Called by CollisionShape.
Definition: PhysicsWorld.cpp:804
virtual bool Exists(const FileIdentifier &fileName) const =0
Texture2D * GetTexture() const
Return texture where UI is rendered into.
Definition: RmlCanvasComponent.h:49
Value animation event frame.
Definition: ValueAnimation.h:59
virtual void CloneTo(void *dest) const
Clone object over destination.
Definition: Variant.h:248
ea::unordered_map< StringHash, SharedPtr< ShaderParameterAnimationInfo > > shaderParameterAnimationInfos_
Shader parameters animation infos.
Definition: Material.h:354
ea::unordered_map< BatchStateLookupKey, CachedBatchState > cache_
Cached states, possibly invalid.
Definition: BatchStateCache.h:144
Plugin * GetDynamicPlugin(const ea::string &name, bool ignoreUnloaded)
Find or load dynamic plugin by name.
Definition: PluginManager.cpp:376
unsigned Add(const SharedPtr< ParticleGraphNode > node)
Definition: ParticleGraph.cpp:43
HiresTimer frameTimer_
Frame update timer.
Definition: Engine.h:176
void ReloadFonts()
Reload fonts from resource cache.
Definition: RmlUI.cpp:495
SharedPtr< VertexBuffer > vertexBuffer_
Vertex buffer.
Definition: BillboardSet.h:214
Vector2 lowLimit_
Low limit.
Definition: Constraint.h:221
Definition: ResourceCache.h:68
virtual ~LightProcessorCallback()
Destruct.
Definition: RenderPipelineDefs.cpp:68
void SetTailColumn(unsigned tailColumn)
Definition: RibbonTrail.cpp:356
SharedPtr< AttributeAccessor > accessor_
Helper object for accessor mode.
Definition: Attribute.h:166
Vector4 GetVector4(const ea::string &name) const
Return a Vector4 attribute, or zero vector if missing.
Definition: XMLElement.cpp:1058
ea::vector< AnimationTriggerPoint > triggers_
Animation trigger points.
Definition: Animation.h:174
static const VariantCurve emptyCurve
Empty variant curve.
Definition: Variant.h:1663
bool SetUInt64(const ea::string &name, unsigned long long value)
Set an unsigned long long integer attribute.
Definition: XMLElement.cpp:387
WeakPtr< Constraint2D > otherConstraint_
Other body constraint.
Definition: ConstraintGear2D.h:75
2D wheel constraint component.
Definition: ConstraintWheel2D.h:31
StoredLogMessage()=default
Construct undefined.
static Sint64 Size(SDL_RWops *context)
Return data size of the object.
Definition: RWOpsWrapper.h:53
void SetVertexShaderDefines(const ea::string &defines)
Definition: Material.cpp:609
XPathResultSet SelectPrepared(const XPathQuery &query) const
Select elements/attributes using XPath query.
Definition: XMLElement.cpp:270
bool HasDrawables() const
Definition: OutlineGroup.h:65
ea::string_view GetText() const
Return immutable data as string view.
Definition: BinaryFile.cpp:125
unsigned char adaptiveDepth
adaptive
Definition: CrowdManager.h:62
SharedPtr< ActionState > StartAction(Object *target) override
Create new action state from the action.
Definition: Ease.cpp:275
virtual void OnCrowdVelocityUpdate(dtCrowdAgent *ag, float *pos, float dt)
Handle crowd agent pre-update.
Definition: CrowdAgent.cpp:509
SharedPtr< DefaultUIBatchStateCache > batchStateCache_
Definition: RmlRenderer.h:79
Rml::ElementDocument * LoadDocument(const ea::string &path)
Definition: RmlUI.cpp:475
SharedPtr< Material > defaultMaterial_
Default material.
Definition: Renderer.h:352
unsigned ConvertFormatToNumComponents(TextureFormat format)
Convert graphics format to number of components.
Definition: FontFaceBitmap.cpp:347
void SetSteeringValue(float steeringValue)
Set steering value of particular wheel.
Object * GetSender() const
Return event sender. Null if the handler is non-specific.
Definition: Object.h:282
int mixRate_
Mixing rate.
Definition: Audio.h:166
ea::vector< ea::string > filters_
Filters.
Definition: FileSelector.h:202
JSONValueType GetValueType() const
Definition: JSONValue.cpp:238
SphericalHarmonicsColor9 operator*(float rhs) const
Scale spherical harmonics.
Definition: SphericalHarmonics.h:156
void SetAspectRatioInternal(float aspectRatio)
Set aspect ratio without disabling the "auto aspect ratio" mode. Called internally by View.
Definition: Camera.cpp:658
SharedPtr< FiniteTimeAction > Reverse() const override
Create reversed action.
Definition: Move.cpp:743
void Update()
Cleanup expired selection.
Definition: SceneSelection.cpp:76
void SendRebuildEvent()
Send rebuild event.
Definition: NavigationMesh.cpp:400
AnimationTrack * CreateTrack(const ea::string &name)
Create and return a track by name. If track by same name already exists, returns the existing.
Definition: Animation.cpp:466
RmlUI * GetUI() const
Return RmlUI subsystem this component renders into.
Definition: RmlUIComponent.cpp:369
RefCount * RefCountPtr() const
Return pointer to the reference count structure.
Definition: RefCounted.h:89
void SetNeckBoneName(const ea::string &name)
Definition: IKHeadSolver.h:26
static void CollectLightProbes(const ea::vector< LightProbeGroup * > &lightProbeGroups, LightProbeCollection &collection, LightProbeCollectionBakedData *bakedData, bool reload=false)
Collect all light probes from specified groups.
Definition: LightProbeGroup.cpp:107
void CollectParameters(StringVariantMap ¶ms) const override
Definition: AutoExposurePass.cpp:47
void SetQuality(LightBakingQuality quality)
Set baking quality.
Definition: LightBaker.cpp:120
unsigned EvaluateInstanceSize() const override
Evaluate size required to place new node instance.
Definition: Noise3D.cpp:54
const Vector2 & GetSize() const
Definition: TileMapDefs2D.h:196
GraphNode * WithInput(const ea::string_view name, VariantType type=VAR_NONE)
Add input pin.
Definition: GraphNode.cpp:145
void SetOwner(void *owner)
Set owner.
Definition: ValueAnimation.cpp:252
float time_
Time.
Definition: ValueAnimation.h:62
AutoRemoveMode
Autoremove is used by some components for automatic removal from the scene hierarchy upon completion ...
Definition: Component.h:37
ResourceRef GetMaterialAttr() const
Return material attribute.
Definition: BillboardSet.cpp:429
unsigned indexCount_
Number of indices.
Definition: Geometry.h:161
void RemoveDecals(unsigned num)
Remove n oldest decals.
Definition: DecalSet.cpp:481
const ea::vector< unsigned > & GetBonesOrder() const
Return order of bones from parents to children.
Definition: Skeleton.h:125
Baking scene for single lightmap chart.
Definition: LightmapGeometryBuffer.h:74
@ ASYNC_FAIL
BeginLoad() failed.
Definition: Resource.h:80
void OnSetEnabled() override
Handle enabled/disabled state change.
Definition: AnimatedSprite2D.cpp:84
unsigned vertexEnd_
Vertex data end index.
Definition: UIBatch.h:91
static JSONValueType GetValueTypeFromName(const ea::string &typeName)
Return a value type from name; null if unrecognized.
Definition: JSONValue.cpp:777
void RecalculateBoneBoundingBoxes()
Recalculate bounding boxes for bones.
Definition: ModelView.cpp:1536
Tmx tile layer.
Definition: TmxFile2D.h:91
Definition: LANDiscoveryManager.h:44
bool IsScaled() const
Definition: ParticleEffect.h:294
XMLElement SelectSinglePrepared(const XPathQuery &query) const
Select an element/attribute using XPath query.
Definition: XMLElement.cpp:250
Plane clipPlane_
Clipping plane.
Definition: Camera.h:391
float GetBrakeValue() const
Get brake value of particular wheel.
bool executeConsoleCommands_
Flag for executing engine console commands as OS-specific system command. Default to true.
Definition: FileSystem.h:148
ea::vector< unsigned > unicodeText_
Text as Unicode characters.
Definition: Text.h:286
bool occluder_
Occluder flag.
Definition: Terrain.h:377
Octree * octree_
Scene Octree.
Definition: BakedSceneCollector.h:137
SharedPtr< ParticleEffect2D > Clone(const ea::string &cloneName=EMPTY_STRING) const
Clone the 2D particle effect.
Definition: ParticleEffect2D.cpp:476
bool swapXY_
Swap X and Y.
Definition: StaticSprite2D.h:181
void GetCursorPositionAndVisible(IntVector2 &pos, bool &visible)
Return cursor position and visibility either from the cursor element, or the Input subsystem.
Definition: UI.cpp:1220
int GetEffectStrokeThickness() const
Definition: Text.h:188
void InsertChild(unsigned index, UIElement *element)
Insert a child element into a specific position in the child list.
Definition: UIElement.cpp:1322
unsigned maxVertices_
Maximum vertices.
Definition: DecalSet.h:250
SharedPtr< ActionState > StartAction(Object *target) override
Create new action state from the action.
Definition: Ease.cpp:410
void ApplyAttributes() override
Apply attribute changes that can not be applied immediately.
Definition: UIElement.cpp:162
void Append(const ea::string &define)
Append define without value.
Definition: ShaderDefs.h:80
T & operator[](const Index &index)
Return element (mutable).
Definition: MultiVector.h:210
void UpdateGeometry(const FrameInfo &frame) override
Prepare geometry for rendering. Called from a worker thread if possible (no GPU update).
Definition: DecalSet.cpp:237
bool GetDrawDebugGeometry() const
Return whether to draw the debug geometry when rendering the scene from this camera.
Definition: Camera.h:202
JSONValue & GetRoot()
Definition: JSONFile.h:71
void UpdateParameters(const RenderPipelineSettings &settings, const StringVariantMap ¶ms) override
Definition: AutoExposurePass.cpp:61
void SetPosition(const Vector3 &position)
Definition: CollisionShape.cpp:745
static constexpr unsigned BinaryMagicSize
Size of the magic number for binary resources.
Definition: Resource.h:58
const ea::unordered_set< NetworkId > & GetRecentlyRemovedObjects() const
Definition: ServerReplicator.h:67
SharedPtr< ActionState > StartAction(Object *target) override
Create new action state from the action.
Definition: Ease.cpp:293
ParticleGraphBufferLayout tempMemory_
Intermediate memory layout.
Definition: ParticleGraphLayer.h:158
void SetName(const ea::string &name)
Set name of the platform thread on supported platforms. Must be called before Run().
Definition: Thread.cpp:225
void SetSpeed(float speed)
Definition: SplinePath.h:72
Definition: RenderPipelineDefs.h:501
static ea::unordered_map< ea::string, unsigned > fileToIndexMapping
Mapping of shader files for error reporting.
Definition: Shader.h:86
bool depthHierarchyDirty_
Depth hierarchy needs update flag.
Definition: OcclusionBuffer.h:203
unsigned vertexCount_
Number of vertices.
Definition: VertexBuffer.h:137
void SetValue(float value)
Definition: Slider.cpp:180
void SetIsInput(bool isInput)
Get input pin flag.
Definition: ParticleGraphPin.cpp:113
Vector2 pointerPosition_
Definition: PointerAdapter.h:112
void SetOtherBodyAnchor(const Vector2 &anchor)
Definition: ConstraintRope2D.cpp:66
SharedPtr< FiniteTimeAction > Reverse() const override
Create reversed action.
Definition: Sequence.cpp:168
UpdateEventFlags GetUpdateEventMask() const
Return what update events are subscribed to.
Definition: LogicComponent.h:90
Variant storedData_
Stored data retrieved from input updates.
Definition: VirtualReality.h:150
const InstancingBufferSettings & GetSettings() const
Definition: InstancingBuffer.h:69
void OnHover(const IntVector2 &position, const IntVector2 &screenPosition, MouseButtonFlags buttons, QualifierFlags qualifiers, Cursor *cursor) override
React to mouse hover.
Definition: Window.cpp:114
void SetMargin(float margin)
Definition: CollisionShape.cpp:773
unsigned zoneMask_
Zone mask.
Definition: ParticleGraphEmitter.h:137
int GetPacketsOutPerSec() const
Definition: Connection.cpp:680
bool WriteLine(const ea::string &value)
Write a text line. Char codes 13 & 10 will be automatically appended.
Definition: Serializer.cpp:416
CameraOperator(Context *context)
Construct.
Definition: CameraOperator.cpp:39
void UnsubscribeFromAllEvents()
Unsubscribe from all events.
Definition: Object.cpp:194
LightBakingSettings settings_
Light baking settings.
Definition: LightBaker.h:103
void InitializeJointDef(b2JointDef *jointDef)
Initialize joint def.
Definition: Constraint2D.cpp:167
unsigned GetShadowMask() const
Return shadow mask.
Definition: ParticleGraphEmitter.h:94
bool GetStopAtEnd() const
Return whether playback should stop when no more data.
Definition: SoundStream.h:60
Definition: FileWatcher.h:91
void SetSkinningMode(SkinningMode mode)
Set skinning mode.
Definition: Renderer.cpp:337
void SetNeighbors(TerrainPatch *north, TerrainPatch *south, TerrainPatch *west, TerrainPatch *east)
Set neighbor patches.
Definition: TerrainPatch.cpp:241
Camera(Context *context)
Construct.
Definition: Camera.cpp:53
void Clear()
Clear to undefined state.
Definition: BoundingBox.h:246
void ScrollToEnd()
Scroll console to the end.
Definition: Console.h:92
void InitializeFromSnapshot(NetworkFrame frame, Deserializer &src, bool isOwned) override
Read full snapshot and initialize object. Called once.
Definition: BehaviorNetworkObject.cpp:182
RenderPipelineInterface * renderPipeline_
Definition: RenderBufferManager.h:188
const Rect & GetDrawRect() const
Definition: StaticSprite2D.h:97
void SetERP(float erp)
Definition: Constraint.cpp:289
const Vector2 & GetHighLimit() const
Definition: Constraint.h:155
unsigned GetFrequency() const
Definition: Microphone.h:64
Color GetPixel(int x, int y) const
Return a 2D pixel color.
Definition: Image.cpp:1547
float repeatRate_
Paging repeat rate.
Definition: Slider.h:126
ea::intrusive_list< EventHandler >::iterator FindEventHandler(StringHash eventType) const
Find the first event handler with no specific sender.
Definition: Object.h:219
bool RemoveAttribute(const ea::string &name=EMPTY_STRING)
Remove an attribute by name. Return true if successful.
Definition: XMLElement.cpp:221
SharedPtr< Image > GetNextLevel() const
Return next mip level by bilinear filtering. Note that if the image is already 1x1x1,...
Definition: Image.cpp:1688
void SetShadowCompare(bool enable)
Set shadow compare mode.
Definition: Texture.cpp:132
MessageBox(Context *context, const ea::string &messageString=EMPTY_STRING, const ea::string &titleString=EMPTY_STRING, XMLFile *layoutFile=nullptr, XMLFile *styleFile=nullptr)
Construct. If layout file is not given, use the default message box layout. If style file is not give...
Definition: MessageBox.cpp:39
void GetStandardNormalFloatArray(ea::span< float > array)
Return random array of floats with standard normal distribution.
Definition: RandomEngine.cpp:113
HighPrecisionVector3 operator-(const HighPrecisionVector3 &rhs) const
Subtract another vector.
Definition: TetrahedralMesh.h:92
void SetImageRect(const IntRect &rect)
Definition: Sprite.cpp:200
ActionBuilder & Enable(ea::string_view attributeName=Actions::ISENABLED_ATTRIBUTE)
Continue with Enable action.
Definition: ActionBuilder.cpp:200
int GetMaxFps() const
Definition: Engine.h:112
QualifierFlags qualifiers_
Qualifier keys held down.
Definition: UI.h:437
ea::string pixelShaderDefines_
Pixel shader defines.
Definition: Material.h:358
ea::string GetDebugInfo() const
Return aggregated debug info.
Definition: Network.cpp:415
void Twist(float angle, bool isLastSegment)
Twist the segment around its direction.
Definition: InverseKinematics.cpp:170
Definition: IKStickTargets.h:72
Information needed to fully create PipelineBatch.
Definition: BatchCompositor.h:86
const Vector4 & GetLightmapScaleOffset() const
Return lightmap scale and offset.
Definition: Terrain.h:282
bool BeginLoad(Deserializer &source) override
Load resource from stream. May be called from a worker thread. Return true if successful.
Definition: Texture2DArray.cpp:60
float GetStartScale() const
Definition: RibbonTrail.h:167
void Stop()
Signal stop.
Definition: StopToken.h:43
void AddSphere(const Sphere &sphere, const Color &color, bool depthTest=true)
Add a sphere.
Definition: DebugRenderer.cpp:297
const Vector3 & GetLinearVelocity() const
Returns linear velocity of the pose.
Definition: VirtualReality.h:111
ea::pair< float, float > GetCutoffParams() const
Definition: Light.h:432
bool looping_
Looping.
Definition: SpriterInstance2D.h:101
IntRect clipBorder_
Child element clipping border.
Definition: UIElement.h:793
unsigned checksum_
Checksum.
Definition: Connection.h:74
Variant(const Matrix3x4 &value)
Construct from a Matrix3x4.
Definition: Variant.h:668
EmitterType2D
2D particle emitter types.
Definition: ParticleEffect2D.h:37
~LightProbeGroup() override
Destruct.
float GetLength() const
Definition: Animation.h:108
void SetNumGeometries(unsigned num)
Definition: Model.cpp:549
Rect uv_
UV coordinates.
Definition: BillboardSet.h:46
Graph(Context *context)
Construct.
Definition: Graph.cpp:36
void InitializeView(RenderPipelineView *view) override
Initialize render pass before using it in view.
Definition: ToneMappingPass.cpp:56
float radius_
Radius.
Definition: CollisionCircle2D.h:70
IntRect GetRect() const
Return viewport rectange.
Definition: Texture.h:122
void SetMessage(const ea::string &text)
Definition: MessageBox.cpp:120
Intersection IsInside(const IntRect &rect) const
Test if another rect is inside, outside or intersects.
Definition: Rect.h:437
float GetIndirectBrightness() const
Return indirect brightness multiplier.
Definition: Light.h:326
void InitializeStandalone() override
Definition: ReplicatedAnimation.cpp:55
void SetAngle(float angle)
Set angle.
Definition: ParticleEffect2D.cpp:331
RmlUI * GetUI() const
Return off-screen RmlUI instance.
Definition: RmlCanvasComponent.h:55
void OnWorldBoundingBoxUpdate() override
Recalculate the world-space bounding box.
Definition: StaticSprite2D.cpp:265
IntVector3 ToIntVector3(int z=0) const
Return IntVector3 vector.
Definition: Vector3.h:577
Binary output archive.
Definition: BinaryArchive.h:67
ActionBuilder & RotateAround(float duration, const Vector3 &pivot, const Quaternion &delta)
Continue with RotateAround action.
Definition: ActionBuilder.cpp:177
ea::hash_set< Node * > activeCollisions_
Set of active collisions.
Definition: TriggerAnimator.h:92
StringVector tags_
Tag list.
Definition: UIElement.h:930
bool levelVisible_[LOG_NONE]
Log level visibility flags.
Definition: Console.h:131
float GetRadius() const
Get Radius.
Definition: Hemisphere.cpp:75
BoneArray GetBlendIndicesAndWeights() const
Return blend indices as integers.
Definition: ModelView.cpp:509
SharedPtr< PropertySet2D > propertySet_
Property set.
Definition: TmxFile2D.h:87
Drag&drop payload containing nodes and components.
Definition: DragDropPayload.h:99
void DrawDebugGeometry(DebugRenderer *debug, bool depthTest) override
Visualize the component as debug geometry.
Definition: Constraint.cpp:136
void SetScale(float scale)
Set uniform scaling elements.
Definition: Matrix4.h:512
static void RegisterObject(Context *context)
Definition: ParticleEffect.cpp:96
Iterator End()
Return end iterator (mutable).
Definition: MultiVector.h:225
void AccumulateLight(const LightAccumulatorContext &ctx, Drawable *geometry, LightImportance lightImportance, unsigned lightIndex, float penalty)
Accumulate light.
Definition: LightAccumulator.h:132
Billboard * GetBillboard(unsigned index)
Definition: BillboardSet.cpp:379
ea::vector< IntVector2 > tileQueue_
Queue of tiles to be built.
Definition: DynamicNavigationMesh.h:161
ea::optional< T > GetOptional() const
Return the value as optional.
Definition: Variant.h:1859
~Texture2D() override
Destruct.
Definition: Texture2D.cpp:47
void HandleEndFrame(StringHash eventType, VariantMap &eventData)
Handle end of frame. Clear debug geometry.
Definition: DebugRenderer.cpp:723
bool BeginLoad(Deserializer &source) override
Load resource from stream. May be called from a worker thread. Return true if successful.
Definition: Texture2D.cpp:56
void ProcessRayQuery(const RayOctreeQuery &query, ea::vector< RayQueryResult > &results) override
Process octree raycast. May be called from a worker thread.
Definition: TerrainPatch.cpp:72
ParticleGraphNodeInstance * CreateInstanceAt(void *ptr, ParticleGraphLayerInstance *layer) override
Place new instance at the provided address.
Definition: RenderMesh.cpp:62
void ResetToDefault()
Reset all editable attributes to their default values.
Definition: Serializable.cpp:485
~JSONFile() override
Destruct.
float GetRepeatDelay() const
Get repeat delay in seconds.
Definition: DirectionalPadAdapter.h:108
OuterIterator outerEnd_
Outer iterator (end).
Definition: MultiVector.h:145
void AddConstraint2D(Constraint2D *constraint)
Add constraint.
Definition: RigidBody2D.cpp:458
void SetLoop(unsigned repeatOffset, unsigned endOffset)
Define loop.
Definition: Sound.cpp:271
Font(Context *context)
Construct.
Definition: Font.cpp:54
bool IsMain() const final
Definition: PluginApplication.h:119
Cached view-projection matrix.
Definition: Camera.h:342
void BeginBlock(const char *name, unsigned &sizeHint, bool safe, ArchiveBlockType type) final
Definition: BinaryArchive.cpp:95
const int * Data() const
Return integer data.
Definition: Vector3.h:152
InterfaceType * operator->() const noexcept
Point to the object.
Definition: Ptr.h:227
unsigned maxFps_
Maximum frames per second.
Definition: Engine.h:186
bool selectOnClickEnd_
React to click end instead of click start flag.
Definition: ListView.h:204
float x_
X coordinate.
Definition: Vector4.h:249
ShaderTranslationPolicy shaderTranslationPolicy_
Current shader translation policy.
Definition: Graphics.h:67
T & GetValue()
Get value.
Definition: Variant.h:381
void Update(float replicaTimeStep, float inputTimeStep) override
Process generic network update.
Definition: ReplicatedAnimation.cpp:266
void OnPackagesReady()
Handle all packages loaded successfully. Also called directly on MSG_LOADSCENE if there are none.
Definition: Connection.cpp:913
void UpdateNodeIDs() const
Update node IDs attribute from the actual nodes.
Definition: StaticModelGroup.cpp:401
void CalculateNodeTracks(ea::unordered_map< Node *, NodeAnimationOutput > &output) const
Apply animation to a scene node hierarchy.
Definition: AnimationState.cpp:253
void SetAlphaToCoverage(bool enable)
Definition: Material.cpp:790
Graphics settings that should be configured before initialization.
Definition: Graphics.h:64
virtual void Update(float timeStep)
Update the sound source. Perform subclass specific operations. Called by Audio.
Definition: SoundSource.cpp:330
Sprite2D * GetTileSprite(unsigned gid) const
Return tile sprite by gid, if not exist return 0.
Definition: TmxFile2D.cpp:555
Definition: SlerpInstance.h:34
float agentMaxSlope_
Navigation agent max slope.
Definition: NavigationMesh.h:374
float touchSensitivity_
Touch sensitivity.
Definition: DirectionAggregator.h:143
StringHash animationNameHash_
Animation name hash.
Definition: Animation.h:166
void UpdateBatches(const FrameInfo &frame) override
Calculate distance and prepare batches for rendering. May be called from worker thread(s),...
Definition: Text3D.cpp:120
void Define(const Vector3 &v0, const Vector3 &v1, const Vector3 &v2)
Define from 3 vertices.
Definition: Plane.h:68
~Texture() override
Destruct.
void SetShadowed(bool enable)
Definition: IndexBuffer.cpp:43
float GetDetailSampleDistance() const
Definition: NavigationMesh.h:266
ActionBuilder & CallFunc(Actions::ActionCallHandler *handler)
Continue with CallFunc action.
Definition: ActionBuilder.cpp:277
void SetHeight(float height)
Definition: CrowdAgent.cpp:406
Matrix2(const float data[]) noexcept
Construct from a float array.
Definition: Matrix2.h:57
bool updateQueued_
Octree update queued flag.
Definition: Drawable.h:455
void SetCycles(int value)
Set Cycles.
Definition: BurstTimer.cpp:78
void SetCursorSpeed(float cursorSpeed)
Set maximum cursor velocity.
Definition: PointerAdapter.cpp:314
VariantVector GetBonesEnabledAttr() const
Return bones' animation enabled attribute.
Definition: AnimatedModel.cpp:754
ea::pair< float, float > GetStandardNormalFloatPair()
Return pair of random floats with standard normal distribution.
Definition: RandomEngine.cpp:103
void SetTextureFilterMode(TextureFilterMode mode)
Definition: Renderer.cpp:321
void SetAutoRemoveMode(AutoRemoveMode mode)
Definition: SoundSource.cpp:305
bool ContainsInclusive(const T &value) const
Return whether the range contains a value (including borders).
Definition: NumericRange.h:52
TextCache cachedTextNodes_
Currently rendered nodes.
Definition: TextRenderer3D.h:172
Zone * GetBackgroundZone() const
Return background zone (arbitrary zone with 0 priority or lower). Zones with positive priority are ig...
Definition: Octree.cpp:729
double GetDouble(const ea::string &name) const
Return a double attribute, or zero if missing.
Definition: XMLElement.cpp:851
unsigned GetRowDataSize(int width) const
Return data size in bytes for a pixel or block row.
Definition: Texture.cpp:350
Billboard component.
Definition: BillboardSet.h:62
Base64 output archive.
Definition: Base64Archive.h:32
void GetNodeIds(ea::vector< unsigned > &ids) const
Get node ids.
Definition: Graph.cpp:91
ThreadSafeCache< T > & operator=(const T &object)
Same as Restore.
Definition: ThreadSafeCache.h:60
float Angle() const
Definition: Quaternion.cpp:241
float cursorBlinkTimer_
Cursor blink timer.
Definition: LineEdit.h:165
unsigned ToHash() const
Return hash value for HashSet & HashMap.
Definition: Vector3.h:472
BurstTimer(Context *context)
Construct BurstTimer.
Definition: BurstTimer.cpp:47
void SetEnableMotor(bool enableMotor)
Definition: ConstraintPrismatic2D.cpp:119
Vector2 otherBodyAnchor_
Other body anchor.
Definition: ConstraintDistance2D.h:88
void OnSceneSet(Scene *scene) override
Handle scene being assigned.
Definition: Constraint2D.cpp:157
void SetDrawOrder(int drawOrder)
Definition: TileMapLayer2D.cpp:217
Parameters of emission light tracing.
Definition: LightBakingSettings.h:79
float radialAcceleration_
Radial acceleration.
Definition: ParticleEffect2D.h:279
float GetDerivedOpacity() const
Definition: UIElement.cpp:1560
Vector4 Lerp(const Vector4 &rhs, float t) const
Linear interpolation with another vector.
Definition: Vector4.h:203
float GetReach() const
Definition: SoundSource.h:127
AttributeScopeHint scopeHint_
Scope hint.
Definition: Attribute.h:174
Ray GetScreenRay(int x, int y) const
Return ray corresponding to normalized screen coordinates.
Definition: Viewport.cpp:193
Intersection IsInside(const Vector3 &point) const
Test if a point is inside.
Definition: BoundingBox.h:334
bool IsLoop() const
Is effect looped.
Definition: ParticleGraphLayer.h:93
ModuleType lastModuleType_
Last loaded module type.
Definition: ModulePlugin.h:61
ActionBuilder & BackIn()
Combine with BackIn action.
Definition: ActionBuilder.cpp:285
void RemoveItem(UIElement *item)
Remove specific item.
Definition: DropDownList.cpp:166
Definition: OutlineGroup.h:77
Post-processing pass that adjusts HDR scene exposure.
Definition: AmbientOcclusionPass.h:21
virtual void RemoveAllTiles()
Remove all tiles from navigation mesh.
Definition: NavigationMesh.cpp:569
bool IsInf() const
Return whether any component is Inf.
Definition: Vector2.h:357
ea::vector< SharedPtr< ParticleGraphLayer > > layers_
Effect layers.
Definition: ParticleGraphEffect.h:70
bool forceAnimationUpdate_
Force animation update after becoming visible flag.
Definition: AnimatedModel.h:248
void SetTexture(ea::string_view name, Texture *texture)
Set texture.
Definition: Material.cpp:712
Vector2 uv_
UV.
Definition: Drawable2D.h:44
bool IsApplyingTransforms() const
Return whether node dirtying should be disregarded.
Definition: PhysicsWorld.h:319
void HandleLogMessage(StringHash eventType, VariantMap &eventData)
Handle log message.
Definition: Application.cpp:194
static const IntVector3 RIGHT_UP_FORWARD
(0, 1, 2) coordinate system (default).
Definition: RaycastVehicle.h:137
static unsigned lightPassIndex
Index for per-pixel light pass. Initialized once GetPassIndex() has been called for the first time.
Definition: Technique.h:318
void OnDragBegin(const IntVector2 &position, const IntVector2 &screenPosition, MouseButtonFlags buttons, QualifierFlags qualifiers, Cursor *cursor) override
React to mouse drag begin.
Definition: Window.cpp:127
virtual void ReadUnreliableFeedback(NetworkFrame feedbackFrame, Deserializer &src)
Read unreliable feedback from client.
Definition: NetworkCallbacks.h:97
bool SplitRect(unsigned freeAreaIndex, const IntRect &reserve)
Remove space from a free rectangle. Return true if the original rectangle should be erased from the f...
Definition: AreaAllocator.cpp:164
float minAngle_
Minimal angle between text normal and look-at direction.
Definition: Text3D.h:264
ea::vector< bool > validAxis_
Valid axis position.
Definition: Input.h:147
const ea::string localizedName_
Localized identifier.
Definition: VirtualReality.h:181
ea::string FindResourcePrefixPath() const
Try to find resource prefix path starting from executable and going up.
Definition: FileSystem.cpp:1679
void SetCrop(Rect value)
Set Crop.
Definition: RenderBillboard.cpp:102
Vector3 ViewportTransform(const Vector4 &vertex) const
Apply projection and viewport transform to vertex.
Definition: OcclusionBuffer.cpp:546
void SetVariable(const ea::string &name, const Variant &value)
Set variable value.
Definition: ConfigFile.cpp:98
unsigned GetId() const
Return component ID.
Definition: PackedSceneData.h:80
float rotation_
Rotation angle.
Definition: Sprite.h:133
void SetControlPointIdsAttr(const VariantVector &value)
Set Control Point Node IDs attribute.
Definition: SplinePath.cpp:241
bool hasSkeletalAnimation_
Whether the buffer is animated by skeleton.
Definition: SoftwareModelAnimator.h:37
void ProcessLoadScene(int msgID, MemoryBuffer &msg)
Process a LoadScene message from the server. Called by Network.
Definition: Connection.cpp:377
unsigned ibRef_
Index buffer ref.
Definition: Model.h:101
IntVector2 customSize_
Root element custom size. 0,0 for automatic resizing (default).
Definition: UI.h:487
Vector3 offset_
Wheel offset from connection point.
Definition: RaycastVehicleWheel.h:225
void HandleScreenMode(StringHash eventType, VariantMap &eventData)
Update console size on application window changes.
Definition: Console.cpp:399
Definition: ParticleGraph.h:37
float GetDelay() const
Return the delay in seconds for notifying file changes.
Definition: MultiFileWatcher.h:49
void SetBakedDataFileRef(const ResourceRef &fileRef)
Set reference on file with baked data.
Definition: LightProbeGroup.cpp:281
const ea::string name_
Internal name for the action.
Definition: VirtualReality.h:129
unsigned ToUIntArgb() const
Return color packed to a 32-bit integer, with B component in the lowest 8 bits. Components are clampe...
Definition: Color.h:260
void PostDelayedTaskForMainThread(TaskFunction &&task)
Post delayed task for main thread. It is guaranteed to be invoked between frames.
Definition: WorkQueue.cpp:466
void SetDefaultAction(Actions::BaseAction *action)
Set action.
Definition: ActionSet.cpp:57
virtual void Activate(StringVariantMap &bundle)
Activate game state. Executed by StateManager.
Definition: StateManager.cpp:55
bool GetTileFlipY() const
Definition: TileMapDefs2D.h:212
void SetBool(bool value)
Set boolean.
Definition: PListFile.cpp:135
void DrawDebugGeometry(DebugRenderer *debug, bool depthTest) override
Visualize the component as debug geometry.
Definition: IKChainSolver.cpp:36
unsigned numLodLevels_
Number of terrain LOD levels.
Definition: Terrain.h:365
BorderImage * GetKnob() const
Definition: ProgressBar.h:80
void HandlePathChanged(StringHash eventType, VariantMap &eventData)
Handle path edited.
Definition: FileSelector.cpp:397
double numberValue_
Definition: JSONValue.h:329
bool AcceptsScheme(const ea::string &scheme) const override
Definition: MountedRoot.cpp:39
Timer dragBeginTimer
Timer used to trigger drag begin event.
Definition: UI.h:298
VectorBuffer GetVectorBuffer() const
Return VectorBuffer containing the buffer or empty on type mismatch.
Definition: Variant.cpp:674
void SetValueMap(const PListValueMap &valueMap)
Set value map.
Definition: PListFile.cpp:168
ViewportColorRenderBuffer(RenderPipelineInterface *renderPipeline)
Construct.
Definition: RenderBuffer.cpp:174
2D revolute constraint component.
Definition: ConstraintRevolute2D.h:31
Definition: GLTFImporter.h:45
Cursor * GetCursor() const
Definition: UI.h:167
void ApplyOSCursorShape()
Apply pending OS cursor shape. Called by UI. No-op when the OS mouse pointer is not used.
Definition: Cursor.cpp:254
float GetCursorVelocity() const
Set maximum cursor velocity.
Definition: PointerAdapter.h:71
void AddAttribute(const pugi::xml_node &patch, const pugi::xpath_node &original) const
Add an attribute in the Patch.
Definition: XMLFile.cpp:382
void SetMorphs(const ea::vector< ModelMorph > &morphs)
Set vertex morphs.
Definition: Model.cpp:619
Output that aggregates all NodeAnimationStateTrack-s targeted at the same node.
Definition: AnimationState.h:68
void SetWidth(int width)
Definition: UIElement.cpp:621
bool PrepareReliableDelta(NetworkFrame frame) override
Prepare for reliable delta update and return update mask. If mask is zero, reliable delta update is s...
Definition: ReplicatedAnimation.cpp:211
ResourceCache(Context *context)
Construct.
Definition: ResourceCache.cpp:87
void StartTransition()
Start transition out of the current state.
Definition: StateManager.cpp:364
constexpr FlagSet(const Enum value)
Construct from Enum value.
Definition: FlagSet.h:67
void CreateConstraint()
Create the constraint.
Definition: Constraint.cpp:442
unsigned SystemRunAsync(const ea::string &fileName, const ea::vector< ea::string > &arguments)
Run a specific program asynchronously. Return a request ID or M_MAX_UNSIGNED if failed....
Definition: FileSystem.cpp:668
Particle effect definition.
Definition: ParticleEffect.h:122
void SetAttributeName(const ea::string &name)
Set attribute name.
Definition: Attribute.h:46
long long timeOut_
Time out counter for testing.
Definition: Engine.h:192
void ChangeValue(float delta)
Change value by a delta.
Definition: Slider.cpp:197
void OnDragEnd(const IntVector2 &position, const IntVector2 &screenPosition, MouseButtonFlags dragButtons, MouseButtonFlags releaseButtons, Cursor *cursor) override
React to mouse drag end.
Definition: Slider.cpp:148
SharedPtr< Image > GetDecompressedImageLevel(unsigned index) const
Return LOD of decompressed image in RGBA format.
Definition: Image.cpp:2198
int GetDepth() const
Return depth.
Definition: Texture.h:125
bool SaveXML(XMLElement &dest) const override
Save as XML data. Return true if successful.
Definition: UIElement.cpp:315
void HandleLayoutUpdated(StringHash eventType, VariantMap &eventData)
Handle the element layout having been updated.
Definition: LineEdit.cpp:666
void SetClientPrefab(PrefabResource *prefab)
Definition: StaticNetworkObject.cpp:47
const ea::string & GetVertexShaderDefines() const
Definition: Technique.h:170
Definition: IncrementalLightBaker.h:46
ResourceRef GetModelAttr() const
Return model attribute.
Definition: AnimatedModel.cpp:749
SplinePath(Context *context)
Construct an Empty SplinePath.
Definition: SplinePath.cpp:41
XPathResultSet Select(const ea::string &query, pugi::xpath_variable_set *variables=nullptr) const
Select elements/attributes using XPath query.
Definition: XMLElement.cpp:260
ea::vector< unsigned short > indices_
Decal indices.
Definition: DecalSet.h:100
Zone * zone_
Pointer to Zone.
Definition: Drawable.h:133
bool BeginLoad(Deserializer &source) override
Load resource from stream. May be called from a worker thread. Return true if successful.
Definition: AssetPipeline.cpp:94
unsigned indices_[4]
Indices of tetrahedron vertices.
Definition: TetrahedralMesh.h:245
Matrix4(const Matrix3 &matrix) noexcept
Copy-construct from a 3x3 matrix and set the extra elements to identity.
Definition: Matrix4.h:100
Frustum & operator=(const Frustum &rhs) noexcept
Assign from another frustum.
Definition: Frustum.cpp:65
void SetFrameOfReference(Node *node)
Set frame of reference Node used for calculations.
Definition: IKSolverComponent.cpp:157
LegacyVertexElement
Hardcoded legacy vertex elements.
Definition: GraphicsDefs.h:62
bool EndLoad() override
Finish resource loading. Always called from the main thread. Return true if successful.
Definition: ParticleEffect2D.cpp:213
bool SetSubimage(const Image *image, const IntRect &rect)
Copy contents of the image into the defined rect, scaling if necessary. This image should already be ...
Definition: Image.cpp:2475
Definition: NormalizedEffectTimeInstance.h:34
unsigned Tell() const
Return current position.
Definition: Deserializer.h:67
Timer useTimer_
Last used timer.
Definition: OcclusionBuffer.h:213
@ LT_IMAGE_LAYER
Image layer.
Definition: TileMapDefs2D.h:85
void SetSubscriptionMask(DirectionalPadAdapterFlags mask)
Set input device subscription mask.
Definition: DirectionalPadAdapter.cpp:129
float screenScaleFactor_
Scale factor for fixed screen size mode. Used internally.
Definition: BillboardSet.h:58
void SetEndPoint(Node *node)
Definition: OffMeshConnection.cpp:107
void OnDragMove(const IntVector2 &position, const IntVector2 &screenPosition, const IntVector2 &deltaPos, MouseButtonFlags buttons, QualifierFlags qualifiers, Cursor *cursor) override
React to mouse drag motion.
Definition: LineEdit.cpp:145
Definition: PrefabWriter.h:39
unsigned jsonIndex_
Current JSON child array and for JSON mode.
Definition: Scene.h:73
const float * Data() const
Return float data.
Definition: Matrix3x4.h:696
StringHash nameHash_
Morph name hash.
Definition: Model.h:60
virtual ea::vector< Component * > GetUniqueGeometries(const IntVector3 &chunkIndex)=0
Return unique geometries within chunk.
TerrainPatch * GetPatch(unsigned index) const
Definition: Terrain.cpp:489
void LockScene(Scene *scene, const Vector3 &chunkSize) override
Definition: BakedSceneCollector.cpp:97
float currentTime_
Current time.
Definition: ValueAnimationInfo.h:94
void RemoveAllTiles() override
Remove all tiles from navigation mesh.
Definition: DynamicNavigationMesh.cpp:340
bool Load(const XMLElement &element, const TileMapInfo2D &info)
Load from XML element.
Definition: TmxFile2D.cpp:340
Level of detail of Model geometry, unpacked for easy editing.
Definition: ModelView.h:134
ea::vector< SpatialTimelineKey * > timelineKeys_
Current timeline keys.
Definition: SpriterInstance2D.h:109
void HandleDropFile(StringHash eventType, VariantMap &eventData)
Handle a file being drag-dropped into the application window.
Definition: UI.cpp:1969
void UpdateUIClickSubscription()
Update subscription to UI click events.
Definition: ListView.cpp:1166
static ea::string GetTimeStamp(const char *format=nullptr)
Get a date/time stamp as a string.
Definition: Timer.cpp:170
~AnimationSet2D() override
Destruct.
Definition: AnimationSet2D.cpp:113
ParticleGraphNodeInstance * CreateInstanceAt(void *ptr, ParticleGraphLayerInstance *layer) override
Place new instance at the provided address.
Definition: Sphere.cpp:66
Add(Context *context)
Construct Add.
Definition: Add.cpp:78
bool SetPinName(unsigned pinIndex, const ea::string &name)
Definition: ParticleGraphNode.cpp:43
float GetDownloadProgress() const
Definition: Connection.cpp:736
static const ApplicationFlavor Empty
Empty flavor matches only empty patterns.
Definition: ApplicationFlavor.h:54
static void RegisterObject(Context *context)
Definition: LineEdit.cpp:72
void ErrorExit(const ea::string &message=EMPTY_STRING)
Show an error message (last log message if empty), terminate the main loop, and set failure exit code...
Definition: Application.cpp:164
void SetWordwrap(bool enable)
Definition: Text.cpp:328
const T & operator[](const Index &index) const
Return element (mutable).
Definition: MultiVector.h:213
bool EndLoadFromPListFile()
End load from PList file.
Definition: SpriteSheet2D.cpp:221
bool IsEnabled() const
Definition: Component.h:104
const OuterCollection & GetUnderlyingCollection() const
Return outer collection (mutable).
Definition: MultiVector.h:216
Vector3 NormalizedOrDefault(const Vector3 &defaultValue=Vector3::ZERO, float eps=M_LARGE_EPSILON) const
Return normalized to unit length or zero if length is too small.
Definition: Vector3.h:445
void PlayLockless(Sound *sound)
Play a sound without locking the audio mutex. Called internally.
Definition: SoundSource.cpp:563
bool LoadXML(const XMLElement &source) override
Load from XML data. Return true if successful.
Definition: Animatable.cpp:79
unsigned GetSlice() const
Return slice of the parent texture.
Definition: RenderSurface.h:117
~Engine() override
Destruct. Free all subsystems.
HighlightMode highlightMode_
Highlight mode.
Definition: ListView.h:192
Text * GetTextElement() const
Definition: LineEdit.h:132
void ApplyAttributes() override
Apply attribute changes that can not be applied immediately.
Definition: LineEdit.cpp:88
bool BeginLoad(Deserializer &source) override
Load resource from stream. May be called from a worker thread. Return true if successful.
Definition: Shader.cpp:139
static const ResourceRefList emptyResourceRefList
Empty resource reference list.
Definition: Variant.h:1655
bool IsUpdateEnabled() const
Definition: Scene.h:214
void SetMaterial(Material *material)
Definition: CustomGeometry.cpp:412
void SerializeInBlock(Archive &archive) override
Serialize content from/to archive. May throw ArchiveException.
Definition: Move.cpp:545
Definition: AbstractConnection.h:43
virtual Intersection TestOctant(const BoundingBox &box, bool inside)=0
Intersection test for an octant.
void SetRawIndexData(const ea::shared_array< unsigned char > &data, unsigned indexSize)
Override raw index data to be returned for CPU-side operations.
Definition: Geometry.cpp:190
SoundListener(Context *context)
Construct.
Definition: SoundListener.cpp:31
ParticleGraphLayer * GetLayer() const
Get effect layer.
Definition: ParticleGraphLayerInstance.h:118
bool FilterPopupImplicitAttributes(XMLElement &dest) const override
Filter implicit attributes in serialization process.
Definition: DropDownList.cpp:261
RmlUI(Context *context, const char *name="master")
Construct.
Definition: RmlUI.cpp:404
RenderTargetView GetView(unsigned slice) const override
Return render surface. Face could be specified for cubemap texture.
Definition: RenderBuffer.cpp:220
float GetDistanceTo(Drawable *drawable) const
Return distance from light to drawable.
Definition: Light.cpp:458
void SetCursor(Cursor *cursor)
Set cursor UI element.
Definition: StateManager.cpp:189
bool GetEnableMotor() const
Definition: ConstraintWheel2D.h:76
FiniteTimeAction * GetInnerAction() const
Get inner action.
Definition: Ease.h:49
ea::vector< Vector2 > points_
Points(for polygon and polyline).
Definition: TileMapDefs2D.h:239
const IntVector2 & GetChildOffset() const
Definition: UIElement.h:512
Batch composition manager.
Definition: BatchCompositor.h:216
AttributeAction(Context *context)
Construct.
Definition: AttributeAction.cpp:36
@ JSON_NULL
JSON null type.
Definition: JSONValue.h:42
const Vector2 & GetOtherBodyAnchor() const
Definition: ConstraintDistance2D.h:66
~Camera() override
Destruct.
Definition: SceneResource.h:39
NetworkCallbackFlags GetCallbackMask() const
Return callback mask.
Definition: BehaviorNetworkObject.h:60
Matrix3x4 ReadMatrix3x4()
Read a Matrix3x4.
Definition: Deserializer.cpp:222
bool IsZero() const
Definition: Variant.cpp:788
float periodTimer_
Active/inactive period timer.
Definition: ParticleEmitter.h:149
void Update(float deltaTime)
Update animation.
Definition: SpriterInstance2D.cpp:125
void LoadParameters()
Load font glyph offset parameters from an optional XML file. Called internally when loading TrueType ...
Definition: Font.cpp:192
ea::unordered_map< StringHash, ea::vector< Node * > > taggedNodes_
Cached tagged nodes by tag.
Definition: Scene.h:327
bool LoadValue(PListValue &value, const XMLElement &valueElem)
Load value.
Definition: PListFile.cpp:384
bool GetBones(Drawable *target, unsigned batchIndex, const float *blendWeights, const unsigned char *blendIndices, unsigned char *newBlendIndices)
Get bones referenced by skinning data and remap the skinning indices. Return true if successful.
Definition: DecalSet.cpp:880
void PreUpdate(float timeStep)
Trigger before physics update, before any of simulation steps.
Definition: PhysicsWorld.cpp:874
ea::vector< SharedPtr< FileWatcher > > watchers_
Individual watchers.
Definition: MultiFileWatcher.h:53
int baseIndent_
Base indent, used in hierarchy mode only.
Definition: ListView.h:198
unsigned GetShadowMapSize(Light *light, unsigned numActiveSplits) const override
Return best shadow map size for given light. Should be safe to call from multiple threads.
Definition: SceneProcessor.cpp:518
bool InitializeNodes(IKNodeCache &nodeCache) override
Definition: IKLimbSolver.cpp:71
Definition: NetworkValue.h:640
void Define(const Skeleton &src)
Define from another skeleton.
Definition: Skeleton.cpp:106
bool CanJump() const
Check if character can jump.
Definition: KinematicCharacterController.cpp:592
IndirectLightTracingSettings()=default
Construct default.
bool HasModalElement() const
Return true when UI has modal element(s).
Definition: UI.cpp:852
WeakPtr< PhysicsWorld > physicsWorld_
Physics world.
Definition: Constraint.h:199
void UpdateTail(float timeStep)
Update/Rebuild tail mesh only if position changed (called by UpdateBatches()).
Definition: RibbonTrail.cpp:215
Bone of Model skeleton, unpacked for easy editing.
Definition: ModelView.h:223
bool IsOccludee() const
Definition: Drawable.h:334
Variant(const StringVariantMap &value)
Construct from a string variant map.
Definition: Variant.h:686
Definition: RenderPipelineDefs.h:552
bool IsAsyncLoading() const
Definition: Scene.h:218
void ReleaseMaterialShaders()
Release shaders used in materials.
Definition: Renderer.cpp:648
ea::vector< float > offMeshRadii_
Offmesh connection radii.
Definition: NavBuildData.h:71
Quaternion ReadQuaternion()
Read a quaternion.
Definition: Deserializer.cpp:199
void SetNumParticles(unsigned num)
Definition: ParticleEffect.cpp:445
void SetTrigger(bool trigger)
Definition: CollisionShape2D.cpp:81
const Vector3 & GetPosition() const
Definition: CollisionShape.h:244
~Sound() override
Destruct and free sound data.
ea::vector< ModelAnimationOutput > skeletonData_
Animation data of Skeleton, used only during Update.
Definition: AnimatedModel.h:210
virtual StringHash GetUpdateEvent() const
Definition: LogicComponent.cpp:67
void AddControlPoint(Node *point, unsigned index=M_MAX_UNSIGNED)
Add a Node to the SplinePath as a Control Point.
Definition: SplinePath.cpp:138
JSONValue(const ea::string &value)
Construct with a string.
Definition: JSONValue.h:116
bool GetCastShadows() const
Definition: Terrain.h:233
void ApplyAttributes() override
Apply attribute changes that can not be applied immediately. Called after scene load or a network upd...
Definition: CrowdManager.cpp:111
void ProcessPackageDownload(int msgID, MemoryBuffer &msg)
Process package download related messages. Called by Network.
Definition: Connection.cpp:440
VariantVector GetVariantVector() const
Return a variant vector attribute, or empty if missing.
Definition: XMLElement.cpp:987
Represents metadata of model morph.
Definition: ModelView.h:262
SharedPtr< ActionState > StartAction(Object *target) override
Create new action state from the action.
Definition: Misc.cpp:97
ea::string fileName_
Name of modified file name. Always set.
Definition: FileWatcher.h:53
void RemoveAllDecals()
Remove all decals.
Definition: DecalSet.cpp:487
void OnWorldBoundingBoxUpdate() override
Recalculate the world-space bounding box.
Definition: CustomGeometry.cpp:528
SubsystemCache subsystems_
Subsystems.
Definition: Context.h:182
bool GetDrawOffMeshConnections() const
Definition: NavigationMesh.h:302
void SetTraumaPower(float value)
Set trauma power value.
Definition: ShakeComponent.cpp:77
void RemoveColorFrame(unsigned index)
Remove color frame at index.
Definition: ParticleEffect.cpp:621
unsigned GetElementOffset(VertexElementSemantic semantic, unsigned char index=0) const
Return offset of a element within vertex, or M_MAX_UNSIGNED if does not exist.
Definition: VertexBuffer.h:82
FileIdentifier()=default
Construct default.
WorldToLocal(Context *context)
Construct WorldToLocal.
Definition: WorldToLocal.cpp:44
Light component.
Definition: Light.h:183
ea::string ToString() const
Return as string.
Definition: Vector2.cpp:48
const pugi::xpath_node * GetXPathNode() const
Return pugixml xpath_node.
Definition: XMLElement.h:313
T & Emplace(Args &&... args)
Emplace element. Thread-safe as long as called from WorkQueue threads (or main thread).
Definition: WorkQueue.h:342
void Render(const SharedRenderPassState &sharedState)
Execute render commands.
Definition: RenderPath.cpp:74
Vector3 cachedWorldScale_
Cached world scale.
Definition: CollisionShape2D.h:134
unsigned GetVertexCount() const
Definition: VertexBuffer.h:59
~HttpRequest() override
Destruct. Release the connection object.
Definition: HttpRequest.cpp:192
void OnSetEnabled() override
Handle enabled/disabled state change. Changes update event subscription.
Definition: FreeFlyController.cpp:48
unsigned AddIndices(unsigned count, const void *data)
Store indices. Returns index of first vertex.
Definition: IndexBuffer.h:133
const IntVector2 & GetMaxSize() const
Definition: UIElement.h:488
~Component() override
Destruct.
Material * GetDefaultMaterial() const
Definition: Renderer.h:283
Orientation orientation_
Orientation.
Definition: Slider.h:114
virtual ea::string GetDisplayString() const
Format string to display while dragging.
Definition: DragDropPayload.h:54
int GetNonThreadedWorkMs() const
Return how many milliseconds maximum to spend on non-threaded low-priority work.
Definition: WorkQueue.h:162
void SetMaterial(ResourceRefList value)
Set Material.
Definition: RenderMesh.cpp:73
void SetSpecularIntensity(float intensity)
Definition: Light.cpp:308
bool forceAutoHint_
Flag for forcing FreeType auto hinting.
Definition: UI.h:453
bool IsUpdateEnabled() const
Definition: PhysicsWorld.h:258
unsigned GetNumShadowMaps() const
Definition: Renderer.cpp:397
bool IsInside(IntVector2 position, bool isScreen)
Return whether a point (either in element or screen coordinates) is inside the element.
Definition: UIElement.cpp:1789
virtual void SetNavigationDataAttr(const ea::vector< unsigned char > &value)
Set navigation data attribute.
Definition: NavigationMesh.cpp:855
const ArrayDimensions2D & Dim() const
Return array dimensions.
Definition: Array2D.h:182
virtual Geometry * GetLodGeometry(unsigned batchIndex, unsigned level)
Return the geometry for a specific LOD level.
Definition: Drawable.cpp:164
const ParticleGraphAttributeLayout & GetAttributeLayout() const
Return attributes memory layout.
Definition: ParticleGraphLayer.h:125
JumpBy(Context *context)
Construct.
Definition: Move.cpp:486
unsigned Allocate(ParticleGraphContainerType container, VariantType type)
Allocate span. Returns allocated span index.
Definition: ParticleGraphMemory.cpp:78
void SetDampen(float value)
Set Dampen.
Definition: Bounce.cpp:71
SharedPtr< Geometry > geometry_
Geometry.
Definition: DecalSet.h:234
@ BEZIER_CURVE
Bezier interpolation.
Definition: Spline.h:39
Definition: Hemisphere.h:37
unsigned numInnerTetrahedrons_
Number of inner tetrahedrons.
Definition: TetrahedralMesh.h:425
~VariantValue()
Destruct.
Definition: Variant.h:475
Vector2 ReadVector2(const XMLElement &element, const ea::string &name) const
Read Vector2.
Definition: ParticleEffect2D.cpp:538
~GraphNode() override
Destruct. Free all resources.
void DrawIKTarget(DebugRenderer *debug, const Vector3 &position, const Quaternion &rotation, bool oriented) const
Draw IK target in DebugRenderer.
Definition: IKSolverComponent.cpp:195
HorizontalAlignment textAlignment_
Text alignment.
Definition: TextRenderer3D.h:56
void SetUseDrawRect(bool useDrawRect)
Definition: StaticSprite2D.cpp:179
float GetLodBias() const
Definition: Camera.h:170
ea::vector< ContactInfo > endContactInfos_
End contact infos.
Definition: PhysicsWorld2D.h:309
const ea::string & GetVertexShaderDefineExcludes() const
Definition: Technique.h:178
bool GetContinuousPhysics() const
Definition: PhysicsWorld2D.cpp:699
unsigned Seek(unsigned position) override
Set position. No-op for pipes.
Definition: NamedPipe.cpp:75
void AdjustOtherBodyPosition()
Adjust other body position.
Definition: Constraint.cpp:564
bool GetNextChange(FileChange &dest)
Return a file change (true if was found, false if not).
Definition: FileWatcher.cpp:408
Pipeline state cache callback used to create actual pipeline state.
Definition: RenderPipelineDefs.h:231
FileChangeKind kind_
File change kind.
Definition: FileWatcher.h:51
Family of unique indices for template type.
Definition: IndexAllocator.h:116
View3D(Context *context)
Construct.
Definition: View3D.cpp:40
void SetTimeScale(float timeScale)
Set time step scale.
Definition: ParticleGraphLayer.cpp:229
ea::vector< RayQueryResult > resultStorage_
Builtin result storage.
Definition: OctreeQuery.h:264
ea::unordered_map< int, SharedPtr< Technique > > cachedTechniques_
Cached techniques per blend mode.
Definition: Renderer2D.h:132
Vector3 v3_
Vertex c.
Definition: DebugRenderer.h:86
Matrix3x4 offsetMatrix_
Offset matrix.
Definition: Skeleton.h:81
Color color_
Color.
Definition: ParticleEffect.h:81
unsigned lightmapSize_
Size of lightmap chart.
Definition: LightBakingSettings.h:39
bool EmitNewParticles(float numParticles=1.0f)
Create a new particles. Return true if there was room.
Definition: ParticleGraphLayerInstance.cpp:96
void GetRawDataShared(ea::shared_array< unsigned char > &vertexData, unsigned &vertexSize, ea::shared_array< unsigned char > &indexData, unsigned &indexSize, const ea::vector< VertexElement > *&elements) const
Return raw vertex and index data for CPU operations, or null pointers if not available....
Definition: Geometry.cpp:267
void OnSetEnabled() override
Handle enabled/disabled state change.
Definition: CameraOperator.cpp:223
Variant ReadVariant()
Read a variant.
Definition: Deserializer.cpp:311
const ModelMorph * GetMorph(unsigned index) const
Return vertex morph by index.
Definition: Model.cpp:750
ActionBuilder & SendEvent(ea::string_view eventType, const StringVariantMap &data)
Continue with SendEvent action.
Definition: ActionBuilder.cpp:268
UpdateEventFlags updateEventMask_
Requested event subscription mask.
Definition: LogicComponent.h:115
XMLOutputArchive(XMLFile *xmlFile)
Construct from file.
Definition: XMLArchive.h:111
unsigned GetInputDelay() const
Definition: ClientReplica.h:68
~ConstraintWeld2D() override
Destruct.
double Grad(int hash, double x, double y, double z) const
Return random gradient.
Definition: PerlinNoise.cpp:99
void CopyTo(InnerCollection &dest) const
Copy content to vector.
Definition: MultiVector.h:202
Bone timeline key.
Definition: SpriterData2D.h:278
SharedPtr< T > CreatePass(Args &&... args)
Definition: SceneProcessor.h:66
void SetTitle(const ea::string &text)
Definition: MessageBox.cpp:114
void StartApplication(const ea::string &mainPlugin)
Start application for all plugins in the stack.
Definition: PluginManager.cpp:143
void SendClickEvent(StringHash eventType, UIElement *beginElement, UIElement *endElement, const IntVector2 &pos, MouseButton button, MouseButtonFlags buttons, QualifierFlags qualifiers)
Send a UI click event.
Definition: UI.cpp:1616
void RemoveWheel(RaycastVehicleWheel *wheel)
Remove a wheel.
Definition: RaycastVehicle.cpp:347
float GetDensity() const
Definition: CollisionShape2D.h:96
void SetMaterial(ResourceRef value)
Set Material.
Definition: RenderBillboard.cpp:78
dtTileCachePolyMesh * polyMesh_
TileCache specific recast poly mesh.
Definition: NavBuildData.h:114
float timeStep_
Current frame time step.
Definition: UpdateContext.h:36
void CreateGeometry()
Regenerate terrain geometry.
Definition: Terrain.cpp:851
PipelineBatchBackToFront(const PipelineBatch *batch)
Construct from batch.
Definition: PipelineBatchSortKey.h:141
Frustum frustum_
View frustum.
Definition: DebugRenderer.h:204
SharedPtr< VertexBuffer > vertexBuffer_
Vertex buffer.
Definition: DebugRenderer.h:206
static void RegisterObject(Context *context)
Register object factory.
Definition: ParticleGraphEffect.cpp:47
ea::string GetUserDocumentsDir() const
Definition: FileSystem.cpp:1001
Vector4 ToVector4(float w=0.0f) const
Return Vector4 vector.
Definition: Vector4.h:294
2D rope constraint component.
Definition: ConstraintRope2D.h:31
void ApplyNodeWorldScale() override
Apply node world scale.
Definition: CollisionBox2D.cpp:101
unsigned GetNumPins() const override
Get number of pins.
Definition: Uniform.h:82
void SetFadeDistance(float distance)
Definition: Light.cpp:351
BlendMode GetBlendMode() const
Definition: Sprite.h:116
int ReleaseRef()
Definition: RefCounted.cpp:106
void SetHotSpot(const Vector2 &hotSpot)
Definition: Sprite2D.cpp:123
DecalSet(Context *context)
Construct.
Definition: DecalSet.cpp:151
Matrix4 gpuProjection_
Projection transform in API-specific format.
Definition: DebugRenderer.h:202
ea::vector< unsigned short > offMeshFlags_
Offmesh connection flags.
Definition: NavBuildData.h:73
Color ReadColor()
Read a color.
Definition: Deserializer.cpp:236
float rotation_
Rotation.
Definition: ParticleEmitter2D.h:46
Definition: EmitInstance.h:34
SharedPtr< UIElement > rootElement_
UI root element.
Definition: StateManager.h:150
DebugRenderer * debugRenderer_
Debug renderer.
Definition: PhysicsWorld2D.h:260
unsigned maxLength_
Maximum text length.
Definition: LineEdit.h:167
void DumpMemory()
Dump information of all memory allocations to the log. Supported in MSVC debug mode only.
Definition: Engine.cpp:917
const T * Cast() const
Cast the object to specified most derived class.
Definition: Object.h:135
Text text_
Internally used text element.
Definition: Text3D.h:248
Stores files of a directory tree sequentially for convenient access.
Definition: PackageFile.h:43
void Update(float timeStep)
Update for rendering. Called by HandleRenderUpdate().
Definition: Renderer.cpp:417
ActionBuilder & ExponentialInOut()
Combine with ExponentialInOut action.
Definition: ActionBuilder.cpp:384
void SetTextureSize(const IntVector2 &size)
Resize output texture.
Definition: SceneRendererToTexture.cpp:47
bool textCopyable_
Copy-paste enable flag.
Definition: LineEdit.h:175
void DrawPolygon(const b2Vec2 *vertices, int32 vertexCount, const b2Color &color) override
Draw a closed polygon provided in CCW order.
Definition: PhysicsWorld2D.cpp:188
void UpdateDrawRect()
Update drawRect.
Definition: StaticSprite2D.cpp:348
bool subscribed_
Is controller subscribed to events.
Definition: MoveAndOrbitController.h:126
ea::vector< UIElement * > dragElementsConfirmed_
Confirmed drag elements cache.
Definition: UI.h:483
@ ASYNC_SUCCESS
BeginLoad() succeeded. EndLoad() can be called in the main thread.
Definition: Resource.h:78
void RaycastSingleSegmented(PhysicsRaycastResult &result, const Ray &ray, float maxDistance, float segmentDistance, unsigned collisionMask=M_MAX_UNSIGNED, float overlapDistance=0.1f)
Definition: PhysicsWorld.cpp:501
bool PerformUnload() override
Actually unloads the module. Called by PluginManager at the end of frame when IsUnloading is true.
Definition: ScriptBundlePlugin.cpp:64
bool SetSource(unsigned nodeIndex, unsigned pinIndex=0)
Set source node and pin indices.
Definition: ParticleGraphPin.cpp:66
void OnWorldBoundingBoxUpdate() override
Recalculate the world-space bounding box.
Definition: StaticModel.cpp:405
void HandleSceneUpdate(StringHash eventType, VariantMap &eventData)
Handle scene update event.
Definition: LogicComponent.cpp:179
Matrix3x4(const float data[]) noexcept
Construct from a float array.
Definition: Matrix3x4.h:126
const ByteVector & GetBuffer() const
Return the buffer.
Definition: VectorBuffer.h:72
void SortKeyFrames()
Sort keyframes by time.
Definition: KeyFrameSet.h:41
void SetBorder(const IntRect &rect)
Definition: BorderImage.cpp:95
bool enabled_
Is aggregator enabled.
Definition: DirectionAggregator.h:121
RotateAround(Context *context)
Construct.
Definition: Move.cpp:732
ea::string GetValueTypeName() const
Definition: JSONValue.cpp:248
virtual void CollectParameters(StringVariantMap ¶ms) const
Create missing parameters in the global map with default values.
Definition: RenderPass.h:41
static void RegisterObject(Context *context)
Definition: Material.cpp:205
size_t ToHash() const noexcept
Return hash value for HashSet & HashMap. Use the same hash function as for raw pointers!
Definition: Ptr.h:314
unsigned GetNumOfBlinks() const
Get number of blinks.
Definition: Attribute.h:112
HighPrecisionVector3(const Vector3 &vec)
Construct from Vector3.
Definition: TetrahedralMesh.h:48
void MergeBuffers()
Merge thread work buffers into the first buffer.
Definition: OcclusionBuffer.cpp:997
Vector2 texCoord_
Texture coordinates.
Definition: DecalSet.h:67
void ProcessEvent(Rml::Event &event) override
Definition: RmlEventListeners.cpp:231
WeakPtr< Text3D > text_
Text3D component that renders text.
Definition: TextRenderer3D.h:153
bool forceReload_
Definition: PluginManager.h:185
Matrix4 GetEffectiveGPUViewProjection(float constantDepthBias) const
Return effective view-projection matrix with optionally applied depth bias.
Definition: Camera.cpp:486
Vector2 projectionOffset_
Projection offset.
Definition: Camera.h:387
float GetFriction() const
Definition: CollisionShape2D.h:100
SharedPtr< Material > material_
Material.
Definition: ParticleEffect.h:442
Unary operator that performs static cast on the argument.
Definition: Functors.h:32
Material * GetMaterial(Texture2D *texture, BlendMode blendMode)
Return material by texture and blend mode.
Definition: Renderer2D.cpp:244
ResourceRefList(StringHash type, const StringVector &names)
Construct with type and id list.
Definition: Variant.h:185
ea::vector< Bone > bones_
Bones used for skinned decals.
Definition: DecalSet.h:242
void SetEnableMotor(bool enableMotor)
Definition: ConstraintWheel2D.cpp:80
TimeStep(Context *context)
Construct TimeStep.
Definition: TimeStep.cpp:44
ResourceRef(StringHash type, const ea::string &name)
Construct with type and resource name.
Definition: Variant.h:125
static bool Compare(const T &lhs, const T &rhs)
Compare values.
Definition: Variant.h:286
void SetFilterMode(TextureFilterMode mode)
Definition: Texture.cpp:111
TrailPoint * next_
Next point to make a tail.
Definition: RibbonTrail.h:57
void SetAttributeType(VariantType valueType) override
Set attribute type.
Definition: Attribute.cpp:102
bool GetFlipVertical() const
Return vertical flipping mode.
Definition: Camera.h:268
int dragBeginDistance_
Drag begin event distance threshold in pixels.
Definition: UI.h:431
const Matrix4 & GetMatrix4() const
Return a Matrix4 or identity on type mismatch.
Definition: Variant.h:1522
Lightmap geometry buffer baking settings.
Definition: LightBakingSettings.h:53
SphericalHarmonicsColor9(const Vector3 &color)
Construct SH9 coefficients from given color.
Definition: SphericalHarmonics.h:98
void ApplyAnimation()
Apply all animation states to nodes.
Definition: AnimatedModel.cpp:1052
void ResumeSoundType(const ea::string &type)
Resume playback of specific sound type.
Definition: Audio.cpp:282
float GetFarDistance() const
Definition: SoundSource3D.h:77
void UpdatePlanes()
Update the planes. Called internally.
Definition: Frustum.cpp:225
void SetModalAutoDismiss(bool enable)
Definition: Window.cpp:313
unsigned lightmapIndex_
Lightmap index.
Definition: Terrain.h:331
void SetExcludeFlags(unsigned queryFilterType, unsigned short flags)
Set the exclude flags for the specified query filter type.
Definition: CrowdManager.cpp:337
bool isBound_
Indicates whether the action is properly bound to be used.
Definition: VirtualReality.h:148
LoadMode
Asynchronous scene loading mode.
Definition: Scene.h:49
void GetVector3MinMax(const XMLElement &element, Vector3 &minValue, Vector3 &maxValue)
Read a Vector3 from an XML element.
Definition: ParticleEffect.cpp:851
Vector3 FindNearestPoint(const Vector3 &point, const Vector3 &extents=Vector3::ONE, const dtQueryFilter *filter=nullptr, dtPolyRef *nearestRef=nullptr)
Find the nearest point on the navigation mesh to a given point. Extents specifies how far out from th...
Definition: NavigationMesh.cpp:588
float projOffsetScaleX_
Combined X projection and viewport transform.
Definition: OcclusionBuffer.h:227
RenderPipeline used to render geometry buffer for lightmap baking.
Definition: LightmapRenderPipeline.h:33
void SetHeightFog(bool enable)
Definition: Zone.cpp:177
bool WriteInt64(long long value)
Write a 64-bit integer.
Definition: Serializer.cpp:43
const Vector3 & GetGravityOverride() const
Definition: RigidBody.h:252
float GetWidth() const
Definition: RibbonTrail.h:155
SharedPtr< Image > SaveFaceTexture(Texture2D *texture)
Save font face texture as image resource.
Definition: FontFaceBitmap.cpp:357
const TmxObjectGroup2D * objectGroup_
Object group.
Definition: TileMapLayer2D.h:129
const ea::string & GetPath() const
Definition: FileSelector.h:131
void SetOffset(Vector3 point)
Set wheel node position relative to connection point.
Rml::ElementDocument * unloadedDocument_
Pointer to a document that was unloaded.
Definition: RmlUI.h:56
ea::unordered_map< StringHash, Variant > masterGain_
Master gain by sound source type.
Definition: Audio.h:174
bool IsNull() const
Definition: JSONValue.h:199
void CreatePatchGeometry(TerrainPatch *patch)
Regenerate patch geometry.
Definition: Terrain.cpp:619
Intersection IsInsideFast(const Sphere &sphere) const
Test if a sphere if (partially) inside or outside.
Definition: Frustum.h:111
ea::array< int, NumPer *2 > p_
Permutations.
Definition: PerlinNoise.h:57
int movementTouchId_
Touch id for movement gesture.
Definition: MoveAndOrbitController.h:130
SharedPtr< Material > material_
Material.
Definition: Terrain.h:325
float specularIntensity_
Specular intensity.
Definition: Light.h:495
float GetOuterAngle() const
Definition: SoundSource3D.h:85
Timeline key.
Definition: SpriterData2D.h:227
SphericalHarmonicsDot9 GetLightingAtPoint(const Vector3 &worldPos) const
Return lighting at the point as SH.
Definition: LightAccumulator.h:87
~ConstraintRope2D() override
Destruct.
Vector2 GetOrthogonalClockwise() const
Return orthogonal vector (clockwise).
Definition: Vector2.h:394
void HandleBeginFrame(StringHash eventType, VariantMap &eventData)
Handle begin frame event to check for completed async executions.
Definition: FileSystem.cpp:1197
Vector3 Lerp(const Vector3 &rhs, float t) const
Linear interpolation with another vector.
Definition: Vector3.h:403
bool IsPowerOfTwo(unsigned value)
Check whether an unsigned integer is a power of two.
Definition: MathDefs.h:295
Hardware vertex buffer.
Definition: VertexBuffer.h:38
void DrawDebugGeometry(DebugRenderer *debug, bool depthTest) override
Visualize the component as debug geometry.
Definition: IKRotateTo.cpp:40
void Clear()
Reset to default state.
Definition: IndexAllocator.h:98
virtual void ConnectToRig(const VRRigDesc &rig)
Connects session to the rig.
Definition: VirtualReality.cpp:70
Matrix3x4 GetHandTransform(VRHand hand) const override
Returns the transform for a given hand in head relative space.
Definition: OpenXR.cpp:1927
float directionalLightShadowDistance_
Shadow casting distance for directional light.
Definition: LightBakingSettings.h:174
SharedPtr< XMLFile > LoadTSXFile(const ea::string &source)
Load TSX file.
Definition: TmxFile2D.cpp:598
bool IsPackaged() const
Definition: File.h:105
void Reset(int width, int height)
Resize array. All elements are reset to default value.
Definition: Array2D.h:159
void SetUseSystemShapes(bool enable)
Definition: Cursor.cpp:203
void UpdateBatches(const FrameInfo &frame) override
Calculate distance and prepare batches for rendering. May be called from worker thread(s),...
Definition: StaticModelGroup.cpp:168
bool selected_
Selected flag.
Definition: UIElement.h:817
float GetPitch() const
Get pitch angle in degrees.
Definition: MoveAndOrbitComponent.h:52
SharedPtr< XMLFile > loadParameters_
Parameter file acquired during BeginLoad.
Definition: Texture2DArray.h:78
void CalculateModelTracks(ea::vector< ModelAnimationOutput > &output) const
Calculate animation for the model skeleton.
Definition: AnimationState.cpp:233
Variant(const Vector3 &value)
Construct from a Vector3.
Definition: Variant.h:548
Variant Lerp(const Variant &rhs, float t) const
Linear interpolation. Supported for scalars, vectors and some other types.
Definition: Variant.cpp:1271
UIElement * GetRoot() const
Definition: UIComponent.cpp:204
static const unsigned legacyVersion
Definition: Model.h:228
void DoAutoRemove(AutoRemoveMode mode)
Perform autoremove. Called by subclasses. Caller should keep a weak pointer to itself to check whethe...
Definition: Component.cpp:218
bool isOpen_
Is message box window open.
Definition: SystemMessageBox.h:66
Mutex mutex_
Mutex for synchronizing the worker and the main thread.
Definition: HttpRequest.h:104
bool WriteVector4(const Vector4 &value)
Write a Vector4.
Definition: Serializer.cpp:139
void AddWheel(RaycastVehicleWheel *wheel)
Add a wheel.
Definition: RaycastVehicle.cpp:342
unsigned numSoftwareSkinningBones_
Number of bones used for software skinning.
Definition: AnimatedModel.h:242
XPath query.
Definition: XMLElement.h:377
Vector4 GetOuterBarycentricCoords(unsigned tetIndex, const Vector3 &position) const
Calculate barycentric coordinates for outer tetrahedron.
Definition: TetrahedralMesh.cpp:238
ea::vector< ZoneData > zonesData_
Cached zone parameters.
Definition: Octree.h:208
Constant(Context *context)
Construct.
Definition: Constant.cpp:47
void SetIndentSpacing(int indentSpacing)
Definition: UIElement.cpp:1114
GlobalIllumination(Context *context)
Construct.
Definition: GlobalIllumination.cpp:38
bool IsStereo() const
Return whether data is stereo.
Definition: SoundStream.h:66
float GetFrequency() const
Return default frequency as a float.
Definition: SoundStream.h:54
void HandleUpdate(StringHash eventType, VariantMap &eventData)
Handle the logic update event to update the scene, if active.
Definition: Scene.cpp:1042
void SetApplyingTransforms(bool enable)
Set node dirtying to be disregarded.
Definition: PhysicsWorld.h:316
static IndexBufferType GetIndexBufferType(IndexBuffer *indexBuffer)
Return type of index buffer. Null is allowed.
Definition: IndexBuffer.h:85
SharedPtr< Material > material_
Material.
Definition: Drawable2D.h:74
void OnBatchesReady() override
Called when batches are ready.
Definition: ScenePass.cpp:54
ea::string GetTemporaryDir() const
Definition: FileSystem.cpp:1661
void OnCanvasResize(int width, int height, bool isFullScreen, float dpiScale)
Web only. Process canvas resize event.
Definition: Engine.cpp:718
void OnKey(Key key, MouseButtonFlags buttons, QualifierFlags qualifiers) override
React to a key press.
Definition: ListView.cpp:214
EmitterType2D emitterType_
Emitter type.
Definition: ParticleEffect2D.h:307
bool SetFontSize(float size)
Definition: Text.cpp:276
bool isAtEnd_
When set to true scrollbar of messages panel is at the bottom.
Definition: Console.h:147
XMLElement operator[](unsigned index) const
Definition: XMLElement.cpp:1134
float sizeAdd_
Particle size additive parameter.
Definition: ParticleEffect.h:498
Color(const float data[]) noexcept
Construct from a float array.
Definition: Color.h:95
BinaryFile(Context *context)
Construct empty.
Definition: BinaryFile.cpp:39
void SetSelections(const ea::vector< unsigned > &indices)
Set multiple selected items. If multiselect disabled, sets only the first.
Definition: ListView.cpp:525
void SetSpriteAttr(const ResourceRef &value)
Set sprite attribute.
Definition: ParticleEmitter2D.cpp:154
void CollectParameters(StringVariantMap ¶ms) const override
Definition: AmbientOcclusionPass.cpp:52
SharedPtr< Texture > texture_
Texture.
Definition: BorderImage.h:136
void Update(float delta)
Update the crowd simulation.
Definition: CrowdManager.cpp:686
HighlightMode
ListView selection highlight mode.
Definition: ListView.h:34
static void RegisterObject(Context *context)
Definition: CameraOperator.cpp:47
PhysicsWorld * GetPhysicsWorld() const
Return physics world.
Definition: RigidBody.h:180
bool validateShaders_
Whether the shader validation is enabled.
Definition: Graphics.h:74
SharedPtr< FiniteTimeAction > Reverse() const override
Create reversed action.
Definition: Ease.cpp:211
float GetSuspensionRestLength() const
Get suspension rest length.
void SetZoneTextureAttr(const ResourceRef &value)
Set zone texture attribute.
Definition: Zone.cpp:247
void Commit()
Definition: VariantCurve.cpp:126
bool useDerivedOpacity_
Use derived opacity flag.
Definition: UIElement.h:809
float Ease(float time) const override
Apply easing function to the time argument.
Definition: Ease.h:319
void ApplyAttributes() override
Apply Attributes to the SplinePath.
Definition: SplinePath.cpp:69
void Render(const SharedRenderPassState &sharedState) override
Execute render commands.
Definition: OutlineRenderPass.cpp:50
unsigned indexStart_
Index start.
Definition: Model.h:103
void Update(bool looped, float time, float weight)
Update dynamic properies of the state.
Definition: AnimationState.cpp:133
bool fixedWidthResizing_
Fixed width resize flag.
Definition: Window.h:166
void ApplyLinearImpulseToCenter(const Vector2 &impulse, bool wake)
Apply linear impulse to center.
Definition: RigidBody2D.cpp:322
int * GetBuffer() const
Return highest level depth values.
Definition: OcclusionBuffer.h:130
void SetConvexHull(Model *model, unsigned lodLevel=0, const Vector3 &scale=Vector3::ONE, const Vector3 &position=Vector3::ZERO, const Quaternion &rotation=Quaternion::IDENTITY)
Set as a convex hull from Model.
Definition: CollisionShape.cpp:682
Placeholder object that can be serialized as nothing.
Definition: ArchiveSerializationBasic.h:233
void UpdateParticle(Particle2D &particle, float timeStep, const Vector3 &worldPosition, float worldScale)
Update particle.
Definition: ParticleEmitter2D.cpp:408
const Vector2 & GetMaxAnchor() const
Definition: UIElement.h:532
bool WriteRect(const Rect &value)
Write a Rect.
Definition: Serializer.cpp:113
const StringVariantMap & GetStringVariantMap() const
Return a string variant map or empty on type mismatch.
Definition: Variant.h:1531
ModuleType pluginType_
Type of plugin.
Definition: PluginManager.h:196
bool WaitForCompleteFile(unsigned timeoutMs) const override
Definition: ModulePlugin.cpp:223
void AddConstraint(Constraint *constraint)
Add a constraint to keep track of. Called by Constraint.
Definition: PhysicsWorld.cpp:809
void SetCrowdTarget(const Vector3 &position, Node *node=nullptr)
Set the crowd target position. The target position is set to all crowd agents found in the specified ...
Definition: CrowdManager.cpp:206
constexpr unsigned Value() const
Definition: StringHash.h:110
void Load(Scene *scene, const PackedSceneSelection &packedSelection)
Load selection.
Definition: SceneSelection.cpp:118
void FinishBackgroundLoading(BackgroundLoadItem &item)
Finish one background loaded resource.
void HandleSceneSubsystemUpdate(StringHash eventType, VariantMap &eventData)
Handle the scene subsystem update event, step simulation here.
Definition: PhysicsWorld2D.cpp:723
bool bringToFront_
Bring to front when focused flag.
Definition: UIElement.h:801
void ApplyAttributes() override
Perform post-load after deserialization. Acquire the components from the scene nodes.
Definition: KinematicCharacterController.cpp:100
unsigned numTasks_
Number of tasks to spawn.
Definition: LightBakingSettings.h:118
VariantAnimationTrack * CreateVariantTrack(const ea::string &name)
Create and return generic variant track by name. If variant track by same name already exists,...
Definition: Animation.cpp:483
NavigationQuality GetNavigationQuality() const
Definition: CrowdAgent.h:208
Definition: TimeStep.h:37
ea::string NameToPath(const ea::string &name) const
Converts name to a full plugin file path. Returns empty string on error.
Definition: ModulePlugin.cpp:104
Definition: LightProcessor.h:198
static Logger GetLogger()
Returns default logger.
Definition: Log.cpp:465
void Normalize(const ea::vector< Vector3 > &vertices)
Normalize triangle indices so (p2 - p1) x (p3 - p1) is the normal.
Definition: TetrahedralMesh.h:151
const ea::string & GetLoadingPercentStyle() const
Returns the loading percent style.
Definition: ProgressBar.h:86
unsigned ToHash() const
Return hash value for HashSet & HashMap.
Definition: Rect.h:462
ea::intrusive_list< EventHandler >::iterator FindEventHandler(StringHash eventType)
Find the first event handler with no specific sender.
Definition: Object.cpp:402
void SetDetailSampleDistance(float distance)
Definition: NavigationMesh.cpp:331
BoundingBox localBoundingBox_
Bounding box in local space.
Definition: LightProbeGroup.h:207
void UpdateBufferSize()
Resize billboard vertex and index buffers.
Definition: BillboardSet.cpp:489
void MixNull(float timeStep, float effectiveFrequency)
Advance playback pointer to simulate audio playback in headless mode.
Definition: SoundSource.cpp:1867
bool collideConnected_
Collide connected flag.
Definition: Constraint2D.h:110
void OnHidePopup() override
React to the popup being hidden.
Definition: DropDownList.cpp:136
void SetInterpolationMode(InterpolationMode interpolationMode)
Definition: SplinePath.cpp:198
void ApplyImpulse(const Vector3 &impulse)
ApplyImpulse is same as Jump.
Definition: KinematicCharacterController.cpp:597
void MarkProbeDirty(ReflectionProbe *reflectionProbe)
Mark reflection probe as dirty, i.e. position or dimensions changed.
Definition: ReflectionProbe.cpp:237
bool IsHanded() const
Returns true if this action is bound to a hand.
Definition: VirtualReality.h:91
SharedPtr< VertexBuffer > vertexBuffer_
UI vertex buffer.
Definition: UI.h:417
unsigned echoCharacter_
Echo character.
Definition: LineEdit.h:169
double LengthSquared() const
Return squared length of the vector.
Definition: TetrahedralMesh.h:80
BoundingBox(const Frustum &frustum)
Construct from a frustum.
Definition: BoundingBox.h:100
ea::map< ea::string, JSONValue >::iterator JSONObjectIterator
JSON object iterator.
Definition: JSONValue.h:361
void SetScale(const Vector2 &scale)
Set scaling elements.
Definition: Matrix2.h:140
void SetFrom(int value)
Set From.
Definition: Sphere.cpp:93
void MixStereoToMulti(Sound *sound, int *dest, unsigned samples, int mixRate, float effectiveFrequency, SpeakerMode speakers)
Mix stereo sample into multichannel. Front-center and LFE are ommitted.
Definition: SoundSource.cpp:1569
float endScale_
End for start of trails.
Definition: RibbonTrail.h:262
void SetShadowDistance(float distance)
Definition: Drawable.cpp:189
3x4 matrix for scene node transform calculations.
Definition: Matrix3x4.h:35
ea::vector< WeakPtr< Component > > components_
Components to resolve.
Definition: SceneResolver.h:60
ea::string ToString() const
Format an url after modifications were applied. No validation is done! Invalid input will result in i...
Definition: URL.cpp:71
float GetNearClip() const
Definition: Camera.cpp:274
WeakPtr< ReplicationManager > replicationManager_
Scene replication and synchronization manager.
Definition: Connection.h:279
Definition: IKChainSolver.h:12
float normalOffset_
Normal offset multiplier.
Definition: Light.h:108
Particle graph effect definition.
Definition: ParticleGraphEffect.h:36
ea::shared_array< unsigned char > readBuffer_
Read buffer for Android asset or compressed file loading.
Definition: File.h:142
static ea::array< StringHash, NumCachedSubsystems > GetCachedSubsystemTypes(ea::tuple< Types... > *)
Return cached subsystem types.
Definition: SubsystemCache.h:118
float elapsedTime_
Elapsed time accumulator.
Definition: Scene.h:351
void OnDragCancel(const IntVector2 &position, const IntVector2 &screenPosition, MouseButtonFlags dragButtons, MouseButtonFlags cancelButtons, Cursor *cursor) override
React to mouse drag cancel.
Definition: Window.cpp:237
ea::vector< unsigned > offsets_
First light probe owned by corresponding group.
Definition: LightProbeGroup.h:91
bool SetIntVector3(const ea::string &name, const IntVector3 &value)
Set an IntVector3 attribute.
Definition: XMLElement.cpp:407
void SetCustomConvexHull(CustomGeometry *custom, const Vector3 &scale=Vector3::ONE, const Vector3 &position=Vector3::ZERO, const Quaternion &rotation=Quaternion::IDENTITY)
Set as a convex hull from CustomGeometry.
Definition: CollisionShape.cpp:688
ea::string ToString(const Context *context) const
Convert resource reference list to string.
Definition: Variant.cpp:341
Node * GetTileNode(int x, int y) const
Return tile node (for tile layer only).
Definition: TileMapLayer2D.cpp:292
static const Color LUMINOSITY_LINEAR
Color-to-gray factors for color in linear space.
Definition: Color.h:297
bool LoadDefaults(const ea::string &fileName, const ApplicationFlavor &flavor)
Load default variables from file.
Definition: ConfigFile.cpp:132
void OnSceneSet(Scene *scene) override
Handle scene being assigned. This may happen several times during the component's lifetime....
Definition: TrackedComponent.cpp:99
void Maximize()
Maximize the window.
Definition: Graphics.cpp:487
void SetViewMask(unsigned mask)
Set view mask for everything.
Definition: Camera.cpp:182
Rotate by 3D delta action. Target should have attribute "Rotation" of type Quaternion.
Definition: Move.h:147
void RemoveTrackedNode(Node *node)
Remove scene node from trackable nodes.
Definition: CameraOperator.cpp:175
void Update(float timeStep) override
Handle the logic update event.
Definition: SplashScreen.cpp:171
float fadeInDuration_
Fade in duration in seconds.
Definition: StateManager.h:288
void SerializeInBlock(Archive &archive) override
Force override of SerializeInBlock.
Definition: PrefabResource.cpp:76
IntVector2 checkedOffset_
Checked image offset.
Definition: CheckBox.h:71
ea::shared_array< unsigned char > data_
Pixel data.
Definition: Image.h:256
virtual void OnEnter()
Executed when first compatible body enters the trigger.
Definition: TriggerAnimator.cpp:87
void HandleFilterChanged(StringHash eventType, VariantMap &eventData)
Handle filter changed.
Definition: FileSelector.cpp:388
btDiscreteDynamicsWorld * GetWorld() const
Return the Bullet physics world.
Definition: PhysicsWorld.cpp:840
auto Tie() const
Definition: AmbientOcclusionPass.h:58
void SetDirection(Vector3 direction)
Set wheel direction vector.
const ea::string & GetName() const override
Returns human-readable name of the mount point.
Definition: PackageFile.h:111
const ea::string & GetName()
Definition: GraphPin.h:44
bool SetStyle(const ea::string &styleName, XMLFile *file=nullptr)
Set style from an XML file. Find the style element by name. If the style file is not explicitly provi...
Definition: UIElement.cpp:1022
unsigned replicatedNodeID_
Next free non-local node ID.
Definition: Scene.h:341
void BeginGeometry(unsigned index, PrimitiveType type)
Begin defining a geometry. Clears existing vertices in that index.
Definition: CustomGeometry.cpp:238
b2JointDef * GetJointDef() override
Return joint def.
Definition: ConstraintWheel2D.cpp:145
unsigned GetNumRows() const
Definition: Text3D.cpp:503
Vector4 GetInterpolationFactors(const Vector3 &position, unsigned &tetIndexHint) const
Find tetrahedron containing given position and calculate barycentric coordinates within this tetrahed...
Definition: TetrahedralMesh.cpp:267
void SetFinishColorVariance(const Color &finishColorVariance)
Set finish color variance.
Definition: ParticleEffect2D.cpp:381
const ea::unordered_map< ea::string, SharedPtr< ValueAnimationInfo > > & GetAttributeAnimationInfos() const
Return all attribute animations infos.
Definition: ObjectAnimation.h:84
ShadowMapRegion AllocateTransientShadowMap(const IntVector2 &size) override
Allocate shadow map for one frame.
Definition: SceneProcessor.cpp:534
bool IsInvalidated() const
Return whether the object is invalid and has to be restored.
Definition: ThreadSafeCache.h:46
Finite time action.
Definition: ActionInstant.h:33
IntVector2 dragBeginCursor_
Original mouse cursor position at drag begin.
Definition: Slider.h:122
float GetAngularOffset() const
Definition: ConstraintMotor2D.h:66
void SetFlipVertical(bool enable)
Set vertical flipping mode. Called internally by View to resolve OpenGL rendertarget sampling differe...
Definition: Camera.cpp:255
float GetMaxTorque() const
Definition: ConstraintMotor2D.h:74
@ LOAD_SCENE
Load scene content without preloading. Resources will be requested synchronously when encountered.
Definition: Scene.h:54
Utility to build pipeline states for RenderPipeline.
Definition: PipelineStateBuilder.h:42
const Vector3 & GetTargetPosition() const
Definition: CrowdAgent.h:158
const Vector3 & GetAngularVelocity() const
Returns angular velocity of the pose.
Definition: VirtualReality.h:113
void SetSelection(unsigned index)
Definition: ListView.cpp:517
virtual void GetDependencyNodes(ea::vector< Node * > &dest)
Return the depended on nodes to order network updates.
Definition: Component.cpp:107
virtual ~UIBatchStateCacheCallback()
Destruct.
Definition: RenderPipelineDefs.cpp:60
unsigned ReadVLE()
Read a variable-length encoded unsigned integer.
Definition: Deserializer.cpp:481
Graph node pin with connection.
Definition: GraphPin.h:96
void SetTileSize(int size)
Definition: NavigationMesh.cpp:276
ea::shared_ptr< std::atomic< bool > > stopped_
Whether the token is stopped.
Definition: StopToken.h:50
void Bind()
Bind query object with variable set.
Definition: XMLElement.cpp:1168
void AddQuad(const Vector3 ¢er, float width, float height, const Color &color, bool depthTest=true)
Add a quad on the XZ plane.
Definition: DebugRenderer.cpp:529
bool IsDynamic() const
Definition: VertexBuffer.h:55
2D rigid body component.
Definition: RigidBody2D.h:51
bool IsOpen() const
Definition: HttpRequest.h:88
void ProcessRayQuery(const RayOctreeQuery &query, ea::vector< RayQueryResult > &results) override
Process octree raycast. May be called from a worker thread.
Definition: StaticModel.cpp:77
float GetRadiusThickness() const
Get Radius Thickness.
Definition: Sphere.cpp:79
Movement HandleGenericJoystick(const JoystickState *state, float timeStep)
Handle controller input.
Definition: FreeFlyController.cpp:286
Bone * GetBoneParent(const Bone *bone)
Return parent of the given bone. Return null for root bones.
Definition: Skeleton.cpp:224
GlobalIlluminationType GetGlobalIlluminationType() const
Return global illumination type.
Definition: Drawable.h:337
Sprite2D * GetSprite(const ea::string &name) const
Return sprite.
Definition: SpriteSheet2D.cpp:173
Vector3 ProjectOntoLine(const Vector3 &from, const Vector3 &to, bool clamped=false) const
Project position vector onto line segment.
Definition: Vector3.h:368
void SetBoundingBox(const BoundingBox &box)
Definition: Zone.cpp:104
Color Interpolate(const ColorFrame &next, float time) const
Return interpolated value with another color-time pair at the time specified.
Definition: ParticleEffect.h:68
bool fixedScreenSize_
Billboards fixed screen size flag.
Definition: BillboardSet.h:189
CachedDrawableZone QueryZone(Drawable *drawable) const
Return best zone for drawable.
Definition: Octree.cpp:719
void SetHotSpot(const Vector2 &hotspot)
Definition: StaticSprite2D.cpp:198
unsigned eastID_
Node ID of east neighbor.
Definition: Terrain.h:401
ea::unordered_map< unsigned, FontGlyph > glyphMapping_
Glyph mapping.
Definition: FontFace.h:109
Definition: BillboardSet.h:39
ea::string name_
Name.
Definition: TmxFile2D.h:79
ea::vector< const char * > interpretersPointers_
Pointers to c strings in interpreters_ list for efficient UI rendering.
Definition: Console.h:111
Individually rendered part of a heightmap terrain.
Definition: TerrainPatch.h:35
float GetRotationEnd() const
Return rotation end.
Definition: ParticleEffect2D.h:237
void SetEffectAttr(const ResourceRef &value)
Set particles effect attribute.
Definition: ParticleEmitter.cpp:355
static void RegisterObject(Context *context)
Register object factory. Drawable must be registered first.
Definition: LightBaker.cpp:94
void SetBlendMode(BlendMode blendMode)
Set blend mode.
Definition: ParticleEffect2D.cpp:451
SharedPtr< ParticleGraphNode > GetNode(unsigned index) const
Get node by index.
Definition: ParticleGraph.cpp:58
void OnResize(const IntVector2 &newSize, const IntVector2 &delta) override
React to resize.
Definition: View3D.cpp:73
static void RegisterObject(Context *context)
Definition: Animatable.cpp:73
Vector3 direction_
Direction.
Definition: BakedLight.h:83
void SetModelAttr(const ResourceRef &value)
Set model attribute.
Definition: AnimatedModel.cpp:729
BufferedSoundStream()
Construct.
Definition: BufferedSoundStream.cpp:32
constexpr unsigned & MutableValue()
Return mutable hash value. For internal use only.
Definition: StringHash.h:113
LayoutMode layoutMode_
Layout mode.
Definition: UIElement.h:829
unsigned GetSampleSize() const
Definition: Audio.h:81
ea::unordered_map< MaterialKey, SharedPtr< Material > > materials_
Cache of materials.
Definition: OutlineGroup.h:99
ea::vector< Zone * > zones_
Zones.
Definition: Octree.h:206
ea::string ToString() const
Returns string representation of flavor.
Definition: ApplicationFlavor.cpp:179
TypeInfo(const char *typeName, const TypeInfo *baseTypeInfo)
Construct.
Definition: TypeInfo.cpp:32
Vector3 Translation() const
Return the translation part.
Definition: Matrix4.h:548
void OnKey(Key key, MouseButtonFlags buttons, QualifierFlags qualifiers) override
React to a key press.
Definition: LineEdit.cpp:205
EffectTime(Context *context)
Construct EffectTime.
Definition: EffectTime.cpp:44
ea::vector< Vector3 > lightmap_
Lightmap data, in linear space.
Definition: BakedLightCache.h:54
unsigned GetNumPins() const override
Get number of pins.
Definition: Random.h:59
void OnBatchesReady() override
Called when batches are ready.
Definition: ScenePass.cpp:116
void OnBatchesReady() override
Called when batches are ready.
Definition: OutlineScenePass.cpp:145
ResourceRef GetEnterAnimationAttr() const
Return enter animation attribute.
Definition: TriggerAnimator.cpp:61
bool BeginLoad(Deserializer &source) override
Load resource from stream. May be called from a worker thread. Return true if successful.
Definition: ParticleEffect2D.cpp:116
bool SetVectorVariant(const ea::string &name, const Variant &value)
Set a float, Vector or Matrix attribute stored in a variant.
Definition: XMLElement.cpp:592
ImVec2 windowSize_
Initial message box window size.
Definition: SystemMessageBox.h:70
T Acos(T x)
Definition: MathDefs.h:189
void SetDrawOffMeshConnections(bool enable)
Definition: NavigationMesh.h:298
constexpr FlagSet()=default
Empty constructor.
static void RegisterObject(Context *context)
Definition: RaycastVehicle.cpp:248
void StopServer()
Stop the server.
Definition: Network.cpp:249
float startParticleSize_
Start particle size.
Definition: ParticleEffect2D.h:297
NavmeshPartitionType partitionType_
Type of the heightfield partitioning.
Definition: NavigationMesh.h:390
EaseSineOut(Context *context)
Construct.
Definition: Ease.cpp:300
bool EmitParticle(const Vector3 &worldPosition, float worldAngle, float worldScale)
Emit particle.
Definition: ParticleEmitter2D.cpp:354
float engineForce_
Maximum linear momentum supplied by engine to RigidBody.
Definition: RaycastVehicle.h:173
Vector3 normal_
Hit worldspace normal.
Definition: PhysicsWorld.h:90
@ WM_LOOP
Loop mode.
Definition: AnimationDefs.h:34
GraphNode * WithOutput(const ea::string_view name, VariantType type=VAR_NONE)
Add output pin.
Definition: GraphNode.cpp:179
bool GetDrawShape() const
Definition: PhysicsWorld2D.h:182
bool HasProperty(const ea::string &name) const
Return has property.
Definition: TileMapLayer2D.cpp:254
const ea::string & GetText() const
Definition: Text.h:152
void MixStereoToMonoIP(Sound *sound, int dest[], unsigned samples, int mixRate, float effectiveFrequency)
Mix stereo sample to mono buffer interpolated.
Definition: SoundSource.cpp:1137
SphericalHarmonicsDot9(const Vector3 &color)
Construct from color in linear color space.
Definition: SphericalHarmonics.h:177
void Commit()
Commit data to GPU.
Definition: SoftwareModelAnimator.cpp:184
SourceBatch()
Construct with defaults.
unsigned GetObstacleID() const
Definition: Obstacle.h:71
static void RegisterObject(ParticleGraphSystem *context)
Register particle node factory.
Definition: Length.cpp:38
Intersection TestOctant(const BoundingBox &box, bool inside) override
Intersection test for an octant.
Definition: OctreeQuery.cpp:121
Heightfield geometry data.
Definition: CollisionShape.h:128
~Material() override
Destruct.
SceneComponentIndex * GetMutableComponentIndex(StringHash componentType)
Return component index storage for given type.
Definition: Scene.cpp:1408
Result of light query for drawable.
Definition: LightProcessorQuery.h:36
NavigationQuality navQuality_
Agent's navigation quality. The higher the setting, the higher the CPU usage during crowd simulation.
Definition: CrowdAgent.h:279
bool CreateForImage(const RawTextureParams &baseParams, Image *image)
Definition: Texture.cpp:361
Vector3 GetTranslation() const
Get Translation.
Definition: Sphere.cpp:83
void PruneElements(const ModelVertexFormat &format)
Prune vertex elements not represented in the format.
Definition: ModelView.cpp:615
void SetRange(float range)
Definition: ProgressBar.cpp:81
ea::vector< SharedPtr< Texture2D > > lightmapTextures_
Loaded lightmap textures.
Definition: Scene.h:362
const ea::string & GetAbsoluteFileName() const
Return absolute file name.
Definition: Resource.h:141
SharedPtr< Sprite2D > sprite_
Sprite.
Definition: ParticleEmitter2D.h:156
TextParams3D params_
Text parameters.
Definition: TextRenderer3D.h:145
Definition: GraphNode.h:34
void SetOtherPosition(const Vector3 &position)
Definition: Constraint.cpp:212
ea::string name_
Named identifier of the microphone.
Definition: Microphone.h:104
ea::string ToString() const
Return as string.
Definition: Color.cpp:252
@ HM_NEVER
Never highlight selections.
Definition: ListView.h:37
void UpdateBufferSize()
Resize RibbonTrail vertex and index buffers.
Definition: RibbonTrail.cpp:448
void ValidateSelection()
Validate text selection to be within the text.
Definition: Text.cpp:744
Definition: CrowdManager.h:51
FileMode GetMode() const
Definition: File.h:94
unsigned GetUInt(unsigned defaultValue=0) const
Return unsigned integer value.
Definition: JSONValue.h:221
@ OT_POLYGON
Polygon.
Definition: TileMapDefs2D.h:98
Vector2 GetDirectionVector2()
Return random 2D direction (normalized).
Definition: RandomEngine.cpp:155
Definition: ReflectionProbe.h:146
float inactiveTime_
Inactive period.
Definition: ParticleEffect.h:472
void MarkFramesDirty()
Mark frames dirty.
Definition: Constraint.h:196
Vector3 GetActualVelocity() const
Definition: CrowdAgent.cpp:477
bool BeginLoad(Deserializer &source) override
Load resource from stream. May be called from a worker thread. Return true if successful.
Definition: SpriteSheet2D.cpp:108
auto Insert(const T &value)
Insert new element. Thread-safe as long as called from WorkQueue threads (or main thread).
Definition: WorkQueue.h:333
void SendRemoteEvents()
Send queued remote events. Called by Network.
Definition: Connection.cpp:198
ea::string GetAppPreferencesDir(const ea::string &org, const ea::string &app) const
Return the application preferences directory.
Definition: FileSystem.cpp:1022
const Vector2 & GetAnchor() const
Definition: ConstraintWheel2D.h:68
static void RegisterObject(Context *context)
Definition: ConstraintDistance2D.cpp:45
unsigned GetVertexBufferFormat() const
Return currently requested format of vertex buffer.
Definition: BillboardSet.cpp:182
Base class for visible components.
Definition: Drawable.h:203
void SetVertexCount(unsigned count)
Definition: CollisionChain2D.cpp:65
bool disableCollision_
Disable collision between connected bodies flag.
Definition: Constraint.h:229
Rml::DataModelConstructor * GetDataModelConstructor() const
Get data model constructor. Only available in OnDataModelInitialized method.
Definition: RmlUIComponent.h:151
ArchiveBlock(ArchiveBlock &&other)
Move-construct.
Definition: Archive.h:75
ea::function< void()> onDisconnected_
Called once, when connection disconnect was initiated (only if onConnected_ was also called)....
Definition: NetworkConnection.h:63
bool AddStaticPlugin(PluginApplication *pluginApplication)
Manually add plugin that stays loaded forever.
Definition: PluginManager.cpp:361
const ea::vector< unsigned > & GetSelections() const
Definition: ListView.h:139
ea::pair< InternalType, bool > CalculateInterpolatedValue(const NetworkTime &time, float snapThreshold) const
Calculate exact, interpolated or nearest valid value. Return whether the result is precise.
Definition: NetworkValue.h:515
virtual void PrepareInstancingBuffer(BatchRenderer *batchRenderer)=0
Prepare instancing buffer for scene pass.
virtual void PostUpdate(float timeStep)
Called on scene post-update, variable timestep.
Definition: LogicComponent.cpp:55
Pass * lightPass_
Additive light pass (per-pixel lighting from one light source).
Definition: DrawableProcessor.h:104
MouseButtonFlags dragButtonCombo_
Drag button combo.
Definition: UIElement.h:855
float GetRadius() const
Definition: Light.h:303
FiniteTimeAction(Context *context)
Construct.
Definition: FiniteTimeAction.cpp:54
const ea::string & GetEntity() const
Definition: AnimatedSprite2D.h:93
void UpdateNumTransforms()
Ensure proper size of world transforms when nodes are added/removed. Also mark node IDs dirty.
Definition: StaticModelGroup.cpp:392
unsigned GetNextFreeIndex() const
Return upper bound of allocated indices.
Definition: IndexAllocator.h:43
ea::vector< PListValue > PListValueVector
Vector of PList value.
Definition: PListFile.h:53
bool IsInput() const
Get input pin flag.
Definition: ParticleGraphPin.h:81
ea::vector< Vector3 > surfaceLight_
Incoming direct light from all static lights multiplied with albedo, used to calculate indirect light...
Definition: LightTracer.h:85
size_t Tell(Rml::FileHandle file) override
Returns the current position of the file pointer.
Definition: RmlFile.cpp:76
T Atan(T x)
Definition: MathDefs.h:193
void EndFrame()
End frame. Increment total time and send frame end event.
Definition: Timer.cpp:129
void SetNeighbors(Terrain *north, Terrain *south, Terrain *west, Terrain *east)
Set all neighbor terrains at once.
Definition: Terrain.cpp:329
void SetTranslation(Vector3 value)
Set Translation.
Definition: Hemisphere.cpp:81
float agentHeight_
Navigation agent height.
Definition: NavigationMesh.h:368
ea::vector< SceneComponentIndex > componentIndexes_
Indexes of components.
Definition: Scene.h:320
unsigned GetNumQueryFilterTypes() const
Definition: CrowdManager.h:156
int GetWidth() const
Definition: RenderSurface.cpp:89
ea::vector< DebugTriangle > triangles_
Triangles rendered with depth test.
Definition: DebugRenderer.h:194
int multiSample_
Effective MSAA level to use.
Definition: VirtualReality.h:289
RmlFile(Context *context)
Construct.
Definition: RmlFile.cpp:38
void SetVariantVector(const VariantVector &variantVector, Context *context=nullptr)
Set variant vector, context must provide for resource ref.
Definition: JSONValue.cpp:737
unsigned lodLevel_
Geometry LOD level if applicable.
Definition: NavigationUtils.h:23
bool skinned_
Whether CPU skinning is applied.
Definition: SoftwareModelAnimator.h:107
static void RegisterObject(Context *context)
Register object with the engine.
Definition: OcclusionBuffer.cpp:55
void SetRadialAccelVariance(float radialAccelVariance)
Set radial acceleration variance.
Definition: ParticleEffect2D.cpp:356
void SetValue(float value)
Definition: ProgressBar.cpp:91
void RemoveItem(UIElement *item, unsigned index=0)
Remove specific item, starting search at the specified index if provided. In hierarchy mode will also...
Definition: ListView.cpp:423
Texture * GetTexture() const
Definition: BorderImage.h:87
bool visible_
Visible.
Definition: TmxFile2D.h:85
float GetInactiveTime() const
Definition: ParticleEffect.h:338
static const Vector3 UP
(0,1,0) vector.
Definition: Vector3.h:511
float GetUpdateOvertime() const
Return the amount of time that happened after fixed-time network update.
Definition: Network.h:104
ResourceRef fileRef_
Reference on file with GI data.
Definition: GlobalIllumination.h:84
IntVector2 GetWindowPosition() const
Definition: Graphics.cpp:368
bool IsAdjacencyValid(bool fullyConnected) const
Return whether the adjacency is valid.
Definition: TetrahedralMesh.cpp:566
ActionBuilder & RepeatForever()
Repeat current action forever (until canceled).
Definition: ActionBuilder.cpp:444
Geometry * GetOcclusionGeometry() const
Return geometry used for occlusion.
Definition: TerrainPatch.cpp:280
void DrawQuad(ea::string_view debugComment, const DrawQuadParams ¶ms, bool flipVertical=false)
Render fullscreen quad with custom parameters into currently bound render buffer.
Definition: RenderBufferManager.cpp:363
Material's shader parameter animation instance.
Definition: Material.h:106
bool IsEnabledSelf() const
Definition: UIElement.h:599
unsigned Size() const
Return dynamic size of the vector.
Definition: NetworkValue.h:673
float SaturationHSV() const
Return saturation as defined for HSV.
Definition: Color.cpp:144
AbstractFile(unsigned int size)
Construct.
Definition: AbstractFile.h:45
@ LM_FORCE_CLAMPED
Force clamped.
Definition: AnimatedSprite2D.h:46
void * end_
Data end pointer.
Definition: WorkQueue.h:103
void Expand(unsigned index, bool enable, bool recursive=false)
Expand item at index. Only has effect in hierarchy mode.
Definition: ListView.cpp:782
SystemUI(Context *context, ImGuiConfigFlags flags=0)
Construct.
Definition: SystemUI.cpp:38
bool IsArray() const
Definition: Image.h:146
bool relative_
Billboards relative flag.
Definition: BillboardSet.h:183
SpriteSheet2D(Context *context)
Construct.
Definition: SpriteSheet2D.cpp:43
Vector4 uv_[MaxUVs]
UV coordinates.
Definition: ModelView.h:72
Texture * GetTexture() const
Definition: Sprite.h:108
float GetDampen() const
Get Dampen.
Definition: LimitVelocity.cpp:71
void OnWorldBoundingBoxUpdate() override
Recalculate the world-space bounding box.
Definition: Renderer2D.cpp:278
const Plane & GetClipPlane() const
Definition: Camera.h:265
Definition: CustomGeometry.h:32
ea::optional< FileTime > GetLastModifiedTime(const FileIdentifier &fileName, bool creationIsModification) const override
Definition: MountedAliasRoot.cpp:93
FrameInfo frame_
View frame info for current frame.
Definition: Renderer2D.h:122
ea::vector< ea::vector< SharedPtr< Geometry > > > geometries_
Geometries.
Definition: Model.h:243
BoundingBox Transformed(const Matrix3 &transform) const
Return transformed by a 3x3 matrix.
Definition: BoundingBox.cpp:126
void SetReturnFailedResources(bool enable)
Definition: ResourceCache.h:118
void ApplyValue(const Variant &newValue) override
Apply new animation value to the target object. Called by Update().
Definition: Material.cpp:192
void SetModel(Model *model) override
Set model and create bone nodes.
Definition: AnimatedModel.h:76
const Color & GetColor() const
Return color or default on type mismatch. Vector4 is aliased to Color if necessary.
Definition: Variant.h:1430
float dampingForce_
Particle velocity damping force.
Definition: ParticleEffect.h:468
Cached info about dynamic library on the disk. It may or may not be loaded.
Definition: PluginManager.h:191
WeakPtr< RenderSurface > renderSurface_
Surface where UI will be rendered into.
Definition: RmlUI.h:161
WeakPtr< TmxFile2D > tmxFile_
Tmx file.
Definition: TmxFile2D.h:75
ea::vector< WeakPtr< CollisionShape2D > > collisionShapes_
Collision shapes.
Definition: RigidBody2D.h:212
void Get(const Serializable *ptr, Variant &value) const override
Invoke getter function.
Definition: Serializable.h:154
ApplicationState * GetState() const
Get current application state.
Definition: StateManager.cpp:570
float GetDuration() const override
Get action duration.
Definition: Repeat.cpp:185
void ClearRequiredPackageFiles()
Clear required package files.
Definition: Scene.cpp:775
DynamicModule module_
Native module of this plugin.
Definition: ModulePlugin.h:57
void SetDiameter(float diameter)
Set character diameter.
Definition: KinematicCharacterController.cpp:503
RigidBody * body_
Rigid body that was hit.
Definition: PhysicsWorld.h:96
void SetParameter(const ea::string &name, const Variant &value)
Set engine parameter. Not all parameter changes will have effect.
Definition: Engine.cpp:860
void RemoveAllParticles()
Remove all current particles.
Definition: ParticleGraphEmitter.cpp:108
Color ambientColor_
Ambient color.
Definition: Zone.h:209
float brightness_
Brightness multiplier.
Definition: Light.h:497
void SetReflectionPlaneAttr(const Vector4 &value)
Set reflection plane attribute.
Definition: Camera.cpp:677
void ApplyAttributes() override
Apply attribute changes that can not be applied immediately.
Definition: DropDownList.cpp:79
virtual unsigned Read(void *dest, unsigned size)=0
Read bytes from the stream. Return number of bytes actually read.
bool GetFlipY() const
Definition: TileMapDefs2D.h:148
const ea::vector< SharedPtr< XRBinding > > & GetBindings() const
Return all bindings.
Definition: VirtualReality.h:169
FileMode mode_
Open mode.
Definition: File.h:134
bool IsThreaded() const
Return whether is using threads to speed up rendering.
Definition: OcclusionBuffer.h:154
virtual bool MoveTo(CustomVariantValue &dest)
Move-assign value to destination.
Definition: Variant.h:246
void DebugDraw(UIElement *element)
Debug draw a UI element.
Definition: UI.cpp:499
float GetSpeed() const
Return speed.
Definition: ValueAnimationInfo.h:75
void SetOwnerSubsystem(RmlUI *ui)
Set owner subsystem pointer.
Definition: RmlUI.h:210
void DrawTexture(ea::string_view debugComment, RawTexture *sourceTexture, ColorSpaceTransition mode=ColorSpaceTransition::None, bool flipVertical=false)
Draw input texture into into currently bound render buffer. sRGB is taken into account.
Definition: RenderBufferManager.cpp:647
int GetHeight() const
Definition: UIElement.h:472
ParticleGraphLayer(Context *context)
Construct.
Definition: ParticleGraphLayer.cpp:208
void SetRestitution(float restitution)
Definition: RigidBody.cpp:379
unsigned short FloatToHalf(float value)
Convert float to half float. From https://gist.github.com/martinkallman/5049614.
Definition: MathDefs.h:365
float delay_
Notification delay.
Definition: MultiFileWatcher.h:55
unsigned id_
Unique ID within the scene.
Definition: Component.h:141
unsigned GetPrimitiveCount() const
Return number of primitives.
Definition: Geometry.cpp:201
void HandleMouseWheel(StringHash eventType, VariantMap &eventData)
Handle mouse wheel event.
Definition: RmlUI.cpp:563
unsigned GetNextInstanceIndex() const
Return index of next added instance.
Definition: InstancingBuffer.h:51
void AddBodyToWorld()
Create the rigid body, or re-add to the physics world with changed flags. Calls UpdateMass().
Definition: RigidBody.cpp:890
unsigned GetNumTrackedNodes() const
Return number of tracked nodes.
Definition: CameraOperator.h:77
void FinishResources(int maxMs)
Process resources that are ready to finish.
T GetCustom() const
Return custom variant value or default-constructed on type mismatch.
Definition: Variant.h:1552
ConfigVariableDefinition & DefineVariable(const ea::string &name, const Variant &defaultValue=Variant::EMPTY)
Define variable supported by the config.
Definition: ConfigFile.cpp:72
PipelineState * GetOrCreatePipelineState(const BatchStateCreateKey &key, const BatchStateCreateContext &ctx, BatchStateCacheCallback *callback)
Definition: BatchStateCache.cpp:74
ea::unordered_map< ea::string, SharedPtr< Plugin > > dynamicPlugins_
Definition: PluginManager.h:179
SharedPtr< UIElement3D > rootModalElement_
UIElement to be rendered into texture. It also handles screen to UI coordinate translation.
Definition: UIComponent.h:79
Serializable(Context *context)
Construct.
Definition: Serializable.cpp:66
@ USE_POSTUPDATE
Bitmask for using the scene post-update event.
Definition: LogicComponent.h:40
AnimationController(Context *context)
Construct.
Definition: AnimationController.cpp:404
void ResumeApplication(Archive *input, unsigned version)
Resume application. Archive may be null if it wasn't serialized before.
Definition: PluginApplication.cpp:135
Helper base class for user-defined game logic components that hooks up to update events and forwards ...
Definition: LogicComponent.h:49
const ea::string & GetMessage() const
Return message.
Definition: Exception.h:58
DebugHudModeFlags GetMode() const
Definition: DebugHud.h:68
Variant()=default
Construct empty.
virtual unsigned GetNumOccluderTriangles()
Return number of occlusion geometry triangles.
Definition: Drawable.h:241
VirtualFileSystem(Context *context)
Construct.
Definition: VirtualFileSystem.cpp:24
void SetVar(const ea::string &key, const Variant &value)
Set a user variable.
Definition: UIElement.cpp:1468
MoveBy(Context *context)
Construct.
Definition: Move.cpp:399
AnimatedAttributeType
Custom attribute type, used to support sub-attribute animation in special cases.
Definition: AnimationState.h:91
const StringMap & GetInternalMap() const
Return map of hashes. Return value is unsafe to use if RegisterString is called from other threads.
Definition: StringHashRegister.h:58
float time_
Time since emitter start.
Definition: ParticleGraphLayerInstance.h:170
Rect() noexcept
Construct an undefined rect.
Definition: Rect.h:36
float splineTension_
Spline tension for spline interpolation.
Definition: VariantCurve.h:98
const Quaternion & GetRotation() const
Definition: Constraint.h:139
void SetCrowdVelocity(const Vector3 &velocity, Node *node=nullptr)
Set the crowd move velocity. The move velocity is applied to all crowd agents found in the specified ...
Definition: CrowdManager.cpp:234
void Scan(ea::vector< ea::string > &result, const ea::string &scheme, const ea::string &pathName, const ea::string &filter, ScanFlags flags) const
Scan for specified files.
Definition: VirtualFileSystem.cpp:354
const AnimationStateVector & GetAnimationStates() const
Return animations states for AnimatedModel.
Definition: AnimationStateSource.h:27
SharedPtr< BackgroundLoader > backgroundLoader_
Resource background loader.
Definition: ResourceCache.h:245
void SetOwnerBodyAnchor(const Vector2 &anchor)
Definition: ConstraintRope2D.cpp:56
StringHash nameHash_
Package file name hash.
Definition: PackageFile.h:123
std::atomic_uint32_t nextIndex_
Next unused index.
Definition: IndexAllocator.h:109
void SetGeometryBoneMappings(const ea::vector< ea::vector< unsigned > > &geometryBoneMappings)
Set bone mappings when model has more bones than the skinning shader can handle.
Definition: Model.cpp:614
StringHash soundTypeHash_
SoundSource type hash.
Definition: SoundSource.h:168
ea::vector< Drawable * > drawables_
Drawable objects.
Definition: Octree.h:151
virtual void Update(float timeStep)
Update the animations. Is called from HandleScenePostUpdate().
Definition: AnimationController.cpp:440
ParticleEffect2D * GetEffect() const
Definition: ParticleEmitter2D.cpp:133
virtual bool LoadXML(const XMLElement &source)
Load from XML data. Return true if successful.
Definition: Serializable.cpp:150
Definition: OctreeQuery.h:268
AttributeBlink(Context *context)
Construct.
Definition: Attribute.cpp:135
static const Color LUMINOSITY_GAMMA
Color-to-gray factors for color in gamma space.
Definition: Color.h:295
NamedPipe(Context *context)
Construct.
Definition: NamedPipe.cpp:45
void SetDampingRatio(float dampingRatio)
Definition: ConstraintMouse2D.cpp:94
void HandleNavigationTileAdded(StringHash eventType, VariantMap &eventData)
Handle navigation mesh tile added.
Definition: Obstacle.cpp:138
SharedPtr< Sprite2D > sprite_
Spine sprite.
Definition: AnimationSet2D.h:101
WeakPtr< FontFace > fontFace_
Current face.
Definition: Text.h:254
void OnDrawOrderChanged() override
Handle draw order changed.
Definition: ParticleEmitter2D.cpp:195
Definition: NetworkServer.h:33
Definition: IKRotateTo.h:12
virtual void * LoadAssembly(const ea::string &path)=0
Loads specified managed assembly and returns it's gc handle.
void OnNodeSet(Node *previousNode, Node *currentNode) override
Handle component being added to Node or removed from it.
Definition: UIComponent.cpp:219
void SetEnabled(bool enabled)
Set whether the render buffer is enabled. Disabled buffers should not be accessed during the frame.
Definition: RenderBuffer.h:58
SharedPtr< ActionState > StartAction(Object *target) override
Create new action state from the action.
Definition: Parallel.cpp:159
Source data for a 3D geometry draw call.
Definition: Drawable.h:154
@ O_ORTHOGONAL
Orthogonal.
Definition: TileMapDefs2D.h:39
float GetDiameter() const
Return character diameter.
Definition: KinematicCharacterController.h:96
BoundingBox(float min, float max) noexcept
Construct from minimum and maximum floats (all dimensions same).
Definition: BoundingBox.h:76
static const StringVector DefaultUpdateEvents
Default Scene update events.
Definition: Scene.h:99
IntRect imageBorder_
Border dimensions on the image.
Definition: BorderImage.h:142
IntVector2 oldSize_
Previous size of canvas.
Definition: RmlUI.h:48
Similar to PluginApplication, but can act as entry point.
Definition: PluginApplication.h:109
void ThreadFunction() override
Process the connection in the worker thread until closed.
Definition: HttpRequest.cpp:204
Matrix3x4 transform_
Transform matrix.
Definition: Sprite.h:141
T Ln(T x)
Definition: MathDefs.h:205
bool ProcessMessage(AbstractConnection *connection, NetworkMessageId messageId, MemoryBuffer &messageData)
Process network message either as client or as server.
Definition: ReplicationManager.cpp:357
Vector2 vertex2_
Vertex 2.
Definition: CollisionEdge2D.h:72
void Bounds(float *min, float *max, bool clipped=false) const
Stores the values of least and greatest RGB component at specified pointer addresses,...
Definition: Color.cpp:160
ea::unique_ptr< btBvhTriangleMeshShape > shape_
Bullet triangle mesh collision shape.
Definition: CollisionShape.h:88
float Volume() const
Return volume.
Definition: BoundingBox.h:312
PluginApplication * GetPluginApplication(const ea::string &name, bool ignoreUnloaded, unsigned *version=nullptr)
Find or load plugin application by name.
Definition: PluginManager.cpp:396
void HandleEndFrame(StringHash eventType, VariantMap &eventData)
Handle end of frame. Process the threaded log messages.
Definition: Log.h:184
ea::vector< ea::vector< SharedPtr< Geometry > > > geometries_
All geometries.
Definition: StaticModel.h:153
A base class for plugins of all kinds. It only provides a common plugin interface.
Definition: Plugin.h:31
bool IsAwake() const
Definition: RigidBody2D.cpp:502
void RefreshTextureEventSubscriptions()
Refresh subscriptions to texture events.
Definition: Material.cpp:1124
bool HasElementOrBlock(const char *name) const final
Definition: ArchiveBase.h:198
void SetAxisUpperThreshold(float threshold)
Set axis upper threshold. Axis value greater than threshold is interpreted as key press.
Definition: DirectionalPadAdapter.cpp:137
Vector2 vertex1_
Vertex 1.
Definition: CollisionEdge2D.h:70
T Min(T lhs, U rhs)
Definition: MathDefs.h:90
SDL_Window * GetWindow() const
Return SDL window.
Definition: Graphics.h:150
ea::vector< Matrix3x4 > skinMatrices_
Skinning matrices.
Definition: DecalSet.h:244
void SetScale(Vector3 value)
Set Scale.
Definition: Cone.cpp:99
void SetMaterialsAttr(const ResourceRefList &value)
Set materials attribute.
Definition: CustomGeometry.cpp:481
bool IsConnected() const override
Returns whether the engine is connected to VR session.
Definition: OpenXR.cpp:1497
void DynamicCast(const WeakPtr< U1, U2 > &rhs) noexcept
Perform a dynamic cast from a weak pointer of another type.
Definition: Ptr.h:539
Vector of vectors.
Definition: MultiVector.h:34
void GetChildrenRecursive(ea::vector< UIElement * > &dest) const
Return child elements recursively.
Definition: UIElement.cpp:2101
void SetCcdRadius(float radius)
Definition: RigidBody.cpp:395
void SetColorFrames(const ea::vector< ColorFrame > &colorFrames)
Set color animation of particles.
Definition: ParticleEffect.cpp:634
bool IsRunning() const override
Returns whether the VR frame loop is running.
Definition: OpenXR.cpp:1502
~BackgroundLoader() override
Destruct. Forcibly clear the load queue.
SphericalHarmonicsDot9()=default
Construct default.
bool IsInf() const
Return whether any element is Inf.
Definition: Matrix3.h:299
void StartWatching() override
Definition: MountedDirectory.cpp:60
TextureFormat GetDummyColorFormat() const
Return dummy color texture format for shadow maps. Is "NULL" (consume no video memory) if supported.
Definition: Graphics.h:213
float fadeTime_
Fade animation time.
Definition: StateManager.h:285
~ListView() override
Destruct.
virtual bool LoadProperty(GraphNodeProperty &prop)
Load property value.
Definition: ParticleGraphNode.cpp:229
static const ApplicationFlavor Platform
Definition: ApplicationFlavor.h:59
void Acquire()
Acquire the mutex. Block if already acquired.
Definition: Mutex.h:105
bool recreateConstraint_
Recreate constraint flag.
Definition: Constraint.h:231
SharedPtr< ParticleGraph > update_
Update graph.
Definition: ParticleGraphLayer.h:152
void SetMaxDirection(const Vector3 &direction)
Definition: ParticleEffect.cpp:495
bool MoveTo(CustomVariantValue &dest) override
Move-assign value to destination.
Definition: Variant.h:397
unsigned resizeNestingLevel_
Resize nesting level to prevent multiple events and endless loop.
Definition: UIElement.h:837
void Cleanup()
Clean up redundant free space. Not called in fast mode.
Definition: AreaAllocator.cpp:207
Description of index buffer data for asynchronous loading.
Definition: Model.h:81
unsigned GetPixelInt(int x, int y) const
Return a 2D pixel integer color. R component is in the 8 lowest bits.
Definition: Image.cpp:1582
int GetRows() const
Get Rows.
Definition: RenderBillboard.cpp:84
virtual void Render(const SharedRenderPassState &sharedState)
Execute render commands.
Definition: RenderPass.h:50
Movement HandleController(const JoystickState *state, float timeStep)
Handle controller input.
Definition: FreeFlyController.cpp:239
SharedPtr< Material > CreateMaterial(Texture2D *texture, BlendMode blendMode)
Create material by texture and blend mode.
Definition: Renderer2D.cpp:285
auto Begin()
Return array begin.
Definition: Array2D.h:218
float GetLinearDamping() const
Definition: RigidBody.cpp:604
Intersection TestOctant(const BoundingBox &box, bool inside) override
Intersection test for an octant.
Definition: OctreeQuery.cpp:54
BlendMode GetBlendMode() const
Definition: Technique.h:132
const Vector2 & GetMinAnchor() const
Definition: UIElement.h:528
~PipelineStateSubscription()
Destruct.
Definition: PipelineStateTracker.h:58
bool used_
Use flag.
Definition: OcclusionBuffer.h:62
void AddTrigger(const AnimationTriggerPoint &trigger)
Add a trigger point.
Definition: Animation.cpp:530
void OnNodeSet(Node *previousNode, Node *currentNode) override
Handle scene node being assigned at creation.
Definition: IKSolver.cpp:59
int y_
Y coordinate.
Definition: Vector2.h:180
Animated sprite component, it uses to play animation created by Spine (http://www....
Definition: AnimatedSprite2D.h:57
void AddSample(float value)
Accumulate a new datapoint.
Definition: Timer.cpp:255
ea::vector< AttributeInfo > attributes_
Attributes of the Serializable.
Definition: ObjectReflection.h:122
int RoundToInt(T x)
Definition: MathDefs.h:269
ea::string packageCacheDir_
Package cache directory.
Definition: Network.h:173
ea::span< ParticleGraphNodeInstance * > emitNodeInstances_
Node instances for emit graph.
Definition: ParticleGraphLayerInstance.h:148
@ IM_LINEAR
Linear interpolation (default).
Definition: ValueAnimation.h:44
Definition: NetworkValue.h:633
~SoundListener() override
Destruct.
void SetAngularVelocity(float angularVelocity)
Set angular velocity.
Definition: RigidBody2D.cpp:285
void SetEffectRoundStroke(bool roundStroke)
Definition: Text3D.cpp:304
virtual void OnRemoveFromOctree()
Handle removal from octree.
Definition: Drawable.h:420
ea::vector< SharedPtr< ResourceRouter > > resourceRouters_
Resource routers.
Definition: ResourceCache.h:247
Vector3 direction_
Direction (For direction based billboard only).
Definition: BillboardSet.h:52
bool CheckRemoteEvent(StringHash eventType) const
Return whether a remote event is allowed to be received.
Definition: Network.cpp:410
Intersection IsInside(const Sphere &sphere) const
Test if another sphere is inside, outside or intersects.
Definit