#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:225
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:133
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:288
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:584
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
unsigned GetMSec(bool reset=false)
Return elapsed milliseconds and optionally reset.
Definition: Timer.cpp:208
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:1099
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:155
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:63
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:163
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:108
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:1047
~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:74
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:50
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:351
StringVariantMap bundle_
Target state arguments.
Definition: StateManager.h:175
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
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:85
~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:1117
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
TextureFormat compressedFormat_
Compressed format.
Definition: Image.h:231
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:77
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:553
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:202
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:297
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:1887
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:313
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:173
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:280
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:102
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:216
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:312
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:381
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:407
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:221
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:1309
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:1444
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:428
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:58
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:739
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:39
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:337
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:1857
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:2142
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:164
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:194
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:133
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:188
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:106
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:199
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:276
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:233
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:90
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:251
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:144
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:366
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:105
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:40
bool IsArray() const
Definition: Image.h:123
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:194
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:539
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:182
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:206
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:401
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:273
~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:1344
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:183
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:423
Intersection IsInside(const Sphere &sphere) const
Test if another sphere is inside, outside or intersects.
Definition: Sphere.h:184
Two-dimensional vector.
Definition: Vector2.h:197
void SetMinTimeToLive(float time)
Definition: ParticleEffect.cpp:540
const VariantMap & GetVariantMap() const
Return a variant map or empty on type mismatch.
Definition: Variant.h:1480
SharedPtr< CameraProcessor > cameraProcessor_
Definition: SceneProcessor.h:146
static void RegisterObject(Context *context)
Definition: CrowdAgent.cpp:103
virtual void RemoveTile(const IntVector2 &tileIndex)
Remove tile from navigation mesh.
Definition: NavigationMesh.cpp:544
unsigned EvaluateInstanceSize() const override
Evaluate size required to place new node instance.
Definition: Cone.cpp:62
bool CheckDrawableFit(const BoundingBox &box) const
Check if a drawable object fits.
Definition: Octree.cpp:157
bool supportColorReadWrite_
Whether it's should be supported to read from and write to output color buffer simultaneously.
Definition: RenderPipelineDefs.h:217
int GetVelocityIterations() const
Definition: PhysicsWorld2D.h:222
ea::optional< ReturnType > UpdateAndSample(const NetworkValueType &value, const NetworkTime &time, float timeStep)
Update sampler state for new time and return current value.
Definition: NetworkValue.h:553
SharedPtr< ParticleGraphLayer > layer_
Reference to layer.
Definition: ParticleGraphLayerInstance.h:166
Static model component with fixed position in relation to the camera.
Definition: Skybox.h:33
void SetParent(UIElement *parent, unsigned index=M_MAX_UNSIGNED)
Set parent element. Same as parent->InsertChild(index, this).
Definition: UIElement.cpp:1462
RaytracingGeometryMaterial material_
Material.
Definition: RaytracerScene.h:106
WeakPtr(InterfaceType *ptr, RefCounted *refCounted) noexcept
Construct from separate pointers.
Definition: Ptr.h:393
static ea::string GetShaderFileList()
Return global list of shader files.
Definition: Shader.cpp:302
void GetRawData(const unsigned char *&vertexData, unsigned &vertexSize, const 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:222
Vector3 center_
Sphere center.
Definition: Sphere.h:225
float rotation_
Rotation.
Definition: BillboardSet.h:50
bool IsZoneDirty() const
Return whether current zone is inconclusive or dirty due to the drawable moving.
Definition: Drawable.h:375
unsigned GetCacheIndex(StringHash type) const
Return cache index for given type.
Definition: SubsystemCache.cpp:71
FontFace(Font *font)
Construct.
Definition: FontFace.cpp:37
void RemoveAllNetworkObjects()
Definition: ReplicationManager.cpp:99
bool IsInf() const
Return whether any component is Inf.
Definition: Vector3.h:429
Spriter::Entity * GetEntity() const
Return current entity.
Definition: SpriterInstance2D.h:70
void AddNavigable(RmlNavigable *navigable)
Definition: RmlNavigationManager.cpp:206
bool depthTest_
Whether to enable the depth test when rendering the text.
Definition: Text3D.h:270
Viewport * viewport_
Destination viewport.
Definition: Drawable.h:112
FontType fontType_
Font type.
Definition: Font.h:116
BakedLightmap(unsigned lightmapSize)
Construct.
Definition: BakedLightCache.h:46
bool operator<(const PipelineBatchByState &rhs) const
Compare sorted batches.
Definition: PipelineBatchSortKey.h:119
Vector3 position_
Hit worldspace position.
Definition: PhysicsWorld.h:88
int positionIterations_
Position iterations.
Definition: PhysicsWorld2D.h:255
Helper class to translate controller hat position.
Definition: InputMap.h:94
float GetLinearRestThreshold() const
Definition: RigidBody.cpp:599
SetUniform(Context *context)
Construct.
Definition: Uniform.cpp:97
bool GetData(unsigned level, void *dest)
Get data from a mip level. The destination buffer must be big enough. Return true if successful.
Definition: Texture3D.cpp:176
RepeatForever(Context *context)
Construct.
Definition: Repeat.cpp:179
void InitializeFromSnapshot(NetworkFrame frame, Deserializer &src, bool isOwned) override
Read full snapshot and initialize object. Called once.
Definition: ReplicatedAnimation.cpp:89
static void RegisterObject(Context *context)
Definition: TmxFile2D.cpp:388
ResourceRef GetAnimationSetAttr() const
Return animation set attribute.
Definition: AnimatedSprite2D.cpp:204
void ClearTexture()
Set texture color to transparent.
Definition: RmlCanvasComponent.cpp:140
void SetViewMask(unsigned mask)
Definition: Drawable.cpp:199
BakedSceneBackgroundArrayPtr backgrounds_
Background.
Definition: RaytracerScene.h:180
ea::string_view GetName() const
Return name of the archive if applicable.
Definition: XMLArchive.h:41
float height_
Agent's height, if 0 the navigation mesh's setting will be used.
Definition: CrowdAgent.h:273
bool Equals(const Vector4 &rhs, float eps=M_EPSILON) const
Test for equality with another vector with epsilon.
Definition: Vector4.h:206
virtual void Update(const FrameInfo &frame)
Update before octree reinsertion. Is called from a worker thread.
Definition: Drawable.h:226
void SetSpriterAnimation()
Handle set spriter animation.
Definition: AnimatedSprite2D.cpp:385
int languageIndex_
Index of current language.
Definition: Localization.h:76
float GetMinEmissionRate() const
Definition: ParticleEffect.h:342
static void RegisterObject(Context *context)
Definition: PListFile.cpp:306
void * instancingData_
Per-instance data. If not null, must contain enough data to fill instancing buffer.
Definition: Drawable.h:177
Color color_
Light color.
Definition: BakedLight.h:65
Matrix3 RotationMatrix() const
Return the rotation matrix with scaling removed.
Definition: Matrix4.h:536
bool subscribed_
Flag for whether is subscribed to animation updates.
Definition: Material.h:382
short texHeight_
Height in texture.
Definition: FontFace.h:49
SharedPtr< ActionState > StartAction(Object *target) override
Create new action state from the action.
Definition: Move.cpp:552
bool SaveLayout(Serializer &dest, UIElement *element)
Save a UI layout to an XML file. Return true if successful.
Definition: UI.cpp:565
bool WriteString(ea::string_view value)
Write a null-terminated string.
Definition: Serializer.cpp:189
ParticleGraphNodeInstance * CreateInstanceAt(void *ptr, ParticleGraphLayerInstance *layer) override
Place new instance at the provided address.
Definition: WorldToLocal.cpp:59
void HandleModelReloadFinished(StringHash eventType, VariantMap &eventData)
Update trimesh or convex shape after a model has reloaded itself.
Definition: CollisionShape.cpp:1196
unsigned indexCount_
Number of indices.
Definition: CollisionShape.h:124
TerrainPatch * GetSouthPatch() const
Return south neighbor patch.
Definition: TerrainPatch.h:93
Rml::DataModelHandle dataModel_
Data model for the document.
Definition: RmlUIComponent.h:206
bool Save(Serializer &dest) const override
Save resource. Return true if successful.
Definition: ParticleEffect2D.cpp:229
void OnSetEnabled() override
Handle enabled/disabled state change.
Definition: TriggerAnimator.cpp:106
ea::vector< Vector3 > outFace_
Internal vector for the new face being constructed.
Definition: Polyhedron.h:118
void WriteUnreliableDelta(NetworkFrame frame, Serializer &dest) override
Write unreliable delta update.
Definition: BehaviorNetworkObject.cpp:333
unsigned RecalculatePipelineStateHash() const override
Recalculate hash of pipeline state configuration.
Definition: Technique.cpp:216
ActionBuilder & BounceOut()
Combine with BounceOut action.
Definition: ActionBuilder.cpp:312
Material * customMaterial_
Custom material.
Definition: UIBatch.h:97
AsyncLoadState GetAsyncLoadState() const
Return the asynchronous loading state.
Definition: Resource.h:138
unsigned version_
Current plugin version.
Definition: Plugin.h:73
void * GetHandle() const
Return the file handle.
Definition: File.h:101
ea::vector< QueuedTextElement > newTextNodes_
New text elements that aren't cached yet.
Definition: TextRenderer3D.h:167
unsigned dataSize_
Vertex data size.
Definition: Model.h:75
int y_
Y coordinate.
Definition: Vector3.h:178
Vector3 GetVector3(const BoundingBox &boundingBox)
Return random 3D vector in 3D volume.
Definition: RandomEngine.h:119
const ea::string & GetEntryName(unsigned index) const
Return a file name in the package at the specified index.
Definition: PackageFile.h:92
void Seek(float seekTime)
Seek to time.
Definition: SoundSource.cpp:158
float GetFrequencyHz() const
Definition: ConstraintMouse2D.h:67
Action manager.
Definition: ActionManager.h:39
ParticleGraphSpan GetSpan(unsigned attrIndex) const
Get span by attribute index.
Definition: ParticleGraphMemory.h:76
Queued remote event.
Definition: Connection.h:49
void SetWrapMode(WrapMode wrapMode)
Set wrap mode.
Definition: ValueAnimationInfo.h:57
Asynchronous loading progress of a scene.
Definition: Scene.h:60
unsigned GetRequiredMemory() const
Get amount of required memory to host intermediate values.
Definition: ParticleGraphMemory.h:114
void SetModelShape(ShapeType shapeType, Model *model, unsigned lodLevel, const Vector3 &scale, const Vector3 &position, const Quaternion &rotation)
Set as specified shape type using model and LOD.
Definition: CollisionShape.cpp:1128
void SetHighLimit(const Vector2 &limit)
Definition: Constraint.cpp:271
Matrix3x4 model_
Model matrix.
Definition: OcclusionBuffer.h:69
Variant GetAttribute(unsigned index) const
Definition: Serializable.cpp:525
A span in delta update buffer corresponding to the update data of the individual NetworkObject.
Definition: ServerReplicator.h:77
void HandleNavMeshChanged(StringHash eventType, VariantMap &eventData)
Handle navigation mesh changed event. It can be navmesh being rebuilt or being removed from its node.
Definition: CrowdManager.cpp:720
float offsetX_
X offset for viewport transform.
Definition: OcclusionBuffer.h:223
unsigned objectIndex_
Object index.
Definition: RaytracerScene.h:92
const ea::vector< ea::vector< unsigned > > & GetGeometryBoneMappings() const
Return per-geometry bone mappings.
Definition: AnimatedModel.h:146
TrailPoint endTail_
End of trail point for smoother tail disappearance.
Definition: RibbonTrail.h:285
float GetMasterGain(const ea::string &type) const
Definition: Audio.cpp:312
Parameters for initializing a VR session.
Definition: VirtualReality.h:22
Definition: PrefabReader.h:40
SharedPtr< XMLFile > loadParameters_
Parameter file acquired during BeginLoad.
Definition: Texture2D.h:75
void ResetToDefault()
Reset resource state to default.
Definition: Animation.cpp:96
~NavigationMesh() override
Destruct.
Definition: NavigationMesh.cpp:154
TextEffect
Text effect.
Definition: Text.h:39
const Vector3 & GetVelocity() const
Get movement velocity in node's local space.
Definition: MoveAndOrbitComponent.h:48
bool BeginLoad(Deserializer &source) override
Load resource from stream. May be called from a worker thread. Return true if successful.
Definition: Technique.cpp:259
unsigned offset_
Offset of element from vertex start. Filled by VertexBuffer once the vertex declaration is built.
Definition: GraphicsDefs.h:132
unsigned GetAttributeIndex() const
Get attribute index for sparse span.
Definition: ParticleGraphPin.h:99
Color startColor_
Color for start of trails.
Definition: RibbonTrail.h:256
AttributeFromTo(Context *context)
Construct.
Definition: Attribute.cpp:76
bool operator==(const TextParams3D &rhs) const
Compare to another object.
Definition: TextRenderer3D.h:86
ea::vector< HighPrecisionSphere > circumspheres_
Circumspheres of mesh tetrahedrons.
Definition: TetrahedralMesh.h:372
Vector4 GetBarycentricCoords(unsigned tetIndex, const Vector3 &position) const
Calculate barycentric coordinates for tetrahedron.
Definition: TetrahedralMesh.cpp:260
void SetRotation(const Quaternion &rotation)
Definition: RigidBody.cpp:240
bool WriteFloat(float value)
Write a float.
Definition: Serializer.cpp:88
Scene pass with batches sorted by render order and distance back to front.
Definition: ScenePass.h:85
void SetPositionDelta(const Vector3 &delta)
Set position delta.
Definition: Move.cpp:492
void Clip(const IntRect &rect)
Definition: Rect.cpp:40
IntVector2 lastNumVertices_
Terrain size in vertices at the time of last update.
Definition: Terrain.h:357
DebugHud * CreateDebugHud()
Create the debug hud.
Definition: Engine.cpp:801
Vector3 start_
Start position.
Definition: DebugRenderer.h:59
Allocator node.
Definition: Allocator.h:54
bool IsResolveDirty() const
Definition: RenderSurface.h:126
unsigned maxTriangles_
Maximum number of triangles.
Definition: OcclusionBuffer.h:199
void StoreObject(const XMLElement &objectElem, const SharedPtr< TileMapObject2D > &object, const TileMapInfo2D &info, bool isTile=false)
Store object.
Definition: TmxFile2D.cpp:249
void SetChecked(bool enable)
Definition: CheckBox.cpp:89
void SetFrequencyHz(float frequencyHz)
Definition: ConstraintMouse2D.cpp:81
const Variant & GetMetadata(const StringHash &key) const
Return attribute metadata.
Definition: Attribute.h:123
Quaternion GetRotation() const
Get wheel node rotation relative to connection point.
RayQueryLevel level_
Raycast detail level.
Definition: OctreeQuery.h:261
void SetViewport(unsigned index, Viewport *viewport)
Definition: Renderer.cpp:303
const ea::string & GetApiName() const
Definition: Graphics.h:158
GraphPinRef< GraphOutPin > GetOutput(const ea::string_view name)
Get output pin by name.
Definition: GraphNode.cpp:187
bool IsCompressed() const
Definition: PackageFile.h:86
StringVector GetStringVector() const
Return a string vector attribute, or empty if missing.
Definition: XMLElement.cpp:1001
int readHandle_
Pipe handle.
Definition: NamedPipe.h:78
unsigned numTriangles_
Number of rendered triangles.
Definition: OcclusionBuffer.h:197
void DrawDebugGeometry(DebugRenderer *debug, bool depthTest) override
Visualize the component as debug geometry.
Definition: LightProbeGroup.cpp:87
@ USE_NO_EVENT
Bitmask for not using any events.
Definition: LogicComponent.h:36
void SetTrigger(unsigned index, const AnimationTriggerPoint &trigger)
Definition: Animation.cpp:519
void EndUpdate(DrawableProcessor *drawableProcessor, LightProcessorCallback *callback, unsigned pcfKernelSize)
End update from main thread.
Definition: LightProcessor.cpp:285
ea::string name_
Base plugin file name.
Definition: Plugin.h:69
void Clip(const Plane &plane)
Clip with a plane.
Definition: Polyhedron.cpp:97
void UpdateGeometry(const FrameInfo &frame) override
Prepare geometry for rendering. Called from a worker thread if possible (no GPU update).
Definition: Text3D.cpp:177
void SetAreaCost(unsigned areaID, float cost)
Set the cost of an area.
Definition: NavigationMesh.cpp:842
void HandleResourceReloaded(StringHash eventType, VariantMap &eventData)
Handle resource reloading.
Definition: RmlUI.cpp:877
Vector3 EvaluateAverage() const
Evaluate average.
Definition: SphericalHarmonics.h:231
Vector2 ReadVector2()
Read a Vector2.
Definition: Deserializer.cpp:169
Color(const Vector3 &color)
Construct from 3-vector.
Definition: Color.h:107
void SetMaxVelocity(float velocity)
Definition: ParticleEffect.cpp:555
bool ToggleFullscreen()
Toggle between full screen and windowed mode. Return true if successful.
Definition: Graphics.cpp:362
ea::string loadMaterialName_
Material name acquired during BeginLoad().
Definition: ParticleEffect.h:506
UI subsystem. Manages the graphical user interface.
Definition: RmlUI.h:62
bool SaveJSON(JSONValue &dest) const override
Save as JSON data. Return true if successful.
Definition: Animatable.cpp:215
StaticModel(Context *context)
Construct.
Definition: StaticModel.cpp:46
unsigned GetLodLevel() const
Definition: CollisionShape.h:260
StringHash GetNameHash() const
Return name hash.
Definition: GraphNode.h:92
void OnNodeSet(Node *previousNode, Node *currentNode) override
Handle node being assigned.
Definition: Obstacle.cpp:85
int dragConfirmedCount_
Number of elements in dragElements_ with dragPending = false.
Definition: UI.h:479
VariantMap nodeCollisionData_
Preallocated event data map for node collision events.
Definition: PhysicsWorld.h:379
unsigned ToUIntMask(const ChannelMask &mask) const
Return color packed to a 32-bit integer with arbitrary channel mask. Components are clamped to [0,...
Definition: Color.cpp:44
Definition: ReflectionProbe.h:130
SpriteSheet2D * GetSpriteSheet() const
Return sprite sheet.
Definition: Sprite2D.h:91
Polyhedron(const ea::vector< ea::vector< Vector3 > > &faces)
Construct from a list of faces.
Definition: Polyhedron.h:52
CollisionEventMode GetCollisionEventMode() const
Definition: RigidBody.h:280
void SetEventData(const StringVariantMap &eventArgs)
Set event args.
Definition: CallFunc.h:128
void GetBatchesWithOffset(IntVector2 &offset, ea::vector< UIBatch > &batches, ea::vector< float > &vertexData, IntRect currentScissor)
Get UI rendering batches with a specified offset. Also recurse to child elements.
Definition: UIElement.cpp:1878
const VariantCurve & GetVariantCurve() const
Return a VariantCurve or identity on type mismatch.
Definition: Variant.cpp:679
float GetMaxMotorTorque() const
Definition: ConstraintWheel2D.h:80
virtual bool Filter(Node *node)
Filter entering node. Returns true if the trigger should react on the object.
Definition: TriggerAnimator.cpp:95
const Vector2 & GetHeightRange() const
Return min and max height of the navigation mesh, i.e. min and max Y value in world space.
Definition: NavigationMesh.h:227
void Remove()
Remove from the parent element. If no other shared pointer references exist, causes immediate deletio...
Definition: UIElement.cpp:1450
void SetPivot(const Vector2 &pivot)
Definition: UIElement.cpp:827
const ea::string & GetPixelShaderDefineExcludes() const
Definition: Technique.h:182
bool hardwareSkinningSupported_
Whether hardware skinning is supported.
Definition: Renderer.h:381
void SetBringToFront(bool enable)
Definition: UIElement.cpp:887
typename std::underlying_type< enum_type >::type underlying_integer_type
Integer type.
Definition: FlagSet.h:273
void DisconnectRemovedTetrahedrons(const ea::vector< unsigned > &removedTetrahedrons)
Disconnect removed tetrahedrons from the rest.
Definition: TetrahedralMesh.cpp:751
void MarkDecalsDirty()
Mark decals and the bounding box dirty.
Definition: DecalSet.cpp:988
bool IsActive() const
Returns true if this action is actively being used.
Definition: VirtualReality.h:89
SharedPtr< Button > okButton_
OK button.
Definition: FileSelector.h:184
bool cameraIsInsideLightVolume_
Definition: LightProcessor.h:159
const Vector2 & GetOwnerBodyGroundAnchor() const
Definition: ConstraintPulley2D.h:62
float brakingForce_
Rotational momentum preventing (dampening) wheels rotation.
Definition: RaycastVehicle.h:171
const std::type_info & typeInfo_
Type info.
Definition: Variant.h:265
int GetHeight() const
Return height.
Definition: TmxFile2D.h:57
void SetMaxPingIntervalMs(unsigned interval)
Set max allowed ping by server.
Definition: Network.cpp:320
~SimpleNavBuildData() override
Descturctor.
Definition: NavBuildData.cpp:60
Graph node execution flow "exit" pin. May be connected to one "enter" pins.
Definition: GraphPin.h:144
Node * AddCheckedNode(IKNodeCache &nodeCache, const ea::string &name) const
Add node that should be checked for existence before solving.
Definition: IKSolverComponent.cpp:131
bool DirExists(const ea::string &pathName) const
Check if a directory exists.
Definition: FileSystem.cpp:891
ActionBuilder & BackOut()
Combine with BackOut action.
Definition: ActionBuilder.cpp:294
static void RegisterObject(Context *context)
Definition: ValueAnimation.cpp:66
HttpRequestState GetState() const
Definition: HttpRequest.cpp:307
void UpdateBatches(const FrameInfo &frame) override
Calculate distance and prepare batches for rendering. May be called from worker thread(s),...
Definition: StaticModel.cpp:142
Matrix3x4 customWorldTransform_
Custom world transform for facing the camera automatically.
Definition: Text3D.h:260
BaseIterator operator+(unsigned diff) const
Advance by N.
Definition: MultiVector.h:90
bool Empty() const
Return whether the collection is empty.
Definition: LightProbeGroup.h:98
float ProjectOntoAxis(const Vector2 &axis) const
Project vector onto axis.
Definition: Vector2.h:333
void Subscribe(Receiver *receiver, Callback handler)
Subscribe to event. Callback receives only signal arguments.
Definition: Signal.h:254
ResourceRefList materialsAttr_
Material list attribute.
Definition: CustomGeometry.h:153
Definition: BehaviorNetworkObject.h:123
LightImportance
Light importance.
Definition: Light.h:55
const Vector3 & GetScaleDelta() const
Get scale delta.
Definition: Move.h:130
ea::vector< Component * > GetGeometriesInFrustum(const IntVector3 &chunkIndex, const Frustum &frustum) override
Return geometries intersecting given frustum. The frustum is guaranteed to contain specified chunk.
Definition: BakedSceneCollector.cpp:305
Sprite2D * GetSprite() const
Definition: ParticleEmitter2D.cpp:138
DragAndDropMode
Definition: UIElement.h:104
XML attribute reference for input and output archives.
Definition: XMLArchive.h:63
float GetRowHeight() const
Definition: Text.h:200
static Quaternion FromAngularVelocity(const Vector3 &angularVelocity)
Definition: Quaternion.cpp:178
std::atomic_uint32_t pipelineStateHash_
Cached hash.
Definition: PipelineStateTracker.h:125
Definition: NavBuildData.h:88
void SetWorldPosition(const Vector3 &position)
Definition: Constraint.cpp:251
float GetElapsedTime()
Definition: Timer.cpp:155
void RemoveAllItems()
Remove all items.
Definition: DropDownList.cpp:176
ea::string GetName() const
Definition: XMLElement.cpp:632
PointerAdapterFlags enabledSubscriptions_
Enabled subscriptions.
Definition: PointerAdapter.h:106
AttributeInfo * GetAttribute(StringHash objectType, const char *name)
Return a specific attribute description for an object, or null if not found.
Definition: Context.cpp:293
void MarkPositionsDirty()
Mark billboard vertex buffer to need an update.
Definition: BillboardSet.cpp:833
bool RequestNeededPackages(unsigned numPackages, MemoryBuffer &msg)
Check a package list received from server and initiate package downloads as necessary....
Definition: Connection.cpp:788
2D mouse constraint component.
Definition: ConstraintMouse2D.h:31
void MarkEndPointDirty()
Mark end point dirty.
Definition: OffMeshConnection.h:87
Definition: ActionState.h:34
static const unsigned FIRST_REPLICATED_ID
TODO: Get rid of "replicated" word in the code. It is not used in the networking code anymore.
Definition: Scene.h:45
float agentRadius_
Navigation agent radius.
Definition: NavigationMesh.h:370
Variant(bool value)
Construct from a bool.
Definition: Variant.h:524
Base class for generic IK chain.
Definition: InverseKinematics.h:158
WeakPtr< AnimationStateSource > animationStateSource_
Component that provides animation states for the model.
Definition: AnimatedModel.h:212
void SetTitle(const ea::string &text)
Definition: FileSelector.cpp:185
VerticalAlignment verticalAlignment_
Vertical alignment.
Definition: TextRenderer3D.h:54
unsigned shadowMask_
Shadow mask.
Definition: Drawable.h:471
void ProcessMessage(const ClockSynchronizerMessage &msg)
Process incoming message. Should be called as soon as possible.
Definition: ClockSynchronizer.cpp:150
StringHash nameHash_
Name hash.
Definition: GraphNode.h:181
const TypeInfo * baseTypeInfo_
Base class type info.
Definition: TypeInfo.h:62
bool GetEnableLimit() const
Definition: ConstraintPrismatic2D.h:79
void SetMaxSubSteps(int num)
Definition: PhysicsWorld.cpp:405
Intersection IsInsideFast(const BoundingBox &box) const
Test if another bounding box is (partially) inside or outside.
Definition: BoundingBox.h:357
JSONNumberType
JSON number type.
Definition: JSONValue.h:56
b2Fixture * fixture_
Box2D fixture.
Definition: CollisionShape2D.h:132
~Texture3D() override
Destruct.
Definition: Texture3D.cpp:47
void InitializeVirtualFileSystem(bool enableResourceRootFile)
Initialize virtual filesystem. Implicitly called by Initialize.
Definition: Engine.cpp:590
Vector4(const float data[]) noexcept
Construct from a float array.
Definition: Vector4.h:74
const IntRect & GetRect() const
Definition: Viewport.h:90
void Open(const ea::string &fileName)
Open the log file.
Definition: Log.cpp:378
unsigned short ReadUShort()
Read a 16-bit unsigned integer.
Definition: Deserializer.cpp:108
Base action state.
Definition: BaseAction.h:37
void OnNodeSet(Node *previousNode, Node *currentNode) override
Handle scene node being assigned at creation.
Definition: KinematicCharacterController.cpp:126
Baked lightmap data.
Definition: BakedLightCache.h:41
const T & GetValue() const
Get const value.
Definition: Variant.h:383
bool Rebuild()
Rebuild the navigation mesh allocating sufficient maximum number of tiles. Return true if successful.
Definition: NavigationMesh.cpp:432
const ea::string & GetDirectory() const
Get mounted directory path.
Definition: MountedDirectory.h:61
void SetUpdateInvisible(bool enable)
Definition: ParticleEffect.cpp:450
void SetSpeed(float speed)
Set speed.
Definition: ValueAnimationInfo.h:60
float length_
Animation length.
Definition: Animation.h:168
virtual void OnPositionSet(const IntVector2 &newPosition)
React to position change.
Definition: UIElement.h:197
void SetUserExtensions(const StringVector &extensions)
Configure the user extensions. Should be called before InitializeSystem.
Definition: OpenXR.h:216
int tileSize_
Tile size.
Definition: NavigationMesh.h:360
void Define(const Vector3 ¢er, float radius)
Define from center and radius.
Definition: Sphere.h:113
LightMode GetLightMode() const
Return light mode.
Definition: Light.h:281
Definition: BreakInstance.h:51
Pass * GetDefaultPass() const
Return default pass. Used by UI materials. It's base pass of 0-th technique assigned to Material.
Definition: Material.cpp:927
SharedPtr< ActionState > StartAction(Object *target) override
Create new action state from the action.
Definition: Move.cpp:423
void StopApplication()
Stop plugin application for all loaded plugins.
Definition: PluginManager.cpp:299
Instance of particle graph layer in emitter.
Definition: ParticleGraphLayerInstance.h:62
@ DD_SOURCE
Drag and drop source flag.
Definition: UIElement.h:109
MultitouchAdapter(Context *context)
Construct.
Definition: MultitouchAdapter.cpp:33
int BuildTile(ea::vector< NavigationGeometryInfo > &geometryList, int x, int z, TileCacheData *tiles)
Build one tile of the navigation mesh. Return true if successful.
Definition: DynamicNavigationMesh.cpp:564
Vector2 TileIndexToPosition(int x, int y) const
Convert tile index to position.
Definition: TileMapDefs2D.cpp:71
bool EvaluateToBool(const XMLElement &element) const
Evaluate XPath query and expecting a boolean return value.
Definition: XMLElement.cpp:1260
ea::vector< Particle > particles_
Particles.
Definition: ParticleEmitter.h:147
ea::map< ea::string, SharedPtr< XRActionGroup > > actionSets_
Table of action sets registered.
Definition: VirtualReality.h:318
bool GetSearchPackagesFirst() const
Definition: ResourceCache.h:184
~ImageCube() override
Destruct.
Polyhedron(const BoundingBox &box)
Construct from a bounding box.
Definition: Polyhedron.h:58
Signal< void(ObjectReflection *), ObjectReflectionRegistry > OnReflectionRemoved
Definition: ObjectReflection.h:132
bool GetDrawNavAreas() const
Definition: NavigationMesh.h:310
void SetNavigationMesh(NavigationMesh *navMesh)
Definition: CrowdManager.cpp:272
LoopMode
Loop Mode.
Definition: SpriterInstance2D.h:38
int getDebugMode() const override
Return debug draw flags.
Definition: PhysicsWorld.h:179
unsigned navigationMeshId_
The NavigationMesh component Id for pending crowd creation.
Definition: CrowdManager.h:219
ea::span< T > MakeSpan(ea::span< uint8_t > buffer) const
Make a span of type T from memory buffer.
Definition: ParticleGraphMemory.h:44
Vector2 patchWorldSize_
Size of a patch on the XZ-plane.
Definition: Terrain.h:353
void RequestPackage(const ea::string &name, unsigned fileSize, unsigned checksum)
Initiate a package download.
Definition: Connection.cpp:865
int width_
Width.
Definition: Image.h:215
float detailSampleMaxError_
Detail sampling maximum error.
Definition: NavigationMesh.h:386
float radialAcceleration_
Radial acceleration.
Definition: ParticleEmitter2D.h:60
bool operator<(const WeakPtr< U1, U2 > &rhs) const noexcept
Test for less than with another weak pointer.
Definition: Ptr.h:508
void SetName(const ea::string &name)
Name must be set right after creating a plugin object.
Definition: Plugin.h:40
WeakPtr< Scene > scene_
Associated scene for shader parameter animation updates.
Definition: Material.h:388
bool SetAnimation(int index, LoopMode loopMode=Default)
Set current animation.
Definition: SpriterInstance2D.cpp:84
bool IsInside(const Ray &ray) const
Return whether or not the ray is inside geometry.
Definition: Geometry.cpp:339
bool SetMatrix3x4(const ea::string &name, const Matrix3x4 &value)
Set a Matrix3x4 attribute.
Definition: XMLElement.cpp:607
File(Context *context)
Construct.
Definition: File.cpp:71
unsigned GetShadersLoadedFrameNumber() const
Return last shaders loaded frame number.
Definition: Technique.h:143
const Frustum & GetFrustum() const
Definition: Camera.cpp:290
ea::queue< QueueItem > stateQueue_
Queue of application states.
Definition: StateManager.h:267
void ClearData()
Wipes the buffer clean.
Definition: Microphone.cpp:68
ea::span< unsigned > destructionQueue_
Particle indices to be removed.
Definition: ParticleGraphLayerInstance.h:160
bool SetSize(int width, int height, bool threaded)
Set occlusion buffer size and whether to reserve multiple buffers for threading optimization.
Definition: OcclusionBuffer.cpp:60
void OnMarkedDirty(Node *node) override
Handle node transform being dirtied.
Definition: AnimatedModel.cpp:819
void SetCylinder(float diameter, float height, const Vector3 &position=Vector3::ZERO, const Quaternion &rotation=Quaternion::IDENTITY)
Set as a cylinder.
Definition: CollisionShape.cpp:622
void SetTemperature(float temperature)
Definition: Light.cpp:288
static const IntVector3 UP_FORWARD_RIGHT
(1, 2, 0) coordinate system.
Definition: RaycastVehicle.h:141
void InitiateTransition()
Initiate state transition if necessary.
Definition: StateManager.cpp:518
virtual bool IsDone() const
Gets a value indicating whether this instance is done.
Definition: ActionState.h:57
Vector3 baseVelocity_
Base velocity applied to the trail.
Definition: RibbonTrail.h:223
Color(float r, float g, float b, float a) noexcept
Construct from RGBA values.
Definition: Color.h:86
StringHash GetPostUpdateEvent() const override
Return post update event type. Should stay the same for any given instance of the component.
Definition: IKSolver.h:47
void SetVertex2(const Vector2 &vertex)
Definition: CollisionEdge2D.cpp:65
bool IsValid() const
Return whether the range is valid.
Definition: NumericRange.h:46
Geometry * GetGeometry() const
Return visible geometry.
Definition: TerrainPatch.cpp:270
BakedSceneBackgroundArrayPtr GetBackgrounds() override
Return all scene backgrounds. [0] is expected to be pitch-black background.
Definition: BakedSceneCollector.cpp:216
float projOffsetScaleY_
Combined Y projection and viewport transform.
Definition: OcclusionBuffer.h:229
~BinaryFile() override
Destruct.
bool BeginLoad(Deserializer &source) override
Load resource from stream. May be called from a worker thread. Return true if successful.
Definition: ParticleEffect.cpp:101
JoystickDeviceType type_
Joystick device type.
Definition: Input.h:131
Definition: WorkQueue.h:117
virtual bool Compare(const CustomVariantValue &) const
Compare to another custom value.
Definition: Variant.h:255
XrSpaceVelocity headVelocity_
Velocity tracking information of the head.
Definition: OpenXR.h:307
bool readdBody_
Readd body to world flag.
Definition: RigidBody.h:347
int GetHeight() const
Definition: TileMapLayer2D.cpp:279
void OnUpdateBegin(const CommonFrameInfo &frameInfo) override
Definition: BatchCompositor.cpp:80
BoneCollisionShapeFlags shapeFlags_
Definition: ModelView.h:240
const float * Data() const
Return float data.
Definition: Vector2.h:400
int GetBaseIndent() const
Definition: ListView.h:176
Vector4 vOffset_
Transform for V coordinate.
Definition: RaytracerScene.h:60
void Patch(XMLFile *patchFile)
Patch the XMLFile with another XMLFile. Based on RFC 5261.
Definition: XMLFile.cpp:226
bool visible_
Visible flag.
Definition: Terrain.h:373
void SetTextureFrame(unsigned index, const TextureFrame &textureFrame)
Set number of texture animation frames.
Definition: ParticleEffect.cpp:714
StringHash RegisterString(const StringHash &hash, ea::string_view string)
Register string for hash reverse mapping. Could be used from StringHash ctor.
Definition: StringHashRegister.cpp:48
UIElement * GetItem(unsigned index) const
Definition: DropDownList.cpp:201
Sphere() noexcept
Construct undefined.
Definition: Sphere.h:57
TrailType trailType_
Trail type.
Definition: RibbonTrail.h:221
float AbsDotProduct(const Vector3 &rhs) const
Calculate absolute dot product.
Definition: Vector3.h:352
void SortColorFrames()
Sort the list of color frames based on time.
Definition: ParticleEffect.cpp:658
float GetTimeStep() const
Definition: Timer.h:103
ea::vector< Billboard > & GetBillboards()
Return all billboards.
Definition: BillboardSet.h:125
Color savedFogColor_
Saved fog color to be restored at deactivation.
Definition: StateManager.h:156
ea::string eventType_
Name of the event to send.
Definition: CallFunc.h:138
IntRect resizeBorder_
Resize area width at edges.
Definition: Window.h:170
float RollAngle() const
Definition: Quaternion.cpp:228
void SetDisabledOffset(const IntVector2 &offset)
Definition: BorderImage.cpp:121
PrimitiveType type_
Primitive type.
Definition: Model.h:97
void CalculateHullNormals(const TetrahedralMeshSurface &hullSurface)
Calculate hull normals.
Definition: TetrahedralMesh.cpp:1069
void AddNode(const pugi::xml_node &patch, const pugi::xpath_node &original) const
Add a node in the Patch.
Definition: XMLFile.cpp:312
bool used_
Used flag.
Definition: FontFace.h:63
void RemoveSubscriberReference(PipelineStateTracker *subscriber)
Remove reference to subscriber pipeline state tracker.
Definition: PipelineStateTracker.cpp:62
const AttributeInfo & attributeInfo_
Attribute information.
Definition: Animatable.h:61
const ea::string & GetTypeName() const
Return type name.
Definition: TypeInfo.h:52
bool LoadXML(const XMLElement &source)
Load from XML data. Return true if successful.
Definition: ValueAnimation.cpp:91
LightCalculationProperties properties_
Calculation properties.
Definition: LightBakingSettings.h:218
const FontGlyph * glyph_
Glyph.
Definition: Text.h:72
const ResourceRefList & GetMaterialsAttr() const
Return materials attribute.
Definition: StaticModel.cpp:396
Attribute layout.
Definition: ParticleGraphMemory.h:80
Matrix2() noexcept
Construct an identity matrix.
Definition: Matrix2.h:35
const BiasParameters & GetDepthBias() const
Definition: Material.h:288
int rotationTouchId_
Touch id for rotation gesture.
Definition: MoveAndOrbitController.h:132
void SetGraph(Graph *scene, unsigned id)
Set graph and id. Called by Graph.
Definition: GraphNode.cpp:268
void SetTargetVelocity(const Vector3 &velocity)
Definition: CrowdAgent.cpp:342
static void RegisterObject(ParticleGraphSystem *context)
Register particle node factory.
Definition: EmitterPosition.cpp:38
ea::vector< OcclusionBufferData > buffers_
Highest-level buffer data per thread.
Definition: OcclusionBuffer.h:187
bool HasVariable(const ea::string &name) const
Return whether variable is explicitly defined.
Definition: ConfigFile.cpp:106
Variant(float value)
Construct from a float.
Definition: Variant.h:530
void SetEffect(ParticleGraphEffect *effect)
Set particle effect.
Definition: ParticleGraphEmitter.cpp:116
void SetSwapXY(bool swapXY)
Definition: StaticSprite2D.cpp:146
ConstraintRope2D(Context *context)
Construct.
Definition: ConstraintRope2D.cpp:35
ResourceRef GetFontAttr() const
Return font attribute.
Definition: Text3D.cpp:595
bool kinematic_
Kinematic flag.
Definition: RigidBody.h:341
SDL_GameController * controller_
SDL game controller.
Definition: Input.h:135
AutoRemoveMode autoRemove_
Automatic removal mode.
Definition: ParticleEmitter.h:165
bool IsEditable() const
Definition: UIElement.h:603
bool autoVisibleOnError_
Auto visible on error flag.
Definition: Console.h:107
SharedPtr< FileWatcher > fileWatcher_
File watcher for resource directory, if automatic reloading enabled.
Definition: MountedDirectory.h:83
Texture2D * GetTexture() const
Definition: SceneRendererToTexture.h:62
void UpdateFadeOverlay(float t)
Update fade overlay size and transparency.
Definition: StateManager.cpp:480
void SetTransitionState(TransitionState state)
Set current transition state and initialize related values.
Definition: StateManager.cpp:435
bool Defined() const
Return true if this rect is defined via a previous call to Define() or Merge().
Definition: Rect.h:195
const Container & GetContainer() const
Return constant underlying container.
Definition: Array2D.h:186
unsigned GetNumViewports() const
Definition: RenderSurface.h:88
void SetShadowCullMode(CullMode mode)
Definition: Material.cpp:771
ea::string defaultStyleFileName_
Style resource name which is loaded by default.
Definition: UIElement.h:924
~MessageBox() override
Destruct.
Definition: MessageBox.cpp:102
unsigned maxLodLevels_
Maximum number of LOD levels.
Definition: Terrain.h:367
StringVariantMap eventData_
Event arguments.
Definition: CallFunc.h:140
@ ScheduledAsync
Asynchronous baking scheduled.
void SetControlledIdAttr(unsigned value)
Set Controlled Node ID attribute.
Definition: SplinePath.cpp:276
void SerializeBytes(const char *name, void *bytes, unsigned size) final
Serialize bytes. Size is not encoded and should be provided externally!
Definition: BinaryArchive.cpp:135
void Render()
Render. Called by Engine.
Definition: Renderer.cpp:468
void HandleTouchBegin(StringHash eventType, VariantMap &eventData)
Handle touch begin event.
Definition: UI.cpp:1797
void SetBlendMode(BlendMode mode)
Definition: Sprite.cpp:212
virtual ~SystemMessageBox()
Destruct.
Definition: SystemMessageBox.cpp:50
int GetRowHeight() const
Definition: Text3D.cpp:498
virtual bool IsInstanceOf(StringHash type) const =0
Check whether current instance implements specified type.
void SetOctant(Octant *octant)
Move into another octree octant.
Definition: Drawable.h:430
bool bakeLightmap_
Whether the lightmap is enabled.
Definition: TerrainPatch.h:159
Variable that supports a fixed set of types.
Definition: Variant.h:487
void SetMaxSideSlipSpeed(float speed)
Definition: RaycastVehicle.cpp:461
void Shuffle(RandomIter first, RandomIter last)
Shuffle range in random order.
Definition: RandomEngine.h:77
ConstraintRevolute2D(Context *context)
Construct.
Definition: ConstraintRevolute2D.cpp:35
bool GetBorderless() const
Definition: Graphics.h:192
void SetMaxParticles(int maxParticles)
Set max particles.
Definition: ParticleEffect2D.cpp:386
ea::string GetTextAttr() const
Return text attribute.
Definition: Text3D.cpp:585
unsigned dragBeginCursor_
Drag begin cursor position.
Definition: LineEdit.h:161
float weight_
Weight of the track.
Definition: AnimationTrack.h:82
bool SaveXML(XMLElement &dest) const override
Save as XML data. Return true if successful.
Definition: Animatable.cpp:181
Vector3 position_
Position.
Definition: RibbonTrail.h:49
RigidBody * GetOtherBody() const
Definition: Constraint.h:131
static const char *const * GetTypeNameList()
Return type name list.
Definition: Variant.cpp:684
Definition: CurlNoise3D.h:37
void AdjustRawPosition(const Vector3 &offset, float smoothConstant)
Adjust position of kinematic body.
Definition: KinematicCharacterController.cpp:449
void OnNodeSet(Node *previousNode, Node *currentNode) override
Handle node being assigned.
Definition: Text3D.cpp:538
bool IsNaN(T value)
Definition: MathDefs.h:124
void AddAnimation(const AnimationParameters ¶ms)
Definition: AnimationController.cpp:618
void Shrink()
Shrink collection to minimum possible size preserving currently allocated indices.
Definition: IndexAllocator.h:84
void SetPosition(const Vector3 &position)
Definition: Constraint.cpp:173
void SetMaxLength(float maxLength)
Definition: ConstraintRope2D.cpp:76
~SceneResolver()
Destruct.
static void RegisterObject(Context *context)
Definition: Slider.cpp:60
int GetInt() const
Return int.
Definition: PListFile.cpp:192
void SetFixedWidthResizing(bool enable)
Definition: Window.cpp:260
bool mouseVisible_
Operating system mouse cursor visible flag.
Definition: StateManager.h:147
void SetShadowMask(unsigned mask)
Definition: Drawable.cpp:210
float AbsDotProduct(const Vector4 &rhs) const
Calculate absolute dot product.
Definition: Vector4.h:191
ea::string ToString() const
Return as string.
Definition: Vector2.cpp:55
ea::vector< CharLocation > charLocations_
Cached locations of each character in the text.
Definition: Text.h:296
float GetBrakingForce() const
Get rotational momentum preventing (dampening) wheels rotation.
Definition: RaycastVehicle.h:76
unsigned GetCollisionMask() const
Definition: RigidBody.h:276
T * Get() const
Return subsystem by static type.
Definition: SubsystemCache.h:98
unsigned GetIntFrequency() const
Return default frequency as an integer.
Definition: SoundStream.h:57
bool SetMatrix3(const ea::string &name, const Matrix3 &value)
Set a Matrix3 attribute.
Definition: XMLElement.cpp:602
bool SetVariantVector(const VariantVector &value)
Set a variant vector attribute. Creates child elements as necessary.
Definition: XMLElement.cpp:509
BatchCompositorPass * GetUserPass(Object *pass) const
Definition: SceneProcessor.cpp:471
float lightLength_
Length of the light source. If above 0 and radius is above 0 it will create a tube light....
Definition: Light.h:479
float distance_
Light distance (for spot and point lights).
Definition: BakedLight.h:73
const TypeInfo * GetBaseTypeInfo() const
Return base type info.
Definition: TypeInfo.h:54
Definition: OctreeQuery.h:70
float scaledPositionBounceBias_
Position bias in direction of face normal after hit. Scaled with position.
Definition: LightBakingSettings.h:124
static void RegisterObject(Context *context)
Definition: RaycastVehicleWheel.cpp:46
void ScaleGeometries(float scale)
Definition: ModelView.cpp:1437
void SetWidth(float width)
Scale UI to the specified width in pixels.
Definition: UI.cpp:685
Connection(Context *context, NetworkConnection *connection=nullptr)
Construct with context, RakNet connection address and Raknet peer pointer.
Definition: Connection.cpp:72
static void Copy(ea::unique_ptr< T > &dest, const ea::unique_ptr< T > &src)
Copy value.
Definition: Variant.h:345
ea::string name_
Name.
Definition: Resource.h:145
void Stop()
Suspend sound output.
Definition: Audio.cpp:263
unsigned FindTetrahedron(const Vector3 &position, ea::vector< bool > &removed) const
Find tetrahedron for given position. Ignore removed tetrahedrons. Return invalid index if cannot find...
Definition: TetrahedralMesh.cpp:391
void SetNavigationQuality(NavigationQuality val)
Definition: CrowdAgent.cpp:447
float GetAngularDamping() const
Definition: RigidBody.cpp:624
void SetTimeScale(float scale)
Definition: Scene.cpp:751
void SetRampTexture(Texture *texture)
Definition: Light.cpp:389
Quaternion GetYawPitchRotation() const
Get yaw and pitch rotation.
Definition: MoveAndOrbitComponent.h:55
void SetEffectAttr(const ResourceRef &value)
Set particles effect attribute.
Definition: ParticleGraphEmitter.cpp:140
bool ReadTile(Deserializer &source, bool silent)
Read tile data to the navigation mesh.
Definition: NavigationMesh.cpp:1240
const DrawableProcessor * drawableProcessor_
Definition: LightProcessorQuery.h:81
Scene * GetScene() const
Return scene. It may be modified.
Definition: SceneResource.h:66
void Resolve()
Resolve component and node ID attributes and reset.
Definition: SceneResolver.cpp:62
Light(Context *context)
Construct.
Definition: Light.cpp:87
~AnimationController() override
Destruct.
bool IsEmitting() const
Definition: RibbonTrail.h:199
void Resize(int outerSize)
Resize outer vector.
Definition: MultiVector.h:199
void SetType(VariantType type)
Definition: GraphPin.h:74
ea::string animationName_
Animation name.
Definition: Animation.h:164
RenderBuffer * GetDepthStencilOutput() const
Return depth-stencil buffer. Stays the same during the frame.
Definition: RenderBufferManager.h:147
Vector4 C_
Color, multiplied by (Nx*Nx - Ny*Ny). W is always 1.0f.
Definition: SphericalHarmonics.h:299
void SetDelay(float value)
Set Delay.
Definition: BurstTimer.cpp:70
void RemoveShaderParameter(const ea::string &name)
Remove shader parameter.
Definition: Material.cpp:820
Definition: UpdateContext.h:33
Single-line text editor UI element.
Definition: LineEdit.h:34
void AddRef() noexcept
Add a weak reference to the object pointed to.
Definition: Ptr.h:578
~FileSelector() override
Destruct.
Definition: FileSelector.cpp:136
unsigned CalculatePipelineStateHash() const
Definition: RenderPipelineDefs.h:184
void AddInstanceNode(Node *node)
Add an instance scene node. It does not need any drawable components of its own.
Definition: StaticModelGroup.cpp:272
ea::vector< PrimitiveType > primitiveTypes_
Primitive type per geometry.
Definition: CustomGeometry.h:141
ea::string clipBoard_
Clipboard text.
Definition: UI.h:423
Set particle attribute value.
Definition: Uniform.h:104
EmitterType emitterType_
Emitter shape.
Definition: ParticleEffect.h:458
void HandleKeyUp(StringHash eventType, VariantMap &eventData)
Handle release event.
Definition: RmlUI.cpp:625
bool HasNormal() const
Return whether the vertex has normal.
Definition: ModelView.h:93
Definition: ParticleGraphNodeInstance.h:32
NetworkId GetNetworkId() const
Return current or last NetworkId. Return NetworkId::None if not registered.
Definition: NetworkObject.h:86
void SetNumLayers(unsigned numLayers)
Set number of layers.
Definition: ParticleGraphEffect.cpp:52
void SetOpacity(float opacity)
Definition: UIElement.cpp:881
MutexType lock_
Underlying mutex object.
Definition: Mutex.h:113
ea::unordered_map< WeakPtr< UIElement >, bool > hoveredElements_
Currently hovered elements.
Definition: UI.h:473
List of typed resource references.
Definition: Variant.h:173
SharedPtr< VertexBuffer > vertexBuffer_
Vertex buffer.
Definition: Renderer2D.h:54
Vector2 normal_
Hit worldspace normal.
Definition: PhysicsWorld2D.h:49
void UpdateInput(float steering, float engineForceFactor, float brakingForceFactor)
Update input values for wheels.
Definition: RaycastVehicle.cpp:471
Sphere with double precision components.
Definition: TetrahedralMesh.h:114
void SetRatio(float ratio)
Definition: ConstraintPulley2D.cpp:102
NavigationPushiness navPushiness_
Agent's navigation pushiness. The higher the setting, the stronger the agent pushes its colliding nei...
Definition: CrowdAgent.h:281
bool WriteIntRect(const IntRect &value)
Write an IntRect.
Definition: Serializer.cpp:98
const IntVector2 & GetPosition() const
Definition: UIElement.h:460
void ScanDirInternal(ea::vector< ea::string > &result, ea::string path, const ea::string &startPath, const ea::string &filter, ScanFlags flags) const
Scan directory, called internally.
Definition: FileSystem.cpp:1084
bool nodesDirty_
Whether node IDs have been set and nodes should be searched for during ApplyAttributes.
Definition: StaticModelGroup.h:97
void HandleScenePostUpdate(StringHash eventType, VariantMap &eventData)
Handle scene post-update event.
Definition: AnimationController.cpp:1008
Individual element of the lightmap chart.
Definition: LightmapCharter.h:75
ea::intrusive_list< EventHandler >::iterator FindSpecificEventHandler(Object *sender) const
Find the first event handler with specific sender.
Definition: Object.h:223
unsigned long long ReadUInt64()
Read a 64-bit unsigned integer.
Definition: Deserializer.cpp:94
bool IsProjectionValid() const
Return if projection parameters are valid for rendering and raycasting.
Definition: Camera.cpp:627
Priority priority_
Signal priority.
Definition: Signal.h:65
SharedPtr< PluginApplication > application_
Definition: Plugin.h:76
bool addReflectionProbe_
Whether to add cubemap for object reflections.
Definition: GLTFImporter.h:80
void CopyData(ea::vector< int16_t > &dest) const
Copies the current data into the destination array.
Definition: Microphone.cpp:60
ea::intrusive_list< EventHandler >::iterator FindSpecificEventHandler(Object *sender)
Find the first event handler with specific sender.
Definition: Object.cpp:409
static ea::unordered_map< ea::string, unsigned > passIndices
Pass index assignments.
Definition: Technique.h:333
const ea::string & GetFileName() const
Definition: Scene.h:230
ArchiveBlock OpenSafeUnorderedBlock(const char *name)
Open safe Unordered block. Will be automatically closed when returned object is destroyed.
Definition: Archive.h:192
SharedPtr< RaytracerScene > raytracerScene_
Raytracer scene.
Definition: BakedSceneChunk.h:55
ResourceRef GetModelAttr() const
Return model attribute.
Definition: CollisionShape.cpp:873
static constexpr float cosines[9]
Array of cosines.
Definition: SphericalHarmonics.h:52
Class that represents pattern of flavor components.
Definition: ApplicationFlavor.h:39
float GetAreaCost(unsigned areaID) const
Get the current cost of an area.
Definition: NavigationMesh.cpp:848
Definition: StateManager.h:163
void OnPositionSet(const IntVector2 &newPosition) override
React to position change.
Definition: Sprite.cpp:129
void SetMaskBits(int maskBits)
Definition: CollisionShape2D.cpp:103
Tile2D()
Construct.
Definition: TileMapDefs2D.cpp:163
Spriter instance.
Definition: SpriterInstance2D.h:46
Helper to declare non-copyable but movable class.
Definition: NonCopyable.h:44
void SetSensitivity(float value)
Set both sensitivity values. 0.0 represent linear input mapping.
Definition: AxisAdapter.cpp:36
SharedPtr< ActionState > StartAction(Object *target) override
Create new action state from the action.
Definition: Ease.cpp:389
bool IsServerRunning() const
Definition: Network.cpp:418
static Context * GetInstance()
Return global instance of context object. Only one context may exist within application.
Definition: Context.cpp:177
EaseElasticInOut(Context *context)
Construct.
Definition: Ease.cpp:183
Signal with subscription priority and specified or default sender type.
Definition: Signal.h:273
void SetAngularVelocity(const Vector3 &velocity)
Definition: RigidBody.cpp:321
Sequence(Context *context)
Construct.
Definition: Sequence.cpp:144
SpriterInstance(Component *owner, Spriter::SpriterData *spriteData)
Constructor with spriter data.
Definition: SpriterInstance2D.cpp:38
bool inverted_
Is axis inverted.
Definition: AxisAdapter.h:80
ea::vector< SharedPtr< VertexBuffer > > vertexBuffers_
Animated model vertex buffers.
Definition: SoftwareModelAnimator.h:102
ShapeType
Collision shape type.
Definition: CollisionShape.h:53
void Swap(ArchiveBlock &other)
Swap with another.
Definition: Archive.h:79
Vector3 values_[9]
Coefficients.
Definition: SphericalHarmonics.h:164
NumericRange< T > operator&(const NumericRange &rhs) const
Trim range.
Definition: NumericRange.h:82
void Start(bool isMain) override
Called on StartApplication().
Definition: SceneViewerApplication.cpp:56
void SetCursorPosition(unsigned position)
Definition: LineEdit.cpp:489
StaticPipelineStateCache(Context *context)
Construct.
Definition: StaticPipelineStateCache.cpp:14
Obstacle(Context *context)
Construct.
Definition: Obstacle.cpp:38
TextureFormat GetCompressedFormat() const
Definition: Image.h:172
rcContourSet * contourSet_
Recast contour set.
Definition: NavBuildData.h:96
void SetViewOverrideFlags(ViewOverrideFlags flags)
Definition: Camera.cpp:193
void Dispose()
Prepare object for destruction.
Definition: PluginApplication.cpp:50
float GetAngularRestThreshold() const
Definition: RigidBody.cpp:619
bool debugDepthTest_
Debug draw depth test mode.
Definition: PhysicsWorld.h:403
const ea::vector< unsigned > & GetMorphRangeStarts() const
Return morph range starts for each vertex buffer.
Definition: Model.h:220
bool Start(unsigned short port, LANDiscoveryModeFlags mode=LANDiscoveryMode::All)
If broadcast data is set, service will broadcast it periodically. If no data is set,...
Definition: LANDiscoveryManager.cpp:61
float distance_
Sorting distance.
Definition: PipelineBatchSortKey.h:133
Utility class to write prefab data to NodePrefab.
Definition: PrefabWriter.h:55
double ReadDouble()
Read a double.
Definition: Deserializer.cpp:134
void UpdateAnchoring()
Update anchored size & position. Only called when anchoring is enabled.
Definition: UIElement.cpp:2086
void SetPluginsLoaded(const StringVector &plugins)
Set loaded plugins. Order is preserved.
Definition: PluginManager.cpp:318
void SerializeInBlock(Archive &archive) override
Serialize content from/to archive. May throw ArchiveException.
Definition: Repeat.cpp:129
TextureFilterMode GetFilterMode() const
Definition: Texture.h:129
ea::vector< DebugLine > noDepthLines_
Lines rendered without depth test.
Definition: DebugRenderer.h:192
Object * GetReceiver() const
Return event receiver.
Definition: CallFunc.h:51
bool IsRoomScale() const
Returns true if this VR configuration is running at room scale.
Definition: VirtualReality.h:205
void SetBoneName(const ea::string &name)
Definition: IKIdentitySolver.h:28
Vector2 anchor_
Anchor.
Definition: ConstraintWeld2D.h:73
Drawable * drawable_
Drawable.
Definition: OctreeQuery.h:215
float speed_
Speed.
Definition: AnimatedSprite2D.h:139
unsigned GetPing() const
Return ping, i.e. half of round-trip delay excluding remote processing time.
Definition: ClockSynchronizer.h:106
void DrawDebugGeometry(DebugRenderer *debug, bool depthTest) override
Visualize the component as debug geometry.
Definition: OffMeshConnection.cpp:74
const ResourceRefList & GetMaterialsAttr() const
Return materials attribute.
Definition: CustomGeometry.cpp:519
unsigned RecalculatePipelineStateHash() const override
Recalculate hash (must not be non zero). Shall be save to call from multiple threads as long as the o...
Definition: VertexBuffer.cpp:436
InterfaceType * operator->() const noexcept
Point to the object.
Definition: Ptr.h:488
ResourceRef GetTextureAttr() const
Return texture attribute.
Definition: BorderImage.cpp:224
ParticleGraphPinRef GetMemoryReference() const
Get reference to memory descriptor for the pin.
Definition: ParticleGraphPin.h:102
bool WriteUByte(unsigned char value)
Write an 8-bit unsigned integer.
Definition: Serializer.cpp:78
float Ease(float time) const override
Apply easing function to the time argument.
Definition: Ease.h:199
const Vector2 & GetPivot() const
Definition: UIElement.h:544
SharedPtr< FiniteTimeActionState > StartAction(FiniteTimeAction *action, Object *target) const
Call StartAction on an action.
Definition: FiniteTimeActionState.cpp:58
float GetSpriteTextureEdgeOffset() const
Definition: TmxFile2D.h:208
void BoxFilter(unsigned char *dest, size_t destSize, const unsigned char *src, size_t srcSize)
Smooth one row of a horizontally oversampled glyph image.
Definition: FontFaceFreeType.cpp:338
RmlSystem(Context *context)
Construct.
Definition: RmlSystem.cpp:43
SharedPtr< FiniteTimeAction > Reverse() const override
Create reversed action.
Definition: Ease.cpp:249
void UpdateNetworkObjects(SharedReplicationState &sharedState)
Perform network update from the perspective of this client connection.
Definition: ServerReplicator.cpp:533
Pass * CreatePass(const ea::string &name)
Create a new pass.
Definition: Technique.cpp:420
void OnPipelineStatesInvalidated()
Definition: RenderBufferManager.cpp:463
void SetDampingRelaxation(float relaxation)
Set wheel damping relaxation.
float GetEffectiveFogEnd() const
Return effective fog end distance considering current zone.
Definition: Camera.cpp:783
bool GetDrawRectangle(Rect &rect, bool flipX=false, bool flipY=false) const
Return draw rectangle.
Definition: Sprite2D.cpp:143
virtual void Init(ParticleGraphNode *node, ParticleGraphLayerInstance *layer)
Init instance.
Definition: TemplateNode.h:71
void SortAnimationStates()
Sort animations states according to the layers.
Definition: AnimationController.cpp:1197
const Color & GetDerivedColor() const
Return derived color. Only valid when no gradient.
Definition: UIElement.cpp:1724
ea::unique_ptr< pugi::xml_document > document_
Pugixml document.
Definition: XMLFile.h:110
void CloneGeometries()
Clone geometries for vertex morphing.
Definition: AnimatedModel.cpp:967
HorizontalAlignment GetHorizontalAlignment() const
Definition: Text3D.cpp:433
virtual unsigned GetZoneBackground(const IntVector3 &chunkIndex, Zone *zone)=0
Return background index for zone within chunk.
static void RegisterObject(Context *context)
Register object factory.
Definition: BinaryFile.cpp:46
InterpolationMode
Definition: Spline.h:36
bool IsCursorMovable() const
Definition: LineEdit.h:120
static void RegisterObject(Context *context)
Definition: Font.cpp:71
Object * GetEventSender() const
Return active event sender. Null outside event handling.
Definition: Object.cpp:362
static Matrix3x4 FromScale(float scale)
Constuct from scalar scale.
Definition: Matrix3x4.h:194
unsigned GetShadowMaskInZone() const
Return combined shadow masks of Drawable and its currently cached Zone.
Definition: Drawable.cpp:299
float range_
Slider range.
Definition: Slider.h:116
LightmapChartBakedDirect()=default
Construct default.
TetrahedralMeshSurfaceEdge(unsigned i0, unsigned i1, unsigned faceIndex, unsigned edgeIndex)
Construct valid.
Definition: TetrahedralMesh.h:196
Definition: RmlNavigable.h:151
void OnNodeSet(Node *previousNode, Node *currentNode) override
Handle node being assigned.
Definition: Constraint.cpp:400
Node of static reflection probes tree.
Definition: ReflectionProbe.h:67
VariantMap eventData_
Event data.
Definition: ValueAnimation.h:66
Vector3 GetWorldPosition() const
Definition: Constraint.cpp:320
void RegisterPath(const ea::string &pathName)
Register a path as allowed to access. If no paths are registered, all are allowed....
Definition: FileSystem.cpp:1037
const Vector4 & GetLightmapScaleOffset() const
Return lightmap scale and offset.
Definition: StaticModel.h:134
void OnMarkedDirty(Node *node) override
Handle node transform being dirtied.
Definition: DecalSet.cpp:650
void Free(T *object)
Destruct and free an object.
Definition: Allocator.h:112
Sound(Context *context)
Construct.
Definition: Sound.cpp:63
void SetSouthNeighbor(Terrain *south)
Definition: Terrain.cpp:275
CustomVariantValue * GetCustomVariantValuePtr()
Return pointer to custom variant value.
Definition: Variant.h:1537
void SetLevel(LogLevel level)
Definition: Log.cpp:406
ea::string diffuseImageName_
Resource name of diffuse image.
Definition: RaytracerScene.h:63
bool LoadJSON(const JSONValue &source)
Load from JSON data. Return true if successful.
Definition: ValueAnimation.cpp:153
Quaternion(const Vector3 &start, const Vector3 &end) noexcept
Construct from the rotation difference between two direction vectors.
Definition: Quaternion.h:120
Orientation orientation_
Orientation.
Definition: ProgressBar.h:108
b2PulleyJointDef jointDef_
Box2D joint def.
Definition: ConstraintPulley2D.h:86
~TmxFile2D() override
Destruct.
Definition: TmxFile2D.cpp:382
virtual void ApplyAttributes()
Apply attribute changes that can not be applied immediately. Called after scene load or a network upd...
Definition: Serializable.h:87
bool IsOpen() const override
Definition: File.cpp:435
void SetPrimaryViewMask(unsigned mask)
Set view mask for primary rendering.
Definition: Camera.h:102
IntRect GetViewportRect() const override
Definition: RenderBuffer.h:127
Definition: NormalizedInstance.h:31
float range_
Range.
Definition: Light.h:501
Two-dimensional vector with integer values.
Definition: Vector2.h:39
bool SetGeometry(unsigned index, unsigned lodLevel, Geometry *geometry)
Set geometry.
Definition: Model.cpp:580
const IntRect & GetIntRect() const
Return an integer rect or empty on type mismatch.
Definition: Variant.h:1489
void Reset(InterfaceType *ptr, RefCounted *refCounted) noexcept
Reset with another pointers.
Definition: Ptr.h:267
float Length() const
Definition: Vector3.h:342
static void RegisterObject(Context *context)
Register object.
Definition: TextRenderer3D.cpp:43
StoredLogMessage(LogLevel level, time_t timestamp, const ea::string &logger, const ea::string &message)
Construct with parameters.
Definition: Log.h:89
Color ambientStartColor_
Cached ambient start color.
Definition: Zone.h:217
void SetReflectionPlane(const Plane &plane)
Definition: Camera.cpp:234
void HandleModelReloadFinished(StringHash eventType, VariantMap &eventData)
Handle model reload finished.
Definition: AnimatedModel.cpp:1145
void SetPackageCacheDir(const ea::string &path)
Definition: Network.cpp:359
LogLevel level_
Message level. -1 for raw messages.
Definition: Log.h:98
VerticalAlignment GetVerticalAlignment() const
Definition: Text3D.cpp:438
OuterCollection & GetUnderlyingCollection()
Return outer collection (const).
Definition: MultiVector.h:219
virtual ~RefCounted()
Destruct. Mark as expired and also delete the reference count structure if no outside weak references...
Definition: RefCounted.cpp:58
ea::unique_ptr< btCollisionShape > shape_
Bullet collision shape.
Definition: CollisionShape.h:320
bool IsHeightRangeValid() const
Return whether the height range is valid.
Definition: NavigationMesh.h:230
float Length() const
Return length.
Definition: Vector2.h:163
void SetRotationEnd(float rotationEnd)
Set rotation end.
Definition: ParticleEffect2D.cpp:466
Vector3 Size() const
Definition: BoundingBox.h:305
void SetIndexBuffer(IndexBuffer *buffer)
Definition: Geometry.cpp:96
void MarkForUpdate()
Mark for update and octree reinsertion. Update is automatically queued when the drawable's scene node...
Definition: Drawable.cpp:256
Zone * GetDefaultZone() const
Definition: Renderer.h:279
Octant * octant_
Octree octant.
Definition: Drawable.h:459
auto Begin() const
Return array begin (const).
Definition: Array2D.h:222
ResourceRef GetMaterial() const
Get Material.
Definition: RenderBillboard.cpp:80
void SetCullCamera(Camera *camera)
Definition: Viewport.cpp:112
void AddLightmap(const ea::string &lightmapTextureName)
Add lightmap texture.
Definition: Scene.cpp:288
AttributeScopeHint
Definition: Attribute.h:64
~SystemUI() override
Destruct.
Definition: SystemUI.cpp:64
SharedPtr< VertexBuffer > vertexBuffer_
Vertex buffer.
Definition: Text3D.h:252
XPath query result set.
Definition: XMLElement.h:339
Random number generator. Stable across platforms and runs for any given seed.
Definition: RandomEngine.h:40
Matrix3x4 inverseWorldTransform_
Inverse world transform.
Definition: Octree.h:198
const Color & GetModalShadeColor() const
Definition: Window.h:137
virtual unsigned GetSize() const
Get size.
Definition: Variant.h:252
XMLElement()
Construct null element.
Definition: XMLElement.cpp:39
void SetLightMask(unsigned mask)
Set light mask. Is and'ed with light's and zone's light mask to see if the object should be lit.
Definition: ParticleGraphEmitter.cpp:155
T Wrap(T value, T min, T max)
Wrap a value fitting it in the range defined by [min, max)
Definition: MathDefs.h:408
bool IsInside(const BoundingBox &box) const
Check whether a bounding box is inside the view frustum.
Definition: DebugRenderer.cpp:729
static void RegisterObject(Context *context)
Register object factory.
Definition: ImageCube.cpp:60
StringVariantMap commandLineParameters_
Engine parameters defined from the command line.
Definition: Application.h:75
bool GetDepthTest() const
Return whether the depth test is enabled when rendering the text.
Definition: Text3D.h:215
float lodBias_
LOD bias.
Definition: Camera.h:373
unsigned GetNumTracks() const
Definition: Animation.h:115
AsyncProgress asyncProgress_
Asynchronous loading progress.
Definition: Scene.h:329
SharedPtr< ActionState > StartAction(Object *target) override
Create new action state from the action.
Definition: Ease.cpp:179
bool IsMovable() const
Definition: Window.h:113
~StaticModel() override
Destruct.
static const IntVector3 UP_RIGHT_FORWARD
(1, 0, 2) coordinate system.
Definition: RaycastVehicle.h:143
Vector2 Scale() const
Return the scaling part.
Definition: Matrix2.h:154
static SharedPtr< Material > CreateBaseMaterial(Context *context, const ea::string &shaderName, const ea::string &vsDefines, const ea::string &psDefines)
Create simple material with only base pass. Used by UI renderers.
Definition: Material.cpp:210
unsigned AddInstance()
Add instance to buffer. Use SetElements to fill it after.
Definition: InstancingBuffer.h:54
float GetHalfViewSize() const
Definition: Camera.cpp:516
ea::unique_ptr< Mutex > mutex_
Mutex.
Definition: StringHashRegister.h:64
DirectDraw surface description.
Definition: ImageDDS.h:96
Rect padding_
Padding in units.
Definition: CameraOperator.h:111
void OnMarkedDirty(Node *node) override
Handle node transform being dirtied.
Definition: CollisionShape2D.cpp:288
void SetTranslation(const Vector3 &translation)
Set translation elements.
Definition: Matrix3x4.h:536
IntRectIterator operator++(int)
Post-increment.
Definition: Rect.h:525
float GetParticleLifeSpan() const
Return particle lifespan.
Definition: ParticleEffect2D.h:150
virtual bool Load(ParticleGraphReader &reader, GraphNode &node)
Load node.
Definition: ParticleGraphNode.cpp:112
void SetDelay(float interval)
Set the delay in seconds before file changes are notified. This (hopefully) avoids notifying when a f...
Definition: FileWatcher.cpp:236
Implementation of RmlUi decorator instancer for RmlNavigable.
Definition: RmlNavigable.h:166
void Save(PackedSceneSelection &packedSelection) const
Save selection.
Definition: SceneSelection.cpp:93
virtual void OnEvent(Object *sender, StringHash eventType, VariantMap &eventData)
Handle event.
Definition: Object.cpp:54
float GetShadowFadeDistance() const
Definition: Light.h:354
static const Vector3 FORWARD
(0,0,1) vector.
Definition: Vector3.h:515
bool SetModalElement(UIElement *modalElement, bool enable)
Definition: UI.cpp:239
XrEnvironmentBlendMode blendMode_
Definition: OpenXR.h:311
virtual ea::string GetDefaultCategory() const
Return default object category for the plugin.
Definition: PluginApplication.h:53
Definition: DirectionAggregator.h:65
AttributeScopeHint GetEffectiveScopeHint() const
Definition: Component.cpp:65
unsigned EvaluateInstanceSize() const override
Evaluate size required to place new node instance.
Definition: LocalToWorld.cpp:53
const Plane & GetReflectionPlane() const
Definition: Camera.h:257
void EndSendEvent()
End event send. Clean up event receivers removed in the meanwhile.
Definition: Context.cpp:354
Variant LinearInterpolation(unsigned index1, unsigned index2, float scaledTime) const
Linear interpolation.
Definition: ValueAnimation.cpp:376
float GetBounceFactor() const
Get BounceFactor.
Definition: Bounce.cpp:77
Vector3 Scale() const
Return the scaling part.
Definition: Matrix3.h:202
float distance_
Hit distance from ray origin.
Definition: PhysicsWorld2D.h:51
void SetTexture(Texture *texture)
Definition: BorderImage.cpp:76
Vector3 GetRandomPointInCircle(const Vector3 ¢er, float radius, int queryFilterType, dtPolyRef *randomRef=nullptr)
Return a random point on the navigation mesh within a circle using the crowd initialized query extent...
Definition: CrowdManager.cpp:430
void MixMonoToSurroundIP(Sound *sound, int *dest, unsigned samples, int mixRate, float effectiveFrequency, SpeakerMode speakers)
Mix a mono track into a surround buffer.
Definition: SoundSource.cpp:1430
ea::optional< FileTime > GetLastModifiedTime(const FileIdentifier &fileName, bool creationIsModification) const override
Definition: PackageFile.cpp:228
Emit(Context *context)
Construct Emit.
Definition: Emit.cpp:44
Vector3 ScreenToWorldPoint(const Vector3 &screenPos) const
Convert normalized screen coordinates (0 - 1) and distance along view Z axis (in Z coordinate) to a w...
Definition: Camera.cpp:453
bool updateNodePosition_
Flag indicating the node's position should be updated by Detour crowd manager.
Definition: CrowdAgent.h:265
float GetLinearDamping() const
Definition: RigidBody2D.h:159
void SendMessage(ea::string_view data, PacketTypeFlags type=PacketType::ReliableOrdered) override
Copies data and queues it for sending.
Definition: DataChannelConnection.cpp:82
bool SetGeometryCenter(unsigned index, const Vector3 ¢er)
Definition: Model.cpp:597
bool IsMaster() const
Return whether is the master (first) animated model.
Definition: AnimatedModel.h:130
const ea::string & GetProperty(const ea::string &name) const
Return property value.
Definition: TileMapDefs2D.cpp:215
Sprite.
Definition: Sprite2D.h:34
const ea::string & GetTypeName(StringHash objectType) const
Return object type name from hash, or empty if unknown.
Definition: Context.cpp:286
Frustum frustum_
Frustum for current frame.
Definition: Renderer2D.h:126
virtual bool IsLoaded() const
Returns true if plugin is loaded and functional.
Definition: Plugin.h:57
NetworkFrame
Definition: NetworkId.h:49
void SerializeInBlock(Archive &archive) override
Serialize from/to archive. Return true if successful.
Definition: ParticleGraphEffect.cpp:105
float GetRadiusThickness() const
Get Radius Thickness.
Definition: Hemisphere.cpp:79
void RefreshMemoryUse()
Recalculate the memory used by the shader.
Definition: Shader.cpp:294
@ LM_DEFAULT
Default, use animation's value.
Definition: AnimatedSprite2D.h:42
Timer statsTimer_
Statistics timer.
Definition: Connection.h:264
void SetRampTextureAttr(const ResourceRef &value)
Set ramp texture attribute.
Definition: Light.cpp:515
const Rect & GetRect() const
Return a rect or empty on type mismatch.
Definition: Variant.h:1486
void SetName(const ea::string &name)
Set element name.
Definition: XMLElement.cpp:95
void TestDrawables(Drawable **start, Drawable **end, bool inside) override
Intersection test for drawables.
Definition: LightProcessorQuery.cpp:150
Definition: AddInstance.h:31
Localization(Context *context)
Construct.
Definition: Localization.cpp:36
static const unsigned MaxAutoGridSize
Auto placement limit: max grid size in one dimension.
Definition: LightProbeGroup.h:132
~TileMapLayer2D() override
Destruct.
bool debuggerInitialized_
Flag indicating RmlUi debugger is already initialized.
Definition: RmlUI.h:165
const ea::vector< SharedPtr< Texture2D > > & GetTextures() const
Return textures.
Definition: FontFace.h:97
ea::unique_ptr< TriangleMeshInterface > meshInterface_
Bullet triangle mesh interface.
Definition: CollisionShape.h:86
void SetPosition(const Vector2 &position)
Definition: Sprite.cpp:135
unsigned GetNumVertices(unsigned index) const
Definition: CustomGeometry.cpp:430
bool OnGround() const
Check if character in on the ground.
Definition: KinematicCharacterController.cpp:582
const CascadeParameters & GetShadowCascade() const
Definition: Light.h:362
void ProcessSceneChecksumError(int msgID, MemoryBuffer &msg)
Process a SceneChecksumError message from the server. Called by Network.
Definition: Connection.cpp:428
unsigned maxInactiveFps_
Maximum frames per second when the application does not have input focus.
Definition: Engine.h:188
void Scan(ea::vector< ea::string > &result, const ea::string &pathName, const ea::string &filter, ScanFlags flags) const override
Enumerate objects in the mount point. Only files enumeration is guaranteed to be supported.
Definition: MountedRoot.cpp:110
unsigned capacity_
Maximum number of particles.
Definition: ParticleGraphLayer.h:140
int GetMultiSample() const
Definition: Graphics.h:180
bool StartWatching(const ea::string &pathName, bool watchSubDirs)
Start watching a directory. Return true if successful.
Definition: MultiFileWatcher.cpp:30
const Color & GetEffectColor() const
Definition: Text3D.cpp:478
void SetColor(unsigned i, const Color &color)
Set color for given channel.
Definition: ModelView.h:79
float tileHeight_
Tile height.
Definition: TileMapDefs2D.h:61
bool SetupNextTexture(int textureWidth, int textureHeight)
Setup next texture.
Definition: FontFaceFreeType.cpp:319
Mutex & GetMutex()
Return audio thread mutex.
Definition: Audio.h:130
JSONValue(unsigned value)
Construct with a unsigned integer.
Definition: JSONValue.h:98
Color GammaToLinear() const
Convert color from gamma to linear space.
Definition: Color.h:220
ea::conditional_t< HasPriority, PrioritySignalSubscription< Handler, Priority >, SignalSubscription< Handler > > Subscription
Subscription type.
Definition: Signal.h:101
unsigned GetNumOccluderTriangles() override
Return number of occlusion geometry triangles.
Definition: TerrainPatch.cpp:171
unsigned vertexCount_
Vertex count.
Definition: Model.h:71
2D edge collision component.
Definition: CollisionEdge2D.h:31
signed char ReadByte()
Read an 8-bit integer.
Definition: Deserializer.cpp:87
T * GetSubsystem() const
Template version of returning a subsystem.
Definition: Context.h:206
unsigned CalculatePipelineStateHash() const
Definition: RenderPipelineDefs.h:635
unsigned Size() const
Return size.
Definition: TetrahedralMesh.h:227
int GetHeight() const
Return buffer height.
Definition: OcclusionBuffer.h:142
VariantMap GetVariantMap() const
Return a variant map attribute, or empty if missing.
Definition: XMLElement.cpp:1015
Matrix4 ToMatrix4() const
Convert to a 4x4 matrix by filling in an identity last row.
Definition: Matrix3x4.h:590
ea::string ReadAllText(const FileIdentifier &fileName) const
Read text file from the virtual file system. Returns empty string if file not found.
Definition: VirtualFileSystem.cpp:237
AllContentOctreeQuery(ea::vector< Drawable * > &result, DrawableFlags drawableFlags, unsigned viewMask)
Construct.
Definition: OctreeQuery.h:272
TraversalMode traversalMode_
Traversal mode for rendering.
Definition: UIElement.h:926
const ea::string & GetVerb() const
Definition: HttpRequest.h:76
Viewport * GetViewportForScene(Scene *scene, unsigned index) const
Return nth backbuffer viewport associated to a scene. Index 0 returns the first.
Definition: StateManager.cpp:236
void SerializeInBlock(Archive &archive)
Serialize content from/to archive. May throw ArchiveException.
Definition: GraphNode.cpp:89
void SetScale(Vector3 value)
Set Scale.
Definition: Sphere.cpp:89
RibbonTrail(Context *context)
Construct.
Definition: RibbonTrail.cpp:64
ConvexData(Model *model, unsigned lodLevel)
Construct from a model.
Definition: CollisionShape.cpp:233
void SetRows(int value)
Set Rows.
Definition: RenderBillboard.cpp:82
LightmapGeometryBakingSettings geometryBufferBaking_
Geometry baking settings.
Definition: LightBakingSettings.h:194
FileSelector(Context *context)
Construct.
Definition: FileSelector.cpp:54
Intersection TestOctant(const BoundingBox &box, bool inside) override
Intersection test for an octant.
Definition: OctreeQuery.cpp:76
Vector4 GetInnerBarycentricCoords(unsigned tetIndex, const Vector3 &position) const
Calculate barycentric coordinates for inner tetrahedron.
Definition: TetrahedralMesh.cpp:230
float autoPlacementStep_
Automatic placement step.
Definition: LightProbeGroup.h:216
bool SaveDDS(const ea::string &fileName) const
Save in DDS format. Only uncompressed RGBA images are supported. Return true if successful.
Definition: Image.cpp:1163
~RaycastVehicle() override
Destruct.
Definition: RaycastVehicle.cpp:243
const ea::map< ea::string, JSONValue > & GetObject() const
Return JSON object value.
Definition: JSONValue.h:233
FaceCameraMode faceCameraMode_
Particle rotation mode in relation to the camera.
Definition: ParticleEffect.h:508
void SetFormat(unsigned frequency, bool sixteenBit, bool stereo)
Set sound data format.
Definition: SoundStream.cpp:45
FontFaceFreeType(Font *font)
Construct.
Definition: FontFaceFreeType.cpp:80
void OnNodeSet(Node *previousNode, Node *currentNode) override
Handle scene node being assigned at creation.
Definition: TriggerAnimator.cpp:100
void SetUnpackedData(const Vector4 data[], unsigned start=0, unsigned count=M_MAX_UNSIGNED)
Set data in the buffer from unpacked data.
Definition: VertexBuffer.cpp:305
Signal subscription data with priority.
Definition: Signal.h:62
size_t ToHash() const noexcept
Return hash value for HashSet & HashMap. Use the same hash function as for raw pointers!
Definition: Ptr.h:572
ActionBuilder & Also(const SharedPtr< Actions::FiniteTimeAction > ¶llelAction)
Run action in parallel to current one.
Definition: ActionBuilder.cpp:67
void Define(const Vector3 &point)
Define from a point.
Definition: BoundingBox.h:172
~SubsystemCache()
Destruct.
Definition: SubsystemCache.cpp:67
void ApplyEffect()
Definition: ParticleGraphEmitter.cpp:79
void QueueDeltaUpdate(NetworkObject *networkObject)
Request delta update to be prepared for specified object.
Definition: ServerReplicator.cpp:134
bool GetFlipX() const
Definition: StaticSprite2D.h:109
rcCompactHeightfield * compactHeightField_
Recast compact heightfield.
Definition: NavBuildData.h:83
T SnapFloor(T x, T y)
Round value down to nearest number that can be represented as i*y, where i is integer.
Definition: MathDefs.h:236
Resource(Context *context)
Construct.
Definition: Resource.cpp:100
virtual Matrix3x4 GetEyeLocalTransform(VREye eye) const =0
Return the head-relative eye transform.
SharedPtr< Material > material_
Material to use as a base for the text material(s).
Definition: Text3D.h:254
void SetLightProbes(const LightProbeVector &lightProbes)
Set light probes.
Definition: LightProbeGroup.cpp:247
2D source batch.
Definition: Drawable2D.h:62
void SetStartColor(const Color &startColor)
Set start color.
Definition: ParticleEffect2D.cpp:366
unsigned GetNumOccluderTriangles() override
Return number of occlusion geometry triangles.
Definition: StaticModel.cpp:178
static void RegisterObject(Context *context)
Register object factory.
Definition: SoftwareModelAnimator.cpp:57
void ReleaseAllResources(bool force=false)
Release all resources. When called with the force flag false, releases all currently unused resources...
Definition: ResourceCache.cpp:272
IntVector2 coordinates_
Patch coordinates in the terrain. (0,0) is the northwest corner.
Definition: TerrainPatch.h:154
WeakPtr< RenderSurface > linkedRenderTarget_
Linked color buffer.
Definition: RenderSurface.h:153
void SetVertex(unsigned index, const Vector2 &vertex)
Set vertex.
Definition: CollisionPolygon2D.cpp:58
Custom variant value implementation.
Definition: Variant.h:359
Quaternion Rotation() const
Return the rotation part.
Definition: Matrix3x4.h:648
bool Empty() const
Definition: XMLElement.cpp:1154
VRRuntime GetRuntime() const override
Return the classification of VR runtime being used,.
Definition: OpenXR.h:230
Definition: NetworkCallbacks.h:102
ea::vector< ea::string > names_
Group names.
Definition: LightProbeGroup.h:95
Write-only viewport color render buffer.
Definition: RenderBuffer.h:114
unsigned GetLocalTimeOfLatestRoundtrip() const override
Return local time of last successful ping-pong roundtrip.
Definition: Connection.cpp:710
static const Plane UP
Plane at origin with normal pointing up.
Definition: Plane.h:136
unsigned EvaluateInstanceSize() const override
Evaluate size required to place new node instance.
Definition: Hemisphere.cpp:60
unsigned numOccluders_
Number of occluders rendered.
Definition: RenderPipelineDefs.h:266
int GetMinHeight() const
Definition: UIElement.h:484
float emitRotation_
Emit rotation.
Definition: ParticleEmitter2D.h:70
void ApplyLinearImpulse(const Vector2 &impulse, const Vector2 &point, bool wake)
Apply linear impulse.
Definition: RigidBody2D.cpp:316
bool isVisible(const btVector3 &aabbMin, const btVector3 &aabbMax) override
Check if an AABB is visible for debug drawing.
Definition: PhysicsWorld.cpp:273
void OnMarkedDirty(Node *node) override
Handle node transform being dirtied.
Definition: Constraint.cpp:435
void SetElementEventSender(bool flag)
Definition: UIElement.cpp:1490
Definition: MaterialInspectorWidget.h:64
ea::string startupErrors_
Collected startup error log messages.
Definition: Application.h:77
float GetLodDistance(float distance, float scale, float bias) const
Return a scene node's LOD scaled distance.
Definition: Camera.cpp:559
unsigned EvaluateInstanceSize() const override
Evaluate size required to place new node instance.
Definition: NormalizedEffectTime.cpp:53
void Close() override
Close the file.
Definition: File.cpp:392
bool FromLookRotation(const Vector3 &direction, const Vector3 &up=Vector3::UP)
Define from a direction to look in and an up direction. Return true if successful,...
Definition: Quaternion.cpp:152
bool isCustom_
Whether to assign material to "Custom" uniform group.
Definition: Material.h:81
bool SetInfo(Orientation2D orientation, int width, int height, float tileWidth, float tileHeight)
Set Tilemap information.
Definition: TmxFile2D.cpp:530
void FindPath(ea::vector< Vector3 > &dest, const Vector3 &start, const Vector3 &end, int queryFilterType)
Find a path between world space points using the crowd initialized query extent (based on maxAgentRad...
Definition: CrowdManager.cpp:416
unsigned totalFragments_
Total number of fragments.
Definition: Connection.h:72
void SetExitAnimation(Animation *value)
Set exit animation.
Definition: TriggerAnimator.cpp:82
static const unsigned GetNextFreeObjectID()
Return upper bound of all used object IDs within family.
Definition: IndexAllocator.h:129
unsigned LocationToIndex(const IntVector2 &location) const
Convert location to index.
Definition: LightmapGeometryBuffer.h:159
static void RegisterObject(Context *context)
Definition: CollisionShape.cpp:485
Vector3 position_
Position.
Definition: BillboardSet.h:42
unsigned GetOcclusionLodLevel() const
Definition: StaticModel.h:101
void SetTextureRect(const Rect &rect)
Definition: StaticSprite2D.cpp:105
bool autoRenderPipeline_
Whether to search for render pipeline automatically.
Definition: Viewport.h:136
void Update(float timeStep)
Run update on sound sources. Not required for continued playback, but frees unused sound sources & so...
Definition: Audio.cpp:222
virtual const char * GetRootBlockName() const
Root block name. Used for XML serialization only.
Definition: Resource.h:187
virtual bool SavePins(ParticleGraphWriter &writer, GraphNode &node)
Save pins.
Definition: ParticleGraphNode.cpp:258
Vector3 Reflect(const Vector3 &direction) const
Reflect a normalized direction vector.
Definition: Plane.h:106
void SetNumActions(unsigned num)
Set number of actions.
Definition: Parallel.cpp:93
float GetAnimationLodBias() const
Definition: RibbonTrail.h:183
bool Equivalent(const Quaternion &rhs, float eps=M_EPSILON) const
Test for equivalence with another quaternion with epsilon.
Definition: Quaternion.h:423
SharedPtr< UIElement > overlayContainer_
Overlay container, used in hierarchy mode only.
Definition: ListView.h:200
Object * GetReceiver() const
Return event receiver.
Definition: Object.h:279
Iterator Begin()
Return begin iterator (mutable).
Definition: MultiVector.h:222
constexpr Integer AsInteger() const
Return underlying integer (constant).
Definition: FlagSet.h:252
void SerializeVLE(const char *name, unsigned &value) final
Serialize Variable Length Encoded unsigned integer, up to 29 significant bits.
Definition: BinaryArchive.cpp:141
Definition: BatchStateCache.h:54
static void RegisterObject(ParticleGraphSystem *context)
Register particle node factory.
Definition: Print.cpp:68
DeferredLightVSVariation
Deferred light volume vertex shader variations.
Definition: Renderer.h:111
void Clear()
Remove all subsystems.
Definition: SubsystemCache.cpp:93
Perlin noise generator.
Definition: PerlinNoise.h:31
Definition: CastInstance.h:31
bool mouseGrabbed_
Definition: StateManager.h:150
void ComposeShadowBatches()
Definition: BatchCompositor.cpp:267
ea::function< void()> onConnected_
Called once, when connection is fully set up and data is ready to be sent and received....
Definition: NetworkConnection.h:61
void UpdateBakedData()
Update baked data.
Definition: LightProbeGroup.cpp:317
virtual VRRuntime GetRuntime() const =0
Return the classification of VR runtime being used,.
void DrawDebugGeometry(DebugRenderer *debug, bool depthTest) override
Visualize the component as debug geometry.
Definition: DynamicNavigationMesh.cpp:354
bool LoadJSON(const JSONValue &source) override
Load from JSON data. Return true if successful.
Definition: UnknownComponent.cpp:60
ea::unordered_map< StringHash, ea::vector< SharedPtr< ShaderVariation > > > extraVertexShaders_
Vertex shaders with extra defines from the renderpath.
Definition: Technique.h:244
ParticleGraphNodeInstance * CreateInstanceAt(void *ptr, ParticleGraphLayerInstance *layer) override
Place new instance at the provided address.
Definition: NormalizedEffectTime.cpp:59
unsigned ClosestPowerOfTwo(unsigned value)
Round up or down to the closest power of two.
Definition: MathDefs.h:314
unsigned GetNumObjects() const
Return number of objects.
Definition: TmxFile2D.h:119
unsigned GetBroadcastTimeMs() const
Get current broadcast interval, which is defined in milliseconds.
Definition: LANDiscoveryManager.h:57
unsigned color_
Color.
Definition: DebugRenderer.h:63
const Vector2 & GetScale() const
Definition: Sprite.h:100
@ JSON_BOOL
JSON boolean type.
Definition: JSONValue.h:44
void SetZone(Zone *zone, bool temporary=false)
Set new zone. Zone assignment may optionally be temporary, meaning it needs to be re-evaluated on the...
Definition: Drawable.cpp:318
bool stopAtEnd_
Stop when no more data flag.
Definition: SoundStream.h:72
void SetNode(Node *node)
Set scene node. Called by Node when creating the component.
Definition: Component.cpp:170
bool SetDouble(const ea::string &name, double value)
Set a double attribute.
Definition: XMLElement.cpp:372
bool SetVector3(const ea::string &name, const Vector3 &value)
Set a Vector3 attribute.
Definition: XMLElement.cpp:582
void Update(float timeStep)
Step the simulation forward.
Definition: PhysicsWorld2D.cpp:278
void SetEffect(ParticleEffect2D *effect)
Definition: ParticleEmitter2D.cpp:87
float GetMaxDoubleClickDistance() const
Definition: UI.h:210
Vector3 GetWheelConnectionPoint(int wheel) const
Get wheel connection point relative to RigidBody.
Definition: RaycastVehicle.cpp:510
TetrahedralMeshSurfaceTriangle GetTriangleFace(unsigned faceIndex, unsigned tetIndex, unsigned tetFace) const
Return triangle face of the tetrahedron. Adjacency information is left uninitialized.
Definition: TetrahedralMesh.h:276
ParticleGraphNode * GetGraphNode() const
Get graph node instance.
Definition: TemplateNode.h:89
unsigned GetNumPins() const override
Get number of pins.
Definition: Uniform.h:125
Sphere(Context *context)
Construct Sphere.
Definition: Sphere.cpp:50
bool useMutableGlyphs_
Flag for using mutable (erasable) font glyphs.
Definition: UI.h:451
unsigned char gridSize
grid
Definition: CrowdManager.h:59
StringTextureMap textures_
Textures.
Definition: Material.h:350
float GetUpperAngle() const
Definition: ConstraintRevolute2D.h:80
Scene * GetScene() const
Definition: Connection.cpp:655
volatile bool shouldRun_
Running flag.
Definition: Thread.h:83
Action as resource.
Definition: ActionSet.h:35
const char * GetRootBlockName() const override
Root block name. Used for XML serialization only.
Definition: SerializableResource.h:38
ResourceRef GetFontAttr() const
Return font attribute.
Definition: Text.cpp:448
Definition: ClockSynchronizer.h:76
unsigned EvaluateInstanceSize() const override
Evaluate size required to place new node instance.
Definition: Uniform.h:134
const IntVector2 & GetAbsoluteGlyphOffset() const
Definition: Font.h:85
unsigned GetNumOccluderTriangles() override
Return number of occlusion geometry triangles.
Definition: CustomGeometry.cpp:144
void SetLocalBoundingSphere(float radius)
Reset bounding volume to local bounding sphere.
Definition: ModelView.cpp:487
Texture * GetBackupTexture() const
Definition: Texture.h:159
void SetBrakeValue(float value)
Set brake value of particular wheel.
const Variant & GetParameter(const ea::string &name) const
Return engine parameter or default value.
Definition: Engine.cpp:1227
void UpdateAttributeAnimations(float timeStep)
Update attribute animations.
Definition: Animatable.cpp:505
unsigned numIterations_
Number of iterations.
Definition: LightBakingSettings.h:148
const bool isAimPose_
Indicates this action pulls the aim pose information for the given hand.
Definition: VirtualReality.h:141
ea::string name_
Name.
Definition: UIElement.h:787
bool LoadLegacyXML(const XMLElement &source) override
Try to load legacy XML format, whatever it is.
Definition: PrefabResource.cpp:153
void SetHeight(float newHeight)
Definition: Obstacle.cpp:71
Circle Intersect(const Sphere &sphere, float *distanceFromCenter=nullptr) const
Definition: Sphere.cpp:275
float GetCorrectionFactor() const
Definition: ConstraintMotor2D.h:78
bool skinTangents_
Whether the buffer has tangents affected by skeletal animation.
Definition: SoftwareModelAnimator.h:41
Definition: FreeFlyController.h:43
bool pauseMinimized_
Pause when minimized flag.
Definition: Engine.h:190
Definition: DestroyInstance.h:34
unsigned GetPipelineStateHash() const
Return (partial) pipeline state hash. Save to call from multiple threads as long as the object is not...
Definition: PipelineStateTracker.h:94
void AddCollisionShape2D(CollisionShape2D *collisionShape)
Add collision shape.
Definition: RigidBody2D.cpp:437
ea::array< Camera *, 2 > additionalCameras_
Optional list of additional cameras that may be attached, such as eyes, etc.
Definition: Drawable.h:123
bool bringToBack_
Bring to back when defocused flag.
Definition: UIElement.h:803
virtual void WriteUnreliableFeedback(NetworkFrame frame, Serializer &dest)
Write unreliable feedback from client.
Definition: NetworkCallbacks.h:121
ea::vector< Pass * > GetPasses() const
Definition: Technique.cpp:489
WorkQueue(Context *context)
Construct.
Definition: WorkQueue.cpp:253
unsigned long long secondaryKey_
Secondary sorting value.
Definition: PipelineBatchSortKey.h:95
Shader resource consisting of several shader variations.
Definition: Shader.h:35
void SetVertices(const ea::vector< Vector2 > &vertices)
Set vertices.
Definition: CollisionChain2D.cpp:83
Quaternion(float angle, const Vector3 &axis) noexcept
Construct from an angle (in degrees) and axis.
Definition: Quaternion.h:96
void SetEye(Camera *camera, int eyeIdx)
Set a camera based on eye-index, starting from the left.
Definition: Viewport.cpp:289
PListValueType
PList value types.
Definition: PListFile.h:36
Animation * GetEnterAnimation() const
Return enter animation.
Definition: TriggerAnimator.h:52
void Scan(ea::vector< ea::string > &result, const ea::string &pathName, const ea::string &filter, ScanFlags flags) const override
Enumerate objects in the mount point. Only files enumeration is guaranteed to be supported.
Definition: PackageFile.cpp:168
unsigned GetNumLightmaps() const
Return number of lightmaps.
Definition: Scene.h:139
const ea::string & GetName() const override
Returns human-readable name of the mount point.
Definition: MountedExternalMemory.cpp:105
ThreadSafeCache< CachedViewProj > cachedViewProj_
Cached view-projection matrices.
Definition: Camera.h:355
float z_
Z coordinate.
Definition: Vector4.h:253
const ea::vector< float > & GetData() const
Return all recorded samples. Use GetCurrent() to determine oldest/newest sample index.
Definition: Timer.h:146
unsigned GetNumObstacleAvoidanceTypes() const
Definition: CrowdManager.h:172
static const Quaternion IDENTITY
Identity quaternion.
Definition: Quaternion.h:506
const StringHash & GetEventType() const
Return event type.
Definition: Object.h:285
const ea::string & GetCommandInterpreter() const
Return the last used command interpreter.
Definition: Console.h:64
void SetMipsToSkip(MaterialQuality quality, int toSkip)
Definition: Texture.cpp:154
VertexMaskFlags GetMorphElementMask() const
Return morph mask.
Definition: SoftwareModelAnimator.cpp:193
Vector3 Raycast(const Vector3 &start, const Vector3 &end, int queryFilterType, Vector3 *hitNormal=nullptr)
Perform a walkability raycast on the navigation mesh between start and end using the crowd initialize...
Definition: CrowdManager.cpp:450
BoundingBox cullingBox_
Bounding box used for drawable object fitting.
Definition: Octree.h:149
SharedPtr< Actions::FiniteTimeAction > action_
Action on top of stack (current).
Definition: ActionBuilder.h:200
static Matrix3x4 FromTranslation(const Vector3 &translation)
Construct from translation vector.
Definition: Matrix3x4.h:178
IntVector3 GetSize() const
Return size of the image.
Definition: Image.h:157
const Color & GetStartColor() const
Definition: RibbonTrail.h:159
void ClearBuffer(unsigned threadIndex)
Clear a thread work buffer.
Definition: OcclusionBuffer.cpp:1021
unsigned GetLightMaskEffective() const
Return effective light mask. Baked lights have zero light mask.
Definition: Light.h:287
One decal in a decal set.
Definition: DecalSet.h:77
float GetMinRotation() const
Definition: ParticleEffect.h:374
const Vector2 & GetLayoutFlexScale() const
Definition: UIElement.h:657
Definition: MoveAndOrbitComponent.h:29
Color color_
Color.
Definition: StaticSprite2D.h:183
Definition: ClientReplica.h:50
Quaternion(const Vector3 &angles) noexcept
Construct from Euler angles (in degrees).
Definition: Quaternion.h:114
~WorkQueue() override
Destruct.
Definition: WorkQueue.cpp:265
bool useSystemShapes_
Use system default shapes flag.
Definition: Cursor.h:147
const IntRect & GetBorder() const
Definition: StretchableSprite2D.h:46
2D physics simulation world component. Should be added only to the root scene node.
Definition: PhysicsWorld2D.h:70
static void RegisterObject(Context *context)
Definition: Drawable.cpp:103
SharedPtr< RenderPipelineView > renderPipelineView_
Instance of render pipeline connected to renderPipeline_.
Definition: Viewport.h:140
SharedPtr< FiniteTimeAction > Reverse() const override
Create reversed action.
Definition: Attribute.cpp:147
bool BeginLoad(Deserializer &source) override
Load resource from stream. May be called from a worker thread. Return true if successful.
Definition: PListFile.cpp:311
bool cubemap_
Cubemap status if DDS.
Definition: Image.h:225
PointOctreeQuery(ea::vector< Drawable * > &result, const Vector3 &point, DrawableFlags drawableFlags=DRAWABLE_ANY, unsigned viewMask=DEFAULT_VIEWMASK)
Construct with point and query parameters.
Definition: OctreeQuery.h:74
ResourceRef GetDefaultFontAttr() const
Return default font attribute.
Definition: TextRenderer3D.cpp:177
Operation on attribute.
Definition: Constant.h:36
void SetEndColor(const Color &color)
Definition: RibbonTrail.cpp:831
MutexLock(T &mutex)
Construct and acquire the mutex.
Definition: Mutex.h:153
int WeakRefs() const noexcept
Return the object's weak reference count, or 0 if the pointer is null.
Definition: Ptr.h:308
OctreeQuery(ea::vector< Drawable * > &result, DrawableFlags drawableFlags, unsigned viewMask)
Construct with query parameters.
Definition: OctreeQuery.h:45
Decal vertex.
Definition: DecalSet.h:38
HighPrecisionVector3 CrossProduct(const HighPrecisionVector3 &rhs) const
Cross product with another vector.
Definition: TetrahedralMesh.h:70
Octant * GetOctant() const
Return octree octant.
Definition: Drawable.h:362
void OnMarkedDirty(Node *node) override
Handle node transform being dirtied.
Definition: Camera.cpp:703
unsigned batchCount_
Batch count.
Definition: Renderer2D.h:60
Sound * GetSound() const
Definition: SoundSource.h:96
void SerializeInBlock(Archive &archive)
Serialize content from/to archive. May throw ArchiveException.
Definition: AxisAdapter.cpp:61
Matrix3x4 Inverse() const
Return inverse.
Definition: Matrix3x4.cpp:69
bool SetVariantValue(const Variant &value)
Set a variant attribute excluding the type.
Definition: XMLElement.cpp:435
WeakPtr< UIElement > movementUIElement_
UI element to filter touch events.
Definition: MoveAndOrbitController.h:122
virtual const RenderPipelineStats & GetStats() const override
Return render pipeline statistics for profiling.
Definition: StereoRenderPipeline.cpp:638
Vector3 SignedScale(const Matrix3 &rotation) const
Return the scaling part with the sign. Reference rotation matrix is required to avoid ambiguity.
Definition: Matrix3x4.h:662
void SetNumBones(unsigned numBones)
Set number of bones.
Definition: Skeleton.cpp:128
Component that instantiates prefab resource into the parent Node.
Definition: PrefabReference.h:41
bool IsSixteenBit() const
Definition: Sound.h:109
void DrawDebugGeometries(bool depthTest) override
Draw debug geometries, if applicable.
Definition: DefaultRenderPipeline.cpp:484
Script API implemented in target scripting language.
Definition: Script.h:47
bool WriteBool(bool value)
Write a bool.
Definition: Serializer.cpp:83
void Transform(const Matrix3 &transform)
Transform with a 3x3 matrix.
Definition: Polyhedron.cpp:237
E enum_type
Enum type.
Definition: FlagSet.h:271
VectorBuffer msg_
Reusable message buffer.
Definition: AbstractConnection.h:160
int GetRefreshRate() const
Return refresh rate when using vsync in fullscreen.
Definition: Graphics.h:203
void SetSmoothing(bool enable)
Definition: Terrain.cpp:230
T Abs(T value)
Definition: MathDefs.h:100
void SetReflectionCategory(const TypeInfo *typeInfo, ea::string_view category)
Assign object reflection to the category.
Definition: ObjectReflection.cpp:240
bool backgroundStatic_
Whether the background is static.
Definition: Zone.h:215
const StringVector & GetPixelTextureDefines() const
Return names of textures to be reported as defines in pixel shader code.
Definition: Technique.h:194
bool ResetAppStats(const ea::string &label)
Definition: DebugHud.cpp:119
float timeScale_
Scene update time scale.
Definition: Scene.h:349
static void RegisterObject(Context *context)
Register object with the engine.
Definition: Connection.cpp:100
bool readOnly_
Read-only flag.
Definition: MemoryBuffer.h:68
bool loop_
Loop.
Definition: CollisionChain2D.h:82
const ea::string & GetFileName() const
Definition: FileSelector.cpp:264
UIElement * screenJoystick_
UI element containing the screen joystick.
Definition: Input.h:137
Vector2 mousePosition_
Current normalized mouse position supplied externally.
Definition: Camera.h:406
SharedPtr< UIElement > savedRootElement_
UI root element saved upon activation to be restored at deactivation.
Definition: StateManager.h:135
unsigned tetIndex_
Index of underlying tetrahedron. M_MAX_UNSIGNED if empty.
Definition: TetrahedralMesh.h:140
float lodDistance_
LOD scaled distance.
Definition: Drawable.h:479
float cacheInvalidationDistanceSquared_
Cache invalidation distance (squared).
Definition: Drawable.h:137
void OnSceneSet(Scene *scene) override
Handle scene being assigned.
Definition: AnimatedSprite2D.cpp:209
WeakPtr< Context > context_
Context pointer.
Definition: RmlFile.h:66
int GetWidth() const
Return width.
Definition: TmxFile2D.h:54
ea::span< ParticleGraphNodeInstance * > updateNodeInstances_
Node instances for update graph.
Definition: ParticleGraphLayerInstance.h:152
Bone()
Construct with defaults.
Definition: Skeleton.h:58
void ReleaseShaders()
Reset shader pointers in all passes.
Definition: Technique.cpp:378
void SerializeInBlock(Archive &archive) override
Serialize content from/to archive. May throw ArchiveException.
Definition: Move.cpp:753
void BuildHull(const ea::vector< Vector3 > &vertices)
Build the convex hull from vertices.
Definition: CollisionShape.cpp:288
T object_
Cached object.
Definition: ThreadSafeCache.h:75
Definition: BurstTimer.h:37
ea::string ReadFileID()
Read a four-letter file ID.
Definition: Deserializer.cpp:266
GraphNode * GetNode(unsigned id) const
Get node by id.
Definition: Graph.cpp:131
bool SetSize(int width, int height, int depth, TextureFormat format, TextureFlags flags=TextureFlag::None)
Set size, format and usage. Zero size will follow application window size. Return true if successful.
Definition: Texture3D.cpp:146
virtual const ea::string & GetAbsoluteName() const
Definition: AbstractFile.h:56
void Swap(Array2D< T > &other)
Swap with other array.
Definition: Array2D.h:211
unsigned type_
type.
Definition: JSONValue.h:319
Definition: ReplicatedAnimation.h:40
float GetHeight() const
Definition: Obstacle.h:55
void FixedPostUpdate(float timeStep) override
Perform fixed step post-update.
Definition: RaycastVehicle.cpp:412
void ResumeApplication(const SerializedPlugins &serializedPlugins)
Resume all plugins in the stack and start application.
Definition: PluginManager.cpp:183
float radius_
Radius.
Definition: OffMeshConnection.h:93
bool GetUpdateInvisible() const
Definition: RibbonTrail.h:203
void HandleDropFile(StringHash eventType, VariantMap &eventData)
Handle a file being drag-dropped into the application window.
Definition: RmlUI.cpp:647
void SendEndContactEvents()
Send end contact events.
Definition: PhysicsWorld2D.cpp:783
void DropConnection(AbstractConnection *connection)
Process connection dropped. Removes client connection for server, converts scene to standalone for cl...
Definition: ReplicationManager.cpp:375
Matrix3x4(const Matrix3 &matrix) noexcept
Copy-construct from a 3x3 matrix and set the extra elements to identity.
Definition: Matrix3x4.h:66
Aggregated light baking settings.
Definition: LightBakingSettings.h:189
const Vector3 & GetSpacing() const
Definition: Terrain.h:135
virtual VariantType EvaluateOutputPinType(ParticleGraphPin &pin)
Evaluate runtime output pin type.
Definition: ParticleGraphNode.cpp:298
void drawLine(const btVector3 &from, const btVector3 &to, const btVector3 &color) override
Draw a physics debug line.
Definition: PhysicsWorld.cpp:281
bool fastMode_
Fast mode flag.
Definition: AreaAllocator.h:70
ea::vector< InnerCollection > OuterCollection
Outer collection type.
Definition: MultiVector.h:40
SimpleResource(Context *context)
Construct.
Definition: Resource.cpp:200
void ResetToDefaults()
Reset to defaults.
Definition: Material.cpp:979
static void RegisterObject(Context *context)
Definition: AnimationSet2D.cpp:118
static const unsigned MaxBones
Max number of bones.
Definition: SoftwareModelAnimator.h:55
void Sample(float time, float duration, bool isLooped, unsigned &frameIndex, Transform &transform) const
Sample value at given time.
Definition: AnimationTrack.cpp:33
unsigned vertexCount_
Vertex count.
Definition: Renderer2D.h:52
ea::unordered_map< StringHash, ResourceGroup > resourceGroups_
Resources by type.
Definition: ResourceCache.h:241
ActionBuilder & ShaderParameterTo(float duration, ea::string_view parameter, const Variant &to)
Continue with ShaderParameterTo action.
Definition: ActionBuilder.cpp:246
void SetAngleVariance(float angleVariance)
Set angle variance.
Definition: ParticleEffect2D.cpp:336
Node * InstantiateJSON(const JSONValue &source, const Vector3 &position, const Quaternion &rotation)
Instantiate scene content from JSON data. Return root node if successful.
Definition: Scene.cpp:675
float SignedArea(const Vector3 &v0, const Vector3 &v1, const Vector3 &v2) const
Return signed area of a triangle. If negative, is clockwise.
Definition: OcclusionBuffer.cpp:562
virtual const FontGlyph * GetGlyph(unsigned c)
Return pointer to the glyph structure corresponding to a character. Return null if glyph not found.
Definition: FontFace.cpp:54
virtual unsigned GetNumPins() const =0
Get number of pins.
void WriteReliableDelta(NetworkFrame frame, Serializer &dest) override
Write reliable delta update. Delta is applied to previous delta or snapshot.
Definition: StaticNetworkObject.cpp:90
unsigned drawStart_
Draw start. First index for indexed geometry, otherwise first vertex.
Definition: OcclusionBuffer.h:79
void AddLine2D(const Vector2 &start, const Vector2 &end, const Color &color, bool depthTest=true)
Add a line in 2D screen space.
Definition: DebugRenderer.cpp:108
Mutex backgroundLoadMutex_
Mutex for thread-safe access to the background load queue.
Definition: BackgroundLoader.h:83
ea::string name_
Name of attribute.
Definition: ParticleGraphMemory.h:83
void InsertDrawable(Drawable *drawable)
Insert a drawable object by checking for fit recursively.
Definition: Octree.cpp:123
~ConstraintPrismatic2D() override
Destruct.
b2JointDef * GetJointDef() override
Return joint def.
Definition: ConstraintMouse2D.cpp:107
Container data_
Array data.
Definition: Array2D.h:228
const TypeInfo * typeInfo_
Type info of reflected object.
Definition: ObjectReflection.h:110
IntVector2 index_
Current index within rectangle.
Definition: Rect.h:548
Constraint2D * GetAttachedConstraint() const
Return attached constraint (for gear).
Definition: Constraint2D.h:80
const IntVector2 & GetDisabledOffset() const
Definition: BorderImage.h:107
NavigationMesh(Context *context)
Construct.
Definition: NavigationMesh.cpp:127
float height_
Height of this obstacle, extends 1/2 height below and 1/2 height above the owning node's position.
Definition: Obstacle.h:92
GeometryType
Geometry type for vertex shader geometry variations.
Definition: GraphicsDefs.h:38
Subsystem for virtual file system.
Definition: VirtualFileSystem.h:17
void RemovePass(const ea::string &name)
Remove a pass.
Definition: Technique.cpp:438
void AddNode(Node *node, float scale=1.0f, bool depthTest=true)
Add a scene node represented as its coordinate axes.
Definition: DebugRenderer.cpp:150
Vector3 centerOfMass_
Center of mass offset.
Definition: RigidBody.h:327
unsigned Seek(unsigned position) override
Set position from the beginning of the buffer. Return actual new position.
Definition: VectorBuffer.cpp:67
SharedPtr< Texture2D > pongTexture_
Second texture for ping-pong.
Definition: LightmapStitcher.h:47
static const IntVector3 BACK
(0,0,-1) vector.
Definition: Vector3.h:195
bool IsVisible() const
Definition: UIElement.h:611
void SetFillMode(FillMode mode)
Definition: Camera.cpp:198
FileIdentifier GetCanonicalIdentifier(const FileIdentifier &name) const
Return canonical resource identifier without resource routing.
Definition: ResourceCache.cpp:984
bool overridable_
Whether to allow overriding this parameter in user configuration.
Definition: ConfigFile.h:44
void Initialize(Model *model, bool skinned, unsigned numBones)
Initialize with model. Shall be manually called on model reload.
Definition: SoftwareModelAnimator.cpp:62
WeakPtr(ThisType &&rhs) noexcept
Move-construct from another weak pointer.
Definition: Ptr.h:357
void OnRenderBegin(const CommonFrameInfo &frameInfo) override
Definition: RenderBuffer.cpp:112
static Vector3 ProjectUVOnCube(CubeMapFace face, const Vector2 &uv)
Project UV onto cube.
Definition: ImageCube.cpp:346
ea::vector< CrowdAgent * > GetAgents(Node *node=nullptr, bool inCrowdFilter=true) const
Get all the crowd agent components in the specified node hierarchy. If the node is not specified then...
Definition: CrowdManager.cpp:559
void SetColor(const Color &color)
Definition: UIElement.cpp:850
void Update(float timeStep)
Process incoming messages from connections. Called by HandleBeginFrame.
Definition: Network.cpp:472
void SetPartitionType(NavmeshPartitionType partitionType)
Definition: NavigationMesh.cpp:1558
unsigned long long elementHash_
Vertex element hash.
Definition: VertexBuffer.h:143
ea::vector< VertexElement > rawElements_
Raw vertex data elements.
Definition: Geometry.h:169
Settings that contribute to shader defines.
Definition: RenderPipelineDefs.h:626
AxisAdapter axisAdapter_
Joystick axis adapter.
Definition: DirectionAggregator.h:133
Graph node execution flow "enter" pin. May be connected to multiple exit pins.
Definition: GraphPin.h:135
bool BeginLoad(Deserializer &source) override
Load resource from stream. May be called from a worker thread. Return true if successful.
Definition: Material.cpp:226
bool HasTile(const IntVector2 &tileIndex) const
Return whether the navigation mesh has tile.
Definition: NavigationMesh.cpp:522
static void RegisterObject(Context *context)
Definition: UIElement.cpp:115
IntVector3(int x, int y, int z) noexcept
Construct from coordinates.
Definition: Vector3.h:46
unsigned numTasks_
Number of tasks to spawn.
Definition: LightBakingSettings.h:97
bool useClipping_
Use custom clip plane flag.
Definition: Camera.h:401
Matrix3x4 volumeTransform_
Custom world transform for the light volume.
Definition: Light.h:487
void Transform(const Matrix3 &transform)
Transform by a 3x3 matrix.
Definition: Frustum.cpp:173
@ WM_ONCE
Play once, when animation finished it will be removed.
Definition: AnimationDefs.h:36
SphericalHarmonicsColor9(const Vector3 &dir, const Vector3 &color)
Construct SH9 coefficients from given normalized direction and color.
Definition: SphericalHarmonics.h:108
TargetShaderLanguage
List of supported target shader languages.
Definition: ShaderDefs.h:50
Definition: TrackedComponent.h:147
@ ASYNC_DONE
No async operation in progress.
Definition: Resource.h:72
Mutex audioMutex_
Audio thread mutex.
Definition: Audio.h:156
SendEvent(Context *context)
Construct.
Definition: CallFunc.cpp:94
void PrepareForUpdate()
Initial preparation for network update.
Definition: ServerReplicator.cpp:87
Animate attribute between two values.
Definition: Attribute.h:32
void NotifyRigidBody(bool updateMass=true)
Update the new collision shape to the RigidBody.
Definition: CollisionShape.cpp:835
ParticleGraphNodeInstance * CreateInstanceAt(void *ptr, ParticleGraphLayerInstance *layer) override
Place new instance at the provided address.
Definition: Noise3D.cpp:60
ea::string GetShaderName() const
Return shader name.
Definition: Shader.cpp:182
WeakPtr< Graphics > graphics_
Graphics instance.
Definition: CameraProcessor.h:71
Vector3 diffuseColor_
Diffuse color.
Definition: RaytracerScene.h:51
WeakPtr< Context > context_
Pointer to Urho3D context.
Definition: RmlSystem.h:76
Matrix4 projection_
Cached projection matrix.
Definition: Camera.h:332
UIElement * GetRootModalElement() const
Definition: UI.h:161
bool BeginLoad(Deserializer &source) override
Load resource from stream. May be called from a worker thread. Return true if successful.
Definition: ValueAnimation.cpp:71
float GetContactProcessingThreshold() const
Definition: RigidBody.cpp:649
void SetInContact(bool isInContact)
Set in contact. Executed by physics simulation.
float agentMaxClimb_
Navigation agent max vertical climb.
Definition: NavigationMesh.h:372
bool EmitNewParticle()
Create a new particle. Return true if there was room.
Definition: ParticleEmitter.cpp:445
void DefineNormal(const Vector3 &normal)
Define a vertex normal.
Definition: CustomGeometry.cpp:264
float smoothingConstant_
Constant used to fade out position offset.
Definition: KinematicCharacterController.h:198
float GetEndScale() const
Definition: RibbonTrail.h:171
void ResetLightmaps()
Reset lightmaps.
Definition: Scene.cpp:282
void Reset()
Clear all loaded strings.
Definition: Localization.cpp:154
InternalType GetClosestRaw(NetworkFrame frame) const
Return closest valid raw value. Prior values take precedence.
Definition: NetworkValue.h:491
void ProcessRayQuery(const RayOctreeQuery &query, ea::vector< RayQueryResult > &results) override
Process octree raycast. May be called from a worker thread.
Definition: BillboardSet.cpp:137
SharedPtr< RmlUI > offScreenUI_
Subsystem that handles UI rendering to the texture.
Definition: RmlCanvasComponent.h:77
KeyFrame * GetKeyFrame(unsigned index)
Return keyframe at index, or null if not found.
Definition: KeyFrameSet.h:63
int GetMaxParticles() const
Return max particles.
Definition: ParticleEffect2D.h:189
float Average() const
Return average value of the RGB channels.
Definition: Color.h:178
bool WriteQuaternion(const Quaternion &value)
Write a quaternion.
Definition: Serializer.cpp:144
void SetAnimationEnabled(bool enable)
Definition: Animatable.cpp:256
int layer_
Layer.
Definition: Drawable2D.h:146
void MarkAnimationDirty()
Mark animation and skinning to require an update.
Definition: AnimatedModel.cpp:953
float GetOrthoSize() const
Definition: Camera.h:158
void CreateWindowIcon()
Create the application window icon.
Definition: Graphics.cpp:511
unsigned selectionLength_
Selection length.
Definition: Text.h:270
IntRectIterator(const IntRect &rect, const IntVector2 &index)
Construct valid. Iterators with different rectangles are incompatible.
Definition: Rect.h:503
void SerializeBytes(const char *name, void *bytes, unsigned size) final
Serialize bytes. Size is not encoded and should be provided externally!
Definition: JSONArchive.cpp:138
Vector3 Raycast(const Vector3 &start, const Vector3 &end, const Vector3 &extents=Vector3::ONE, const dtQueryFilter *filter=nullptr, Vector3 *hitNormal=nullptr)
Perform a walkability raycast on the navigation mesh between start and end and return the point where...
Definition: NavigationMesh.cpp:796
~Log() override
Destruct. Close the log file if open.
Definition: Log.cpp:373
void Update(float replicaTimeStep, float inputTimeStep) override
Process generic network update.
Definition: BehaviorNetworkObject.cpp:414
Font * lastFont_
Last used text font.
Definition: LineEdit.h:155
void AddAttributeAnimation(const ea::string &name, ValueAnimation *attributeAnimation, WrapMode wrapMode=WM_LOOP, float speed=1.0f)
Add attribute animation, attribute name can in following format: "attribute" or "#0/#1/attribute" or ...
Definition: ObjectAnimation.cpp:195
static void RegisterObject(ParticleGraphSystem *context)
Register particle node factory.
Definition: EmitterRotation.cpp:38
bool PerformUnload() override
Actually unloads the module. Called by PluginManager at the end of frame when IsUnloading is true.
Definition: ModulePlugin.cpp:83
bool SetLastModifiedTime(const ea::string &fileName, FileTime newTime)
Set a file's last modified time as seconds since 1.1.1970. Return true on success.
Definition: FileSystem.cpp:1045
bool Open(const ea::string &fileName, FileMode mode=FILE_READ)
Open a filesystem file. Return true if successful.
Definition: File.cpp:129
RayOctreeQuery(const Ray &ray, RayQueryLevel level=RAY_TRIANGLE, float maxDistance=M_INFINITY, DrawableFlags drawableFlags=DRAWABLE_ANY, unsigned viewMask=DEFAULT_VIEWMASK)
Construct with ray and query parameters and use builtin storage for results.
Definition: OctreeQuery.h:239
PluginApplication * InstantiatePlugin()
Instantiate plugin interface from DLL.
Definition: DynamicModule.cpp:552
const Vector4 & GetLightmapScaleOffset() const
Return lightmap scale and offset.
Definition: TerrainPatch.h:121
void SetNumViewports(unsigned num)
Definition: StateManager.cpp:189
bool BeginLoad(Deserializer &source) override
Load resource from stream. May be called from a worker thread. Return true if successful.
Definition: Font.cpp:76
bool IsClosedSurface() const
Return whether the mesh is a closed surface.
Definition: TetrahedralMesh.cpp:131
void SetIPDCorrection(float value)
Definition: VirtualReality.h:216
void SetBackbufferRenderSurface(RenderSurface *renderSurface)
Set backbuffer render surface. Null corresponds to the application backbuffer.
Definition: Renderer.cpp:287
VariantVector nodeIDsAttr_
IDs of instance nodes for serialization.
Definition: StaticModelGroup.h:93
const IntRect & GetImageRect() const
Definition: BorderImage.h:91
void SetEffectStrokeThickness(int thickness)
Definition: Text3D.cpp:299
Octree * octree_
Octree root.
Definition: Octree.h:165
const Vector3 & GetControlDelta() const
Get control point delta.
Definition: Move.h:73
Disable(Context *context)
Construct.
Definition: Misc.cpp:103
Pipeline state cache for UI batches.
Definition: BatchStateCache.h:211
void SetName(const ea::string &name) override
Not supported.
Definition: NamedPipe.cpp:410
ea::vector< SharedPtr< Material > > materials_
Materials.
Definition: Renderer2D.h:64
static const ea::string LightmapSizeKey
Metadata key for lightmap size.
Definition: LightmapUVGenerator.h:38
void SetResizeBorder(const IntRect &rect)
Definition: Window.cpp:270
static unsigned materialPassIndex
Index for prepass material pass. Initialized once GetPassIndex() has been called for the first time.
Definition: Technique.h:314
void PrepareInstancingBuffer(BatchRenderer *batchRenderer) override
Prepare instancing buffer for scene pass.
Definition: ScenePass.cpp:179
void EnsureItemVisibility(unsigned index)
Ensure full visibility of the item.
Definition: ListView.cpp:1003
bool LoadFile(const ea::string &fileName)
Load primary GLTF file into memory without any processing.
Definition: GLTFImporter.cpp:3889
~Renderer() override
Destruct.
void SetVertex(unsigned index, const Vector2 &vertex)
Set vertex.
Definition: CollisionChain2D.cpp:70
void CalculateMissingNormals(bool flatNormals=false)
Calculate normals for geometries without normals in vertex format. Resets tangents for affected geome...
Definition: ModelView.cpp:1455
Debug rendering line.
Definition: DebugRenderer.h:45
void MoveCamera()
Move camera.
Definition: CameraOperator.cpp:236
Geometry * GetLodGeometry(unsigned batchIndex, unsigned level) override
Return the geometry for a specific LOD level.
Definition: TerrainPatch.cpp:163
ea::vector< SharedPtr< IndexBuffer > > indexBuffers_
Index buffers.
Definition: Model.h:241
StateManager(Context *context)
Definition: StateManager.cpp:327
void ApplyAttributes() override
Apply attribute changes that can not be applied immediately. Called after scene load or a network upd...
Definition: RigidBody.cpp:126
float GetDrawDistance() const
Definition: Drawable.h:298
Accumulated light for forward rendering.
Definition: LightAccumulator.h:108
int indentSpacing_
Indent spacing (number of pixels per indentation level).
Definition: UIElement.h:845
bool Load(Deserializer &source)
Load resource synchronously. Call both BeginLoad() & EndLoad() and return true if both succeeded.
Definition: Resource.cpp:116
const Variant & GetShaderParameter(const ea::string &name) const
Definition: Material.cpp:941
void SetObjectGroup(const TmxObjectGroup2D *objectGroup)
Set object group.
Definition: TileMapLayer2D.cpp:369
static void RegisterObject(ParticleGraphSystem *context)
Register particle node factory.
Definition: ApplyForce.cpp:37
unsigned & GetMutableLightProbeTetrahedronHint()
Return mutable light probe tetrahedron hint.
Definition: Drawable.h:390
void UpdateEdgePatchNeighbors()
Update edge patch neighbors when neighbor terrain(s) change or are recreated.
Definition: Terrain.cpp:1461
void SetFullImageRect()
Use whole texture as the image.
Definition: BorderImage.cpp:89
bool GetUseHardwareSkinning() const
Return whether hardware skinning is used.
Definition: Renderer.h:255
void drawContactPoint(const btVector3 &pointOnB, const btVector3 &normalOnB, btScalar distance, int lifeTime, const btVector3 &color) override
Draw a physics debug contact point. Not implemented.
Definition: PhysicsWorld.cpp:305
void OnWorldBoundingBoxUpdate() override
Recalculate the world-space bounding box.
Definition: BillboardSet.cpp:459
static void RegisterObject(Context *context)
Definition: ConstraintWheel2D.cpp:44
Frustum GetViewSpaceFrustum() const
Definition: Camera.cpp:349
void ApplyWheelAttributes(unsigned index)
Immediately apply wheel attributes to physics.
Definition: RaycastVehicle.cpp:336
BackgroundLoader(ResourceCache *owner)
Construct.
bool cacheShaders_
Whether to cache shaders compiled during this run on the disk.
Definition: Graphics.h:78
unsigned unusedIndex_
Index of the 4th vertex of underlying tetrahedron. Unspecified if there's no underlying tetrahedron.
Definition: TetrahedralMesh.h:136
ea::array< ReflectionProbeReference, 2 > staticProbes_
Most important reflection probes affecting Drawable.
Definition: Drawable.h:144
Vector2 ownerBodyAnchor_
Owner body anchor.
Definition: ConstraintPulley2D.h:92
Vector4 splits_
Far clip values of the splits.
Definition: Light.h:143
void Bake()
Bake light in main thread. Must be called outside rendering.
Definition: LightBaker.cpp:149
void UpdatePriorityVariables(const StringVariantMap &defaults)
Update values for priority variables.
Definition: ConfigFile.cpp:84
ResourceGroup()
Construct with defaults.
Definition: ResourceCache.h:51
SourceBatch & operator=(const SourceBatch &rhs)
Assignment operator.
ea::vector< IntVector3 > GetResolutions(int monitor) const
Definition: Graphics.cpp:395
SharedPtr< VertexBuffer > vertexBuffer_
Vertex buffer.
Definition: TerrainPatch.h:140
CubeMapFace
Cube map faces.
Definition: GraphicsDefs.h:152
virtual void Unload()
Called on UnloadPlugin().
Definition: PluginApplication.h:90
bool SetSize(int width, int height, unsigned components)
Set 2D size and number of color components. Old image data will be destroyed and new data is undefine...
Definition: Image.cpp:686
SharedPtr< Model > model_
Model.
Definition: StaticModel.h:155
void UnsubscribeFromEvents(Object *sender)
Unsubscribe from a specific sender's events.
Definition: Object.cpp:176
bool HasEventFrames() const
Has event frames.
Definition: ValueAnimation.h:144
Cached info about current zone.
Definition: Drawable.h:130
EaseBounceInOut(Context *context)
Construct.
Definition: Ease.cpp:279
Vector3 position_
Position.
Definition: ParticleEmitter2D.h:40
ReflectionProbeType
Type of reflection probe.
Definition: ReflectionProbe.h:166
void OnSceneSet(Scene *scene) override
Handle scene being assigned.
Definition: CollisionShape.cpp:907
void SetObjectAnimation(ObjectAnimation *objectAnimation)
Definition: Animatable.cpp:302
bool IsBidirectional() const
Definition: OffMeshConnection.h:75
DirectLightTracingSettings()=default
Construct default.
Text * titleText_
Title text element.
Definition: MessageBox.h:77
void Render(const SharedRenderPassState &sharedState) override
Execute render commands.
Definition: ToneMappingPass.cpp:108
void BeginShadowBatchesComposition(unsigned lightIndex, ShadowSplitProcessor *splitProcessor)
Safe to call from worker thread.
Definition: BatchCompositor.cpp:356
float timer_
Time elapsed from creation.
Definition: ParticleEmitter.h:40
bool SetUInt(const ea::string &name, unsigned value)
Set an unsigned integer attribute.
Definition: XMLElement.cpp:377
unsigned long long GetMemoryUse(StringHash type) const
Definition: ResourceCache.cpp:639
ea::string GetLogFileName(const ea::string &uri) const
Return log file name in OS file system.
Definition: Engine.cpp:1367
const AttributeInfo & GetAttributeInfo() const
Return attribute information.
Definition: Animatable.h:53
SharedPtr< LogImpl > impl_
Implementation hiding spdlog class types from public headers.
Definition: Log.h:189
void SetContactNormal(Vector3 value)
Set contact normal. Executed by physics simulation.
ResourceRefList materialsAttr_
Material list attribute.
Definition: StaticModel.h:159
void DrawDebugGeometry(DebugRenderer *debug, bool depthTest) override
Visualize the component as debug geometry.
Definition: AnimatedModel.cpp:379
Wraps an input binding. Subclassed as required by interface implementations.
Definition: VirtualReality.h:75
SharedPtr< FreeTypeLibrary > freeType_
FreeType library.
Definition: FontFaceFreeType.h:59
ea::vector< unsigned char > offMeshDir_
Offmesh connection direction.
Definition: NavBuildData.h:77
SharedPtr< Technique > technique_
Technique.
Definition: Material.h:96
const ParticleGraphLayerInstance * GetLayer(unsigned layer) const
Get layer by index.
Definition: ParticleGraphEmitter.cpp:229
void SetType(VariantType newType)
Set new type and allocate/deallocate memory as necessary.
Definition: Variant.cpp:893
Vector2 ToXZ() const
Return x and z components as 2D vector (y component is ignored).
Definition: Vector3.h:495
ea::string material_
Material resource name.
Definition: ModelView.h:211
void PropagateImpliedSettings()
Definition: RenderPipelineDefs.cpp:124
void SetSubscriptionMask(DirectionAggregatorFlags mask)
Set input device subscription mask.
Definition: DirectionAggregator.cpp:73
static bool IsSupported()
Return if high-resolution timer is supported.
Definition: Timer.h:64
int Random(int min, int max)
Definition: MathDefs.h:359
void Invoke(VariantMap &eventData) const
Invoke event handler function.
Definition: Object.h:273
unsigned lightmapSize_
Size of lightmap chart.
Definition: LightmapGeometryBuffer.h:81
void Move(float timeStep)
Move the controlled Node to the next position along the SplinePath based off the Speed value.
Definition: SplinePath.cpp:221
bool visible_
Visible flag.
Definition: UIElement.h:819
void WriteSnapshot(NetworkFrame frame, Serializer &dest) override
Write full snapshot.
Definition: ReplicatedAnimation.cpp:80
void Update(const SharedRenderPassState &sharedState) override
Perform update that does not invoke any rendering commands.
Definition: AutoExposurePass.cpp:90
void RaycastSingle(PhysicsRaycastResult2D &result, const Vector2 &startPoint, const Vector2 &endPoint, unsigned collisionMask=M_MAX_UNSIGNED)
Perform a physics world raycast and return the closest hit.
Definition: PhysicsWorld2D.cpp:563
Polyhedron(const Polyhedron &polyhedron)
Copy-construct from another polyhedron.
Definition: Polyhedron.h:46
void SetMouseGrabbed(bool grab)
Set whether the mouse is currently being grabbed by an operation.
Definition: StateManager.cpp:145
IntVector3 ToIntVector3(int z=0) const
Return IntVector3 vector.
Definition: Vector3.h:574
@ IM_NONE
No interpolation.
Definition: ValueAnimation.h:42
Mount point that provides named aliases to other mount points.
Definition: MountedAliasRoot.h:15
void ApplyAttributes() override
Apply attribute changes that can not be applied immediately. Called after scene load or a network upd...
Definition: Terrain.cpp:152
ea::hash_set< ea::pair< StringHash, StringHash > > dependencies_
Resources depended on for loading.
Definition: BackgroundLoader.h:45
unsigned GetNumLayers() const
Get number of layers.
Definition: ParticleGraphEffect.cpp:65
Variant(const VectorBuffer &value)
Construct from a VectorBuffer and store as a buffer.
Definition: Variant.h:590
Renderer2D(Context *context)
Construct.
Definition: Renderer2D.cpp:63
long long GetInt64(const ea::string &name) const
Return a long long integer attribute, or zero if missing.
Definition: XMLElement.cpp:871
FocusMode focusMode_
Focus mode.
Definition: UIElement.h:825
static const Color WHITE
Opaque white color.
Definition: Color.h:275
bool IsPluginLoaded(const ea::string &name)
Return whether the plugin is loaded.
Definition: PluginManager.cpp:325
StringVariantMap * GetStringVariantMapPtr()
Return a pointer to a modifiable string variant map or null on type mismatch.
Definition: Variant.h:1610
SharedPtr< Animation > animation_
Animation.
Definition: AnimationState.h:228
void Initialize(unsigned numButtons, unsigned numAxes, unsigned numHats)
Initialize the number of buttons, axes and hats and set them to neutral state.
Definition: Input.cpp:327
unsigned geometryIndex_
Current geometry being updated.
Definition: CustomGeometry.h:151
virtual void SetYaw(float yaw)
Set yaw angle in degrees.
Definition: MoveAndOrbitComponent.cpp:45
void ApplyAttributes() override
Apply attribute changes that can not be applied immediately.
Definition: Text.cpp:100
ReflectionProbeSpan GetReflectionProbes() const
Return all reflection probes.
Definition: ReflectionProbe.h:109
unsigned GetPing() const override
Return ping of the connection.
Definition: Connection.cpp:715
bool QueueResource(const ea::string &name, bool sendEventOnFailure=true)
Template version of queueing a resource background load.
Definition: SplashScreen.h:106
void CalculateTransformTrack(NodeAnimationOutput &output, const AnimationTrack &track, unsigned &frame, float baseWeight) const
Apply value of transformation track to the output.
Definition: AnimationState.cpp:283
unsigned viewMask_
View mask.
Definition: ParticleGraphEmitter.h:131
bool ImportModel(const Model *model)
Definition: ModelView.cpp:854
void SetPatchSize(int size)
Definition: Terrain.cpp:184
ea::vector< ea::pair< unsigned, unsigned > > drawRanges_
Draw ranges for different LODs and stitching combinations.
Definition: Terrain.h:337
ea::vector< SharedPtr< ParticleGraphNode > > nodes_
Nodes in the graph;.
Definition: ParticleGraph.h:70
void OnResize(const IntVector2 &newSize, const IntVector2 &delta) override
React to resize.
Definition: Text.cpp:239
bool Run()
Start running the thread. Return true if successful, or false if already running or if can not create...
Definition: Thread.cpp:137
void ApplyAttributes() override
Apply attribute changes that can not be applied immediately. Called after scene load or a network upd...
Definition: Constraint2D.cpp:56
void SetEffectShadowOffset(const IntVector2 &offset)
Definition: Text3D.cpp:294
ResourceRef GetSpriteAttr() const
Return sprite attribute.
Definition: StaticSprite2D.cpp:242
void SetTrigger(bool enable)
Set rigid body trigger mode. In trigger mode kinematic characters don't affect rigid bodies and don't...
Definition: KinematicCharacterController.cpp:427
Base archive for binary serialization.
Definition: BinaryArchive.h:35
float sortDistance_
Sort distance. Used internally.
Definition: BillboardSet.h:56
Vector2 pivot_
Pivot Position.
Definition: UIElement.h:904
RenderPipelineView * GetRenderPipelineView() const
Return render pipeline.
Definition: Viewport.cpp:176
unsigned sourcePin_
Source node pin index.
Definition: ParticleGraphPin.h:145
void SetNonFocusedMouseWheel(bool nonFocusedMouseWheel)
Definition: UI.cpp:616
Orientation
UI element orientation.
Definition: UIElement.h:65
bool invocationInProgress_
Whether the invocation is in progress. If true, cannot execute RemoveExpiredElements().
Definition: Signal.h:239
float GetMaxTorque() const
Definition: ConstraintFriction2D.h:64
bool IsConnected() const
Definition: Connection.cpp:660
Vector4 GetVector(const ea::string &name) const
Return any Vector attribute as Vector4. Missing coordinates will be zero.
Definition: XMLElement.cpp:1063
SpriterData * spriterData_
Spriter data.
Definition: SpriterInstance2D.h:95
Signal< void(IntVector2 &)> mouseMoveEvent_
Emitted when mouse input is detected. Should be used for translating mouse coordinates when UI is ren...
Definition: RmlUI.h:109
StaticSprite2D(Context *context)
Construct.
Definition: StaticSprite2D.cpp:40
ea::vector< GeometryIDToObjectMapping > GeometryIDToObjectMappingVector
Vector of geometry mapping.
Definition: LightmapGeometryBuffer.h:49
bool Defined() const
Return true if this sphere is defined via a previous call to Define() or Merge().
Definition: Sphere.h:168
SharedPtr< BufferedSoundStream > linkedStream_
Target to auto-copy data into.
Definition: Microphone.h:102
Iterator that iterates through all elements of IntRect row-by-row.
Definition: Rect.h:499
float GetHitDistance(const Ray &ray, Vector3 *outNormal=nullptr, Vector2 *outUV=nullptr) const
Return ray hit distance or infinity if no hit. Requires raw data to be set. Optionally return hit nor...
Definition: Geometry.cpp:312
Definition: Noise3DInstance.h:35
void ClearOutputRect(const IntRect &viewportRect, ClearTargetFlags flags, const Color &color, float depth, unsigned stencil)
Clears currently writable color output if more than one color buffers are used.
Definition: RenderBufferManager.cpp:288
Length(Context *context)
Construct Length.
Definition: Length.cpp:58
Simple application to show scene with free-fly camera.
Definition: SceneViewerApplication.h:33
bool opacityDirty_
Derived opacity dirty flag.
Definition: UIElement.h:912
unsigned lightmapIndex_
Lightmap texture index.
Definition: Drawable.h:183
void OnSceneSet(Scene *scene) override
Handle scene being assigned.
Definition: CrowdManager.cpp:648
float rotationStart_
Rotation start.
Definition: ParticleEffect2D.h:323
void Update(float timeStep)
Update scene. Called by HandleUpdate.
Definition: Scene.cpp:819
void StopApplication()
Stop application.
Definition: PluginApplication.cpp:106
void HandleScenePostUpdate(StringHash eventType, VariantMap &eventData)
Handle scene post-update event.
Definition: ParticleEmitter.cpp:572
Vector2 GetViewSizeAt(float z) const
Return dimensions of camera frustum at given distance.
Definition: Camera.cpp:524
Cube texture resource.
Definition: ImageCube.h:42
~Script() override
Destruct.
Definition: Script.cpp:42
const PackageEntry * GetEntry(const ea::string &fileName) const
Return the file entry corresponding to the name, or null if not found. This will be case-insensitive ...
Definition: PackageFile.cpp:147
Quaternion Slerp(const Quaternion &rhs, float t) const
Spherical interpolation with another quaternion.
Definition: Quaternion.cpp:273
static void RegisterObject(ParticleGraphSystem *context)
Register particle node factory.
Definition: EffectTime.cpp:38
void SetAlignment(HorizontalAlignment hAlign, VerticalAlignment vAlign)
Set horizontal and vertical alignment.
Definition: Text3D.cpp:244
void SetMaterial(Material *material)
Definition: Terrain.cpp:247
VectorBuffer contacts_
Preallocated buffer for physics collision contact data.
Definition: PhysicsWorld.h:381
GlobalIlluminationType
Global illumination mode.
Definition: Drawable.h:82
const ea::vector< AttributeInfo > * GetAttributes(StringHash type) const
Return attribute descriptions for an object type, or null if none defined.
Definition: Context.h:134
void InterpolateState(float replicaTimeStep, float inputTimeStep, const NetworkTime &replicaTime, const NetworkTime &inputTime) override
Interpolate replicated state.
Definition: ReplicatedAnimation.cpp:246
const ea::vector< SharedPtr< UIElement > > & GetChildren() const
Return immediate child elements.
Definition: UIElement.h:670
const WindowSettings & GetWindowSettings() const
Return screen mode parameters.
Definition: Graphics.cpp:379
b2FixtureDef fixtureDef_
Fixture def.
Definition: CollisionShape2D.h:130
Definition: NetworkConnection.h:31
FileTime GetLastModifiedTime(const FileIdentifier &fileName, bool creationIsModification) const
Return modification time. Return 0 if not supported or file doesn't exist.
Definition: VirtualFileSystem.cpp:262
ea::vector< SharedPtr< MountPoint > > mountPoints_
File system mount points. It is expected to have small number of mount points.
Definition: VirtualFileSystem.h:98
SharedPtr< Image > GetImage(CubeMapFace face)
Get image data from a face's zero mip level. Only RGB and RGBA textures are supported.
Definition: TextureCube.cpp:171
float scaleInLightmap_
Texel density scale in lightmap.
Definition: StaticModel.h:164
Bone * GetBone(unsigned index)
Definition: Skeleton.cpp:232
Definition: Renderer2D.h:42
void SetFirstAction(FiniteTimeAction *action)
Set first action in sequence.
Definition: Sequence.cpp:152
void UpdateViewBatchInfo(ViewBatchInfo2D &viewBatchInfo, Camera *camera)
Update view batch info.
Definition: Renderer2D.cpp:390
void MarkShadersLoaded(unsigned frameNumber)
Mark shaders loaded this frame.
Definition: Technique.cpp:166
static void RegisterObject(Context *context)
Definition: TextureCube.cpp:71
bool operator==(const Variant &rhs) const
Test for equality with another variant.
Definition: Variant.cpp:219
ea::string GetQuery() const
Definition: XMLElement.h:414
unsigned GetNumPlugins() const
Return number of loaded plugins.
Definition: PluginManager.h:61
bool GetKeyFrameIndex(float time, unsigned &index) const
Return keyframe index based on time and previous index as hint. Return false if animation is empty.
Definition: KeyFrameSet.h:97
int GetMultiSample() const
Definition: Texture.h:151
void Raycast(ea::vector< PhysicsRaycastResult > &result, const Ray &ray, float maxDistance, unsigned collisionMask=M_MAX_UNSIGNED)
Perform a physics world raycast and return all hits.
Definition: PhysicsWorld.cpp:441
void SetPlayPosition(signed char *pos)
Set new playback position.
Definition: SoundSource.cpp:315
ea::optional< InternalType > SamplePrecise(const NetworkTime &time, float snapThreshold=M_LARGE_VALUE) const
Interpolate between two valid frames if possible.
Definition: NetworkValue.h:504
bool SetSize(int size, TextureFormat format, TextureFlags flags=TextureFlag::None, int multiSample=1)
Set size, format, usage and multisampling parameter for rendertargets. Note that cube textures always...
Definition: TextureCube.cpp:122
float Value() const
Return value as defined for HSV: largest value of the RGB components. Equivalent to calling MinRGB().
Definition: Color.h:193
unsigned GetLayers() const
Definition: Texture2DArray.h:68
Matrix4 GetMatrix4(const ea::string &name) const
Return a Matrix4 attribute, or zero matrix if missing.
Definition: XMLElement.cpp:1083
void UpdatePatchesLightmaps()
Update lightmap settings in patches.
Definition: Terrain.cpp:1480
Vector4 blendIndices_
Blend indices for skeletal animations. Must be integers.
Definition: ModelView.h:66
bool IsFixedScreenSize() const
Definition: BillboardSet.h:145
Definition: Variant.h:218
void OnNodeSet(Node *previousNode, Node *currentNode) override
Handle component being added to Node or removed from it.
Definition: RmlCanvasComponent.cpp:77
@ LT_INVALID
Invalid.
Definition: TileMapDefs2D.h:87
VariantVector GetObstacleAvoidanceTypesAttr() const
Return all the obstacle avoidance types configured in the crowd as attribute.
Definition: CrowdManager.cpp:522
bool serializeParticles_
Serialize particles flag.
Definition: ParticleEmitter.h:161
int GetTimeStepSmoothing() const
Definition: Engine.h:120
~View3D() override
Destruct.
Definition: View3D.cpp:57
void SetRenderTarget(Texture2D *texture, Color clearColor=Color::TRANSPARENT_BLACK)
Set texture to which entire UI will be rendered.
Definition: UI.cpp:2151
Definition: MemoryBuffer.h:33
Light probe collection with extra data needed for baking.
Definition: BakedSceneChunk.h:37
void WriteInt(XMLElement &element, const ea::string &name, int value) const
Write integer.
Definition: ParticleEffect2D.cpp:544
ea::vector< Vector3 > worldPositions_
World-space positions of light probes.
Definition: LightProbeGroup.h:88
File.
Definition: SpriterData2D.h:89
const ea::string & GetName() const override
Returns human-readable name of the mount point.
Definition: MountedRoot.cpp:87
Send event on target node.
Definition: CallFunc.h:113
unsigned GetSampleSize() const
Return sample size.
Definition: SoundStream.cpp:57
void SetTrigger(bool enable)
Definition: RigidBody.cpp:440
Make(Context *context)
Construct Make.
Definition: Make.cpp:81
~Font() override
Destruct.
Definition: Font.cpp:64
Triangle mesh geometry data.
Definition: CollisionShape.h:94
float GetRawHeight(int x, int z) const
Return an uninterpolated terrain height value, clamping to edges.
Definition: Terrain.cpp:1308
bool GetClipChildren() const
Definition: UIElement.h:576
ea::vector< Drawable * > shadowCasterCandidates_
Definition: LightProcessor.h:170
ea::vector< Vector4 > GetUnpackedData(unsigned start=0, unsigned count=M_MAX_UNSIGNED) const
Return unpacked buffer data as count * elements.size() elements, grouped by vertices.
Definition: VertexBuffer.cpp:286
ea::vector< SharedPtr< Image > > faceImages_
Face images.
Definition: ImageCube.h:90
void SetEmitting(bool emitting)
Definition: RibbonTrail.cpp:339
virtual void FixedUpdate(float timeStep)
Called on physics update, fixed timestep.
Definition: LogicComponent.cpp:59
Vector4 ModelTransform(const Matrix4 &transform, const Vector3 &vertex) const
Apply modelview transform to vertex.
Definition: OcclusionBuffer.cpp:536
void Wait()
Wait on the condition.
Definition: Condition.h:64
unsigned GetNumOccluderTriangles() override
Return number of occlusion geometry triangles.
Definition: StaticModelGroup.cpp:201
bool focusInput_
Flag indicating that console input should be focused on the next frame.
Definition: Console.h:127
virtual void * CloneGCHandle(void *handle)=0
Allocates a new gc handle which points to same object as provided handle.
bool modalAutoDismiss_
Modal auto dismiss (with escape key) flag. Default true.
Definition: Window.h:182
void SerializeLightProbes(Archive &archive)
Serialize light probes.
Definition: LightProbeGroup.cpp:254
void SendPackageToClient(PackageFile *package)
Trigger client connection to download a package file from the server. Can be used to download additio...
Definition: Connection.cpp:747
virtual ParticleGraphPin & GetPin(unsigned index)=0
Get pin by index.
Vector3 Center() const
Definition: BoundingBox.h:301
static const Vector3 LEFT
(-1,0,0) vector.
Definition: Vector3.h:507
WeakPtr< Node > controlledNode_
Node to be moved along the SplinePath.
Definition: SplinePath.h:148
ea::vector< SharedPtr< VertexBuffer > > vertexBuffers_
Vertex buffers.
Definition: Model.h:239
ea::vector< Billboard * > sortedBillboards_
Billboard pointers for sorting.
Definition: BillboardSet.h:236
ea::string name_
Name.
Definition: FileSelector.h:45
Intersection TestOctant(const BoundingBox &box, bool inside) override
Intersection test for an octant.
Definition: OctreeQuery.cpp:98
unsigned GetGenericAxis() const
Get generic button.
Definition: InputMap.h:78
bool IsOccludee() const
Definition: Terrain.h:241
EdgeStoppingGaussFilterParameters indirectFilter_
Indirect light filtering settings.
Definition: LightBakingSettings.h:212
bool needUpdate_
Need update flag.
Definition: ParticleEmitter.h:159
const Rect & GetTextureRect() const
Definition: StaticSprite2D.h:101
bool ShouldLoad() const
Return whether the attribute should be loaded.
Definition: Attribute.h:139
bool charLocationsDirty_
Char positions dirty flag.
Definition: Text.h:266
void EndSendEvent()
End event send. Clean up if necessary.
Definition: Context.cpp:65
unsigned GetUInt() const
Return unsigned int or zero on type mismatch. Floats and doubles are converted.
Definition: Variant.h:1351
EmitterScale(Context *context)
Construct EmitterScale.
Definition: EmitterScale.cpp:44
void PrepareInstancingBuffer(BatchRenderer *batchRenderer) override
Prepare instancing buffer for scene pass.
Definition: ScenePass.cpp:109
void Apply(const SharedPtr< ParticleGraphLayer > &layer)
Apply layer settings to the layer instance.
Definition: ParticleGraphLayerInstance.cpp:57
RenderSurface * GetLinkedDepthStencil() const
Definition: RenderSurface.h:104
Show target. The Target should have "Is Visible" attribute.
Definition: Misc.h:47
float drawDistance_
Draw distance.
Definition: Terrain.h:389
AutoRemoveMode autoRemove_
Automatic removal mode.
Definition: SoundSource.h:186
Signal< void(const RenderPipelineSettings &settings)> OnSettingsChanged
Invoked when settings change.
Definition: RenderPipeline.h:88
pugi::xpath_node_set * resultSet_
Pugixml xpath_node_set.
Definition: XMLElement.h:373
SharedPtr< Cursor > savedCursor_
UI cursor saved from previous state.
Definition: StateManager.h:139
void SetEnabled(bool enabled)
Set enabled flag. The object subscribes for events when enabled.
Definition: DirectionalPadAdapter.cpp:113
bool simulating_
Simulating flag.
Definition: PhysicsWorld.h:401
void SetTransportWebRTC()
Use the WebRTC transport.
Definition: Network.cpp:389
Texture2D * GetTexture() const
Definition: SpriteSheet2D.h:69
time_t timestamp_
Time when event was logged.
Definition: Console.h:99
void SetVerticesAttr(const ea::vector< unsigned char > &value)
Set vertices attribute.
Definition: CollisionPolygon2D.cpp:78
void SetSecondAction(FiniteTimeAction *action)
Set second action in sequence.
Definition: Sequence.cpp:158
unsigned GetInterpolatedColor(float x, float y)
Return an interpolated color for the UI element.
Definition: UIBatch.cpp:417
ResourceRef GetHeightMapAttr() const
Return heightmap attribute.
Definition: Terrain.cpp:825
void SetUseMutableGlyphs(bool enable)
Definition: UI.cpp:631
int diffuseImageHeight_
Diffuse image height.
Definition: RaytracerScene.h:69
Plane(const Vector3 &v0, const Vector3 &v1, const Vector3 &v2) noexcept
Construct from 3 vertices.
Definition: Plane.h:47
unsigned maxSamples_
Max number of samples per element.
Definition: LightBakingSettings.h:120
int bottom_
Bottom coordinate.
Definition: Rect.h:492
void SetBaseIndent(int baseIndent)
Definition: ListView.cpp:757
int WeakRefs() const noexcept
Return the object's weak reference count.
Definition: Ptr.h:557
bool EndLoad() override
Finish resource loading. Always called from the main thread. Return true if successful.
Definition: Resource.cpp:322
const Vector3 & GetAlbedo(const IntVector2 &location) const
Return albedo for location.
Definition: LightTracer.h:72
float finishParticleSizeVariance_
Finish particle size variance.
Definition: ParticleEffect2D.h:303
ShaderParameterAnimationInfo(Material *material, const ea::string &name, ValueAnimation *attributeAnimation, WrapMode wrapMode, float speed)
Construct.
Definition: Material.cpp:181
bool GetDrawObstacles() const
Definition: DynamicNavigationMesh.h:103
float GetMaxRotation() const
Definition: ParticleEffect.h:378
Rect textureRect_
Texture rectangle.
Definition: StaticSprite2D.h:195
ea::string shape_
Current shape definition.
Definition: Cursor.h:143
void Invert(bool invertAlpha=false)
Inverts the RGB channels and optionally the alpha channel as well.
Definition: Color.cpp:231
WrapMode GetWrapMode() const
Return wrap mode.
Definition: ValueAnimationInfo.h:69
Frustum GetFrustum() const
Definition: Light.cpp:438
StringHash nameHash_
Name hash.
Definition: AnimationTrack.h:59
unsigned mtime_
Last modification time.
Definition: PluginManager.h:197
unsigned char renderOrder_
Render order value.
Definition: Material.h:368
void SetAction(unsigned index, FiniteTimeAction *action)
Set action by index.
Definition: Parallel.cpp:102
void SetFaceCameraMode(FaceCameraMode mode)
Definition: Text3D.cpp:392
void InitializeView(RenderPipelineView *view) override
Initialize render pass before using it in view.
Definition: OutlineRenderPass.cpp:42
ea::vector< SharedPtr< VertexBuffer > > vertexBuffers_
Vertex buffers.
Definition: Geometry.h:149
RaytracerScene(Context *context, embree3::RTCDevice embreeDevice, embree3::RTCScene raytracerScene, ea::vector< RaytracerGeometry > geometries, const BakedSceneBackgroundArrayPtr &backgrounds, float maxDistance)
Construct.
Definition: RaytracerScene.h:144
ea::vector< ea::shared_array< DepthValue > > mipBuffers_
Reduced size depth buffers.
Definition: OcclusionBuffer.h:189
void ProcessRayQuery(const RayOctreeQuery &query, ea::vector< RayQueryResult > &results) override
Process octree raycast. May be called from a worker thread.
Definition: AnimatedModel.cpp:186
int GetMaxTiles() const
Return maximum number of tiles.
Definition: NavigationMesh.h:212
unsigned edgeIndex_
Index of the edge in triangle.
Definition: TetrahedralMesh.h:190
Vector3 EvaluateAverage() const
Evaluate average.
Definition: SphericalHarmonics.h:131
bool ReplaceElement(const ModelVertex &source, const VertexElement &element)
Replace given semantics from another vector.
Definition: ModelView.cpp:524
static bool ParseJSON(const ea::string &json, JSONValue &value, bool reportError=true)
Return true if parsing json string into JSONValue succeeds.
Definition: JSONFile.cpp:274
CrowdAgentHeightCallback heightCallback_
Height callback.
Definition: CrowdAgent.h:255
ea::vector< ea::vector< CustomGeometryVertex > > & GetVertices()
Return all vertices. These can be edited; calling Commit() updates the vertex buffer.
Definition: CustomGeometry.h:121
Blink target by toggling "Is Enabled" attribute. The Target should have "Is Enabled" attribute.
Definition: Misc.h:100
void SetNumParticles(unsigned num)
Definition: ParticleEmitter.cpp:281
void SetHeight(int height)
Definition: UIElement.cpp:626
Rml::Element * AsElement()
Definition: RmlNavigable.h:90
void SetEnterAnimationAttr(const ResourceRef &value)
Set enter animation attribute.
Definition: TriggerAnimator.cpp:55
PerlinNoise perlinNoise_
Perlin noise generator.
Definition: ShakeComponent.h:88
double GetDouble()
Return random double in range [0, 1] with uniform distribution.
Definition: RandomEngine.h:89
bool suppressRestoreFocus_
Whether to suppress next call to RestoreFocus().
Definition: RmlUIComponent.h:216
void QueueUpdate()
Queue manual update on the render texture.
Definition: View3D.cpp:122
unsigned GetVersion() const
Return current version of the plugin.
Definition: Plugin.h:45
virtual void OnSetEnabled()
Handle enabled/disabled state change.
Definition: Component.h:60
int GetWidth() const
Definition: UIElement.h:468
SharedPtr< Geometry > geometry_
Geometry.
Definition: RibbonTrail.h:236
bool geometryDirty_
Geometry dirty flag.
Definition: Text3D.h:274
bool SetTime(float time)
Set time position and apply. Return true when the animation is finished. No-op when the target object...
Definition: ValueAnimationInfo.cpp:75
AbstractFilePtr OpenFile(const FileIdentifier &fileName, FileMode mode) override
Definition: MountedAliasRoot.cpp:80
Variant data_
Trigger data.
Definition: Animation.h:41
static void RegisterObject(Context *context)
Definition: Text.cpp:77
bool SetDrawRange(PrimitiveType type, unsigned indexStart, unsigned indexCount, bool getUsedVertexRange=true)
Set the draw range.
Definition: Geometry.cpp:102
bool debugDepthTest_
Debug draw depth test mode.
Definition: PhysicsWorld2D.h:262
Class that manages all render buffers within viewport and viewport itself.
Definition: RenderBufferManager.h:64
InputType
Type of input source.
Definition: DirectionAggregator.h:50
void SetBaseVelocity(const Vector3 &baseVelocity)
Definition: RibbonTrail.cpp:865
const ea::string & GetName() const
Definition: UIElement.h:456
bool IsThreadedUpdate() const
Return threaded update flag.
Definition: Scene.h:272
const Vector2 & GetVertex1() const
Definition: CollisionEdge2D.h:55
Vector3 ToVector3(float z=0.0f) const
Return Vector3 vector.
Definition: Vector3.h:583
void SetVertexShader(const ea::string &name)
Definition: Technique.cpp:101
DebugLine(const Vector3 &start, const Vector3 &end, unsigned color)
Construct with start and end positions and color.
Definition: DebugRenderer.h:51
void SetContactProcessingThreshold(float threshold)
Definition: RigidBody.cpp:387
Definition: BehaviorNetworkObject.h:40
const Vector2 & GetOtherBodyAnchor() const
Definition: ConstraintPulley2D.h:74
~XMLFile() override
Destruct.
void SetVertexShaderDefineExcludes(const ea::string &excludes)
Definition: Technique.cpp:130
float rotationWeight_
Weight of the rotation channel.
Definition: AnimationTrack.h:65
SharedPtr< Texture2D > texture_
Texture.
Definition: SpriteSheet2D.h:92
Attribute action state.
Definition: AttributeActionState.h:35
btRigidBody * GetBody() const
Return Bullet rigid body.
Definition: RigidBody.h:183
Definition: BreakInstance.h:79
void SetUpdateEnabled(bool enable)
Definition: Scene.cpp:733
int GetFrom() const
Get From.
Definition: Cone.cpp:105
bool SetVariant(const Variant &value)
Set a variant attribute.
Definition: XMLElement.cpp:427
void UpdateBatches(const FrameInfo &frame) override
Calculate distance and prepare batches for rendering. May be called from worker thread(s),...
Definition: DecalSet.cpp:215
static void RegisterObject(ParticleGraphSystem *context)
Register particle node factory.
Definition: Emit.cpp:38
Description of a navigation mesh geometry component, with transform and bounds information.
Definition: NavigationUtils.h:18
bool boundingBoxDirty_
Bounding box needs update flag.
Definition: DecalSet.h:260
bool lowFrequency_
Whether this source should output to the LFE.
Definition: SoundSource.h:184
unsigned GetNumAttributes() const
Get number of attributes.
Definition: ParticleGraphLayerInstance.cpp:138
bool IsDone() const override
Gets a value indicating whether this instance is done.
Definition: FiniteTimeActionState.h:46
void GetEventFrames(float beginTime, float endTime, ea::vector< const VAnimEventFrame * > &eventFrames)
Return event frames.
Definition: ValueAnimationInfo.cpp:157
ColorFrame(const Color &color)
Construct with a color and zero time.
Definition: ParticleEffect.h:54
ViewOverrideFlags GetViewOverrideFlags() const
Definition: Camera.h:187
WeakPtr< XMLFile > appliedStyleFile_
Last applied style file.
Definition: UIElement.h:922
const PipelineBatch * pipelineBatch_
Batch to be sorted.
Definition: PipelineBatchSortKey.h:135
const ShadowSplitProcessor * GetSplit(unsigned splitIndex) const
Definition: LightProcessor.h:131
ParticleGraphNode(Context *context)
Construct.
Definition: ParticleGraphNode.cpp:36
unsigned level_
Subdivision level.
Definition: Octree.h:159
ResourceRef(const ea::string &type, const ea::string &name)
Construct with type and resource name.
Definition: Variant.h:132
CollisionGeometryDataCache triMeshCache_
Cache for trimesh geometry data by model and LOD level.
Definition: PhysicsWorld.h:371
RWOpsWrapper(T &object)
Construct with object reference.
Definition: RWOpsWrapper.h:37
unsigned cacheRevision_
Information for cache invalidation.
Definition: Drawable.h:148
SharedPtr< UIElement > fileNameLayout_
Filename and filter layout.
Definition: FileSelector.h:194
ResourceRef GetEffectAttr() const
Set particles effect attribute.
Definition: ParticleGraphEmitter.cpp:190
bool continuousRotations_
Definition: InverseKinematics.h:44
void SetStaticPlane(const Vector3 &position=Vector3::ZERO, const Quaternion &rotation=Quaternion::IDENTITY)
Set as a static plane.
Definition: CollisionShape.cpp:607
bool SetColor(const ea::string &name, const Color &value)
Set a color attribute.
Definition: XMLElement.cpp:362
Timer clickTimer_
Timer used to trigger double click.
Definition: UI.h:465
bool hasMutableGlyph_
Has mutable glyph.
Definition: FontFaceFreeType.h:71
unsigned laskKnownNodeID_
Last known node ID.
Definition: Graph.h:99
void UpdateParameters(const RenderPipelineSettings &settings, const StringVariantMap ¶ms) override
Definition: AmbientOcclusionPass.cpp:71
const IntVector2 GetSwapChainSize() const
Return swap chain size.
Definition: Graphics.cpp:387
@ AM_COMPONENTID
Attribute is a component ID and may need rewriting.
Definition: Attribute.h:47
void ReadReliableDelta(NetworkFrame frame, Deserializer &src) override
Read reliable delta update. Delta is applied to previous reliable delta or snapshot message.
Definition: ReplicatedAnimation.cpp:223
void HandleScenePostUpdate(StringHash eventType, VariantMap &eventData)
Handle scene post update.
Definition: ParticleEmitter2D.cpp:268
void SetRange(float range)
Definition: Slider.cpp:170
void Decompose(Vector3 &translation, Quaternion &rotation, Vector3 &scale) const
Return decomposition to translation, rotation and scale.
Definition: Matrix3x4.cpp:41
ea::string GetMeshName() const
Return the given name of this navigation mesh.
Definition: NavigationMesh.h:206
~Pass() override
Destruct.
const VectorBuffer & GetSceneData() const
Definition: PackedSceneData.h:151
const Vector3 & GetOffset() const
Return character collider offset.
Definition: KinematicCharacterController.h:104
void RegisterFactory(ea::string_view category={})
Deprecated. Use AddFactoryReflection, AddAbstractReflection or AddReflection instead.
Definition: Context.h:97
Pass * deferredPass_
If deferred pass is present, unlit base, lit base and light passes are ignored.
Definition: DrawableProcessor.h:98
KinematicCharacterController(Context *context)
Construct.
Definition: KinematicCharacterController.cpp:54
Orientation2D
Orientation.
Definition: TileMapDefs2D.h:36
bool HasParameter(const ea::string &name) const
Return whether engine parameters contains a specific parameter.
Definition: Engine.cpp:865
void Merge(const IntRect &rect)
Definition: Rect.cpp:55
2D indexing utilities for row-major 2D array.
Definition: Array2D.h:33
void HandleEndAllViewsRender(StringHash eventType, VariantMap &eventData)
Handle rendering to a texture.
Definition: RmlUI.cpp:664
static void RegisterObject(Context *context)
Definition: ConstraintPrismatic2D.cpp:44
Vector3 GetVelocityAtPoint(const Vector3 &position) const
Return linear velocity at local point.
Definition: RigidBody.cpp:594
Quaternion GetRotation() const
Get Rotation.
Definition: Hemisphere.cpp:87
void ProcessUserBatch(ShaderProgramDesc &result, const DrawableProcessorPassFlags flags, Drawable *drawable, Geometry *geometry, GeometryType geometryType, Material *material, Pass *pass, Light *light, bool hasShadow, BatchCompositorSubpass subpass)
Definition: ShaderProgramCompositor.cpp:83
std::atomic< InternalState > state_
Current state.
Definition: LightBaker.h:105
void SetEnableAnchor(bool enable)
Definition: UIElement.cpp:770
bool bufferSizeDirty_
Buffers need resize flag.
Definition: RibbonTrail.h:244
JSONValueType
JSON value type.
Definition: JSONValue.h:39
IntVector2 dragBeginPosition_
Original slider position at drag begin.
Definition: Slider.h:124
void SetCursorAcceleration(float cursorAcceleration)
Set cursor acceleration factor.
Definition: PointerAdapter.cpp:319
Definition: RenderPipelineDefs.h:458
b2MouseJointDef jointDef_
Box2D joint def.
Definition: ConstraintMouse2D.h:78
b2Fixture * GetFixture() const
Return fixture.
Definition: CollisionShape2D.h:117
Two-segment IK chain for eyes.
Definition: InverseKinematics.h:138
unsigned Write(const void *data, unsigned size) override
Write bytes to the memory area.
Definition: MemoryBuffer.cpp:109
const TmxLayer2D * GetLayer(unsigned index) const
Return layer at index.
Definition: TmxFile2D.cpp:583
UIElement * CreateChild(StringHash type, const ea::string &name=EMPTY_STRING, unsigned index=M_MAX_UNSIGNED)
Create and add a child element and return it.
Definition: UIElement.cpp:1300
static RandomEngine & GetDefaultEngine()
Return default thread-local random engine.
Definition: RandomEngine.cpp:50
virtual ea::string GetDataModelName()
Definition: RmlUIComponent.h:134
bool GetPerVertex() const
Definition: Light.h:291
float GetRowWidth(unsigned index) const
Definition: Text.cpp:413
SphereOctreeQuery(ea::vector< Drawable * > &result, const Sphere &sphere, DrawableFlags drawableFlags=DRAWABLE_ANY, unsigned viewMask=DEFAULT_VIEWMASK)
Construct with sphere and query parameters.
Definition: OctreeQuery.h:96
void RemoveAllTriggers()
Remove all trigger points.
Definition: Animation.cpp:552
PListValue & operator=(const PListValue &rhs)
Assign operator.
Definition: PListFile.cpp:94
void ProcessScene()
Process and update the scene. Scene collector is used here.
Definition: IncrementalLightBaker.cpp:525
void SetRotationDelta(const Quaternion &delta)
Set rotation delta.
Definition: Move.cpp:604
void SerializeInBlock(Archive &archive) override
Serialize content from/to archive. May throw ArchiveException.
Definition: AttributeAction.cpp:49
Variant(const ResourceRefList &value)
Construct from a resource reference list.
Definition: Variant.h:608
ArrayDimensions2D(int width, int height)
Construct with given size.
Definition: Array2D.h:39
void NodeAdded(Node *node)
Node added. Assign scene pointer and add to ID map.
Definition: Scene.cpp:914
ParticleGraphNodeInstance * CreateInstanceAt(void *ptr, ParticleGraphLayerInstance *layer) override
Place new instance at the provided address.
Definition: EmitterPosition.cpp:59
BiasParameters depthBias_
Depth bias parameters.
Definition: Material.h:366
XMLElement GetOrCreateRoot(const ea::string &name)
Get the root element if it has matching name, otherwise create it and clear the document.
Definition: XMLFile.cpp:186
void SetControlDelta(const Vector3 &delta)
Set control point delta.
Definition: Move.cpp:447
InterpMethod GetInterpolationMethod() const
Definition: ValueAnimation.h:121
unsigned Read(void *dest, unsigned size) override
Read bytes from the pipe without blocking if there is less data available. Return number of bytes act...
Definition: NamedPipe.cpp:305
void SetAlignment(HorizontalAlignment hAlign, VerticalAlignment vAlign)
Set horizontal and vertical alignment.
Definition: UIElement.cpp:698
ea::string GetAttribute(const ea::string &name=EMPTY_STRING) const
Return attribute, or empty if missing.
Definition: XMLElement.cpp:747
void AddChild(UIElement *element)
Add a child element.
Definition: UIElement.cpp:1317
bool SetDefaultWindowModes(const WindowSettings &commonSettings)
Set default window modes. Return true if successful.
Definition: Graphics.cpp:283
void ApplyAttributes() override
Apply attribute changes that can not be applied immediately. Called after scene load or a network upd...
Definition: MoveAndOrbitController.cpp:55
float shadowMaxExtrusion_
Directional shadow max. extrusion distance.
Definition: Light.h:517
void SetRotation(Quaternion value)
Set Rotation.
Definition: Sphere.cpp:85
ea::unique_ptr< dtTileCacheCompressor > compressor_
Used by dtTileCache to compress the original tiles to use when reconstructing for changes.
Definition: DynamicNavigationMesh.h:151
SharedPtr< Scene > scene_
Scene.
Definition: View3D.h:101
void SetEffectRoundStroke(bool roundStroke)
Definition: Text.cpp:398
GetUniform(Context *context)
Construct.
Definition: Uniform.cpp:70
const Vector2 & GetPosition() const
Return position.
Definition: TmxFile2D.h:139
void UpdateBatches(const FrameInfo &frame) override
Calculate distance and prepare batches for rendering. May be called from worker thread(s),...
Definition: RibbonTrail.cpp:374
Vector3 cachePosition_
Node position at the moment of last caching.
Definition: Drawable.h:135
void DefineVariables(const StringVariantMap &defaults)
Define new variables or update defaults for existing ones.
Definition: ConfigFile.cpp:78
unsigned GetUseTimer()
Definition: Resource.cpp:188
void AddBoundingBox(const BoundingBox &box, const Color &color, bool depthTest=true, bool solid=false)
Add a bounding box.
Definition: DebugRenderer.cpp:181
float Random()
Return a random float between 0.0 (inclusive) and 1.0 (exclusive).
Definition: MathDefs.h:345
bool BeginLoadSpriter(Deserializer &source)
Begin load scml.
Definition: AnimationSet2D.cpp:282
bool depthTest_
Depth test mode.
Definition: TextRenderer3D.h:58
bool Save(Serializer &dest) const override
Save resource. Return true if successful.
Definition: ValueAnimation.cpp:80
float GetShadowRange() const
Return shadow maximum range.
Definition: Light.h:133
bool setInstanceDefault_
When true, store the attribute value as instance's default value (internal use only).
Definition: Serializable.h:138
bool stereo_
Stereo flag.
Definition: Sound.h:141
unsigned lightmapIndex_
Lightmap index.
Definition: TerrainPatch.h:161
float GetSpeed() const
Definition: AnimatedSprite2D.h:102
unsigned GetOcclusionLodLevel() const
Definition: Terrain.h:151
ea::unordered_multimap< TextParams3D, CachedTextElement > TextCache
3D text cache.
Definition: TextRenderer3D.h:156
TileMapLayerType2D GetLayerType() const
Definition: TileMapLayer2D.cpp:269
void OnWorldBoundingBoxUpdate() override
Recalculate the world-space bounding box.
Definition: DecalSet.cpp:661
bool CopyTo(CustomVariantValue &dest) const override
Definition: Variant.h:387
GetAttribute(Context *context)
Construct.
Definition: Attribute.cpp:68
bool IsActive() const
Get activation flag. Returns true if game screen is active.
Definition: StateManager.h:55
SharedPtr< ListView > fileList_
File list.
Definition: FileSelector.h:176
const Vector2 & GetTarget() const
Definition: ConstraintMouse2D.h:59
Vector4 GetReflectionPlaneAttr() const
Return reflection plane attribute.
Definition: Camera.cpp:687
unsigned NextPowerOfTwo(unsigned value)
Round up to next power of two.
Definition: MathDefs.h:301
bool UpdateSettings()
Update settings before baking.
Definition: LightBaker.cpp:164
virtual bool IsInput() const =0
float finishParticleSize_
Finish particle size.
Definition: ParticleEffect2D.h:301
HttpRequestState state_
Connection state.
Definition: HttpRequest.h:104
bool internal_
Internally created flag.
Definition: UIElement.h:823
void SetGlobalIlluminationType(GlobalIlluminationType type)
Set GI type.
Definition: Drawable.cpp:244
void SetModel(Model *model)
Definition: CollisionShape.cpp:785
T * GetComponent() const
Template version of returning a component in the same scene node by type.
Definition: Component.h:148
ea::vector< LightmapChartGeometryBuffer > geometryBuffers_
Geometry buffers.
Definition: BakedSceneChunk.h:57
void SetParticleLifespanVariance(float particleLifespanVariance)
Set particle lifespan variance.
Definition: ParticleEffect2D.cpp:326
ViewBatchInfo2D()
Construct.
Definition: Renderer2D.cpp:54
const Vector2 & GetVertex(unsigned index) const
Return vertex.
Definition: CollisionPolygon2D.h:57
EmitterType2D GetEmitterType() const
Return emitter type.
Definition: ParticleEffect2D.h:207
int min_
Minimum value.
Definition: OcclusionBuffer.h:49
void Remove()
Remove from the scene node. If no other shared pointer references exist, causes immediate deletion.
Definition: Component.cpp:138
void Update(const FrameInfo &frame) override
Update before octree reinsertion. Is called from a main thread.
Definition: RibbonTrail.cpp:203
~PListFile() override
Destruct.
bool IsClockSynchronized() const override
Return whether the clock is synchronized between client and server.
Definition: Connection.cpp:690
ThisType & operator=(ThisType &&rhs) noexcept
Move-assign from another shared pointer.
Definition: Ptr.h:192
static ea::pair< CubeMapFace, Vector2 > ProjectDirectionOnFace(const Vector3 &direction)
Project direction onto cubemap.
Definition: ImageCube.cpp:364
SharedPtr< Image > diffuseImage_
Diffuse image.
Definition: RaytracerScene.h:65
Resource containing an array of AssetTransformer-s.
Definition: AssetPipeline.h:32
Definition: SerializableInspectorWidget.h:31
bool RemoveDelayed(float fadeTime)
Helper utility to fade animation out and remove it later.
Definition: AnimationController.cpp:131
bool audioPaused_
Audio paused flag.
Definition: Engine.h:204
SharedPtr< ActionState > StartAction(Object *target) override
Create new action state from the action.
Definition: Ease.cpp:220
DirectDraw color key definition.
Definition: ImageDDS.h:13
ea::string meshName_
Identifying name for this navigation mesh.
Definition: NavigationMesh.h:348
Intersection IsInsideFast(const Sphere &sphere) const
Test if another sphere is (partially) inside or outside.
Definition: Sphere.h:196
void Clear()
Clear all geometries.
Definition: CustomGeometry.cpp:208
Resource * GetResource(StringHash type, const ea::string &name, bool sendEventOnFailure=true)
Return a resource by type and name. Load if not loaded yet. Return null if not found or if fails,...
Definition: ResourceCache.cpp:451
Camera * camera_
Baking camera.
Definition: LightmapGeometryBuffer.h:85
double GetElapsedTime() override
Get the number of seconds elapsed since the start of the application.
Definition: RmlSystem.cpp:48
float GetDelay() const
Get Delay.
Definition: BurstTimer.cpp:72
void SetRotation(const Quaternion &rotation)
Definition: Constraint.cpp:182
ea::function< void(ea::string_view)> onMessage_
Called when a new network message is received. May be called from non-main thread.
Definition: NetworkConnection.h:67
bool CreateDirs(const ea::string &root, const ea::string &subdirectory)
Create subdirectories. New subdirectories will be made only in a subpath specified by subdirectory.
Definition: FileSystem.cpp:1386
RmlUIComponent(Context *context)
Construct.
Definition: RmlUIComponent.cpp:51
Access to engine file system mount point.
Definition: MountPoint.h:36
UnknownComponent(Context *context)
Construct.
Definition: UnknownComponent.cpp:38
void DrawDebugLights(bool depthTest) override
Draw debug lights, if applicable.
Definition: DefaultRenderPipeline.cpp:494
ParticleGraphNodeInstance * CreateInstanceAt(void *ptr, ParticleGraphLayerInstance *layer) override
Place new instance at the provided address.
Definition: ApplyForce.cpp:60
SharedPtr< LineEdit > fileNameEdit_
Filename editor.
Definition: FileSelector.h:180
void SetContactPosition(Vector3 value)
Set contact position. Executed by physics simulation.
int GetPriority() const
Definition: UIElement.h:556
bool GetAutoResolve() const
Definition: Texture.h:155
DeferredLightPSVariation
Deferred light volume pixels shader variations.
Definition: Renderer.h:121
bool cursorMovable_
Cursor movable flag.
Definition: LineEdit.h:171
ParticleGraphPin pins_[1]
Pins.
Definition: Random.h:80
Helper component that tracks points in world space and updates camera position.
Definition: CameraOperator.h:32
void UpdateParameters(const RenderPipelineSettings &settings, const StringVariantMap ¶ms) override
Definition: BloomPass.cpp:61
Matrix4 viewProj_
Cached view-projection matrix.
Definition: Camera.h:345
Definition: UISelectable.h:31
bool bidirectional_
Bidirectional flag.
Definition: OffMeshConnection.h:95
virtual bool LoadJSON(const JSONValue &source)
Load from JSON data. Return true if successful.
Definition: Serializable.cpp:213
Vector3 MoveAlongSurface(const Vector3 &start, const Vector3 &end, const Vector3 &extents=Vector3::ONE, int maxVisited=3, const dtQueryFilter *filter=nullptr)
Try to move along the surface from one point to another.
Definition: NavigationMesh.cpp:607
const pugi::xpath_node * xpathNode_
Pugixml xpath_node.
Definition: XMLElement.h:333
unsigned requestedLevels_
Requested mip levels.
Definition: Texture.h:225
void OnSceneSet(Scene *scene) override
Handle scene being assigned.
Definition: PhysicsWorld.cpp:853
~AnimatedSprite2D() override
Destruct.
Definition: AnimatedSprite2D.cpp:65
static ScriptRuntimeApi * api_
API implemented in scripting environment.
Definition: Script.h:93
bool BuildTilesInRegion(const BoundingBox &boundingBox)
Rebuild part of the navigation mesh contained by the world-space bounding box. Return true if success...
Definition: NavigationMesh.cpp:444
~SpriterInstance()
Destructor.
Definition: SpriterInstance2D.cpp:45
void ResetDeepEnabled()
Reset enabled state to the element's remembered state prior to calling SetDeepEnabled.
Definition: UIElement.cpp:929
unsigned fragment_
Current fragment index.
Definition: Connection.h:88
bool emitting_
Currently emitting flag.
Definition: ParticleEmitter2D.h:166
void SetTextureRef(const ResourceRef &texture)
Set texture (for attribute).
Definition: RmlCanvasComponent.cpp:116
static void RegisterObject(Context *context)
Definition: CollisionEdge2D.cpp:50
void GetDrawablesInternal(OctreeQuery &query, bool inside) const
Return drawable objects by a query, called internally.
Definition: Octree.cpp:231
float farClip_
Far clip distance.
Definition: Camera.h:363
Movement HandleWheel(const JoystickState *state, float timeStep)
Handle wheel input.
Definition: FreeFlyController.cpp:167
Zone * defaultZone_
Default zone.
Definition: Octree.h:204
WindowDragMode
Window movement and resizing modes.
Definition: Window.h:33
void SetCoordinateSystem(const IntVector3 &coordinateSystem=RIGHT_FORWARD_UP)
Definition: RaycastVehicle.cpp:533
void ApplyWorldTransform()
Apply world transform from the Box2D body. Called by PhysicsWorld2D.
Definition: RigidBody2D.cpp:390
AbstractFilePtr file_
Source file.
Definition: Connection.h:86
bool drawDebug_
Debug draw flag.
Definition: Viewport.h:133
const ea::vector< TechniqueEntry > & GetTechniques() const
Return all techniques.
Definition: Material.h:235
void ReferenceTexture(Texture2D *texture)
Hold a reference to this texture until end of frame.
Definition: SystemUI.cpp:437
bool ArePluginsRenamed() const
Return whether the plugins are renamed on load.
Definition: PluginManager.h:112
const Variant & GetVariable(const ea::string &name) const
Return variable value or default.
Definition: ConfigFile.cpp:117
Definition: BreakInstance.h:37
Material * GetOutlineMaterial(Material *referenceMaterial)
Return cached artificial material with only resources and shader parameters set.
Definition: OutlineGroup.cpp:168
bool IsEnabled() const
Get enabled flag.
Definition: PointerAdapter.h:63
T * Cast()
Cast the object to specified most derived class.
Definition: Object.h:133
T InverseLerp(T lhs, T rhs, T x)
Definition: MathDefs.h:85
float IsBackgroundStatic() const
Return whether the background is static.
Definition: Zone.h:110
void SerializeInBlock(Archive &archive) override
Serialize content from/to archive. May throw ArchiveException.
Definition: Move.cpp:503
bool useTextureRect_
Use texture rectangle flag.
Definition: StaticSprite2D.h:189
virtual bool Load()
Loads plugin into application memory space and initializes it.
Definition: Plugin.h:55
virtual ~ParticleGraphLayer()
Destruct.
virtual void SetName(const ea::string &name)
Definition: AbstractFile.h:50
bool IsFixedHeight() const
Definition: UIElement.h:508
PipelineState * GetPipelineState(const UIBatchStateKey &key) const
Definition: BatchStateCache.cpp:109
Vector2 GetMassCenter() const
Definition: RigidBody2D.cpp:494
float radius_
Radius of this obstacle.
Definition: Obstacle.h:90
void SetVertexDistance(float length)
Definition: RibbonTrail.cpp:825
void StartApplication(bool isMain)
Start application.
Definition: PluginApplication.cpp:94
AsyncLoadState asyncLoadState_
Asynchronous loading state.
Definition: Resource.h:155
DirectionAggregator * GetDirectionAggregator() const
Get DirectionAggregator instance used to handle joystick and keyboard input.
Definition: PointerAdapter.cpp:333
ResourceRef bakedDataRef_
Reference on file with baked data.
Definition: LightProbeGroup.h:221
float GetNeutralValue() const
Get neutral value. Neutral value is transformed into 0.0f.
Definition: AxisAdapter.h:55
void ShutdownSession() override
Shuts down the VR session.
Definition: OpenXR.cpp:1476
Ray GetScreenRay(float x, float y) const
Return ray corresponding to normalized screen coordinates (0 - 1), with origin on the near clip plane...
Definition: Camera.cpp:398
CursorShape
Cursor shapes recognized by the UI subsystem.
Definition: Cursor.h:37
float GetEmissionBrightness() const
Return emission brightness.
Definition: GlobalIllumination.h:66
bool GetSplitImpulse() const
Definition: PhysicsWorld.cpp:782
Base interface of render pipeline required by Render Pipeline classes.
Definition: RenderPipelineDefs.h:270
UIElement * GetFrontElement() const
Definition: UI.cpp:780
int ReadInt()
Read a 32-bit integer.
Definition: Deserializer.cpp:73
VariantVector GetParticleBillboardsAttr() const
Return billboards attribute. Returns billboard amount only if particles are not to be serialized.
Definition: ParticleEmitter.cpp:409
WorkQueueVector< ea::pair< Node *, Transform > > pendingNodeTransforms_
Node transforms to be applied before reinsertion.
Definition: Octree.h:296
void SetHeightMapAttr(const ResourceRef &value)
Set heightmap attribute.
Definition: Terrain.cpp:779
IntVector2 GetRenderTargetDimensions() const
Return current rendertarget width and height.
Definition: Graphics.cpp:622
void SetTranslation(Vector3 value)
Set Translation.
Definition: Cone.cpp:91
ea::unordered_map< IntVector3, ChunkData > chunks_
Definition: BakedSceneCollector.h:141
void SetOutlineGroups(Scene *scene, bool drawDebugOutlines)
Initialize outline groups from scene. Should be called every frame.
Definition: OutlineScenePass.cpp:67
DirectionalPadAdapterFlags GetSubscriptionMask() const
Get input device subscription mask.
Definition: DirectionalPadAdapter.h:95
bool HasSubscriptions() const
Returns true when event has at least one subscription.
Definition: Signal.h:150
bool operator!=(const JSONValue &rhs) const
Value inequality operator.
Definition: JSONValue.cpp:233
bool IsInf() const
Return whether any element is Inf.
Definition: Matrix3x4.h:720
bool TakeScreenShot(Image &destImage)
Take a screenshot. Return true if successful.
Definition: Graphics.cpp:202
virtual bool FilterImplicitAttributes(XMLElement &dest) const
Filter implicit attributes in serialization process.
Definition: UIElement.cpp:2067
HttpRequest(const ea::string &url, const ea::string &verb=EMPTY_STRING, const ea::vector< ea::string > &headers=ea::vector< ea::string >(), const ea::string &postData=EMPTY_STRING)
Construct with parameters.
Definition: HttpRequest.cpp:73
Vector3 ToHSL() const
Return HSL color-space representation as a Vector3; the RGB values are clipped before conversion but ...
Definition: Color.cpp:54
IntVector2 ToIntVector2() const
Return IntVector2 vector (z, w components are ignored).
Definition: Vector4.h:219
unsigned dataSize_
Morphed vertices data size as bytes.
Definition: Model.h:49
int Refs() const
Definition: RefCounted.cpp:132
T Cos(T angle)
Definition: MathDefs.h:177
void DrawDebugLights(bool depthTest) override
Draw debug lights, if applicable.
Definition: StereoRenderPipeline.cpp:647
Definition: InverseKinematics.h:51
void CloseMicrophoneForLoss(unsigned which)
Disables a microphone that has been lost.
Definition: Audio.cpp:555
ea::hash_set< StringHash > pausedSoundTypes_
Paused sound types.
Definition: Audio.h:176
void SetFogColor(const Color &color)
Definition: Zone.cpp:133
static const unsigned Infinity2
Special index for infinite vertex of outer tetrahedron, square equation.
Definition: TetrahedralMesh.h:242
Vector2 HeightMapToUV(const IntVector2 &pixelPosition) const
Convert heightmap pixel position to UV.
Definition: Terrain.cpp:612
void SetTextEffect(TextEffect textEffect)
Definition: Text.cpp:383
void Solve(float timeStep)
Solve the IK forcibly.
Definition: IKSolver.cpp:88
Animation * animation_
Definition: AnimationController.h:134
Vector4() noexcept
Construct a zero vector.
Definition: Vector4.h:35
ThisType & operator=(const SharedPtr< U1, U2 > &rhs) noexcept
Assign from a shared pointer.
Definition: Ptr.h:408
GeometryIDToObjectMappingVector idToObject_
Geometry buffer ID to object mapping.
Definition: LightmapGeometryBuffer.h:96
PipelineBatchByState()=default
Construct default.
float GetMaxSuspensionForce() const
Get max suspension force.
UIElement * GetSelectedItem() const
Definition: DropDownList.cpp:216
SharedPtr< Window > fadeOverlay_
Fade overlay window.
Definition: StateManager.h:281
void UpdateInternal(float timeStep)
Actually update sound sources with the specific timestep. Called internally.
Definition: Audio.cpp:434
bool FlipHorizontal()
Flip image horizontally. Return true if successful.
Definition: Image.cpp:828
Set of actions to be executed in parallel.
Definition: Parallel.h:35
Vector2 sourcePositionVariance_
Source position variance.
Definition: ParticleEffect2D.h:263
int currentInterpreter_
Last used command interpreter.
Definition: Console.h:113
Definition: EmitterRotationInstance.h:35
float maxNetworkAngularVelocity_
Maximum angular velocity for network replication.
Definition: PhysicsWorld.h:391
void RemoveConstraint(Constraint *constraint)
Remove a constraint that refers to this rigid body.
Definition: RigidBody.cpp:808
void SetCustomVariantValue(const CustomVariantValue &value)
Set custom value.
Definition: Variant.cpp:586
bool IsVisible() const
Definition: TileMapLayer2D.h:81
double DotProduct(const HighPrecisionVector3 &rhs) const
Dot product with another vector.
Definition: TetrahedralMesh.h:61
void SetBackgroundBrightness(float brightness)
Set background brightness.
Definition: Zone.cpp:122
IntVector2 hotSpot_
Hotspot coordinates.
Definition: Cursor.h:84
const Vector3 & GetShiftRange() const
Get shift range.
Definition: ShakeComponent.h:75
void SetVertex1(const Vector2 &vertex)
Definition: CollisionEdge2D.cpp:60
void AutomountDir(const ea::string &path)
Mount subfolders and pak files from real folder into virtual file system.
Definition: VirtualFileSystem.cpp:67
bool IsNaN() const
Return whether any element is NaN.
Definition: Matrix2.h:206
bool GetHeightFog() const
Definition: Zone.h:154
SharedPtr< AnimationSet2D > animationSet_
Animation set.
Definition: AnimatedSprite2D.h:143
void SetOtherRotation(const Quaternion &rotation)
Definition: Constraint.cpp:221
SharedPtr< Model > model_
Model.
Definition: CollisionShape.h:316
unsigned viewFrameNumber_
Last visible frame number.
Definition: Drawable.h:475
bool RequireSDL(unsigned int sdlFlags)
Initialises the specified SDL systems, if not already. Returns true if successful....
Definition: Context.cpp:217
void GetDirection(ea::span< float > direction)
Return random N-dimensional direction (normalized).
Definition: RandomEngine.cpp:126
ea::vector< unsigned > printText_
Text modified into printed form.
Definition: Text.h:288
MultitouchAdapter multitouchAdapter_
Multitouch input adapter.
Definition: FreeFlyController.h:138
float GetShadowNearFarRatio() const
Definition: Light.h:378
SubscriptionVector subscriptions_
Vector of subscriptions. May contain expired elements.
Definition: Signal.h:237
void OnResize(const IntVector2 &newSize, const IntVector2 &delta) override
React to resize.
Definition: Slider.cpp:159
Definition: PluginManager.h:67
virtual void ReleaseNavigationMesh()
Release the navigation mesh and the query.
Definition: NavigationMesh.cpp:1549
virtual bool CreatePipelineState(GraphicsPipelineStateDesc &desc, PipelineStateBuilder *builder, const BatchStateCreateKey &key, const BatchStateCreateContext &ctx)
Callback for pipeline state initialization.
Definition: BatchCompositor.h:149
unsigned attributeIndex_
Index of attribute. Only valid for sparse pins.
Definition: ParticleGraphPin.h:155
void SetIndirectBrightness(float indirectBrightness)
Set indirect light brightness multiplier. May have no effect for realtime lights.
Definition: Light.cpp:318
bool GetUseClipping() const
Definition: Camera.h:261
FontHintLevel
Font hinting level (only used for FreeType fonts).
Definition: UI.h:37
bool animationEnabled_
Animation enabled.
Definition: Animatable.h:154
void AddSoundSource(SoundSource *soundSource)
Add a sound source to keep track of. Called by SoundSource.
Definition: Audio.cpp:332
float duration_
Effect duration in seconds.
Definition: ParticleGraphLayer.h:144
bool operator==(const Vertex2D &other) const
Equality comparison operator.
Definition: Drawable2D.h:47
void OnSceneSet(Scene *scene) override
Handle scene being assigned.
Definition: LogicComponent.cpp:100
ea::unordered_map< Node *, NodeAnimationOutput > animatedNodes_
Definition: AnimationController.h:286
T Sqrt(T x)
Definition: MathDefs.h:209
Spriter::SpriterData * GetSpriterData() const
Return spriter data.
Definition: AnimationSet2D.h:80
unsigned budget_
How many lights there could be before cache is cleaned up aggressively.
Definition: RenderPipelineDefs.h:320
void SetRect(const IntRect &rect)
Definition: Viewport.cpp:117
Represents a logical action set in the underlying APIs.
Definition: VirtualReality.h:159
WeakPtr< RigidBody2D > rigidBody_
Rigid body.
Definition: CollisionShape2D.h:128
Cached projection data.
Definition: Camera.h:329
void ReadReliableDelta(NetworkFrame frame, Deserializer &src) override
Read reliable delta update. Delta is applied to previous reliable delta or snapshot message.
Definition: StaticNetworkObject.cpp:122
Definition: ParticleGraph.h:73
void MirrorGeometriesX()
Definition: ModelView.cpp:1385
void FillStarShapedHole(DelaunayContext &ctx, const ea::vector< unsigned > &outputTetrahedrons, const TetrahedralMeshSurface &holeSurface, unsigned centerIndex)
Definition: TetrahedralMesh.cpp:772
void Normalize()
Normalize to unit length.
Definition: Vector3.h:328
void HandleChangeLanguage(StringHash eventType, VariantMap &eventData)
Handle change Language.
Definition: Text.cpp:361
bool isRendering_
Whether current subsystem is rendering or not.
Definition: RmlUI.h:167
void PatchReplace(const pugi::xml_node &patch, pugi::xpath_node &original) const
Replace a node or attribute in the Patch.
Definition: XMLFile.cpp:281
float GetDampingRatio() const
Definition: ConstraintDistance2D.h:74
ea::vector< Vector2 > vertices_
Vertices.
Definition: CollisionChain2D.h:84
PinArray pins_
Pins.
Definition: TemplateNode.h:121
unsigned maxAgents_
The maximum number of agents the crowd can manage.
Definition: CrowdManager.h:221
bool subscribed_
Subscribed to scene post update event flag.
Definition: DecalSet.h:266
void MixStereoToMono(Sound *sound, int dest[], unsigned samples, int mixRate, float effectiveFrequency)
Mix stereo sample to mono buffer.
Definition: SoundSource.cpp:979
Triangle mesh geometry data.
Definition: CollisionShape.h:77
IntVector2 savedRootCustomSize_
UI root element custom size saved upon activation to be restored at deactivation.
Definition: StateManager.h:143
SharedPtr< FiniteTimeAction > Reverse() const override
Create reversed action.
Definition: Ease.cpp:267
void SetRadius(float value)
Set Radius.
Definition: Circle.cpp:72
unsigned neighbors_[3]
Indices of neighbor triangles.
Definition: TetrahedralMesh.h:138
ParticleGraphPin & GetPin(unsigned index) override
Get pin by index.
Definition: Curve.h:73
int layoutElementMaxSize_
Layout element maximum size in layout direction.
Definition: UIElement.h:841
ParticleGraphSpan emitNodePointers_
Emit node pointers.
Definition: ParticleGraphLayer.h:51
~StaticSprite2D() override
Destruct.
ea::fixed_vector< GraphNodeProperty, 1 > properties_
User defined properties of the node.
Definition: GraphNode.h:189
float GetTimeScale() const
Get time step scale.
Definition: ParticleGraphLayer.h:87
Definition: AnimationState.h:77
StringHash(const char *str) noexcept
Construct from a C string.
Definition: StringHash.h:76
bool WriteVector2(const Vector2 &value)
Write a Vector2.
Definition: Serializer.cpp:118
float effectDepthBias_
Text effect Z bias.
Definition: Text.h:282
bool IsConnectPending() const
Definition: Connection.h:170
WeakPtr< PhysicsWorld > physicsWorld_
Physics world.
Definition: CollisionShape.h:312
void SetConnectPending(bool connectPending)
Set the connection pending status. Called by Network.
Definition: Connection.cpp:182
bool GetBool(float probability)
Return random boolean with given probability of returning true.
Definition: RandomEngine.h:94
Scene replication state specific to individual client connection.
Definition: ServerReplicator.h:167
Vector2 ownerBodyGroundAnchor_
Owner body ground anchor.
Definition: ConstraintPulley2D.h:88
ea::vector< unsigned > geometryBufferToRaytracer_
Geometry buffer ID to raytracer geometry ID mapping.
Definition: BakedSceneChunk.h:59
void SetTags(const StringVector &tags)
Set tags. Old tags are overwritten.
Definition: UIElement.cpp:1495
static const Color GRAY
Opaque gray color.
Definition: Color.h:277
Mask describing color channels.
Definition: Color.h:37
unsigned GetSampleSize() const
Definition: Sound.cpp:331
void GetBatches(ea::vector< UIBatch > &batches, ea::vector< float > &vertexData, UIElement *element, IntRect currentScissor)
Generate batches from an UI element recursively. Skip the cursor element.
Definition: UI.cpp:1072
void UpdateSubscriptions()
Update subscriptions.
Definition: TriggerAnimator.cpp:164
PipelineStateSubscription(const PipelineStateSubscription &other)
Copy-construct.
Definition: PipelineStateTracker.h:48
Tile2D * GetTile(int x, int y) const
Return tile.
Definition: TmxFile2D.cpp:219
void SetLodBias(float bias)
Definition: Terrain.cpp:388
Vector3 boundingBoxMinPoint_
Bounding box min point.
Definition: ParticleEmitter2D.h:170
TextureFilterMode GetTextureFilterMode() const
Definition: Renderer.h:245
void ReadUnreliableFeedback(NetworkFrame feedbackFrame, Deserializer &src) override
Read unreliable feedback from client.
Definition: BehaviorNetworkObject.cpp:399
unsigned controlledIdAttr_
Controlled ID for the SplinePath.
Definition: SplinePath.h:154
ea::unordered_map< unsigned, WeakPtr< Node > > nodeLookup_
Node by old Id.
Definition: SceneResolver.h:56
virtual unsigned BuildTilesFromGeometry(ea::vector< NavigationGeometryInfo > &geometryList, const IntVector2 &from, const IntVector2 &to)
Build mesh tiles from the geometry data. Return true if successful.
Definition: NavigationMesh.cpp:1509
SoundSource3D(Context *context)
Construct.
Definition: SoundSource3D.cpp:44
Blink(Context *context)
Construct.
Definition: Misc.cpp:127
unsigned frameNumber_
Frame number.
Definition: Drawable.h:103
void OnClickBegin(const IntVector2 &position, const IntVector2 &screenPosition, MouseButton button, MouseButtonFlags buttons, QualifierFlags qualifiers, Cursor *cursor) override
React to mouse click begin.
Definition: Slider.cpp:94
void SetElements(const void *data, unsigned index, unsigned count)
Set one or more 4-float elements in current instance.
Definition: InstancingBuffer.h:62
bool IsEmpty() const
Return whether the identifier is empty.
Definition: FileIdentifier.h:69
DragAndDropModeFlags GetDragDropMode() const
Definition: UIElement.h:635
bool dragBeginPending
Flag for a drag start event pending.
Definition: UI.h:296
SharedPtr< XRActionGroup > activeActionSet_
Currently bound action-set.
Definition: VirtualReality.h:316
Baked light description.
Definition: BakedLight.h:35
static const SphericalHarmonics9 ZERO
Zero harmonics.
Definition: SphericalHarmonics.h:88
SharedPtr< Resource > GetTempResource(StringHash type, const ea::string &name, bool sendEventOnFailure=true)
Load a resource without storing it in the resource cache. Return null if not found or if fails....
Definition: ResourceCache.cpp:548
void RemoveSubsystem()
Template version of removing a subsystem.
Definition: Context.h:204
ea::string loadSpriteName_
Sprite name acquired during BeginLoad().
Definition: ParticleEffect2D.h:331
int GetIndentSpacing() const
Definition: UIElement.h:734
ResourceRef GetFileRef() const
Return reference on file with baked data.
Definition: GlobalIllumination.cpp:142
~Shader() override
Destruct.
Definition: Shader.cpp:124
const Color & GetColorAttr() const
Return color attribute. Uses just the top-left color.
Definition: UIElement.h:750
static void RegisterObject(ParticleGraphSystem *context)
Register particle node factory.
Definition: Curve.cpp:76
void SetIncludeFlags(unsigned queryFilterType, unsigned short flags)
Set the include flags for the specified query filter type.
Definition: CrowdManager.cpp:326
ea::vector< VAnimKeyFrame > keyFrames_
Key frames.
Definition: ValueAnimation.h:174
~RmlUI() override
Destruct.
Definition: RmlUI.cpp:448
bool EndLoad() override
Finish resource loading. Always called from the main thread. Return true if successful.
Definition: Texture2D.cpp:84
ea::string vertexShaderDefines_
Vertex shader defines.
Definition: Material.h:356
void Close() override
Close the pipe. Note that once a client has disconnected, the server needs to close and reopen the pi...
Definition: NamedPipe.cpp:354
~StaticModelForLightmap() override
Destruct.
constexpr EnumArray()
Definition: FlagSet.h:294
static void RegisterObject(Context *context)
Definition: DynamicNavigationMesh.cpp:229
float DotProduct(const Vector3 &rhs) const
Calculate dot product.
Definition: Vector3.h:349
virtual const ea::string & GetPassName() const
Return unique pass name.
Definition: RenderPass.cpp:38
CustomVariantValue & AsCustomValue()
Get custom variant value.
Definition: Variant.h:478
bool GetEnableMotor() const
Definition: ConstraintPrismatic2D.h:91
VariantType EvaluateOutputPinType(ParticleGraphPin &pin) override
Evaluate runtime output pin type.
Definition: Helpers.cpp:161
void SetSize(int width, int height)
Set dimensions.
Definition: Array2D.h:88
ea::vector< VAnimEventFrame > eventFrames_
Event frames.
Definition: ValueAnimation.h:180
Replication state shared between all clients.
Definition: ServerReplicator.h:53
~TileMap2D() override
Destruct.
unsigned obstacleAvoidanceType_
Agent's obstacle avoidance type, it is an index to the obstacle avoidance array configured in Detour ...
Definition: CrowdAgent.h:277
void UpdateBatches(const FrameInfo &frame) override
Calculate distance and prepare batches for rendering. May be called from worker thread(s),...
Definition: Skybox.cpp:62
Scene * scene_
Scene.
Definition: BakedSceneCollector.h:129
Sphere(const Frustum &frustum) noexcept
Construct from a frustum.
Definition: Sphere.h:86
void DrawDebugGeometry(DebugRenderer *debug, bool depthTest) override
Visualize the component as debug geometry.
Definition: RaycastVehicleWheel.cpp:96
GraphPinRef< GraphOutPin > GetOrAddOutput(const ea::string_view name)
Get or add output pin.
Definition: GraphNode.cpp:174
Color fogColor_
Fog color.
Definition: StateManager.h:154
void SetMaxForce(float maxForce)
Definition: ConstraintFriction2D.cpp:65
static void RegisterObject(ParticleGraphSystem *context)
Register particle node factory.
Definition: Attribute.cpp:97
virtual void OnWheel(int delta, MouseButtonFlags buttons, QualifierFlags qualifiers)
React to mouse wheel.
Definition: UIElement.h:187
const ResourceRefList & GetResourceRefList() const
Return a resource reference list or empty on type mismatch.
Definition: Variant.h:1462
Action as resource.
Definition: ActionBuilder.h:38
Texture2DArray(Context *context)
Construct.
Definition: Texture2DArray.cpp:46
bool fixedScreenSize_
Whether to keep fixed screen size.
Definition: TextRenderer3D.h:48
float GetMaxMotorForce() const
Definition: ConstraintPrismatic2D.h:95
void SetUpdateEventMask(UpdateEventFlags mask)
Set what update events should be subscribed to. Use this for optimization: by default all are in use....
Definition: LogicComponent.cpp:77
~CrowdAgent() override
Destruct.
Definition: CrowdAgent.cpp:98
void MixMonoToStereo(Sound *sound, int dest[], unsigned samples, int mixRate, float effectiveFrequency)
Mix mono sample to stereo buffer.
Definition: SoundSource.cpp:734
static const Vector3 ONE
(1,1,1) vector.
Definition: Vector3.h:519
unsigned GetID() const
Definition: Component.h:93
EaseBounceIn(Context *context)
Construct.
Definition: Ease.cpp:261
Definition: IKSolverComponent.h:65
int fontOversampling_
Horizontal oversampling for subpixel fonts (default is 2).
Definition: UI.h:459
void IgnoreResourceReload(const ea::string &name)
When resource auto-reloading is enabled ignore reloading resource once.
Definition: ResourceCache.cpp:953
MouseMode mouseMode_
Determines the mode of mouse behaviour.
Definition: StateManager.h:152
WeakPtr< AnimatedModel > model_
Connected animated model.
Definition: AnimationState.h:226
void DelayedStart() override
Called before the first update. At this point all other components of the node should exist....
Definition: TextRenderer3D.cpp:65
ParticleEffect * GetEffect() const
Definition: ParticleEmitter.cpp:350
Matrix4 GetWorldToShadowSpaceMatrix(float subPixelOffset) const
Definition: ShadowSplitProcessor.cpp:319
VariantVector GetParticlesAttr() const
Return particles attribute. Returns particle amount only if particles are not to be serialized.
Definition: ParticleEmitter.cpp:384
void SetSize(const BoundingBox &box, unsigned numLevels)
Set size and maximum subdivision levels. If octree is not empty, drawable objects will be temporarily...
Definition: Octree.cpp:447
RenderSurface * renderTarget_
Destination render surface.
Definition: Drawable.h:114
unsigned GetChecksum() const
Definition: Scene.h:234
SharedPtr< NetworkServer > transportServer_
Actual server, which accepts connections.
Definition: Network.h:187
Cache of light processors.
Definition: LightProcessor.h:185
void OnSetEnabled() override
Handle enabled/disabled state change.
Definition: RaycastVehicle.cpp:322
bool IsQuiet() const
Definition: Log.h:172
void SetModalFrameSize(const IntVector2 &size)
Definition: Window.cpp:308
SphericalHarmonicsDot9 GetOrCreateSphericalHarmonics() const
Return cached spherical harmonics or recalculate from image if cache is not available.
Definition: ImageCube.cpp:338
bool AddDynamicPlugin(Plugin *plugin)
Manually add new plugin with dynamic reloading.
Definition: PluginManager.cpp:331
void SetDisableCollision(bool disable)
Definition: Constraint.cpp:311
ParticleGraphPinFlags flags_
Is input pin.
Definition: ParticleGraphPin.h:149
const ea::unordered_map< ea::string, PackageEntry > & GetEntries() const
Return all file entries.
Definition: PackageFile.h:63
DecalVertex(const Vector3 &position, const Vector3 &normal, const float blendWeights[], const unsigned char blendIndices[])
Construct with position, normal and skinning information.
Definition: DecalSet.h:51
unsigned GetWheelIndex() const
Get wheel index in the vehicle. Returns UINT_MAX if not added to a vehicle.
Definition: RaycastVehicleWheel.h:71
IntVector2 Min() const
Return left-top corner position.
Definition: Rect.h:465
Behavior that tracks bone transforms of AnimatedModel on server. Not implemented on client.
Definition: TrackedAnimatedModel.h:38
void SetName(const ea::string &name)
Definition: GraphNode.cpp:235
EaseElasticIn(Context *context)
Construct.
Definition: Ease.cpp:164
ea::vector< Vector3 > hullNormals_
Hull normals.
Definition: TetrahedralMesh.h:421
bool headless_
Headless mode flag.
Definition: Engine.h:202
bool IsEmitting() const
Definition: ParticleEmitter2D.h:131
void ClearSelection()
Clear selection.
Definition: ListView.cpp:704
virtual ea::optional< FileTime > GetLastModifiedTime(const FileIdentifier &fileName, bool creationIsModification) const
Definition: MountPoint.cpp:37
ea::unordered_map< ea::string, PListValue > PListValueMap
PList value map.
Definition: PListFile.h:50
Variant min_
Min value.
Definition: Random.h:83
NumericRange< T > & operator|=(const NumericRange &rhs)
Accumulate range.
Definition: NumericRange.h:58
Lock that automatically acquires and releases a mutex.
Definition: Mutex.h:149
float derivedOpacity_
Derived opacity.
Definition: UIElement.h:908
ea::vector< ea::string > ignoreResourceAutoReload_
List of resources that will not be auto-reloaded if reloading event triggers.
Definition: ResourceCache.h:255
unsigned EvaluateInstanceSize() const override
Evaluate size required to place new node instance.
Definition: TimeStep.cpp:53
WeakPtr< Node > instanceNode_
Definition: PrefabReference.h:113
SharedPtr< Texture > rampTexture_
Range attenuation texture.
Definition: Light.h:489
NavigationPathPointFlag flag_
Detour flag.
Definition: NavigationMesh.h:68
BoundingBox GetWorldBoundingBox() const
Definition: CollisionShape.cpp:814
void SetDepthBias(const BiasParameters ¶meters)
Definition: Material.cpp:783
ea::vector< PipelineStateSubscription > vertexBuffersDependencies_
Vertex buffers dependencies.
Definition: Geometry.h:151
bool IsNull() const
Definition: XMLElement.cpp:617
const ea::vector< AnimationTriggerPoint > & GetTriggers() const
Return animation trigger points.
Definition: Animation.h:136
float tangentialAcceleration_
Tangential acceleration.
Definition: ParticleEffect2D.h:281
unsigned Allocate()
Allocate index.
Definition: IndexAllocator.h:53
ValueAnimation * GetShaderParameterAnimation(const ea::string &name) const
Return shader parameter animation.
Definition: Material.cpp:947
ea::vector< WeakPtr< Node > > controlPoints_
Control Points for the SplinePath.
Definition: SplinePath.h:150
unsigned GetChecksum() const
Definition: PackageFile.h:82
bool IsCubemap() const
Definition: Image.h:120
const ea::vector< Vector2 > & GetVertices() const
Return vertices.
Definition: CollisionPolygon2D.h:60
unsigned GetRequiredMemory() const
Get amount of required memory to host all attributes.
Definition: ParticleGraphMemory.h:73
float timeAcc_
Time accumulator for non-interpolated mode.
Definition: PhysicsWorld.h:389
bool LoadOggVorbis(Deserializer &source)
Load Ogg Vorbis format sound data. Does not decode at load, but will rather be decoded while playing.
Definition: Sound.cpp:103
float Ease(float time) const override
Apply easing function to the time argument.
Definition: Ease.h:359
TextureFormat format_
Compression format.
Definition: Image.h:48
Skeleton skeleton_
Skeleton.
Definition: Model.h:237
Static model for rendering into lightmap. Lods, culling and features unrelated to rendering are disab...
Definition: StaticModelForLightmap.h:37
ea::unique_ptr< btBroadphaseInterface > broadphase_
Bullet collision broadphase.
Definition: PhysicsWorld.h:351
~OffMeshConnection() override
Destruct.
Region on the lightmap chart.
Definition: LightmapCharter.h:42
const ea::vector< unsigned > & GetMorphRangeCounts() const
Return morph range vertex counts for each vertex buffer.
Definition: Model.h:223
void RenderContent()
Render contents of the console window. Useful for embedding console into custom UI.
Definition: Console.cpp:158
Pipeline batch sorted by render order and back to front.
Definition: PipelineBatchSortKey.h:128
bool WriteResourceRef(const ResourceRef &value)
Write a resource reference.
Definition: Serializer.cpp:234
const TileMapInfo2D & GetInfo() const
Return Tilemap information.
Definition: TmxFile2D.h:185
ea::optional< ValueSpan > GetRaw(NetworkFrame frame) const
Return raw value at given frame.
Definition: NetworkValue.h:698
dtNavMesh * navMesh_
Detour navigation mesh.
Definition: NavigationMesh.h:350
ParticleGraph & GetUpdateGraph()
Get update graph.
Definition: ParticleGraphLayer.cpp:250
float farDistance_
Far distance.
Definition: SoundSource3D.h:95
virtual void InitializeStandalone()
Initialize object in standalone mode when neither server nor client is running.
Definition: NetworkCallbacks.h:129
int GetGroupIndex() const
Definition: CollisionShape2D.h:92
void SetSpeed(float value)
Definition: FreeFlyController.h:69
Vector3 max_
Maximum vector.
Definition: BoundingBox.h:378
CollisionShape(Context *context)
Construct.
Definition: CollisionShape.cpp:462
float timer_
Decal age timer.
Definition: DecalSet.h:92
~Octree() override
Destruct.
Definition: Octree.cpp:418
const Quaternion & GetRotationDelta() const
Get rotation delta.
Definition: Move.h:187
EnumArray< SharedPtr< OpenXRBinding >, VRHand > handAims_
Cached aim pose bindings to avoid constant queries.
Definition: OpenXR.h:320
int GetWidth() const
Return width.
Definition: Array2D.h:44
void SerializeInBlock(Archive &archive) override
Serialize content from/to archive. May throw ArchiveException.
Definition: FiniteTimeAction.cpp:60
InterpMethod
Interpolation method.
Definition: ValueAnimation.h:39
Vector3 GetRandomPointInCircle(const Vector3 ¢er, float radius, const Vector3 &extents=Vector3::ONE, const dtQueryFilter *filter=nullptr, dtPolyRef *randomRef=nullptr)
Return a random point on the navigation mesh within a circle. The circle radius is only a guideline a...
Definition: NavigationMesh.cpp:734
ea::string name_
Name.
Definition: Material.h:77
Polyhedron(const Frustum &frustum)
Construct from a frustum.
Definition: Polyhedron.h:64
ea::unique_ptr< Rml::DataModelConstructor > modelConstructor_
Data model constructor.
Definition: RmlUIComponent.h:211
void SubscribeToEventManual(StringHash eventType, EventHandler *handler)
Subscribe to an event that can be sent by any sender.
Definition: Object.cpp:101
void BeginSendEvent()
Begin event send. When receivers are removed during send, group has to be cleaned up afterward.
Definition: Context.cpp:60
InterfaceType * Detach() noexcept
Detach without destroying the object even if the refcount goes zero. To be used for scripting languag...
Definition: Ptr.h:274
void Render(const SharedRenderPassState &sharedState) override
Execute render commands.
Definition: BloomPass.cpp:94
void CalculateAttributeTracks(ea::unordered_map< AnimatedAttributeReference, Variant > &output) const
Apply animation to attributes.
Definition: AnimationState.cpp:268
Box(Context *context)
Construct Box.
Definition: Box.cpp:49
void OnRenderDebugUI(StringHash, VariantMap &)
Render debug hud on to entire viewport.
Definition: DebugHud.cpp:193
float GetEffectiveTimeScale() const
Get effective time scale or 0.0 if scene is not set or paused.
Definition: SoundSource.cpp:1891
static void RegisterObject(Context *context)
Definition: CollisionCircle2D.cpp:47
void Jump(const Vector3 &jump=Vector3::ZERO)
Jump.
Definition: KinematicCharacterController.cpp:587
void SetDynamic(bool enable)
Definition: CustomGeometry.cpp:233
SphericalHarmonics9(const Vector3 &dir)
Construct SH9 coefficients from given normalized direction.
Definition: SphericalHarmonics.h:69
virtual float Ease(float time) const
Apply easing function to the time argument.
Definition: Ease.cpp:101
void UpdateBatch()
Update the batch (geometry type, shader data).
Definition: DecalSet.cpp:1085
StringHashRegister(bool threadSafe)
Construct. threadSafe controls whether the RegisterString and GetStringCopy are thread-safe.
Definition: StringHashRegister.cpp:36
static void RegisterObject(Context *context)
Definition: Sprite.cpp:52
void SetSorted(bool enable)
Definition: BillboardSet.cpp:323
bool Save(Serializer &dest) const override
Save as binary data. Return true if successful.
Definition: Component.cpp:73
int AddAgent(CrowdAgent *agent, const Vector3 &pos)
Create and adds an detour crowd agent, Agent's radius and height is set through the navigation mesh....
Definition: CrowdManager.cpp:623
void SetAlphaToCoverage(bool enable)
Definition: Technique.cpp:95
void SetViewportIndex(unsigned index)
Set index of viewport to be used for screen coordinate translation.
Definition: UIComponent.cpp:241
UIElement * GetSelectedItem() const
Definition: ListView.cpp:901
bool IsStarted() const
Return whether the application is started now.
Definition: PluginManager.h:109
bool WriteIntVector3(const IntVector3 &value)
Write an IntVector3.
Definition: Serializer.cpp:108
bool EndLoad() override
Finish resource loading. Always called from the main thread. Return true if successful.
Definition: Model.cpp:328
VariantType type_
Variant type.
Definition: Variant.h:1672
int GetCurrent() const
Return current interval index. GetData()[GetCurrent()] returns a value of last accumulated interval.
Definition: Timer.h:144
float GetSoundSourceMasterGain(StringHash typeHash) const
Return sound type specific gain multiplied by master gain.
Definition: Audio.cpp:348
ActionBuilder & ElasticIn(float period=0.3f)
Combine with ElasticIn action.
Definition: ActionBuilder.cpp:393
IntRect rectangle_
Rectangle.
Definition: Sprite2D.h:110
void SetSelectionAttr(unsigned index)
Set selection attribute.
Definition: DropDownList.cpp:226
float GetAxisLowerThreshold() const
Get axis lower threshold. Axis value lower than threshold is interpreted as key press.
Definition: DirectionalPadAdapter.h:106
void Clear()
Clear selection.
Definition: SceneSelection.cpp:164
void SetSizeMul(float sizeMul)
Definition: ParticleEffect.cpp:586
Vector3 GetScale() const
Get Scale.
Definition: Cone.cpp:101
ea::string GetCurrentBlockPath() const final
Return current string stack.
Definition: ArchiveBase.h:212
bool enabled_
Input enabled flag.
Definition: UIElement.h:811
const VariantBuffer & GetBuffer() const
Return buffer or empty on type mismatch.
Definition: Variant.h:1436
unsigned long long GetBytesOutPerSec() const
Definition: Connection.cpp:670
Helper class to transform axis value.
Definition: AxisAdapter.h:30
Color startColorVariance_
Start color variance.
Definition: ParticleEffect2D.h:289
float GetRadius() const
Definition: Obstacle.h:63
ea::string name_
Morph name.
Definition: Model.h:58
SharedPtr< ActionState > StartAction(Object *target) override
Create new action state from the action.
Definition: Misc.cpp:140
void Reset(const NetworkTime &targetTime)
Reset time unconditionally.
Definition: NetworkTime.cpp:78
SoundStream()
Construct.
Definition: SoundStream.cpp:30
void ResumeAll()
Resume playback of all sound types.
Definition: Audio.cpp:291
void Define(const BoundingBox &box)
Define from a bounding box.
Definition: Polyhedron.cpp:37
Variant(const Vector2 &value)
Construct from a Vector2.
Definition: Variant.h:542
void ResizeRootElement()
Resize root element to effective size.
Definition: UI.cpp:2103
Variant defaultValue_
Default value of the variable. Also defines variable type.
Definition: ConfigFile.h:48
ea::vector< SharedPtr< BatchCompositorPass > > allPasses_
Definition: BatchCompositor.h:295
unsigned neighbors_[4]
Indices of neighbor tetrahedrons. M_MAX_UNSIGNED if empty.
Definition: TetrahedralMesh.h:247
const char * GetAttributeCString(const char *name) const
Return attribute as C string, or null if missing.
Definition: XMLElement.cpp:757
int GetMaxSubSteps() const
Definition: PhysicsWorld.h:250
unsigned EvaluateInstanceSize() const override
Evaluate size required to place new node instance.
Definition: EmitterRotation.cpp:53
float nearClip_
Near clip distance.
Definition: OcclusionBuffer.h:215
~FontFace() override
Destruct.
Definition: FontFace.cpp:42
const Quaternion & GetOtherRotation() const
Definition: Constraint.h:147
const IntRect & GetResizeBorder() const
Definition: Window.h:129
const Vector3 & GetRotationRange() const
Get rotation range.
Definition: ShakeComponent.h:80
bool IsLooped() const
Return whether the track is looped, i.e. the first and the last keyframes have the same value.
Definition: AnimationTrack.cpp:80
unsigned GetNumProbes() const
Return total number of probes.
Definition: LightProbeGroup.h:101
void UpdateAgentVelocity(CrowdAgent *agent, float timeStep, Vector3 &desiredVelocity, float &desiredSpeed) const
Update agent velocity using velocity callback.
Definition: CrowdManager.cpp:189
void ApplyMaterialList(const ea::string &fileName=EMPTY_STRING)
Apply default materials from a material list file. If filename is empty (default),...
Definition: StaticModel.cpp:306
void ApplyTorque(const Vector3 &torque)
Apply torque.
Definition: RigidBody.cpp:500
ParticleGraphNodeInstance * CreateInstanceAt(void *ptr, ParticleGraphLayerInstance *layer) override
Place new instance at the provided address.
Definition: LimitVelocity.cpp:62
static unsigned alphaPassIndex
Index for alpha pass. Initialized once GetPassIndex() has been called for the first time.
Definition: Technique.h:312
@ CommitPending
Commit from main thread is pending.
Definition: Exception.h:69
SharedPtr< Image > GetDecompressedImage() const
Return decompressed image data in RGBA format.
Definition: Image.cpp:1882
SharedPtr< Geometry > dirLightGeometry_
Directional light quad geometry.
Definition: Renderer.h:346
void SetLayoutMode(LayoutMode mode)
Definition: UIElement.cpp:1081
LightmapChartRegion()=default
Construct default.
void SetGeometryBoneMappings()
Set mapping of subgeometry bone indices.
Definition: AnimatedModel.cpp:978
unsigned GetMemoryUse() const
Definition: Resource.h:131
Matrix4(const float data[]) noexcept
Construct from a float array.
Definition: Matrix4.h:145
const ea::unordered_map< unsigned, Node * > & GetAllNodes() const
Return all nodes parented by this Scene.
Definition: Scene.h:257
virtual bool Save(Serializer &dest) const
Save as binary data. Return true if successful.
Definition: Serializable.cpp:124
ParticleGraphNodeInstance * CreateInstanceAt(void *ptr, ParticleGraphLayerInstance *layer) override
Place new instance at the provided address.
Definition: Destroy.cpp:59
Cone(Context *context)
Construct Cone.
Definition: Cone.cpp:52
static constexpr unsigned MaxLayers
Maximum number of layers in the single tile.
Definition: NavigationMesh.h:86
unsigned numWorldTransforms_
Number of world transforms.
Definition: Drawable.h:175
bool castShadows_
Shadowcaster flag.
Definition: Terrain.h:375
static ThreadID mainThreadID
Main thread's thread ID.
Definition: Thread.h:86
Definition: EmitterPosition.h:37
bool WriteAllText(const FileIdentifier &fileName, const ea::string &text) const
Write text file to the virtual file system. Returns true if file is written successfully.
Definition: VirtualFileSystem.cpp:253
bool useSystemClipboard_
Flag for using operating system clipboard instead of internal.
Definition: UI.h:447
Rect(float left, float top, float right, float bottom) noexcept
Construct from coordinates.
Definition: Rect.h:50
float GetTangentialAccelVariance() const
Return tangential acceleration variance.
Definition: ParticleEffect2D.h:174
Quaternion CalculateRotationDeltaFromOriginal() const
Calculate rotation delta from positions, using original positions as reference.
Definition: InverseKinematics.cpp:116
constexpr bool Test(const Integer flags) const
Return true if specified bits are set.
Definition: FlagSet.h:220
Vector2 heightRange_
Total height range of the navigation mesh, in world space.
Definition: NavigationMesh.h:366
unsigned minFps_
Minimum frames per second.
Definition: Engine.h:184
void SetRadius(float value)
Set Radius.
Definition: Hemisphere.cpp:73
ea::vector< unsigned > numAreas_
Number of configured area in each filter type. Limit to DT_MAX_AREAS.
Definition: CrowdManager.h:227
ea::string universalShaderNamePrefix_
Shader name prefix for universal shaders.
Definition: Graphics.h:316
b2JointDef * GetJointDef() override
Return joint def.
Definition: ConstraintRevolute2D.cpp:146
static const StringVariantMap emptyStringVariantMap
Empty string variant map.
Definition: Variant.h:1665
long long GetInt64() const
Return 64 bit int or zero on type mismatch. Floats and doubles are converted.
Definition: Variant.h:1321
void TestDrawables(Drawable **start, Drawable **end, bool inside) override
Intersection test for drawables.
Definition: OctreeQuery.cpp:106
void RemoveResourceRouter(ResourceRouter *router)
Remove a resource router object.
Definition: ResourceCache.cpp:392
void AddConstraint(Constraint *constraint)
Add a constraint that refers to this rigid body.
Definition: RigidBody.cpp:803
bool SetSize(int width, int height, TextureFormat format, TextureFlags flags=TextureFlag::None, int multiSample=1)
Set size, format, usage and multisampling parameters for rendertargets. Zero size will follow applica...
Definition: Texture2D.cpp:102
Base class for shared pointer.
Definition: Ptr.h:46
Scrollable list UI element.
Definition: ListView.h:45
void DrawTextureRegion(ea::string_view debugComment, RawTexture *sourceTexture, const IntRect &sourceRect, ColorSpaceTransition mode=ColorSpaceTransition::None, bool flipVertical=false)
Draw region of input texture into into currently bound render buffer. sRGB is taken into account.
Definition: RenderBufferManager.cpp:613
unsigned lightmapSize_
Size of lightmap.
Definition: BakedLightCache.h:52
void ApplyNodeWorldScale() override
Apply node world scale.
Definition: CollisionCircle2D.cpp:82
void SendAttributeAnimationRemovedEvent(const ea::string &name)
Send attribute animation remove event.
Definition: ObjectAnimation.cpp:274
bool SaveJPG(const ea::string &fileName, int quality) const
Save in JPG format with specified quality. Return true if successful.
Definition: Image.cpp:1140
void Clear()
Remove all nodes.
Definition: Graph.cpp:45
RenderSurfaceUpdateMode
Update mode for render surface viewports.
Definition: GraphicsDefs.h:174
ea::optional< ea::string > pendingFocusId_
Element id to be focused on next update.
Definition: RmlUIComponent.h:214
Pass(const ea::string &name)
Construct.
Definition: Technique.cpp:42
void RefreshFiles()
Refresh the directory listing.
Definition: FileSelector.cpp:290
Variant GetAnimationValue(float scaledTime) const
Return animation value.
Definition: ValueAnimation.cpp:343
float Evaluate(Input *input, UI *ui, float deadZone, int ignoreJoystickId) const
Evaluate action state based on current input.
Definition: InputMap.cpp:516
bool InitializeNodes(IKNodeCache &nodeCache) override
Definition: IKChainSolver.cpp:52
Variant GetKnot(unsigned index) const
Definition: Spline.h:85
void SetPosition(float factor)
Set the controlled Node's position on the SplinePath.
Definition: SplinePath.cpp:204
Definition: DivideInstance.h:31
float lightRad_
Radius of the light source. If above 0 it will turn the light into an area light. Works only with PBR...
Definition: Light.h:477
Variant(const ea::string &value)
Construct from a string.
Definition: Variant.h:572
const Color & GetFogColor() const
Definition: Zone.h:130
unsigned numTasks_
Number of tasks to spawn.
Definition: LightBakingSettings.h:71
void Reset(int width, int height, const T &value)
Resize array. All elements are reset to specified default value.
Definition: Array2D.h:167
ResourceRef GetSpriteAttr() const
Return sprite attribute.
Definition: ParticleEmitter2D.cpp:170
bool IsFixedSize() const
Definition: UIElement.h:500
Terrain(Context *context)
Construct.
Definition: Terrain.cpp:78
bool EndLoad() override
Finish resource loading. Always called from the main thread. Return true if successful.
Definition: Shader.cpp:176
bool GetModalAutoDismiss() const
Definition: Window.h:149
float timeToLive_
Lifetime.
Definition: ParticleEmitter.h:42
void HandleScenePostUpdate(StringHash eventType, VariantMap &eventData)
Handle scene post-update event.
Definition: ParticleGraphEmitter.cpp:254
void BuildTetrahedrons(ea::span< const Vector3 > positions)
Build tetrahedrons for given positions.
Definition: TetrahedralMesh.cpp:473
void DefineGeometry(unsigned index, PrimitiveType type, unsigned numVertices, bool hasNormals, bool hasColors, bool hasTexCoords, bool hasTangents)
Set the primitive type, number of vertices and elements in a geometry, after which the vertices can b...
Definition: CustomGeometry.cpp:300
VariantVector GetShapesAttr() const
Return shapes attribute.
Definition: Cursor.cpp:233
Vector4 binormal_
Binormal. W-component must be zero.
Definition: ModelView.h:64
SoundListener * GetListener() const
Definition: Audio.cpp:327
SharedPtr< FiniteTimeAction > Reverse() const override
Create reversed action.
Definition: Ease.cpp:134
JSONValue root_
JSON root value.
Definition: JSONFile.h:80
virtual void MarkAnimationStateTracksDirty()=0
void SetSize(unsigned dataSize)
Set sound size in bytes. Also resets the sound to be uncompressed and one-shot.
Definition: Sound.cpp:223
Definition: RmlRenderer.h:43
StringVector EnumerateMicrophones() const
Returns a pretty-name list of all attached microphones.
Definition: Audio.cpp:454
@ USE_FIXEDUPDATE
Bitmask for using the physics update event.
Definition: LogicComponent.h:42
ea::string GetSoundType() const
Definition: SoundSource.h:103
ParticleGraphPin & GetPin(unsigned index) override
Get pin by index.
Definition: Attribute.h:86
~XPathResultSet()
Destruct.
Definition: XMLElement.cpp:1121
void SetupInputLayoutAndPrimitiveType(GraphicsPipelineStateDesc &pipelineStateDesc, const ShaderProgramDesc &shaderProgramDesc, const Geometry *geometry, bool isStereoPass) const
Definition: PipelineStateBuilder.cpp:288
Color Abs() const
Return color with absolute components.
Definition: Color.h:245
virtual void Stop()
Called on StopApplication().
Definition: PluginApplication.h:94
IntRect(const IntVector2 &min, const IntVector2 &max) noexcept
Construct from minimum and maximum vectors.
Definition: Rect.h:301
unsigned GetTailColumn() const
Definition: RibbonTrail.h:195
unsigned vertexSize_
Vertex size in bytes.
Definition: OcclusionBuffer.h:73
const ea::string & GetCategory() const
Definition: Object.cpp:385
bool IsZero() const override
Compare to zero.
Definition: Variant.h:419
~PListValue()
Destruct.
Definition: PListFile.cpp:89
ea::vector< VertexBufferDesc > loadVBData_
Vertex buffer data for asynchronous loading.
Definition: Model.h:255
void SetMaxVertices(unsigned num)
Definition: DecalSet.cpp:256
GraphNode(Context *context)
Construct.
Definition: GraphNode.cpp:95
void CloneModelGeometries()
Clone model geometries.
Definition: SoftwareModelAnimator.cpp:207
IteratorRange()=default
Construct empty.
ea::string GetVersionModulePath(const ea::string &path)
Return path to the current version of the module.
Definition: ModulePlugin.cpp:128
void RemoveRigidBody(RigidBody2D *rigidBody)
Remove rigid body.
Definition: PhysicsWorld2D.cpp:451
unsigned checksum_
Content checksum.
Definition: File.h:152
Incremental light baker settings.
Definition: LightBakingSettings.h:167
bool nodesDirty_
Whether node IDs have been set and nodes should be searched for during ApplyAttributes.
Definition: CameraOperator.h:103
LoadMode GetAsyncLoadMode() const
Definition: Scene.h:226
void HandleMultitouch(StringHash eventType, VariantMap &eventData)
Handle multitouch input event.
Definition: FreeFlyController.cpp:74
ea::unordered_map< StringHash, ea::unordered_map< StringHash, ea::string > > strings_
Storage strings: <Language <StringId, Value> >.
Definition: Localization.h:78
BillboardSet(Context *context)
Construct.
Definition: BillboardSet.cpp:78
bool IsEnabledEffective() const
Definition: Component.cpp:182
Text3D(Context *context)
Construct.
Definition: Text3D.cpp:52
static void RegisterObject(ParticleGraphSystem *context)
Register particle node factory.
Definition: CurlNoise3D.cpp:38
void SetLightMask(unsigned mask)
Definition: Drawable.cpp:204
Variant(const ResourceRef &value)
Construct from a resource reference.
Definition: Variant.h:602
void * decoder_
Decoder state.
Definition: OggVorbisSoundStream.h:51
void Play(Sound *sound)
Play a sound.
Definition: SoundSource.cpp:182
void Clear()
Remove all rows.
Definition: Console.cpp:384
bool IsType() const
Return whether the specified type is stored.
Definition: Variant.h:237
VariantValue value_
Variant value.
Definition: Variant.h:1674
TileMapObjectType2D
Tile map object type.
Definition: TileMapDefs2D.h:91
float lodDistance_
LOD distance.
Definition: Material.h:102
void UpdateBatchesLightmaps()
Update lightmaps in batches.
Definition: TerrainPatch.cpp:314
bool Initialize(const StringVariantMap &applicationParameters, const StringVariantMap &commandLineParameters)
Initialize engine using parameters given and show the application window. Return true if successful.
Definition: Engine.cpp:321
static const Vector2 ZERO
Zero vector.
Definition: Vector2.h:433
Light processor callback.
Definition: RenderPipelineDefs.h:304
void SetFontSubpixelThreshold(float threshold)
Definition: UI.cpp:658
Vector3 GetRandomPoint(const dtQueryFilter *filter=nullptr, dtPolyRef *randomRef=nullptr)
Return a random point on the navigation mesh.
Definition: NavigationMesh.cpp:721
ResourceRef GetInputMapAttr() const
Return input map attribute.
Definition: MoveAndOrbitController.cpp:85
unsigned char * data_
Compressed image data.
Definition: Image.h:46
bool EndLoad() override
Finish resource loading. Always called from the main thread. Return true if successful.
Definition: Material.cpp:247
void SetFixedWidth(int width)
Set fixed width.
Definition: UIElement.cpp:686
IntVector2 GetEffectiveMinSize() const
Return effective minimum size, also considering layout. Used internally.
Definition: UIElement.cpp:1916
VerticalAlignment
UI element vertical alignment.
Definition: UIElement.h:46
LightmapChartingSettings charting_
Charting settings.
Definition: LightBakingSettings.h:192
@ Disconnected
Connection is fully disconnected and idle.
Variant & operator=(const Variant &rhs)
Assign from another variant.
Definition: Variant.cpp:82
float values_[9]
Coefficients.
Definition: SphericalHarmonics.h:85
ea::vector< Vector3 > clippedVertices_
Internal vector for clipped vertices.
Definition: Polyhedron.h:116
bool Exists(const FileIdentifier &fileName) const override
Definition: MountedDirectory.cpp:101
Node * GetCameraNode() const
Definition: View3D.cpp:134
Remove self from parent. The Target of the action should be either Node or UIElement.
Definition: Misc.h:34
void HandleBeginViewUpdate(StringHash eventType, VariantMap &eventData)
Handle view update begin event. Determine Drawable2D's and their batches here.
Definition: Renderer2D.cpp:308
void OnRenderBegin(const CommonFrameInfo &frameInfo) override
Definition: RenderBuffer.cpp:197
void SetBox(const Vector3 &size, const Vector3 &position=Vector3::ZERO, const Quaternion &rotation=Quaternion::IDENTITY)
Set as a box.
Definition: CollisionShape.cpp:575
int GetLevelWidth(unsigned level) const
Definition: Texture.cpp:174
JSONOutputArchive(JSONFile *jsonFile)
Construct from file.
Definition: JSONArchive.h:87
static void RegisterObject(ParticleGraphSystem *context)
Register particle node factory.
Definition: Hemisphere.cpp:38
Quaternion Conjugate() const
Return conjugate.
Definition: Quaternion.h:435
Console(Context *context)
Construct.
Definition: Console.cpp:49
void SetTrailType(TrailType type)
Definition: RibbonTrail.cpp:849
virtual ea::optional< NetworkObjectRelevance > GetRelevanceForClient(AbstractConnection *connection)
Definition: NetworkCallbacks.h:80
SharedPtr< Cursor > cursor_
UI cursor.
Definition: StateManager.h:137
void DeactivateKeyboard() override
Deactivate keyboard (for touchscreen devices)
Definition: RmlSystem.cpp:112
bool ReadInternal(void *dest, unsigned size)
Perform the file read internally using either C standard IO functions or SDL RWops for Android asset ...
Definition: File.cpp:544
unsigned numSoftwareSkinningBones_
Number of bones used for software skinning.
Definition: Renderer.h:385
IntVector2 ToIntVector2() const
Return IntVector2 vector (z component is ignored).
Definition: Vector3.h:158
IKTrigonometricChain chain_
Definition: IKArmSolver.h:85
ea::vector< Drawable * > drawables_
All Drawable objects.
Definition: Octree.h:298
bool WriteVariant(const Variant &value)
Write a variant.
Definition: Serializer.cpp:254
unsigned EvaluateInstanceSize() const override
Evaluate size required to place new node instance.
Definition: Constant.h:65
void SetPacketSizeLimit(int limit)
Buffered packet size limit, when reached, packet is sent out immediately.
Definition: Connection.cpp:772
bool HasSubscribedToEvent(StringHash eventType) const
Return whether has subscribed to an event without specific sender.
Definition: Object.cpp:372
void Update()
Periodical update of navigation state.
Definition: RmlNavigationManager.cpp:216
unsigned EvaluateInstanceSize() const override
Evaluate size required to place new node instance.
Definition: Emit.cpp:53
static void RegisterObject(Context *context)
Definition: Obstacle.cpp:52
const bool haptic_
Indicates this is a haptic output action.
Definition: VirtualReality.h:137
ea::vector< unsigned char > GetVerticesAttr() const
Return vertices attribute.
Definition: CollisionChain2D.cpp:104
const ea::string & GetVertexShader() const
Definition: Technique.h:162
TileMap2D * GetTileMap() const
Return tile map.
Definition: TileMapLayer2D.cpp:249
void SetRootSize(const BoundingBox &box)
Set size for the root octant. If octree is not empty, drawable objects will be temporarily moved to t...
Definition: Octree.cpp:181
void SetAttenuation(float attenuation)
Set attenuation. 1.0 is unaltered. Used for distance attenuated playback.
Definition: SoundSource.cpp:285
static void RegisterObject(Context *context)
Definition: Window.cpp:60
AreaAllocator allocator_
Glyph area allocator.
Definition: FontFaceFreeType.h:73
unsigned EvaluateInstanceSize() const override
Evaluate size required to place new node instance.
Definition: Uniform.h:88
SharedPtr< Cursor > cursor_
Cursor.
Definition: UI.h:403
void Define(const Vector3 &origin, const Vector3 &direction)
Define from origin and direction. The direction will be normalized.
Definition: Ray.h:69
ImageCube * GetImage() const
Return skybox image.
Definition: Skybox.cpp:84
float GetAverage()
Return average of all fully accumulated samples.
Definition: Timer.cpp:261
bool exitRequired_
Whether the exit is required by operating system.
Definition: Engine.h:198
SceneResolver()
Construct.
Quaternion originalRotation_
Original rotation of the node.
Definition: ShakeComponent.h:111
float GetDrawDistance() const
Definition: Terrain.h:202
float scale_
Size scaling value.
Definition: ParticleEmitter.h:44
Vector3 GetLinearFactor() const
Definition: RigidBody.cpp:589
void SetTargetNames(const StringVector &names)
Definition: IKStickTargets.h:31
ea::vector< TextureFrame > textureFrames_
Texture animation frames.
Definition: ParticleEffect.h:504
bool GetData(unsigned layer, unsigned level, void *dest)
Get data from a mip level. The destination buffer must be big enough. Return true if successful.
Definition: Texture2DArray.cpp:185
bool Save(Serializer &dest) const override
Save resource. Return true if successful.
Definition: ObjectAnimation.cpp:69
b2JointDef * GetJointDef() override
Return joint def.
Definition: ConstraintDistance2D.cpp:117
void MountAlias(const ea::string &alias, MountPoint *mountPoint, const ea::string &scheme=EMPTY_STRING)
Mount alias to another mount point.
Definition: VirtualFileSystem.cpp:136
void SetEffectColor(const Color &effectColor)
Definition: Text.cpp:403
ea::vector< SharedPtr< PackageFile > > requiredPackageFiles_
Required package files for networking.
Definition: Scene.h:335
unsigned EvaluateInstanceSize() const override
Evaluate size required to place new node instance.
Definition: Bounce.cpp:58
VariantMap eventData_
Event data.
Definition: Connection.h:54
void SortTechniques()
Ensure that material techniques are listed in correct order.
Definition: Material.cpp:876
float emissionRateMax_
Particles per second maximum.
Definition: ParticleEffect.h:476
VariantType GetAttributeType() const
Get attribute type.
Definition: Attribute.h:55
~SerializableResource() override
Destruct.
bool looped_
Looped flag.
Definition: Sound.h:137
void RemoveAgent(CrowdAgent *agent)
Removes the detour crowd agent.
Definition: CrowdManager.cpp:638
Watches a directory and its subdirectories for files being modified.
Definition: FileWatcher.h:60
bool GetBakeLightmap() const
Return whether the lightmap is baked for this object.
Definition: StaticModel.h:120
SourceBatch2D()
Construct.
Definition: Drawable2D.cpp:40
void Clear()
Clear the UI (excluding the cursor).
Definition: UI.cpp:313
bool useGravity_
Use gravity flag.
Definition: RigidBody.h:345
bool Allocate(int width, int height, int &x, int &y)
Try to allocate an area. Return true if successful, with x & y coordinates filled.
Definition: AreaAllocator.cpp:59
TileMapLayerType2D
Tile map layer type.
Definition: TileMapDefs2D.h:78
unsigned CalculatePipelineStateHash() const
Definition: RenderPipelineDefs.h:470
Ray Intersect(const Plane &other) const
Returns a line that defines an intersection of 2 planes.
Definition: Plane.cpp:85
Texture * GetZoneTexture() const
Definition: Zone.h:166
void ApplyAttributes() override
Apply attribute changes that can not be applied immediately. Called after scene load or a network upd...
Definition: StaticModelGroup.cpp:66
Vector2 GetScale() const
Return lightmap scale of the region.
Definition: LightmapCharter.h:55
void Update(const FrameInfo &frameInfo) override
Called for defined pipelines before rendering. Frame info is only partially filled.
Definition: DefaultRenderPipeline.cpp:278
void SetActualVelocity(const Vector3 &velocity)
Set actual immediate velocity. Target is not affected.
Definition: CrowdAgent.cpp:354
2D box collision component.
Definition: CollisionBox2D.h:31
const unsigned slice_
Slice of the parent texture.
Definition: RenderSurface.h:145
void SetShaderParameterAnimationWrapMode(const ea::string &name, WrapMode wrapMode)
Set shader parameter animation wrap mode.
Definition: Material.cpp:698
Matrix3 ToMatrix3() const
Return the combined rotation and scaling matrix.
Definition: Matrix3x4.h:574
void SetLifetime(float time)
Definition: RibbonTrail.cpp:819
unsigned sourceNode_
Source node.
Definition: ParticleGraphPin.h:143
bool GetOverride() const
Definition: Zone.h:158
WeakPtr< UIElement > rotationUIElement_
UI element to filter touch events.
Definition: MoveAndOrbitController.h:124
unsigned replicatedComponentID_
Next free non-local component ID.
Definition: Scene.h:343
Color GetDebugColor() const
Return color for SH debug rendering.
Definition: SphericalHarmonics.h:280
void FinalizeShadowBatchesComposition()
Should be called from main thread.
Definition: BatchCompositor.cpp:415
Vector4 ToVector4() const
Return as a vector.
Definition: Rect.h:239
Stores files of a directory tree sequentially for convenient access.
Definition: MountedDirectory.h:33
void HandleRenderUpdate(StringHash eventType, VariantMap &eventData)
Handle render update event.
Definition: Audio.cpp:415
void SetSize(const Vector2 &size)
Definition: CollisionBox2D.cpp:61
ParticleGraphNodeInstance * CreateInstanceAt(void *ptr, ParticleGraphLayerInstance *layer) override
Place new instance at the provided address.
Definition: Box.cpp:65
void MarkDirty()
Mark screen position as needing an update.
Definition: UIElement.cpp:1981
2D chain collision component.
Definition: CollisionChain2D.h:30
float weight_
Current morph weight.
Definition: Model.h:62
Matrix3x4 GetEyeLocalTransform(VREye eye) const override
Return the head-relative eye transform.
Definition: OpenXR.cpp:2077
void StopWatching() override
Stop file watcher.
Definition: MountedDirectory.cpp:71
~ConstraintFriction2D() override
Destruct.
Definition: IKArmSolver.h:12
unsigned numVertices_
Vertices in the current decals.
Definition: DecalSet.h:246
bool Load(Deserializer &source) override
Load from binary data. Return true if successful.
Definition: UnknownComponent.cpp:48
bool IsInf() const
Return whether any element is Inf.
Definition: Matrix2.h:218
virtual bool SetAssemblyVersion(const ea::string &path, unsigned version)=0
Modifies specified assembly by setting it's version to specified one.
unsigned GetNumInstanceNodes() const
Definition: StaticModelGroup.h:64
void Add(Object *object)
Add receiver. Same receiver must not be double-added!
Definition: Context.cpp:83
Definition: GLTFImporter.h:87
static void RegisterObject(ParticleGraphSystem *context)
Register particle node factory.
Definition: Make.cpp:38
Plane reflectionPlane_
Reflection plane.
Definition: Camera.h:389
bool HasArrived() const
Definition: CrowdAgent.cpp:495
bool SaveObjectCallback(const ea::function< void(Archive &)> serializeValue)
Definition: JSONFile.cpp:233
virtual void OnResize(const IntVector2 &newSize, const IntVector2 &delta)
React to resize.
Definition: UIElement.h:194
WeakPtr< PhysicsWorld > physicsWorld_
Physics world.
Definition: RigidBody.h:321
const Vector2 & GetHotSpot() const
Definition: StaticSprite2D.h:141
bool SetData(unsigned level, int x, int y, int z, int width, int height, int depth, const void *data)
Set data either partially or fully on a mip level. Return true if successful.
Definition: Texture3D.cpp:159
float constantPositionBias_
Constant position bias.
Definition: LightBakingSettings.h:64
void StoreBakedChunk(const IntVector3 &chunk, BakedSceneChunk bakedChunk) override
Store baked scene chunk in the cache.
Definition: BakedLightCache.cpp:34
b2JointDef * GetJointDef() override
Return joint def.
Definition: ConstraintWeld2D.cpp:90
void HandleSceneSubsystemUpdate(StringHash eventType, VariantMap &eventData)
Handle the scene subsystem update event.
Definition: CrowdManager.cpp:708
float animationLodTimer_
Animation LOD timer.
Definition: AnimatedModel.h:234
ea::vector< OcclusionBatch > batches_
Submitted render jobs.
Definition: OcclusionBuffer.h:191
void HandleRenderUpdate(StringHash eventType, VariantMap &eventData)
Handle render update event.
Definition: Renderer.cpp:744
void OnSceneSet(Scene *scene) override
Handle scene being assigned.
Definition: Constraint.cpp:409
DirectLightTracingSettings directChartTracing_
Settings for direct light tracing for charts.
Definition: LightBakingSettings.h:201
ea::shared_array< Vector3 > vertexData_
Vertex data.
Definition: CollisionShape.h:118
static const ChannelMask ARGB
Mask for 0xAARRGGBB layout.
Definition: Color.h:51
const ParticleGraphBufferLayout & GetIntermediateValues() const
Return intermediate memory layout.
Definition: ParticleGraphLayer.h:128
SphericalHarmonicsDot9 & operator+=(const SphericalHarmonicsDot9 &rhs)
Accumulate spherical harmonics (inplace).
Definition: SphericalHarmonics.h:237
void RemoveAllChildren()
Remove all child elements.
Definition: UIElement.cpp:1424
void Set(NetworkFrame frame, const InternalType &value)
Set value for given frame if possible.
Definition: NetworkValue.h:456
void SetBakeLightmap(bool bakeLightmap)
Set whether the lightmap is baked for this object.
Definition: TerrainPatch.h:111
void OnSetEnabled() override
Handle enabled/disabled state change.
Definition: PrefabReference.cpp:444
void DrawDebugGeometry(DebugRenderer *debug, bool depthTest) override
Visualize the component as debug geometry.
Definition: Camera.cpp:112
Vector3 GetScale() const
Get Scale.
Definition: Box.cpp:86
float cfm_
Constraint force mixing parameter.
Definition: Constraint.h:225
unsigned GetNumInputs() const
Get number of input pins.
Definition: GraphNode.h:113
@ ScheduledSync
Synchronous baking scheduled.
void SetAnimationSetAttr(const ResourceRef &value)
Set animation set attribute.
Definition: AnimatedSprite2D.cpp:198
void Set(Serializable *ptr, const Variant &value) override
Invoke setter function.
Definition: Serializable.h:162
bool writeSyncNeeded_
Synchronization needed before write -flag.
Definition: File.h:158
ConstIterator Begin() const
Return begin iterator (const).
Definition: MultiVector.h:228
unsigned GetFilterIndex() const
Definition: FileSelector.cpp:278
void RemoveInstance()
Remove prefab instance. Removes all children and components except this PrefabReference.
Definition: PrefabReference.cpp:222
void AddFrustum(const Frustum &frustum, const Color &color, bool depthTest=true)
Add a frustum.
Definition: DebugRenderer.cpp:263
ea::string ToDebugString() const
Return debug string that contains hash value, and reversed hash string if possible.
Definition: StringHash.cpp:63
VariantVector controlPointIdsAttr_
Control Point ID's for the SplinePath.
Definition: SplinePath.h:152
static bool IsZero(const ea::unique_ptr< T > &value)
Check whether the value is zero.
Definition: Variant.h:351
ea::vector< Urho3D::Drawable * > InnerCollection
Inner collection type.
Definition: MultiVector.h:38
void SetReference(ComponentReference reference)
Definition: TrackedComponent.h:121
void SetMaxHeight(int height)
Definition: UIElement.cpp:670
virtual unsigned Seek(unsigned position)=0
Set position from the beginning of the stream. Return actual new position.
static void RegisterObject(Context *context)
Definition: Drawable2D.cpp:60
void ActivateKeyboard(Rml::Vector2f caret_position, float line_height) override
Activate keyboard (for touchscreen devices)
Definition: RmlSystem.cpp:104
bool IsEof() const override
Return whether pipe has no data available.
Definition: NamedPipe.cpp:380
Variant(long long value)
Construct from 64 bit integer.
Definition: Variant.h:500
XrSpaceVelocity velocity_
Linear and Angular velocity from space location.
Definition: OpenXR.h:122
KeyFrameInterpolation interpolation_
Interpolation mode.
Definition: VariantCurve.h:95
ea::vector< Vector2 > vertices_
Vertices.
Definition: CollisionPolygon2D.h:76
FileIdentifier GetResolvedIdentifier(const FileIdentifier &name) const
Return canonical resource identifier with resource routing applied.
Definition: ResourceCache.cpp:990
Vector4 ToVector4(float z=0.0f, float w=0.0f) const
Return Vector4 vector.
Definition: Vector4.h:285
SharedPtr< ParticleEffect > effect_
Particle effect.
Definition: ParticleEmitter.h:145
Vector3 originalPosition_
Original position of the node.
Definition: ShakeComponent.h:109
bool IsExpanded(unsigned index) const
Return whether an item at index has its children expanded (in hierarchy mode only).
Definition: ListView.cpp:940
void PreStep(float timeStep)
Trigger update before each physics simulation step.
Definition: PhysicsWorld.cpp:895
void SetMass(float mass)
Definition: RigidBody.cpp:207
XMLElement GetRoot(const ea::string &name=EMPTY_STRING) const
Return the root element, with optionally specified name. Return null element if not found.
Definition: XMLFile.cpp:206
float shadowNearFarRatio_
Shadow camera near/far clip distance ratio.
Definition: Light.h:515
Definition: Animation.h:46
void SetInverted(bool inverted)
Set inverted flag.
Definition: AxisAdapter.cpp:56
BlendMode blendMode_
Blend mode flag.
Definition: BorderImage.h:148
ResourceRef GetObjectAnimationAttr() const
Return object animation attribute.
Definition: Animatable.cpp:457
float GetHeight() const
Return character height.
Definition: KinematicCharacterController.h:92
float Length() const
Definition: Vector4.h:181
~Viewport() override
Destruct.
Matrix4 projection_
Projection transform.
Definition: DebugRenderer.h:200
void HandleAttributeAnimationAdded(StringHash eventType, VariantMap &eventData)
Handle attribute animation added.
Definition: Animatable.cpp:540
void UpdateModel(XrSession session)
Keep the prefab up to date with the latest model data.
Definition: OpenXR.cpp:1174
bool sorted_
Billboards sorted flag.
Definition: BillboardSet.h:187
unsigned viewMask_
View mask.
Definition: TextRenderer3D.h:60
unsigned ToHash() const
Return hash value for HashSet & HashMap.
Definition: Vector2.h:160
const IKNode * GetNodeData(Node *node) const
Find bone data by Node.
Definition: IKSolver.cpp:176
bool autoLocalizable_
The text will be automatically translated.
Definition: Text.h:298
void GetLevels(ea::vector< Image * > &levels)
Get all stored mip levels starting from this.
Definition: Image.cpp:2095
~Cursor() override
Destruct.
Definition: Cursor.cpp:88
3x3 matrix for rotation and scaling.
Definition: Matrix3.h:31
Vector3 ProjectTexelOnCubeLevel(CubeMapFace face, int x, int y, unsigned level) const
Return offset from the center of the unit cube for given texel.
Definition: ImageCube.cpp:269
void SetShapesAttr(const VariantVector &value)
Set shapes attribute.
Definition: Cursor.cpp:213
unsigned index_
This node index in the graph.
Definition: ParticleGraphNode.h:125
Matrix3(float angle, const Vector3 &axis) noexcept
Construct from an angle (in degrees) and axis.
Definition: Matrix3.h:82
void SetGlobalVar(StringHash key, const Variant &value)
Set global variable with the respective key and value.
Definition: Context.cpp:273
float GetPointSize() const
Return point size.
Definition: FontFace.h:91
SharedPtr< JSONFile > jsonFile_
JSON file for JSON mode.
Definition: Scene.h:67
SharedPtr< SoftwareModelAnimator > modelAnimator_
Software model animator.
Definition: AnimatedModel.h:214
void ReleaseTileCache()
Free the tile cache.
Definition: DynamicNavigationMesh.cpp:818
void Clip(const BoundingBox &box)
Clip with another bounding box. The box can become degenerate (undefined) as a result.
Definition: BoundingBox.cpp:94
SharedPtr< PropertySet2D > propertySet_
Property set.
Definition: TileMapDefs2D.h:245
SharedPtr< Connection > connectionToServer_
Client's server connection.
Definition: Network.h:171
ea::string GetEffectivePixelShaderDefines() const
Return the effective pixel shader defines, accounting for excludes. Called internally by Renderer.
Definition: Technique.cpp:185
Vector3 chunkSize_
Size of the chunk.
Definition: LightBakingSettings.h:170
void SendPackageToClients(Scene *scene, PackageFile *package)
Trigger all client connections in the specified scene to download a package file from the server....
Definition: Network.cpp:364
void SetRepeatRate(float rate)
Definition: Slider.cpp:202
void SetAngularDamping(float damping)
Definition: RigidBody.cpp:347
Property set.
Definition: TileMapDefs2D.h:108
IntVector2 size_
Heightmap size.
Definition: CollisionShape.h:138
void SetZoneMask(unsigned mask)
Set zone mask.
Definition: Camera.cpp:188
Node * node_
Scene node.
Definition: OctreeQuery.h:217
AllocatorBlock * next_
Next allocator block.
Definition: Allocator.h:49
EmitterType
Particle emitter shapes.
Definition: ParticleEffect.h:34
VariantVector * GetVariantVectorPtr()
Return a pointer to a modifiable variant vector or null on type mismatch.
Definition: Variant.h:1601
unsigned shadowMask_
Shadow mask.
Definition: Terrain.h:385
const ea::vector< SharedPtr< VertexBuffer > > & GetVertexBuffers() const
Return vertex buffers.
Definition: Model.h:169
ActionBuilder & ShaderParameterFromTo(float duration, ea::string_view parameter, const Variant &from, const Variant &to)
Continue with ShaderParameterFromTo action.
Definition: ActionBuilder.cpp:256
Sprite2D * GetSpriterFileSprite(int folderId, int fileId) const
Return spriter file sprite.
Definition: AnimationSet2D.cpp:211
void SetBroadcastData(const VariantMap &data)
Specify data, which will be broadcast to the network for other nodes to be discovered.
Definition: LANDiscoveryManager.h:51
bool derivedColorDirty_
Derived color dirty flag (only used when no gradient).
Definition: UIElement.h:914
Generic unconstrained FABRIK chain.
Definition: InverseKinematics.h:214
void SetFlipX(bool flipX)
Definition: StaticSprite2D.cpp:136
void HandleScenePostUpdate(StringHash eventType, VariantMap &eventData)
Handle scene post update.
Definition: AnimatedSprite2D.cpp:242
const Vector3 & GetCenterOfMass() const
Definition: RigidBody.h:256
float GetMaxLength() const
Definition: ConstraintRope2D.h:64
unsigned a_
Alpha channel mask. If zero, alpha channel is set to 1.
Definition: Color.h:46
WeakPtr< Camera > camera_
Camera pointer.
Definition: Viewport.h:125
unsigned GetNumParticles() const
Definition: ParticleEmitter.h:102
Variant value_
Output value. Should have the same type for all points in curve.
Definition: VariantCurve.h:54
float Ease(float time) const override
Apply easing function to the time argument.
Definition: Ease.h:159
Graph node pin that connects to other pins.
Definition: GraphPin.h:87
constexpr unsigned SDBMHash(unsigned hash, unsigned char c)
Update a hash with the given 8-bit value using the SDBM algorithm.
Definition: MathDefs.h:342
bool AcceptsScheme(const ea::string &scheme) const override
Definition: MountedDirectory.cpp:96
const Vector3 & GetMaxDirection() const
Definition: ParticleEffect.h:322
float timeScale_
Time scale.
Definition: ShakeComponent.h:99
void UnregisterRemoteEvent(StringHash eventType)
Unregister a remote event as allowed to received.
Definition: Network.cpp:349
unsigned r_
Red channel mask. If zero, red channel is set to 0.
Definition: Color.h:40
ea::string armBoneName_
Definition: IKArmSolver.h:68
TextureFormat GetGPUFormat() const
Return internal GPU format corresponding to the Image format. Return unknown if there is no such form...
Definition: Image.cpp:1425
void SetTextureAnisotropy(int level)
Definition: Renderer.cpp:316
AttributeAnimationInfo(Animatable *animatable, const AttributeInfo &attributeInfo, ValueAnimation *attributeAnimation, WrapMode wrapMode, float speed)
Construct.
Definition: Animatable.cpp:44
bool GetLoop() const
Definition: CollisionChain2D.h:58
bool autoAspectRatio_
Auto aspect ratio flag.
Definition: Camera.h:395
void Reset()
Reset all animating bones to initial positions.
Definition: Skeleton.cpp:175
float startEndTailTime_
The time the tail become end of trail.
Definition: RibbonTrail.h:287
void SetMinHeight(int height)
Definition: UIElement.cpp:648
bool GetFlipX() const
Definition: TileMapDefs2D.h:145
IntVector2 offset_
Offset (for trimmed sprite).
Definition: Sprite2D.h:114
SharedPtr< FiniteTimeAction > Reverse() const override
Create reversed action.
Definition: ShaderParameter.cpp:150
unsigned destructionQueueSize_
Number of particles to destroy at end of the frame.
Definition: ParticleGraphLayerInstance.h:162
void BuildOuterTetrahedrons(const TetrahedralMeshSurface &hullSurface)
Build outer tetrahedrons.
Definition: TetrahedralMesh.cpp:1093
Spriter data.
Definition: SpriterData2D.h:58
bool inWorld_
Body exists in world flag.
Definition: RigidBody.h:349
Rect GetRect(const ea::string &name) const
Return a Rect attribute, or default if missing.
Definition: XMLElement.cpp:896
void SetFps(int fps)
Definition: PhysicsWorld.cpp:395
virtual ~Octant()
Destruct. Move drawables to root if available (detach if not) and free child octants.
Definition: Octree.cpp:67
bool Has(NetworkFrame frame) const
Return whether the frame is present.
Definition: NetworkValue.h:466
LightVSVariation
Light vertex shader variations.
Definition: Renderer.h:63
ea::shared_array< float > sourceHeightData_
Source height data for smoothing.
Definition: Terrain.h:323
Color ambientEndColor_
Cached ambient end color.
Definition: Zone.h:219
SharedPtr< Texture > texture_
Texture.
Definition: Cursor.h:80
Variant GetAttributeDefault(unsigned index) const
Definition: Serializable.cpp:569
const ea::vector< ea::vector< Matrix3x4 > > & GetGeometrySkinMatrices() const
Return per-geometry skin matrices. If empty, uses global skinning.
Definition: AnimatedModel.h:149
void OnMarkedDirty(Node *node) override
Definition: CrowdAgent.cpp:631
virtual bool IsOpen() const
Definition: AbstractFile.h:53
ea::vector< RaytracerGeometry > geometries_
Geometries.
Definition: RaytracerScene.h:178
Helper class to translate controller axis.
Definition: InputMap.h:69
static bool SaveLightProbesBakedData(Context *context, const FileIdentifier &fileName, const LightProbeCollection &collection, const LightProbeCollectionBakedData &bakedData, unsigned index)
Save light probes baked data for specific element. Return false if failed.
Definition: LightProbeGroup.cpp:160
float timeToLive_
Time to live.
Definition: ParticleEmitter2D.h:37
BoundingBox worldBoundingBox_
World bounding box.
Definition: Octree.h:147
void HandleFocusChanged(StringHash eventType, VariantMap &eventData)
Handle focus changed.
Definition: ListView.cpp:1157
ea::optional< SphericalHarmonicsDot9 > cachedSphericalHarmonics_
Precalculated spherical harmonics.
Definition: ImageCube.h:96
void SetConnectionPoint(Vector3 point)
Set wheel connection point in vehicle space.
ParticleGraphContainerType containerType_
Container type: span, sparse or scalar.
Definition: ParticleGraphPin.h:132
Vector3 Evaluate(const Vector3 &dir) const
Evaluate at given direction.
Definition: SphericalHarmonics.h:119
void SetAnimationLodBias(float bias)
Definition: AnimatedModel.cpp:496
bool RebuildMesh() override
Rebuild the navigation mesh allocating sufficient maximum number of tiles. Return true if successful.
Definition: DynamicNavigationMesh.cpp:278
Vector4 Abs() const
Return absolute vector.
Definition: Vector4.h:200
ea::shared_array< float > GetHeightData() const
Return raw height data.
Definition: Terrain.h:198
Material * GetMaterial() const
Definition: RibbonTrail.cpp:904
float GetLinearDamping() const
Return linear velocity damping factor.
Definition: KinematicCharacterController.h:84
@ FONT_HINT_LEVEL_NORMAL
Full hinting, using either the font's own hinting or FreeType's auto-hinter.
Definition: UI.h:46
CascadeParameters shadowCascade_
Directional light cascaded shadow parameters.
Definition: Light.h:483
void HandleScreenMode(StringHash eventType, VariantMap &eventData)
Handle screen mode event.
Definition: Renderer.cpp:736
AnimationTrack * GetTrack(unsigned index)
Return animation track by index.
Definition: Animation.cpp:579
~RefCount()
Destruct.
Definition: RefCounted.h:43
bool LogMessage(Rml::Log::Type type, const Rml::String &message) override
Definition: RmlSystem.cpp:65
float animationLodBias_
Animation LOD bias.
Definition: RibbonTrail.h:217
Vector2(const float data[]) noexcept
Construct from a float array.
Definition: Vector2.h:218
void SetUpdateInvisible(bool enable)
Definition: AnimatedModel.cpp:501
TileMapObjectType2D GetObjectType() const
Definition: TileMapDefs2D.h:180
bool Save(Serializer &dest) const override
Save resource. Return true if successful.
Definition: Material.cpp:315
void UpdateSkinning()
Recalculate skinning.
Definition: DecalSet.cpp:1068
Octant(const BoundingBox &box, unsigned level, Octant *parent, Octree *octree, unsigned index=ROOT_INDEX)
Construct.
Definition: Octree.cpp:58
void AddSubscriberReference(PipelineStateTracker *subscriber)
Add reference to subscriber pipeline state tracker.
Definition: PipelineStateTracker.cpp:50
IntVector2 rootCustomSize_
UI root element custom size.
Definition: StateManager.h:141
void DoExit()
Actually perform the exit actions.
Definition: Engine.cpp:1349
bool GetUseMutableGlyphs() const
Definition: UI.h:242
Vector3 GetConnectionPoint() const
Get wheel connection point in vehicle space.
RefCount * refCount_
Pointer to the RefCount structure.
Definition: Ptr.h:606
float GetMinRadiusVariance() const
Return min radius variance.
Definition: ParticleEffect2D.h:219
bool usingSDFShader_
Flag for whether currently using SDF shader defines in the generated material.
Definition: Text3D.h:276
UIElement * window_
UI element containing the whole UI layout. Typically it is a Window element type.
Definition: MessageBox.h:75
float distance_
Hit distance from ray origin.
Definition: PhysicsWorld.h:92
bool WriteByte(signed char value)
Write an 8-bit integer.
Definition: Serializer.cpp:58
WeakPtr< Zone > lastAmbientEndZone_
Last zone used for ambient gradient end color.
Definition: Zone.h:237
UIElement * GetWindow() const
Definition: MessageBox.h:68
ea::shared_ptr< TaskData > taskData_
Task data.
Definition: LightBaker.h:109
void Update()
Send frame update events.
Definition: Engine.cpp:957
bool Save(Serializer &dest) const override
Save resource. Return true if successful.
Definition: Model.cpp:375
Vector2 position_
Position.
Definition: Text.h:50
unsigned long long GetUInt64() const
Return unsigned 64 bit int or zero on type mismatch. Floats and doubles are converted.
Definition: Variant.h:1336
TextEffect textEffect_
Text effect.
Definition: Text.h:272
float shadowResolution_
Shadow resolution.
Definition: Light.h:513
RenderBackend GetRenderBackend() const
Definition: Graphics.cpp:670
const ea::string & GetPluginName()
Return plugin name. Should be the same as dynamic library name when plugin is linked dynamically.
Definition: PluginApplication.h:74
bool Equals(const Matrix2 &rhs, float eps=M_EPSILON) const
Test for equality with another matrix with epsilon.
Definition: Matrix2.h:185
void Add(GraphNode *)
Add node to the graph.
Definition: Graph.cpp:161
void DestroyParticles()
Destroy particles.
Definition: ParticleGraphLayerInstance.h:175
bool Exists(const ea::string &pathName) const
Check if a file or directory exists at the specified path.
Definition: FileSystem.h:117
static void Serialize(Archive &archive, const char *name, ea::unique_ptr< T > &value)
Serialize type.
Definition: Variant.h:355
IntVector2 recommendedEyeTextureSize_
Texture size recommended by API.
Definition: VirtualReality.h:286
const ea::string & GetFilter() const
Definition: FileSelector.cpp:269
void SetMinRotationSpeed(float speed)
Definition: ParticleEffect.cpp:570
static const IntVector2 ZERO
Zero vector.
Definition: Vector2.h:183
float shadowDistance_
Shadow distance.
Definition: Drawable.h:483
BoundingBox worldBoundingBox_
World-space bounding box of the navigation mesh tile.
Definition: NavBuildData.h:63
void HandleFocused(StringHash eventType, VariantMap &eventData)
Handle off-screen UI subsystems gaining focus.
Definition: UI.cpp:2000
bool HasElement(VertexElementType type, VertexElementSemantic semantic, unsigned char index=0) const
Return whether has an element semantic with specific type.
Definition: VertexBuffer.h:79
ObjectReflection * Reflect(const TypeInfo *typeInfo)
Return existing or new reflection for given type.
Definition: ObjectReflection.cpp:187
SharedPtr< PListFile > loadPListFile_
PList file used while loading.
Definition: SpriteSheet2D.h:96
void OnNodeSet(Node *previousNode, Node *currentNode) override
Handle scene node being assigned at creation.
Definition: FreeFlyController.cpp:51
Vector3 point_
Point.
Definition: OctreeQuery.h:87
Texture * GetTexture(StringHash nameHash) const
Return texture by unit.
Definition: Material.cpp:935
Node * GetImageNode() const
Definition: TileMapLayer2D.cpp:330
SharedPtr< Texture2D > defaultLightSpot_
Default spotlight attenuation texture.
Definition: Renderer.h:356
Intersection IsInside(const Vector2 &point) const
Test whether a point is inside.
Definition: Rect.h:216
unsigned dataSize_
Compressed sound data size in bytes.
Definition: OggVorbisSoundStream.h:55
bool SetResourceRef(const ResourceRef &value)
Set a resource reference attribute.
Definition: XMLElement.cpp:480
Definition: OutlineScenePass.h:39
void RemoveTrigger(unsigned index)
Remove a trigger point by index.
Definition: Animation.cpp:546
void SerializeInBlock(Archive &archive) override
Serialize content from/to archive. May throw ArchiveException.
Definition: Attribute.cpp:158
void SetAngularOffset(float angularOffset)
Definition: ConstraintMotor2D.cpp:70
bool IsInsideCombined(IntVector2 position, bool isScreen)
Return whether a point (either in element or screen coordinates) is inside the combined rect of the e...
Definition: UIElement.cpp:1796
~CollisionBox2D() override
Destruct.
void AddCylinder(const Vector3 &position, float radius, float height, const Color &color, bool depthTest=true)
Add a cylinder.
Definition: DebugRenderer.cpp:372
Abstract graph to store connected nodes.
Definition: Graph.h:37
bool operator==(const TextureFrame &rhs) const
Equality operator.
Definition: ParticleEffect.h:98
IntRect viewRect_
Viewport rectangle.
Definition: Drawable.h:109
void * GetVoidPtr() const
Return void pointer or null on type mismatch. RefCounted pointer will be converted.
Definition: Variant.h:1445
Implementation of XRBinding for OpenXR.
Definition: OpenXR.h:97
void SetUseSystemClipboard(bool enable)
Definition: UI.cpp:621
Instancing buffer compositor.
Definition: InstancingBuffer.h:34
RemoveSelf(Context *context)
Construct.
Definition: Misc.cpp:70
Variant * GetProperty(const ea::string_view name)
Get node property. Returns nullptr if property is not found.
Definition: GraphNode.cpp:113
float DotProduct(const Vector4 &rhs) const
Calculate dot product.
Definition: Vector4.h:188
float Get(float x, int repeat=NumPer) const
Return noise value as float.
Definition: PerlinNoise.h:45
BoundingBox boundingBox_
Local-space bounding box.
Definition: Skeleton.h:89
ea::vector< LightmapChartElement > elements_
Allocated elements.
Definition: LightmapCharter.h:95
unsigned GetTempBufferSize() const
Return size of temp buffer in bytes.
Definition: ParticleGraphLayer.cpp:331
float LengthSquared() const
Definition: Vector3.h:346
CrowdAgentRequestedTarget requestedTargetType_
Requested target type.
Definition: CrowdAgent.h:263
ParticleGraphSpan naturalIndices_
Indices.
Definition: ParticleGraphLayer.h:63
ea::string vertexShaderDefineExcludes_
Vertex shader define excludes.
Definition: Technique.h:236
Pin of a node in particle graph.
Definition: ParticleGraphPin.h:69
void InterpolateState(float replicaTimeStep, float inputTimeStep, const NetworkTime &replicaTime, const NetworkTime &inputTime) override
Interpolate replicated state.
Definition: BehaviorNetworkObject.cpp:246
void SetDebugDepthTest(bool enable)
Set debug geometry depth test mode. Called both by PhysicsWorld itself and physics components.
Definition: PhysicsWorld.cpp:835
void SetSpeed(float speed)
Definition: AnimatedSprite2D.cpp:188
void SetDirectoryMode(bool enable)
Definition: FileSelector.cpp:244
StringVariantMap ReadStringVariantMap()
Read a string variant map.
Definition: Deserializer.cpp:467
SharedPtr< PipelineState > CreateBatchPipelineStatePlaceholder(unsigned vertexStride, const PipelineStateOutputDesc &outputDesc) override
Create placeholder pipeline state when actual pipeline state creation fails.
Definition: PipelineStateBuilder.cpp:172
unsigned offset_
Start position within a package file, 0 for regular files.
Definition: File.h:150
PipelineStateSubscription(PipelineStateTracker *sender, PipelineStateTracker *subscriber)
Construct valid.
Definition: PipelineStateTracker.h:45
bool colorGradient_
Has color gradient flag.
Definition: UIElement.h:918
SharedPtr< Sprite2D > sprite_
Sprite.
Definition: TileMapDefs2D.h:167
Node * GetEndPoint() const
Definition: OffMeshConnection.cpp:113
T Smooth(const T &lhs, const T &rhs, U t)
Definition: MathDefs.h:166
float GetMaxVelocity() const
Definition: ParticleEffect.h:370
@ JSON_STRING
JSON string type.
Definition: JSONValue.h:48
bool EndLoad() override
Finish resource loading. Always called from the main thread. Return true if successful.
Definition: SpriteSheet2D.cpp:131
btGhostPairCallback * ghostPairCallback_
GhostPair Callback.
Definition: PhysicsWorld.h:409
bool GetLogStatistics() const
Definition: Connection.h:178
unsigned FindChild(UIElement *element) const
Find child index. Return M_MAX_UNSIGNED if not found.
Definition: UIElement.cpp:1456
Quaternion CalculateRotation(const IKSettings &settings) const
Calculate current rotation.
Definition: InverseKinematics.cpp:123
VariantMap globalVars_
Variant map for global variables that can persist throughout application execution.
Definition: Context.h:194
static void RegisterObject(Context *context)
Definition: Texture3D.cpp:51
Tile map file.
Definition: TmxFile2D.h:157
void SetPriority(int priority)
Definition: UIElement.cpp:871
bool GetData(unsigned level, void *dest)
Get data from a mip level. The destination buffer must be big enough. Return true if successful.
Definition: Texture2D.cpp:134
float emitRotationDelta_
Emit rotation delta.
Definition: ParticleEmitter2D.h:72
UIElement * GetRoot() const
Definition: UIElement.cpp:1714
Particle graph emitter component.
Definition: ParticleGraphEmitter.h:38
void ConnectToComponent()
Connect to MoveAndOrbitComponent if possible.
Definition: MoveAndOrbitController.cpp:215
bool Load(const XMLElement &source)
Load from an XML element. Return true if successful.
Definition: Material.cpp:324
StringHash GetType() const
Return type.
Definition: TypeInfo.h:50
float Range() const
Return range, defined as the difference between the greatest and least RGB component.
Definition: Color.cpp:214
unsigned defaultChartSize_
Default chart size for models w/o metadata. Don't rely on it.
Definition: LightBakingSettings.h:49
bool SaveOverrides(const ea::string &fileName, const ApplicationFlavor &flavor) const
Save variable overrides to file.
Definition: ConfigFile.cpp:212
bool sRGB_
Data is sRGB.
Definition: Image.h:229
void SetMemoryUse(unsigned size)
Set memory use in bytes, possibly approximate.
Definition: Resource.cpp:173
bool OverlapsWith(const ControllerAxisMapping &mapping) const
Check if the mapping overlaps with the other one, including matching axis index and controller type.
Definition: InputMap.cpp:418
static bool ValidateName(ea::string_view name)
Validate element or block name.
Definition: Archive.cpp:38
Definition: BackgroundLoader.h:54
Variant SubstractAndMultiply(const Variant &value1, const Variant &value2, float t) const
Return (value1 - value2) * t.
Definition: ValueAnimation.cpp:515
Definition: RmlSystem.h:38
const ea::vector< LightDataForAccumulator > * lights_
Array of lights to be indexed.
Definition: LightAccumulator.h:104
void OnUpdateBegin(const CommonFrameInfo &frameInfo)
Definition: SceneProcessor.cpp:479
StringHash(const ea::string &str, NoReverse) noexcept
Construct from a string (no side effects).
Definition: StringHash.h:64
float GetRowSpacing() const
Definition: Text.h:160
unsigned GetNumAttributes() const
Get number of attributes.
Definition: ParticleGraphMemory.h:70
bool IsLooped() const
Definition: AnimationState.h:190
void Render()
Render the UI batches. Returns true if call rendered anything. Rendering succeeds only once per frame...
Definition: UI.cpp:470
bool Expired() const noexcept
Return whether the object has expired. If null pointer, always return true.
Definition: Ptr.h:566
void DrawFeedbackViewportQuad(ea::string_view debugComment, StaticPipelineStateId pipelineStateId, ea::span< const ShaderResourceDesc > resources, ea::span< const ShaderParameterDesc > parameters, bool flipVertical=false)
Definition: RenderBufferManager.cpp:449
Zone * GetBackgroundZone() const
Return background zone.
Definition: Octree.cpp:400
const IntVector2 & GetModalFrameSize() const
Definition: Window.h:145
SharedPtr< Image > GetImage()
Get image data from zero mip level. Only RGB and RGBA textures are supported.
Definition: Texture2D.cpp:144
High-level rendering subsystem. Manages drawing of 3D views.
Definition: Renderer.h:191
StaticPipelineStateId CreateState(const GraphicsPipelineStateDesc &desc)
Create new pipeline state.
Definition: StaticPipelineStateCache.cpp:24
ResourceRef(const char *type, const char *name)
Construct with type and resource name.
Definition: Variant.h:139
void QueueBakeAll()
Queue rendering of all Baked reflection probes.
Definition: ReflectionProbe.cpp:263
Vector4 normal_
Normal. W-component must be zero.
Definition: ModelView.h:60
Definition: ActionManager.h:45
const ea::string & GetVertexShaderDefines() const
Definition: Material.h:256
ea::unordered_map< unsigned, SharedPtr< PropertySet2D > > gidToPropertySetMapping_
Gid to tile property set mapping.
Definition: TmxFile2D.h:225
BinaryMagic GetBinaryMagic() const override
Binary archive magic word. Should be 4 bytes.
Definition: SerializableResource.cpp:68
unsigned GetIndexCount() const
Definition: Geometry.h:103
IntVector2(const int data[]) noexcept
Construct from an int array.
Definition: Vector2.h:57
int GetMinWidth() const
Definition: UIElement.h:480
No-op mutex. Useful for template code.
Definition: Mutex.h:139
DropDownList(Context *context)
Construct.
Definition: DropDownList.cpp:40
Vector3 ToVector3() const
Definition: Color.h:168
Spherical harmonics color coefficients, 3 bands. Use Vector3 instead of Color to save memory.
Definition: SphericalHarmonics.h:92
unsigned FindLastAnimation(Animation *animation, unsigned layer=M_MAX_UNSIGNED) const
Definition: AnimationController.cpp:690
ea::vector< LightmapChartGeometryBuffer > LightmapChartGeometryBufferVector
Vector of lightmap geometry buffers.
Definition: LightmapGeometryBuffer.h:166
static const unsigned HandlerSize
Small object optimization buffer size.
Definition: Signal.h:90
DelayTime(Context *context)
Construct.
Definition: Misc.cpp:144
BoundingBox GetBoundingBox() const
Return bounding box attribute, or empty if missing.
Definition: XMLElement.cpp:813
void Scan(ea::vector< ea::string > &result, const ea::string &pathName, const ea::string &filter, ScanFlags flags) const override
Enumerate objects in the mount point. Only files enumeration is guaranteed to be supported.
Definition: MountedExternalMemory.cpp:110
float ReadFloat()
Read a float.
Definition: Deserializer.cpp:127
bool Load(const unsigned char *fontData, unsigned fontDataSize, float pointSize) override
Load font face.
Definition: FontFaceBitmap.cpp:51
void SetRotatePerSecond(float rotatePerSecond)
Set rotate per second.
Definition: ParticleEffect2D.cpp:441
Renders several object instances while culling and receiving light as one unit. Can be used as a CPU-...
Definition: StaticModelGroup.h:31
Vector3 lastKnownPosition_
Last known position of the node.
Definition: ShakeComponent.h:113
Archive implementation helper (template). Provides default block-dependent Archive implementation for...
Definition: ArchiveBase.h:182
static void RegisterObject(Context *context)
Register object factory.
Definition: ParticleGraphEmitter.cpp:44
Quaternion() noexcept
Construct an identity quaternion.
Definition: Quaternion.h:39
bool BeginLoad(Deserializer &source) override
Load resource from stream. May be called from a worker thread. Return true if successful.
Definition: Texture3D.cpp:56
const AttributeBufferLayout & GetAttributeBufferLayout() const
Return attribute buffer layout.
Definition: ParticleGraphLayer.cpp:326
Matrix4 viewProj_
Combined view and projection matrix.
Definition: OcclusionBuffer.h:211
void UpdateMaterial()
Update material.
Definition: StaticSprite2D.cpp:335
VertexMaskFlags elementMask_
Vertex elements.
Definition: Model.h:45
bool SetPinSource(unsigned pinIndex, unsigned nodeIndex, unsigned nodePinIndex=0)
Set pin source node and pin.
Definition: ParticleGraphNode.cpp:72
CachedDrawableReflection cachedReflection_
Current reflection.
Definition: Drawable.h:465
void UpdateBatchesDelayed(const FrameInfo &frame) override
Batch update from main thread. Called on demand only if RequestUpdateBatchesDelayed() is called from ...
Definition: BillboardSet.cpp:245
unsigned GetNumOutputs() const
Get number of output pins.
Definition: GraphNode.h:140
float GetRange() const
Definition: Slider.h:89
dtTileCacheContourSet * contourSet_
TileCache specific recast contour set.
Definition: NavBuildData.h:112
void SetBoundingBoxTrackingEnabled(bool enable)
Enable or disable bounding box tracking. Disabled by default.
Definition: CameraOperator.cpp:155
Operation on attribute.
Definition: Attribute.h:36
void InsertItem(unsigned index, UIElement *item)
Insert item to a specific position.
Definition: DropDownList.cpp:157
ea::vector< ea::string > StringVector
Vector of strings.
Definition: Variant.h:99
float GetFloat(float min, float max)
Return random float in range [min, max] with uniform distribution.
Definition: RandomEngine.h:99
void SetRotationUIElement(UIElement *element)
Definition: MoveAndOrbitController.cpp:95
ea::vector< ModelMorph > morphs_
Vertex morphs.
Definition: AnimatedModel.h:216
RandomEngine()
Construct with random seed.
Definition: RandomEngine.cpp:35
PListValueVector & ConvertToValueVector()
Convert to value vector (internal use only).
Definition: PListFile.cpp:264
ea::vector< SharedPtr< UIElement > > children_
Child elements.
Definition: UIElement.h:789
BoundingBox boundingBox_
Bounding box of the scene.
Definition: BakedSceneCollector.h:133
ea::string ReadLine()
Read a text line.
Definition: Deserializer.cpp:495
void SetTextureQuality(MaterialQuality quality)
Definition: Renderer.cpp:326
void Stop()
Set the running flag to false and wait for the thread to finish.
Definition: Thread.cpp:160
Variant value_
Value.
Definition: ValueAnimation.h:55
IntRect ReadIntRect()
Read an IntRect.
Definition: Deserializer.cpp:141
void SetLevelVisible(LogLevel level, bool visible)
Set visibility of certain log levels in the console.
Definition: Console.cpp:436
void Activate()
Activate rigid body if it was resting.
Definition: RigidBody.cpp:542
bool orthographic_
Orthographic mode flag.
Definition: Camera.h:359
Animation.
Definition: SpriterData2D.h:149
void OnClickBegin(const IntVector2 &position, const IntVector2 &screenPosition, MouseButton button, MouseButtonFlags buttons, QualifierFlags qualifiers, Cursor *cursor) override
React to mouse click begin.
Definition: CheckBox.cpp:73
~Text() override
Destruct.
IntVector2 GetIntVector2() const
Return IntVector2, for string type.
Definition: PListFile.cpp:222
void SetFileRef(const ResourceRef &fileRef)
Set reference on file with baked data.
Definition: GlobalIllumination.cpp:133
Definition: ParticleGraphNode.h:41
EventHandler(Object *receiver, T handler)
Construct with specified receiver and handler of flexible signature.
Definition: Object.h:258
Quaternion GetRotation() const
Get Rotation.
Definition: Circle.cpp:86
void EndFrame()
End frame rendering and swap buffers.
Definition: Graphics.cpp:235
void HandleAttributeAnimationRemoved(StringHash eventType, VariantMap &eventData)
Handle attribute animation removed.
Definition: Animatable.cpp:555
Matrix3x4 inverseWorld_
Cached inverse world transform matrix.
Definition: Zone.h:197
bool boundingBoxEnabled_
Is bounding box tracking enabled.
Definition: CameraOperator.h:107
bool sixteenBit_
Sixteen bit flag.
Definition: Sound.h:139
bool IsVisible() const
Return visible flag.
Definition: Terrain.h:229
ea::map< ea::string, ea::string > appStats_
Hashmap containing application specific stats.
Definition: DebugHud.h:90
Class to aggregate all movement inputs into a single direction vector.
Definition: DirectionAggregator.h:44
Variant GetVariantValue(VariantType type, Context *context=nullptr) const
Return a variant with type, context must be provided for serializables.
Definition: JSONValue.cpp:565
Vector3 GetBoxThickness() const
Get Box Thickness.
Definition: Box.cpp:74
bool GetSwapXY() const
Definition: TileMapDefs2D.h:151
float GetMaxSuspensionTravel() const
Get suspension max travel.
virtual Context * GetContext()=0
Get context.
void StopApplication()
Stop plugin application for all loaded plugins.
Definition: PluginManager.cpp:210
CollisionShape2D(Context *context)
Construct.
Definition: CollisionShape2D.cpp:38
unsigned Size() const
Definition: JSONValue.cpp:314
unsigned raytracerGeometryId_
Raytracer geometry ID, aka index of this structure in the array of geometries.
Definition: RaytracerScene.h:102
virtual const ea::vector< AttributeInfo > * GetAttributes() const
Return attribute descriptions, or null if none defined.
Definition: Serializable.cpp:94
void SetWindowPosition(const IntVector2 &position)
Definition: Graphics.cpp:263
void SerializeInBlock(Archive &archive) override
Serialize content from/to archive. May throw ArchiveException.
Definition: GraphNode.cpp:244
bool doubleWidth_
The dimension use for next growth. Used internally.
Definition: AreaAllocator.h:68
void SubscribeWithSender(Receiver *receiver, Callback handler)
Subscribe to event. Callback receives sender and signal arguments.
Definition: Signal.h:263
virtual void SetUniformType(VariantType valueType)
Set attribute type.
Definition: Uniform.cpp:68
bool IsInverted() const
Is axis inverted.
Definition: AxisAdapter.h:60
float constPositionBackfaceBias_
Determines how much position is pushed from behind backface to prevent shadow bleeding.
Definition: LightBakingSettings.h:73
Component that describes global rendering properties.
Definition: Zone.h:36
ea::unordered_map< unsigned, SharedPtr< Sprite2D > > spriterFileSprites_
Spriter sprites.
Definition: AnimationSet2D.h:121
float GetInnerAngle() const
Definition: SoundSource3D.h:81
~CollisionShape() override
Destruct. Free the geometry data and clean up unused data from the geometry data cache.
Definition: CollisionShape.cpp:477
void GetEventFrames(float beginTime, float endTime, ea::vector< const VAnimEventFrame * > &eventFrames) const
Return all event frames between time.
Definition: ValueAnimation.cpp:363
Vector3 directionMax_
Particle direction maximum.
Definition: ParticleEffect.h:464
const StringVector & GetStringVector() const
Return a string vector or empty on type mismatch.
Definition: Variant.h:1474
float projFarClip_
Cached actual far clip distance.
Definition: Camera.h:336
virtual void Load()
Called on LoadPlugin().
Definition: PluginApplication.h:88
Frustum Transformed(const Matrix3 &transform) const
Return transformed by a 3x3 matrix.
Definition: Frustum.cpp:189
unsigned GetCharIndex(const IntVector2 &position)
Return char index corresponding to position within element, or M_MAX_UNSIGNED if not found.
Definition: LineEdit.cpp:628
LoadMode mode_
Current load mode.
Definition: Scene.h:76
void EnsureMeshConnectivity(ea::vector< bool > &removed)
Ensure mesh connectivity, remove disconnected parts.
Definition: TetrahedralMesh.cpp:827
bool GetPassThroughEvents() const
Return true if SystemUI is allowing events through even when SystemUI is handling them.
Definition: SystemUI.h:69
WeakPtr< RmlUI > ownerSubsystem_
Subsystem instance which instantiated this context.
Definition: RmlUI.h:216
virtual ObjectReflection * GetReflection() const
Return reflection used for serialization.
Definition: Serializable.cpp:89
unsigned frequency_
Default frequency.
Definition: Sound.h:135
void SetTrauma(float value)
Set trauma value.
Definition: ShakeComponent.cpp:64
static void UnpackVertexData(const void *source, unsigned sourceStride, const VertexElement &element, unsigned start, unsigned count, Vector4 dest[], unsigned destStride)
Unpack given element data from vertex buffer into Vector4. Stride is measured in bytes.
Definition: VertexBuffer.cpp:323
void SetEnabled(bool enable)
Definition: UIElement.cpp:915
const dtQueryFilter * GetDetourQueryFilter(unsigned queryFilterType) const
Get the detour query filter.
Definition: CrowdManager.cpp:703
virtual bool SaveFile(const FileIdentifier &fileName) const
Save resource to file.
Definition: Resource.cpp:160
unsigned id_
Unique ID within the scene.
Definition: GraphNode.h:186
float GetInertia() const
Definition: CollisionShape2D.cpp:252
void DisconnectTetrahedron(unsigned tetIndex)
Disconnect tetrahedron from mesh.
Definition: TetrahedralMesh.cpp:586
BlendMode blendMode_
Blending mode.
Definition: UIBatch.h:79
BoundingBox boundingBox_
Bounding box to track.
Definition: CameraOperator.h:109
const StringVariantMap & GetEventData() const
Get event args.
Definition: CallFunc.h:126
b2Body * body_
Box2D body.
Definition: RigidBody2D.h:210
float angle_
Angle.
Definition: ParticleEffect2D.h:273
void UpdateEventSubscription()
Subscribe/unsubscribe to update events based on current enabled state and update event mask.
Definition: FreeFlyController.cpp:56
Text(Context *context)
Construct.
Definition: Text.cpp:53
static const unsigned PRIORITY_LAST
Sets to priority so that a package or file is pushed to the end of the vector.
Definition: ResourceCache.h:45
ea::optional< NetworkObjectRelevance > GetRelevanceForClient(AbstractConnection *connection) override
Definition: FilteredByDistance.cpp:54
float GetFriction() const
Definition: RigidBody.cpp:629
virtual ea::string ToString() const
Convert custom value to string.
Definition: Variant.h:259
void SetCellHeight(float height)
Definition: NavigationMesh.cpp:286
~BillboardSet() override
Destruct.
Spline class to get a point on it based off the interpolation mode.
Definition: Spline.h:49
bool modal_
Modal flag.
Definition: Window.h:180
void SetNumTechniques(unsigned num)
Definition: Material.cpp:584
float outerAngle_
Outer angle for directional attenuation.
Definition: SoundSource3D.h:99
ea::string ToString() const
Return as string.
Definition: Rect.cpp:81
unsigned ReadUInt()
Read a 32-bit unsigned integer.
Definition: Deserializer.cpp:101
unsigned numBones_
Number of bones used for skeletal animation.
Definition: SoftwareModelAnimator.h:109
ActionBuilder & ScaleBy(float duration, const Vector3 &delta, ea::string_view attributeName=Actions::SCALE_ATTRIBUTE)
Continue with ScaleBy action.
Definition: ActionBuilder.cpp:151
void HandleScreenMode(StringHash eventType, VariantMap &eventData)
Handle screen mode event.
Definition: UI.cpp:1669
Image UI element with optional border.
Definition: BorderImage.h:35
bool sdfFont_
Signed distance field font flag.
Definition: Font.h:118
bool customProjection_
Use custom projection matrix flag. Used internally.
Definition: Camera.h:338
ea::vector< TmxLayer2D * > layers_
Layers.
Definition: TmxFile2D.h:229
ResourceRef ReadResourceRef()
Read a resource reference.
Definition: Deserializer.cpp:293
SPIR-V shader.
Definition: ShaderDefs.h:39
EaseExponentialIn(Context *context)
Construct.
Definition: Ease.cpp:375
float GetPeriod() const
Get period.
Definition: Ease.h:76
ea::string GetAddress() const
Definition: Connection.cpp:978
Vector3 position_
Position.
Definition: BakedLight.h:81
void Update(float timeStep) override
Definition: RmlSerializableInspector.cpp:239
~ConstraintMouse2D() override
Destruct.
SharedPtr< UI > offScreenUI_
Subsystem that handles UI rendering to the texture.
Definition: UIComponent.h:75
void Clear()
Clear collection.
Definition: LightProbeGroup.h:74
RenderMeshDrawable(Context *context)
Construct.
Definition: RenderMeshInstance.cpp:41
A link between otherwise unconnected regions of the navigation mesh.
Definition: OffMeshConnection.h:31
void OnTextInput(const ea::string &text) override
React to text input event.
Definition: LineEdit.cpp:430
const ea::string & GetPixelShaderDefines() const
Definition: Technique.h:174
bool updateEnabled_
Automatic simulation update enabled flag.
Definition: PhysicsWorld.h:393
float rowHeight_
Row height.
Definition: FontFace.h:117
UpdateGeometryType GetUpdateGeometryType() override
Return whether a geometry update is necessary, and if it can happen in a worker thread.
Definition: AnimatedModel.cpp:369
const IntRect & GetImageBorder() const
Definition: BorderImage.h:99
Cached info about current static reflection probe.
Definition: Drawable.h:141
void SetShadowResolution(float resolution)
Definition: Light.cpp:384
void SetFarClip(float farClip)
Definition: Camera.cpp:125
T SnapCeil(T x, T y)
Round value up to nearest number that can be represented as i*y, where i is integer.
Definition: MathDefs.h:288
void GetCollidingBodies(ea::vector< RigidBody * > &result) const
Return colliding rigid bodies from the last simulation step. Only returns collisions that were sent a...
Definition: RigidBody.cpp:669
ea::string pixelShaderDefines_
Pixel shader defines.
Definition: Technique.h:234
void HandleUIMouseClick(StringHash eventType, VariantMap &eventData)
Handle global UI mouseclick to check for selection change.
Definition: ListView.cpp:1027
void SetHierarchyMode(bool enable)
Enable hierarchy mode. Allows items to have parent-child relationship at different indent level and t...
Definition: ListView.cpp:720
void SetRelative(bool enable)
Definition: ParticleEffect.cpp:455
float GetLength() const
Definition: Sound.cpp:318
void SetCenter(const Vector2 ¢er)
Definition: CollisionBox2D.cpp:76
@ HM_ALWAYS
Highlight always.
Definition: ListView.h:41
JSONValue * blockValue_
Block value.
Definition: JSONArchive.h:68
void SetTextAlignment(HorizontalAlignment align)
Definition: Text.cpp:310
UIElement * GetRoot() const
Definition: UI.h:155
SharedPtr< Image > nextLevel_
Precalculated mip level image.
Definition: Image.h:235
Base type for scene pass.
Definition: ScenePass.h:40
void ResetLightProbes()
Reset light probes.
Definition: GlobalIllumination.cpp:80
~ParticleGraphEmitter() override
Destruct.
float z_
Z coordinate.
Definition: Quaternion.h:503
ea::string message_
Message text.
Definition: Log.h:104
void SetInnerAngle(float angle)
Definition: SoundSource3D.cpp:125
Definition: NetworkValue.h:537
ParticleGraphPin * LoadOutputPin(ParticleGraphReader &reader, GraphOutPin &pin) override
Load output pin.
Definition: Attribute.cpp:108
static void RegisterObject(Context *context)
Definition: UISelectable.cpp:31
void SetFillMode(FillMode mode)
Definition: Material.cpp:777
T * GetOptional(const IntVector2 &index)
Return element by index or null if out of bounds.
Definition: Array2D.h:191
unsigned GetBoneIndex(const ea::string &boneName) const
Return index of the bone by name. Return M_MAX_UNSIGNED if not found.
Definition: Skeleton.cpp:219
Definition: IKSpineSolver.h:12
unsigned numPoints_
Number of points.
Definition: RibbonTrail.h:254
void SetCategoryBits(int categoryBits)
Definition: CollisionShape2D.cpp:92
ResourceRef GetExitAnimationAttr() const
Return exit animation attribute.
Definition: TriggerAnimator.cpp:77
bool InitializeNodes(IKNodeCache &nodeCache) override
Definition: IKArmSolver.cpp:69
bool CheckActiveParticles() const
Return whether has active particles.
Definition: ParticleEmitter.cpp:558
Matrix3x4 GetHeadTransform() const override
Return the head transform in stage space (or local if no stage).
Definition: OpenXR.cpp:2089
void SetAnimationSet(AnimationSet2D *animationSet)
Definition: AnimatedSprite2D.cpp:100
bool LoadXML(const XMLElement &source) override
Load from XML data. Removes all existing child nodes and components first. Return true if successful.
Definition: Scene.cpp:238
Definition: RmlEventListeners.h:77
float GetRandomRotation() const
Return random rotation.
Definition: ParticleEffect.cpp:816
Heightmap terrain component.
Definition: Terrain.h:39
ea::unordered_map< int, SharedPtr< FontFace > > faces_
Created faces.
Definition: Font.h:106
bool hasOriginalPosition_
Flag indicating that original position and rotation are captured.
Definition: ShakeComponent.h:107
int asyncLoadingMs_
Maximum milliseconds per frame to spend on async scene loading.
Definition: Scene.h:347
TriangleMeshData(Model *model, unsigned lodLevel)
Construct from a model.
Definition: CollisionShape.cpp:197
Lerp(Context *context)
Construct Lerp.
Definition: Lerp.cpp:83
Texture2D(Context *context)
Construct.
Definition: Texture2D.cpp:42
InternalResourceFormat
Internal file format of Resource.
Definition: Resource.h:45
int SystemRun(const ea::string &fileName, const ea::vector< ea::string > &arguments, ea::string &output)
Run a specific program, block until it exits and return the exit code. Will fail if any allowed paths...
Definition: FileSystem.cpp:612
bool WritePackedVector3(const Vector3 &value, float maxAbsCoord)
Write a Vector3 packed into 3 x 16 bits with the specified maximum absolute range.
Definition: Serializer.cpp:128
bool Save(Serializer &dest) const
Write to a stream. Return true if successful.
Definition: Skeleton.cpp:80
EventReceiverGroup * GetEventReceivers(StringHash eventType)
Return event receivers for an event type, or null if they do not exist.
Definition: Context.h:155
bool forceUpdate_
Force update flag (ignore animation LOD momentarily).
Definition: RibbonTrail.h:278
Helper class that synchronizes PhysicsWorld clock with network clock.
Definition: TickSynchronizer.h:73
void HandleRenderSurfaceUpdate()
Handle render surface update event.
Definition: Texture.cpp:323
void SetFullImageRect()
Use whole texture as the image.
Definition: Sprite.cpp:206
unsigned GetNumHistoryRows() const
Return history maximum size.
Definition: Console.h:66
PListValueType GetType() const
Return type.
Definition: PListFile.h:98
unsigned expectedElementCount_
Expected block size (for arrays).
Definition: XMLArchive.h:93
WeakPtr< DynamicNavigationMesh > ownerMesh_
Pointer to the navigation mesh we belong to.
Definition: Obstacle.h:97
void setDebugMode(int debugMode) override
Set debug draw flags.
Definition: PhysicsWorld.h:176
float LengthSquared() const
Definition: Vector4.h:185
~IDFamily()
Destruct.
Definition: IndexAllocator.h:123
b2WeldJointDef jointDef_
Box2D joint def.
Definition: ConstraintWeld2D.h:71
GeometryType geometryType_
Geometry type.
Definition: Drawable.h:179
float GetCursorBlinkRate() const
Definition: LineEdit.h:108
bool IsNaN() const
Return whether any component is NaN.
Definition: Vector4.h:212
BoundingBox(const BoundingBox &box) noexcept
Copy-construct from another bounding box.
Definition: BoundingBox.h:55
unsigned EvaluateInstanceSize() const override
Evaluate size required to place new node instance.
Definition: Print.h:65
bool castShadows_
Shadowcaster flag.
Definition: Drawable.h:449
void SetScaleDelta(const Vector3 &delta)
Set scale delta.
Definition: Move.cpp:534
void HandleResourceBackgroundLoaded(StringHash eventType, VariantMap &eventData)
Handle a background loaded resource completing.
Definition: Scene.cpp:1048
unsigned GetNumGeometries() const
Definition: Renderer.cpp:377
float GetShadowIntensity() const
Definition: Light.h:370
const ea::string & GetType() const
Definition: TileMapDefs2D.h:188
void ProcessPackets()
Handles queued packets. Should only be called from main thread.
Definition: Connection.cpp:992
virtual void SetWatching(bool enable)
Enable or disable FileChanged events.
Definition: MountPoint.cpp:56
@ MAX_VAR_MASK
There should be at most 64 variant types.
Definition: Variant.h:89
bool splineTangentsDirty_
Spline tangents dirty.
Definition: ValueAnimation.h:178
Lightmap cache interface.
Definition: BakedLightCache.h:58
ea::string path_
The path being watched.
Definition: FileWatcher.h:102
const RenderPipelineStats & GetStats() const override
Return render pipeline statistics for profiling.
Definition: DefaultRenderPipeline.h:67
bool CombineText(const pugi::xml_node &patch, const pugi::xml_node &original, bool prepend) const
Combine two text nodes.
Definition: XMLFile.cpp:399
void SetLineAntiAlias(bool enable)
Definition: Material.cpp:796
void MarkShapeDirty()
Mark shape dirty.
Definition: CollisionShape.h:309
std::minstd_rand EngineType
Underlying random engine type.
Definition: RandomEngine.h:44
IntVector2 GetSize() const
Return size.
Definition: RenderSurface.cpp:99
void SetMorphsAttr(const ea::vector< unsigned char > &value)
Set morphs attribute.
Definition: AnimatedModel.cpp:743
void DisableInternalLayoutUpdate()
Disable automatic layout update for internal elements.
Definition: ListView.cpp:339
SpinLockMutex mutex_
Spinlock mutex for updating cached object.
Definition: ThreadSafeCache.h:73
static void RegisterObject(Context *context)
Registers object with the engine.
Definition: RmlCanvasComponent.cpp:68
static void RegisterObject(ParticleGraphSystem *context)
Register particle node factory.
Definition: Destroy.cpp:38
void SetCallHandler(ActionCallHandler *handler)
Set call handler.
Definition: CallFunc.cpp:65
~Scene() override
Destruct.
Definition: Scene.cpp:88
Component * component_
Component.
Definition: LightmapCharter.h:78
AnimationBlendMode GetBlendMode() const
Definition: AnimationState.h:198
IncrementalLightBaker()
Construct.
Definition: IncrementalLightBaker.cpp:510
float GetRotatePerSecondVariance() const
Return rotate per second variance.
Definition: ParticleEffect2D.h:225
void Toggle(DebugHudModeFlags mode)
Definition: DebugHud.cpp:99
unsigned GetSize() const
Return number of currently allocated indices.
Definition: IndexAllocator.h:46
void SetCorrectionFactor(float correctionFactor)
Definition: ConstraintMotor2D.cpp:109
void HandleModelReloadFinished(StringHash eventType, VariantMap &eventData)
Handle model reload finished.
Definition: StaticModel.cpp:472
EmissionLightTracingSettings emissionTracing_
Settings for emission light tracing.
Definition: LightBakingSettings.h:199
static void RegisterObject(Context *context)
Definition: SoundSource.cpp:139
void SetAngularVelocity(const Vector3 &velocity)
Set angular velocity.
Definition: KinematicCharacterController.cpp:602
Vector3 normal_
Plane normal.
Definition: Plane.h:129
Vector4 ReadVector4()
Read a Vector4.
Definition: Deserializer.cpp:192
ea::vector< SharedPtr< Texture2D > > textures_
Glyph texture pages.
Definition: FontFace.h:113
CursorShapeInfo(int systemCursor)
Construct with system cursor.
Definition: Cursor.h:68
void SetGravityScale(float gravityScale)
Definition: RigidBody2D.cpp:245
Forwards a message to underlying logger. Use Log::GetLogger to obtain instance of this class.
Definition: Log.h:111
const Vector2 & GetAnchor() const
Definition: ConstraintFriction2D.h:56
bool GetDrawPair() const
Definition: PhysicsWorld2D.h:194
void Update(float timeStep, bool emitting)
Run update step.
Definition: ParticleGraphLayerInstance.cpp:120
void SerializeInBlock(Archive &archive)
Serialize content from/to archive. May throw ArchiveException.
Definition: InputMap.cpp:458
void SetEventFrame(float time, const StringHash &eventType, const VariantMap &eventData=VariantMap())
Set event frame.
Definition: ValueAnimation.cpp:311
float GetStepHeight() const
Return step height.
Definition: KinematicCharacterController.h:108
Octant * GetParent() const
Return parent octant.
Definition: Octree.h:92
const ea::vector< ea::vector< unsigned > > & GetGeometryBoneMappings() const
Return geometery bone mappings.
Definition: Model.h:199
float GetRestitution() const
Definition: CollisionShape2D.h:104
void OnSetEnabled() override
Handle enabled/disabled state change.
Definition: RigidBody2D.cpp:92
ResourceRef GetShapeTextureAttr() const
Return shape texture attribute.
Definition: Light.cpp:532
Debug render triangle.
Definition: DebugRenderer.h:67
Lightmap chart description.
Definition: LightmapCharter.h:86
void OnShowPopup() override
React to the popup being shown.
Definition: DropDownList.cpp:111
void SetClipBorder(const IntRect &rect)
Definition: UIElement.cpp:842
void SetEventHandler(EventHandler *handler)
Set current event handler. Called by Object.
Definition: Context.h:179
StringHash GetNameHash() const
Return hash of the package file name.
Definition: PackageFile.h:66
bool IsEOF() const final
Whether the archive can no longer be serialized.
Definition: ArchiveBase.h:47
void SetEditable(bool enable)
Definition: UIElement.cpp:946
Vector2 GetOrthogonalCounterClockwise() const
Return orthogonal vector (counter-clockwise).
Definition: Vector2.h:397
void SetBoneNames(const StringVector &names)
Definition: IKSpineSolver.h:28
~GCHandleRef()
Destruct.
Definition: Script.cpp:69
void HandleScenePostUpdate(StringHash eventType, VariantMap &eventData)
Handle scene post-update event.
Definition: LogicComponent.cpp:202
int height_
Height.
Definition: TileMapDefs2D.h:57
void DrawDebugGeometry(DebugRenderer *debug, bool depthTest) override
Visualize the component as debug geometry.
Definition: Terrain.cpp:1495
Color startColor_
Start color.
Definition: ParticleEffect2D.h:287
AnimatedModel(Context *context)
Construct.
Definition: AnimatedModel.cpp:55
Definition: ApplyForceInstance.h:34
int GetMaxWidth() const
Definition: UIElement.h:492
Definition: NetworkObject.h:63
void SetDuration(float duration)
Set duration.
Definition: ParticleEffect2D.cpp:411
JSONOutputArchive(Context *context, JSONValue &value, JSONFile *jsonFile=nullptr)
Construct from element.
Definition: JSONArchive.h:81
void StartStandalone()
Stop whatever client or server logic is going on and continue standalone.
Definition: ReplicationManager.cpp:282
void SetScale(float scale)
Set uniform scaling elements.
Definition: Matrix3x4.h:566
static const Matrix4 IDENTITY
Identity matrix.
Definition: Matrix4.h:744
const ea::vector< Spriter::SpatialTimelineKey * > & GetTimelineKeys() const
Return animation result timeline keys.
Definition: SpriterInstance2D.h:76
unsigned capacity_
Maximal number of particles.
Definition: ParticleGraphMemory.h:141
SDL_AudioDeviceID micID_
SDL identifier for the mic.
Definition: Microphone.h:108
bool IsBound() const
Returns true if this action is bound as a live input possibility.
Definition: VirtualReality.h:116
Matrix3x4 transforms_[2]
Transform matrices for position and billboard orientation.
Definition: BillboardSet.h:218
void UpdateAnimationStateTracks(AnimationState *state)
Update animation state tracks so they are connected to correct animatable objects.
Definition: AnimationController.cpp:1217
float GetRotation() const
Definition: Sprite.h:104
Microphone audio input device. Uses are for speech recognition or network speech, not intended for hi...
Definition: Microphone.h:36
Definition: RmlEventListeners.h:45
const IntRect & GetLayoutBorder() const
Definition: UIElement.h:653
void BeginSnapshot()
Definition: RenderPipelineDebugger.cpp:206
unsigned GetLightMask() const
Definition: Terrain.h:218
void ApplyStyleDefault(bool darkStyle, float alpha)
Definition: SystemUI.cpp:425
unsigned long long memoryUse_
Current memory use.
Definition: ResourceCache.h:60
btTypedConstraint * GetConstraint() const
Return Bullet constraint.
Definition: Constraint.h:119
void DrawDebugGeometry(DebugRenderer *debug, bool depthTest) override
Visualize the component as debug geometry.
Definition: IKIdentitySolver.cpp:40
LightMode lightMode_
Light mode.
Definition: BakedLight.h:62
2D vertex.
Definition: Drawable2D.h:37
float GetDuration() const override
Get action duration.
Definition: Ease.cpp:73
Vector2 anchor_
Anchor.
Definition: ConstraintRevolute2D.h:101
TimedCounter packetCounterIncoming_
Definition: Connection.h:259
WindowSettings secondaryWindowSettings_
Secondary window mode to be applied on Graphics::ToggleFullscreen.
Definition: Graphics.h:304
void SetIntensitySortValue(float distance)
Set sort value based on intensity and view distance.
Definition: Light.cpp:567
ea::unique_ptr< pugi::xpath_variable_set > variables_
Pugixml xpath_variable_set.
Definition: XMLElement.h:428
virtual void Stop()
Cleanup after the main loop. Called by Application.
Definition: Application.h:56
ea::vector< Vector3 > geometryCenters_
Geometry centers.
Definition: Model.h:247
void SetUpdateMode(RenderSurfaceUpdateMode mode)
Definition: RenderSurface.cpp:62
void SetPixelShader(const ea::string &name)
Definition: Technique.cpp:108
void Invoke(Object *target) override
Invoke event handler function.
Definition: CallFunc.h:79
void SetEffectDepthBias(float bias)
Definition: Text3D.cpp:317
ea::string fileName_
Absolute file name.
Definition: DragDropPayload.h:65
bool drawOffMeshConnections_
Debug draw OffMeshConnection components.
Definition: NavigationMesh.h:394
void SetNodeIDsAttr(const VariantVector &value)
Set node IDs attribute.
Definition: CameraOperator.cpp:97
ea::string ToString() const
Return as string.
Definition: Matrix3x4.cpp:90
bool GetUseDrawRect() const
Definition: StaticSprite2D.h:133
void DrawSolidPolygon(const b2Vec2 *vertices, int32 vertexCount, const b2Color &color) override
Draw a solid closed polygon provided in CCW order.
Definition: PhysicsWorld2D.cpp:200
float GetAmbientBrightness() const
Return ambient brightness.
Definition: Zone.h:104
void Update(float timeStep)
Handle scene update. Called by LogicComponent base class.
Definition: FreeFlyController.cpp:433
IntVector2 WrapIndex(const IntVector2 &index) const
Return index wrapped to array boundaries.
Definition: Array2D.h:67
static void RegisterObject(Context *context)
Definition: ConstraintPulley2D.cpp:47
ActionSet(Context *context)
Construct.
Definition: ActionSet.cpp:35
Maintains texture usable as custom backbuffer.
Definition: SceneRendererToTexture.h:43
Custom overrides of physics internals. To use overrides, must be set before the physics component is ...
Definition: PhysicsWorld.h:129
bool looped_
Definition: AnimationController.h:91
ResourceRefList GetMaterial() const
Get Material.
Definition: RenderMesh.cpp:75
SharedPtr< Material > noTextureMaterial_
Definition: RmlRenderer.h:72
const ea::vector< SharedPtr< RenderPass > > & GetPasses() const
Definition: RenderPath.h:46
ea::unique_ptr< btCompoundShape > shiftedCompoundShape_
Compound collision shape with center of mass offset applied.
Definition: RigidBody.h:319
ParticleGraph & GetInitGraph()
Get initialization graph.
Definition: ParticleGraphLayer.cpp:248
unsigned IndexToOffset(const IntVector2 &index) const
Convert 2D array index to linear array index.
Definition: Array2D.h:73
unsigned GetID() const
Definition: GraphNode.h:81
unsigned char index_
Semantic index of element, for example multi-texcoords.
Definition: GraphicsDefs.h:128
unsigned GetNumColorFrames() const
Definition: ParticleEffect.h:401
void SetRotation(const Matrix3 &rotation)
Set rotation elements from a 3x3 matrix.
Definition: Matrix3x4.h:544
void SetShadowMaxExtrusion(float extrusion)
Definition: Light.cpp:346
Index PushBack(unsigned outerIndex, const T &value)
Push element into back of specified outer vector. Return index of added element.
Definition: MultiVector.h:174
bool snapToPixels_
Whether to snap text to pixels.
Definition: TextRenderer3D.h:50
virtual void WriteReliableDelta(NetworkFrame frame, Serializer &dest)
Write reliable delta update. Delta is applied to previous delta or snapshot.
Definition: NetworkCallbacks.h:90
void OnSceneSet(Scene *scene)
Handle scene change in instance.
Definition: ParticleGraphLayerInstance.cpp:205
float scaledPositionBias_
Position bias in geometry buffer in direction of face normal. Scaled with position itself.
Definition: LightBakingSettings.h:62
@ LT_OBJECT_GROUP
Object group.
Definition: TileMapDefs2D.h:83
void SetMinRotation(float rotation)
Definition: ParticleEffect.cpp:560
void SetActiveTime(float time)
Definition: ParticleEffect.cpp:510
Definition: SystemUI.h:32
virtual ~ScriptRuntimeApi()
Destruct.
Definition: Script.cpp:46
IntVector2 dragBeginPosition_
Original position at drag begin.
Definition: Window.h:176
bool isSubscribed_
Is subscribed to events.
Definition: TriggerAnimator.h:86
SharedPtr< Button > closeButton_
Close button.
Definition: FileSelector.h:192
typename std::underlying_type< Enum >::type Integer
Integer type.
Definition: FlagSet.h:52
int GetMixRate() const
Definition: Audio.h:85
bool fixedHeightResizing_
Fixed height resize flag.
Definition: Window.h:168
const Vector2 & GetGravity() const
Definition: PhysicsWorld2D.h:218
dtTileCacheAlloc * alloc_
Allocator from DynamicNavigationMesh instance.
Definition: NavBuildData.h:118
const VariantVector & GetNodeIDsAttr() const
Return node IDs attribute.
Definition: StaticModelGroup.cpp:354
bool interpolatable_
Interpolatable flag.
Definition: ValueAnimation.h:168
void SetMinRadiusVariance(float minRadiusVariance)
Set min radius variance.
Definition: ParticleEffect2D.cpp:436
SharedPtr< ActionState > StartAction(Object *target) override
Create new action state from the action.
Definition: CallFunc.cpp:108
unsigned GetIndexSize() const
Definition: IndexBuffer.h:67
void RemoveAllItems()
Remove all items.
Definition: ListView.cpp:504
Definition: RenderBillboardInstance.h:37
DynamicNavigationMesh(Context *context)
Constructor.
Definition: DynamicNavigationMesh.cpp:214
CrowdAgentTargetState previousTargetState_
Agent's previous target state used to check for state changes.
Definition: CrowdAgent.h:285
void UpdateGeometry(const FrameInfo &frame) override
Prepare geometry for rendering. Called from a worker thread if possible (no GPU update).
Definition: AnimatedModel.cpp:351
void SetMaxAccel(float maxAccel)
Definition: CrowdAgent.cpp:379
Vector3(float x, float y, float z) noexcept
Construct from coordinates.
Definition: Vector3.h:216
Spriter animation set, it includes one or more animations, for more information please refer to http:...
Definition: AnimationSet2D.h:45
Divide(Context *context)
Construct Divide.
Definition: Divide.cpp:72
void HandleOKPressed(StringHash eventType, VariantMap &eventData)
Handle OK button pressed.
Definition: FileSelector.cpp:445
float Angle(const Vector2 &rhs) const
Returns the angle between this vector and another vector in degrees.
Definition: Vector2.h:339
virtual void GetDebugDrawBatches(ea::vector< UIBatch > &batches, ea::vector< float > &vertexData, const IntRect ¤tScissor)
Return UI rendering batches for debug draw.
Definition: UIElement.cpp:377
ea::string ToString(const ea::string &indendation="\t") const
Save to a string.
Definition: JSONFile.cpp:288
void SetOtherBody(RigidBody2D *body)
Definition: Constraint2D.cpp:116
SharedPtr< PropertySet2D > propertySet_
Property set.
Definition: TileMapDefs2D.h:169
void SerializeResource(Archive &archive, const char *name, SharedPtr< T > &value, ResourceRef &resourceRef)
Serialize reference to a resource.
Definition: Resource.h:241
Variant(const Variant &value)
Copy-construct from another variant.
Definition: Variant.h:719
ea::unordered_map< unsigned, ea::vector< SharedPtr< TileMapObject2D > > > gidToCollisionShapeMapping_
Gid to tile collision shape mapping.
Definition: TmxFile2D.h:227
void SetVisible(bool visible)
Definition: TileMapLayer2D.cpp:235
ConstraintDistance2D(Context *context)
Construct.
Definition: ConstraintDistance2D.cpp:35
int GetLayoutElementMaxSize() const
Return maximum layout element size in the layout direction. Only valid after layout has been calculat...
Definition: UIElement.h:726
void SetRotation(Quaternion value)
Set Rotation.
Definition: Hemisphere.cpp:85
Matrix3x4 view_
View transform matrix.
Definition: OcclusionBuffer.h:207
Folder.
Definition: SpriterData2D.h:75
IntVector2 delta_
Movement since last frame.
Definition: Input.h:76
const Color & GetEndColor() const
Definition: RibbonTrail.h:163
ea::string fileName_
File name.
Definition: PackageFile.h:121
Definition: TrackedComponent.h:36
void GetDependencyNodes(ea::vector< Node * > &dest) override
Return the depended on nodes to order network updates.
Definition: Constraint.cpp:130
EaseBackOut(Context *context)
Construct.
Definition: Ease.cpp:146
bool SetVariantMap(const VariantMap &value)
Set a variant map attribute. Creates child elements as necessary.
Definition: XMLElement.cpp:542
Shader translated to the target language.
Definition: ShaderTranslator.h:36
bool SetVertexBuffers(const ea::vector< SharedPtr< VertexBuffer > > &buffers, const ea::vector< unsigned > &morphRangeStarts, const ea::vector< unsigned > &morphRangeCounts)
Set vertex buffers and their morph ranges.
Definition: Model.cpp:498
bool GetUpdateInvisible() const
Definition: AnimatedModel.h:109
float GetAreaCost(unsigned queryFilterType, unsigned areaID) const
Get the cost of an area for the specified query filter type.
Definition: CrowdManager.cpp:512
unsigned Read(void *dest, unsigned size) override
Read bytes from the buffer. Return number of bytes actually read.
Definition: VectorBuffer.cpp:51
const Vector3 & GetPositionDelta() const
Get position delta.
Definition: Move.h:102
Tmx layer.
Definition: TmxFile2D.h:38
SharedPtr< Sprite2D > sprite_
Sprite.
Definition: StaticSprite2D.h:173
b2PrismaticJointDef jointDef_
Box2D joint def.
Definition: ConstraintPrismatic2D.h:106
void MixMonoToMono(Sound *sound, int dest[], unsigned samples, int mixRate, float effectiveFrequency, int channel=0, int channelCount=1)
Mix mono sample to mono buffer.
Definition: SoundSource.cpp:657
static void RegisterObject(Context *context)
Register object factory and attributes.
Definition: FreeFlyController.cpp:125
float GetDragBeginInterval() const
Definition: UI.h:214
RenderBufferManagerSettings settings_
Definition: RenderBufferManager.h:199
ea::string GetAddress() const
Result may be empty, when connection is not State::Connected.
Definition: NetworkConnection.h:55
WeakPtr< RigidBody > otherBody_
Other rigid body.
Definition: Constraint.h:203
SphericalHarmonicsColor9(const Color &color)
Construct SH9 coefficients from given color.
Definition: SphericalHarmonics.h:105
void UpdateEventSubscription(bool checkAllDecals)
Subscribe/unsubscribe from scene post-update as necessary.
Definition: DecalSet.cpp:1118
const Color & GetFinishColor() const
Return finish color.
Definition: ParticleEffect2D.h:183
Edge of the surface of tetrahedral mesh.
Definition: TetrahedralMesh.h:183
const ea::string & GetWindowTitle() const
Definition: Graphics.h:154
ea::unordered_map< ea::string, CursorShapeInfo > shapeInfos_
Shape definitions.
Definition: Cursor.h:145
ea::vector< IntVector2 > GetAllTileIndices() const
Enumerate all tiles.
Definition: NavigationMesh.cpp:491
virtual bool RebuildMesh()
Rebuild the navigation mesh allocating sufficient maximum number of tiles. Return true if successful.
Definition: NavigationMesh.cpp:409
ea::array< Object *, NumCachedSubsystems > cachedSubsystems_
Cached subsytems.
Definition: SubsystemCache.h:124
static void RegisterObject(Context *context)
Definition: MessageBox.cpp:109
ea::vector< StaticModelGeometryData > geometryData_
Extra per-geometry data.
Definition: StaticModel.h:151
void SerializeInBlock(Archive &archive) override
Serialize from/to archive. Return true if successful.
Definition: ActionSet.cpp:71
bool sceneLoaded_
Scene loaded flag.
Definition: Connection.h:297
Definition: RenderMeshInstance.h:36
float GetSizeMul() const
Definition: ParticleEffect.h:394
bool Compare(const CustomVariantValue &rhs) const override
Compare to another custom value.
Definition: Variant.h:413
Texture2D * GetTexture() const
Definition: Sprite2D.h:72
bool IsRecursive() const
Definition: Navigable.h:50
float y_
Y coordinate.
Definition: Vector3.h:500
void * GetHandle() const
Get raw gc handle.
Definition: Script.h:119
void Disconnect() override
Initializes a disconnection. Connection is no longer usable when this method returns,...
Definition: DataChannelConnection.cpp:68
void SetPanning(float panning)
Definition: SoundSource.cpp:290
~StaticModelGroup() override
Destruct.
LightMode
Light baking mode.
Definition: Light.h:39
ea::optional< Rml::DataTypeRegister > typeRegister_
Type registry for the data model.
Definition: RmlUIComponent.h:204
void SetOwnerBodyGroundAnchor(const Vector2 &groundAnchor)
Definition: ConstraintPulley2D.cpp:62
UIBatch()
Construct with defaults.
Definition: UIBatch.cpp:34
void SetModel(Model *model, bool createBones)
Set model.
Definition: AnimatedModel.cpp:388
unsigned maxLayers_
Maximum number of layers that are allowed to be constructed.
Definition: DynamicNavigationMesh.h:157
ResourceRef resource_
Definition: RmlUIComponent.h:188
float GetRotationEndVariance() const
Return rotation end variance.
Definition: ParticleEffect2D.h:240
Vector3 lastSpacing_
Vertex and height sacing at the time of last update.
Definition: Terrain.h:349
Octant * children_[NUM_OCTANTS]
Child octants.
Definition: Octree.h:153
void SetLowLimit(const Vector2 &limit)
Definition: Constraint.cpp:280
void StartApplication()
Start plugin application for all loaded plugins.
Definition: PluginManager.cpp:286
Mutex logMutex_
Mutex for threaded operation.
Definition: Log.h:193
virtual void UpdateTransformOnServer()
Called when world transform or parent of the object is updated in Server mode.
Definition: NetworkCallbacks.h:82
ea::string resourceName_
File name relative to resource root.
Definition: DragDropPayload.h:63
GraphNode * WithProperty(const ea::string_view name, const Variant &value)
Add property with value.
Definition: GraphNode.cpp:121
SharedPtr< FiniteTimeAction > Reverse() const override
Create reversed action.
Definition: Ease.cpp:189
GCHandleRef & operator=(void *handle)
Assign from raw gc handle.
Definition: Script.cpp:88
const Vector3 & GetSize() const
Definition: CollisionShape.h:240
void OnSceneSet(Scene *scene) override
Handle scene being assigned.
Definition: RigidBody2D.cpp:534
void CollectGeometries(ea::vector< NavigationGeometryInfo > &geometryList)
Collect geometry from under Navigable components.
Definition: NavigationMesh.cpp:940
void SetOwnerBodyAnchor(const Vector2 &anchor)
Definition: ConstraintPulley2D.cpp:82
Sphere(const BoundingBox &box) noexcept
Construct from a bounding box.
Definition: Sphere.h:80
void SetRotation(Quaternion value)
Set Rotation.
Definition: Box.cpp:80
void DefineVertex(const Vector3 &position)
Define a vertex position. This begins a new vertex.
Definition: CustomGeometry.cpp:255
IntVector3 ToIntVector3() const
Return IntVector3 vector (w component is ignored).
Definition: Vector4.h:225
float GetLength() const
Definition: AnimationState.cpp:228
virtual void Start()
Called when the component is added to a scene node. Other components may not yet exist.
Definition: LogicComponent.h:63
@ CATMULL_ROM_FULL_CURVE
Catmull-Rom full path interpolation. Start and end knots are duplicated or looped as necessary to mov...
Definition: Spline.h:45
UIElement * GetItem(unsigned index) const
Definition: ListView.cpp:842
PipelineState * GetPipelineState(const BatchStateLookupKey &key) const
Definition: BatchStateCache.cpp:53
bool IsNaN() const
Return whether any component is NaN.
Definition: Vector2.h:354
unsigned ToHash() const
Return hash value for HashSet & HashMap.
Definition: Variant.h:192
unsigned otherBodyNodeID_
Other body node ID for pending constraint recreation.
Definition: Constraint.h:227
void SetEnableDebug(bool enable)
Enable drawing debug information. Set this before applying heightmap. Increases memory usage.
Definition: Terrain.cpp:468
void SetFrequency(float frequency)
Definition: SoundSource.cpp:275
unsigned southID_
Node ID of south neighbor.
Definition: Terrain.h:397
void Set(T value)
Reset value.
Definition: WrappedScalar.h:137
SharedPtr< Model > originalModel_
Original model.
Definition: SoftwareModelAnimator.h:100
Scene * scene_
Definition: Drawable.h:118
void ApplyNodeWorldScale() override
Apply node world scale.
Definition: CollisionPolygon2D.cpp:102
rcHeightfieldLayerSet * heightFieldLayers_
Recast heightfield layer set.
Definition: NavBuildData.h:116
unsigned GetNumButtons() const
Definition: Input.h:98
bool IsString() const
Definition: JSONValue.h:208
float rotationSpeedMin_
Particle rotation speed minimum.
Definition: ParticleEffect.h:494
int serverMaxConnections_
Number of max allowed connections. Set by Network::StartServer.
Definition: Network.h:185
~TerrainPatch() override
Destruct.
unsigned GetNumGeometryLodLevels(unsigned index) const
Definition: Model.cpp:734
bool Resize(int width, int height)
Resize image by bilinear resampling. Return true if successful.
Definition: Image.cpp:985
int Right() const
Return right coordinate.
Definition: Rect.h:477
static const Quaternion ZERO
Zero quaternion.
Definition: Quaternion.h:508
VariantType type_
Type of values, deduced from key frames.
Definition: VariantCurve.h:104
void SetLooped(bool enable)
Definition: Sound.cpp:253
float emissionBrightness_
Emission light brightness multiplier.
Definition: LightBakingSettings.h:163
bool usePhysicalValues_
Use physical light values flag.
Definition: Light.h:519
float animationLodDistance_
Animation LOD distance, the minimum of all LOD view distances last frame.
Definition: AnimatedModel.h:236
IntVector2 ConvertUIToSystem(const IntVector2 &uiPos) const
Convert scaled UI position (or offset) to system mouse position (or offset).
Definition: UI.cpp:775
unsigned ToHash() const
Return hash value for HashSet & HashMap.
Definition: Color.h:263
IntVector2 ToIntVector2() const
Return IntVector2 vector.
Definition: Vector2.h:403
unsigned numWorldTransforms_
Number of valid instance node transforms.
Definition: StaticModelGroup.h:95
float masterGain_
Effective master gain.
Definition: SoundSource.h:180
SphericalHarmonicsColor9 & operator+=(const SphericalHarmonicsColor9 &rhs)
Accumulate spherical harmonics (inplace).
Definition: SphericalHarmonics.h:140
bool CopyDir(const ea::string &directoryIn, const ea::string &directoryOut, StringVector *copiedFiles=nullptr)
Copy files from one directory to another.
Definition: FileSystem.cpp:1514
void SetWatching(bool enable) override
Definition: MountPoint.cpp:72
unsigned nextAsyncExecID_
Next async execution ID.
Definition: FileSystem.h:146
float speed_
Camera speed.
Definition: FreeFlyController.h:121
FaceCameraMode
Billboard camera facing modes.
Definition: GraphicsDefs.h:182
float Ease(float time) const override
Apply easing function to the time argument.
Definition: Ease.h:239
Clock synchronization state specific to individual client connection.
Definition: ServerReplicator.h:110
void BringToFront()
Bring UI element to front.
Definition: UIElement.cpp:1245
bool pivotSet_
Has pivot changed manually.
Definition: UIElement.h:898
Vector3 GetContactNormal() const
Get contact normal.
ea::optional< PipelineStateOutputDesc > outputDesc_
Current output description. Invalid on start.
Definition: BatchStateCache.h:142
ea::vector< bool > buttons_
Button up/down state.
Definition: Input.h:141
DrawableFlags drawableFlags_
Drawable flags to include.
Definition: OctreeQuery.h:255
~AttributeActionState() override
Destruct.
Definition: AttributeActionState.cpp:43
Internal helper class for invoking action handler functions.
Definition: CallFunc.h:34
void AddRequiredPackageFile(PackageFile *package)
Add a required package file for networking. To be called on the server.
Definition: Scene.cpp:766
void SetDistanceAttenuation(float nearDistance, float farDistance, float rolloffFactor)
Set attenuation parameters.
Definition: SoundSource3D.cpp:102
SharedPtr< ActionState > StartAction(Object *target) override
Create new action state from the action.
Definition: Misc.cpp:109
bool snapToPixels_
Snap to pixel flag. Has effect only if fixed screen size is enabled.
Definition: Text3D.h:268
XMLElement GetParent() const
Definition: XMLElement.cpp:693
ea::vector< Drawable * > * shadowCasters_
Result array of shadow casters, if applicable.
Definition: LightProcessorQuery.h:64
void ApplyAttributes() override
Apply attribute changes that can not be applied immediately. Called after scene load or a network upd...
Definition: CollisionShape.cpp:500
void SetBuffer(const void *data, unsigned size)
Set buffer type from a memory area.
Definition: Variant.cpp:574
ea::string name_
Name.
Definition: Attribute.h:160
void SetFixedRotation(bool fixedRotation)
Definition: RigidBody2D.cpp:213
void SetEmissionBrightness(float emissionBrightness)
Set emission brightness.
Definition: GlobalIllumination.h:64
void SetSubscriptionMask(PointerAdapterFlags mask)
Set subscription mask.
Definition: PointerAdapter.cpp:71
void ReloadResourceWithDependencies(const ea::string &fileName)
Reload a resource based on filename. Causes also reload of dependent resources if necessary.
Definition: ResourceCache.cpp:333
DirectionAggregatorFlags GetSubscriptionMask() const
Get input device subscription mask.
Definition: DirectionAggregator.h:96
GeometryBufferPreprocessSettings geometryBufferPreprocessing_
Geometry buffer preprocessing settings.
Definition: LightBakingSettings.h:196
virtual void Step(float dt)
Definition: ActionState.cpp:44
void SetAttributeAnimation(const ea::string &name, ValueAnimation *attributeAnimation, WrapMode wrapMode=WM_LOOP, float speed=1.0f)
Set attribute animation.
Definition: Animatable.cpp:324
void TriggerHaptic(VRHand hand, float durationSeconds, float cyclesPerSec, float amplitude) override
Activates a haptic for a given hand.
Definition: OpenXR.cpp:1902
bool opaque_
Whether the material is opaque.
Definition: RaytracerScene.h:49
float Element(unsigned i, unsigned j) const
Return matrix element.
Definition: Matrix3.h:278
bool needUpdate_
Need update flag.
Definition: RibbonTrail.h:272
Matrix4 projection_
Projection matrix.
Definition: OcclusionBuffer.h:209
unsigned rawIndexSize_
Raw index data override size.
Definition: Geometry.h:177
float value_
Slider current value.
Definition: Slider.h:118
void CleanupLevels()
Clean up the mip levels.
Definition: Image.cpp:2090
void Reset()
Reset button, axis and hat states to neutral.
Definition: Input.cpp:338
ea::fixed_vector< AxisState, 4 > InputVector
Type definition for active input sources.
Definition: DirectionAggregator.h:76
Spline()
Default constructor.
Definition: Spline.cpp:40
JSONValue(const JSONValue &value)
Copy-construct from another JSON value.
Definition: JSONValue.h:140
unsigned collisionMask_
Collision mask.
Definition: RigidBody.h:333
SharedPtr< ActionState > StartAction(Object *target) override
Create new action state from the action.
Definition: Move.cpp:622
Vector3 Row(unsigned i) const
Return matrix row.
Definition: Matrix3.h:281
void SetNumOfBlinks(unsigned times)
Set number of blinks.
Definition: Misc.h:111
Description of file system entry (file or directory) with hierarchy information.
Definition: FileSystemReflection.h:39
void SetCustomSize(const IntVector2 &size)
Definition: UI.cpp:697
bool nodeIDsDirty_
Whether nodes have been manipulated by the API and node ID attribute should be refreshed.
Definition: CameraOperator.h:105
Script(Context *context)
Construct.
Definition: Script.cpp:37
void SetEnableMotor(bool enableMotor)
Definition: ConstraintRevolute2D.cpp:107
Cursor * GetCursor() const
Return cursor.
Definition: StateManager.h:67
void AddCollisionShape(CollisionShape *shape)
Add a collision shape to keep track of. Called by CollisionShape.
Definition: PhysicsWorld.cpp:799
unsigned lodIndex_
LOD index.
Definition: RaytracerScene.h:96
void MarkConstraintDirty()
Mark constraint dirty.
Definition: Constraint.h:194
bool hierarchyMode_
Hierarchy mode flag.
Definition: ListView.h:196
static const VariantCurve EMPTY
Empty curve. Returns empty Variant on sampling.
Definition: VariantCurve.h:66
void RemoveCachedGeometry(Model *model)
Invalidate cached collision geometry for a model.
Definition: PhysicsWorld.cpp:683
float GetMotorSpeed() const
Definition: ConstraintRevolute2D.h:88
Terrain * GetNorthNeighbor() const
Definition: Terrain.h:183
ShaderDefineArray(const ea::string &defineString)
Construct from string.
Definition: ShaderDefs.h:65
ea::string GetAbsoluteNameFromIdentifier(const FileIdentifier &fileName) const
Return absolute file name for existing identifier in this mount point, if supported.
Definition: VirtualFileSystem.cpp:275
bool GetSRGB() const
Definition: Texture.cpp:356
Logging subsystem.
Definition: Log.h:140
Rotate around 3D point action. Target should have "Position" of type Vector3 and "Rotation" of type Q...
Definition: Move.h:176
void SetCapacity(unsigned capacity)
Set maximum number of particles the layer can hold.
Definition: ParticleGraphLayer.cpp:223
void Update(float timeStep)
Update.
Definition: ParticleEmitter2D.cpp:302
const ea::vector< Vector2 > & GetVertices() const
Return vertices.
Definition: CollisionChain2D.h:68
static void RegisterObject(Context *context)
Register object factory.
Definition: TriggerAnimator.cpp:43
WeakPtr< Object > _target
Active target reference. Set to nullptr when action is complete.
Definition: ActionState.h:75
ThreadSafeCache< Vector3 > cachedAmbientLighting_
Definition: Zone.h:243
void SetSizeAdd(float sizeAdd)
Definition: ParticleEffect.cpp:581
Vector3 GetPosition() const
Return position as 3-vector.
Definition: ModelView.h:82
StringVector names_
List of object names.
Definition: Variant.h:204
WeakPtr< Shader > lastShader_
Last used shader in shader variation query.
Definition: Graphics.h:322
~Slider() override
Destruct.
void Unload()
Mark plugin for unloading. Plugin will be unloaded at the end of current frame.
Definition: Plugin.h:50
FileIdentifier shaderCacheDir_
Directory to store cached compiled shaders and logged shader sources.
Definition: Graphics.h:70
static const unsigned NumSplitFramesToLive
Number of frames for shadow splits expiration.
Definition: LightProcessor.h:93
unsigned char renderOrder_
Render order.
Definition: PipelineBatchSortKey.h:131
virtual void Update(const SharedRenderPassState &sharedState)
Perform update that does not invoke any rendering commands.
Definition: RenderPass.h:48
void SetApplyingTransforms(bool enable)
Set node dirtying to be disregarded.
Definition: PhysicsWorld2D.h:232
ea::shared_array< float > heightData_
Height data. On LOD level 0 the original height data will be used.
Definition: CollisionShape.h:134
int SystemCommand(const ea::string &commandLine, bool redirectStdOutToLog=false)
Run a program using the command interpreter, block until it exits and return the exit code....
Definition: FileSystem.cpp:601
float Element(unsigned i, unsigned j) const
Return matrix element.
Definition: Matrix3x4.h:699
void SetOrthographic(bool enable)
Definition: Camera.cpp:203
virtual const ea::string & GetName() const
Definition: Deserializer.cpp:56
CachedDrawableZone & GetMutableCachedZone()
Return mutable cached zone data.
Definition: Drawable.h:393
void Load(const XMLElement &element)
Load from XML element.
Definition: TileMapDefs2D.cpp:142
ea::unique_ptr< dtQueryFilter > queryFilter_
Detour navigation mesh query filter.
Definition: NavigationMesh.h:354
void Raycast(ea::vector< PhysicsRaycastResult2D > &results, const Vector2 &startPoint, const Vector2 &endPoint, unsigned collisionMask=M_MAX_UNSIGNED)
Perform a physics world raycast and return all hits.
Definition: PhysicsWorld2D.cpp:506
signed char * GetStart() const
Return sound data start.
Definition: Sound.h:77
int GetDrawOrder() const
Return draw order by layer and order in layer.
Definition: Drawable2D.h:143
Helper class to translate keyboard keys.
Definition: InputMap.h:36
unsigned GetNumQueuedResources() const
Return amount of resources in the load queue.
DebugLine()=default
Construct undefined.
float Ease(float time) const override
Apply easing function to the time argument.
Definition: Ease.h:339
float GetSpotAttenuation(const Vector3 &worldDir) const
Return direction-based spot attenuation.
Definition: LightAccumulator.h:80
ArchiveBlock & operator=(ArchiveBlock &&other)
Move-assign.
Definition: Archive.h:77
const SharedPtr< Resource > & FindResource(StringHash type, StringHash nameHash)
Find a resource.
Definition: ResourceCache.cpp:763
unsigned GetViewMask() const
Return view mask.
Definition: ParticleGraphEmitter.h:90
bool SetFont(const ea::string &fontName, float size=DEFAULT_FONT_SIZE)
Set font by looking from resource cache by name and font size. Return true if successful.
Definition: Text3D.cpp:199
bool SaveXML(Serializer &dest, const ea::string &indentation="\t") const
Save to an XML file. Return true if successful.
Definition: Scene.cpp:364
void Merge(const Vector3 &point)
Merge a point.
Definition: BoundingBox.h:178
void GetBatches(ea::vector< UIBatch > &batches, ea::vector< float > &vertexData, const IntRect ¤tScissor) override
Return UI rendering batches.
Definition: Window.cpp:82
void SetDrawPair(bool drawPair)
Definition: PhysicsWorld2D.cpp:381
Matrix3 ReadMatrix3()
Read a Matrix3.
Definition: Deserializer.cpp:215
const ParticleGraphSpan & operator[](unsigned index) const
Get span by index.
Definition: ParticleGraphMemory.h:117
void SetFriction(float friction)
Definition: CollisionShape2D.cpp:142
int x_
X coordinate.
Definition: Vector2.h:178
void SetOuterAngle(float angle)
Definition: SoundSource3D.cpp:130
float GetRadius() const
Get Radius.
Definition: Sphere.cpp:75
Object * GetEventSender() const
Return active event sender. Null outside event handling.
Definition: Context.cpp:278
bool BeginLoad(Deserializer &source) override
Load resource from stream. May be called from a worker thread. Return true if successful.
Definition: AnimationSet2D.cpp:123
Button * okButton_
OK button element.
Definition: MessageBox.h:81
TemplateNode(Context *context, const PinArray &pins)
Construct.
Definition: TemplateNode.h:60
ea::string name_
Joystick name.
Definition: Input.h:139
~Drawable2D() override
Destruct.
Definition: Drawable2D.cpp:54
ea::string GetFullNameDebug() const
Return full component name for debugging. Unique for each component in the scene. Slow!
Definition: Component.cpp:187
Definition: GLTFImporter.h:99
bool IsEnabled() const
Definition: AnimationState.h:186
Array2D(const ArrayDimensions2D &dim)
Construct with dimensions and default value.
Definition: Array2D.h:117
void RemoveAllTracks()
Remove all tracks. This is unsafe if the animation is currently used in playback.
Definition: Animation.cpp:511
Definition: DefaultRenderPipeline.h:116
static void RegisterObject(Context *context)
Register object factory and attributes.
Definition: MoveAndOrbitComponent.cpp:35
StringHash originState_
Origin state.
Definition: StateManager.h:259
void SetOrientation(Orientation orientation)
Definition: ProgressBar.cpp:75
unsigned numElements_
Number of elements in block.
Definition: XMLArchive.h:95
ea::string outputDirectory_
Output directory name.
Definition: LightBakingSettings.h:176
void SetStopAtEnd(bool enable)
Set whether playback should stop when no more data. Default false.
Definition: SoundStream.cpp:52
void SortTextureFrames()
Sort the list of texture frames based on time.
Definition: ParticleEffect.cpp:728
ParticleGraphSpan nodeInstances_
Node instances.
Definition: ParticleGraphLayer.h:57
Matrix3x4(const Matrix4 &matrix) noexcept
Copy-construct from a 4x4 matrix which is assumed to contain no projection.
Definition: Matrix3x4.h:83
void SetScale(const Vector3 &scale)
Set scaling elements.
Definition: Matrix3x4.h:558
ea::hash_set< ea::pair< StringHash, StringHash > > dependents_
Resources that depend on this resource's loading.
Definition: BackgroundLoader.h:47
bool physicsStepping_
Whether is currently stepping the world. Used internally.
Definition: PhysicsWorld2D.h:267
void SetOcclusionLodLevel(unsigned level)
Definition: StaticModel.cpp:301
void SetMaterial(Material *material)
Definition: RibbonTrail.cpp:419
RaycastVehicleData * vehicleData_
Opaque Bullet data hidden from public.
Definition: RaycastVehicle.h:161
const ea::string & GetAnimationName() const
Definition: Animation.h:101
Variant BezierInterpolation(const ea::vector< Variant > &knots, float t) const
Perform Bezier interpolation on the spline.
Definition: Spline.cpp:143
void AddDrawable(Drawable2D *drawable)
Add Drawable2D.
Definition: Renderer2D.cpp:228
void Minimize()
Minimize the window.
Definition: Graphics.cpp:495
const Rect & GetPadding() const
Get padding in world space units.
Definition: CameraOperator.h:53
Cached character location and size within text. Used for queries related to text editing.
Definition: Text.h:47
IntRect GetRightEyeRect() const
Viewport rectangle for right eye, required for multipass single-RT.
Definition: VirtualReality.h:228
ea::unordered_map< RigidBody *, DelayedWorldTransform > delayedWorldTransforms_
Delayed (parented) world transform assignments.
Definition: PhysicsWorld.h:369
void OnMarkedDirty(Node *node) override
Handle node transform being dirtied.
Definition: Zone.cpp:261
unsigned GetGid() const
Definition: TileMapDefs2D.h:142
DecalVertex(const Vector3 &position, const Vector3 &normal)
Construct with position and normal.
Definition: DecalSet.h:44
Variant(const Matrix3 &value)
Construct from a Matrix3.
Definition: Variant.h:662
bool SetNumVertexBuffers(unsigned num)
Definition: Geometry.cpp:61
unsigned lightmapSize_
Size of lightmap chart.
Definition: LightTracer.h:112
~DropDownList() override
Destruct.
~FileSystem() override
Destruct.
Definition: FileSystem.cpp:515
void Resize(unsigned size)
Resize collection.
Definition: LightProbeGroup.h:67
Helper class to track pipeline state changes caused by derived class.
Definition: PipelineStateTracker.h:86
void Release(unsigned index)
Release index. Index should be previously returned from Allocate and not released yet.
Definition: IndexAllocator.h:73
void Dispose()
Dispose.
Definition: AnimatedSprite2D.cpp:491
NetworkBehavior * GetNetworkBehavior(StringHash componentType, unsigned index=0) const
Return behavior by type.
Definition: BehaviorNetworkObject.cpp:132
void OnNodeSet(Node *previousNode, Node *currentNode) override
Handle node being assigned.
Definition: RaycastVehicleWheel.cpp:111
Template for a particle graph node class.
Definition: TemplateNode.h:38
unsigned nodeSize_
Size of a node.
Definition: Allocator.h:43
virtual float GetDuration() const
Get action duration.
Definition: FiniteTimeAction.cpp:74
bool initiated_
Download initiated flag.
Definition: Connection.h:76
Value with derivative, can be extrapolated.
Definition: NetworkValue.h:262
float gain_
Gain.
Definition: SoundSource.h:172
LayoutMode
Layout operation mode.
Definition: UIElement.h:85
bool needBilinearColorSampler_
Whether it's required that color sampling is at least bilinear.
Definition: RenderPass.h:24
float GetShadowResolution() const
Definition: Light.h:374
int agentCrowdId_
Crowd manager reference to this agent.
Definition: CrowdAgent.h:257
~Object() override
Destruct. Clean up self from event sender & receiver structures.
Definition: Object.cpp:45
Material technique. Consists of several passes.
Definition: Technique.h:254
Definition: ClockSynchronizer.h:111
Stretchable sprite component.
Definition: StretchableSprite2D.h:30
ArrayDimensions2D()=default
Construct default.
@ Disconnecting
Disconnection was initiated and no data can be sent through the connection any more.
static const Color BLACK
Opaque black color.
Definition: Color.h:279
SDL_Surface * GetSDLSurface(const IntRect &rect=IntRect::ZERO) const
Return an SDL surface from the image, or null if failed. Only RGB images are supported....
Definition: Image.cpp:2003
ea::string ToString() const override
Convert custom value to string.
Definition: Variant.h:421
LightmapChartBakedIndirect(unsigned lightmapSize)
Construct valid.
Definition: LightTracer.h:96
void Reset()
Definition: ParticleGraphLayerInstance.cpp:171
void SetCommandInterpreter(const ea::string &interpreter)
Set the command interpreter.
Definition: Console.cpp:389
Vector3 GetLocalPoint(float theta, float phi) const
Return point on the sphere relative to sphere position.
Definition: Sphere.cpp:266
virtual bool IsZero() const
Compare to zero.
Definition: Variant.h:257
void ReleaseObjectID()
Release unique object ID. Ignored if unique ID is already released.
Definition: IndexAllocator.h:139
bool SetStringVector(const StringVector &value)
Set a string vector attribute. Creates child elements as necessary.
Definition: XMLElement.cpp:526
int AddAgentToCrowd(bool force=false)
Add agent into crowd.
Definition: CrowdAgent.cpp:268
SharedPtr< UIElement > titleLayout
Title layout.
Definition: FileSelector.h:172
unsigned objectIndex_
Object index, unique within array of charts.
Definition: LightmapCharter.h:80
void EnqueueState(ApplicationState *gameScreen, StringVariantMap &bundle)
Definition: StateManager.cpp:390
void SetSolveWhenPaused(bool value)
Definition: IKSolver.h:51
bool EndLoad() override
Finish resource loading. Always called from the main thread. Return true if successful.
Definition: ParticleEffect.cpp:120
void SetFrom(int value)
Set From.
Definition: Hemisphere.cpp:93
const Matrix4 & GetInverseViewProj() const
Return inverted view-projection matrix.
Definition: Camera.cpp:651
Quaternion GetRotation() const
Get Rotation.
Definition: Sphere.cpp:87
ShaderVariation * GetVariation(ShaderType type, ea::string_view defines)
Return a variation with defines. Separate multiple defines with spaces.
Definition: Shader.cpp:196
IntVector3() noexcept
Construct a zero vector.
Definition: Vector3.h:38
HorizontalAlignment GetTextAlignment() const
Definition: Text3D.cpp:443
void SetPinTypes(ParticleGraphPin *pins, const ParticleGraphPin *src)
Helper methods to assign pin types based on template argument types.
Definition: TemplateNode.h:47
IntVector2 GetLayoutChildPosition(UIElement *child)
Get child element constant position in a layout.
Definition: UIElement.cpp:2232
void RenderBatches(const BatchRenderingContext &ctx, PipelineBatchGroup< PipelineBatchByState > batchGroup)
Definition: BatchRenderer.cpp:963
bool EmitNewParticle(unsigned layer)
Create a new particle. Return true if there was room.
Definition: ParticleGraphEmitter.cpp:211
bool EndLoadFromJSONFile()
End load from JSON file.
Definition: SpriteSheet2D.cpp:400
int GetInt(int min, int max)
Return random int in range [min, max) with uniform distribution. Range should not exceed MaxRange.
Definition: RandomEngine.cpp:95
bool inWrite_
In write flag to prevent recursion.
Definition: Log.h:203
float GetFarClip() const
Definition: Camera.cpp:282
const BoundingBox & GetBoundingBox() const
Definition: Model.h:159
StringHash nameHash_
Attribute name hash.
Definition: ParticleGraphMemory.h:85
SharedPtr< Texture2D > currentBackBufferColor_
Back buffer textures active in current frame.
Definition: VirtualReality.h:312
void SetFilters(const ea::vector< ea::string > &filters, unsigned defaultIndex)
Set filters.
Definition: FileSelector.cpp:218
SharedPtr< ActionState > StartAction(Object *target) override
Create new action state from the action.
Definition: Ease.cpp:350
InterpolationMode interpolationMode_
Interpolation mode.
Definition: Spline.h:124
static const ea::vector< VertexElement > VertexElements
Vertex elements corresponding to full ModelVertex.
Definition: ModelView.h:54
bool WriteUInt64(unsigned long long value)
Write a 64-bit unsigned integer.
Definition: Serializer.cpp:63
void SetListener(SoundListener *listener)
Definition: Audio.cpp:298
void SetGImpactMesh(Model *model, unsigned lodLevel=0, const Vector3 &scale=Vector3::ONE, const Vector3 &position=Vector3::ZERO, const Quaternion &rotation=Quaternion::IDENTITY)
Set as a triangle mesh from Model. If you update a model's geometry and want to reapply the shape,...
Definition: CollisionShape.cpp:694
unsigned GetObstacleAvoidanceType() const
Definition: CrowdAgent.h:204
void SetFocusMode(FocusMode mode)
Definition: UIElement.cpp:952
bool IsTrigger() const
Definition: CollisionShape2D.h:80
int GetMonitorCount() const
Definition: Graphics.cpp:465
const Vector2 & GetPoint(unsigned index) const
Return point at index (use for script).
Definition: TileMapDefs2D.cpp:195
~BorderImage() override
Destruct.
void SerializeInBlock(Archive &archive) override
Serialize from/to archive.
Definition: ParticleGraphLayer.cpp:333
void SetEastNeighbor(Terrain *east)
Definition: Terrain.cpp:311
Archive implementation helper. Provides default Archive implementation for most cases.
Definition: ArchiveBase.h:34
Definition: BoundingBox.h:44
bool GetAutoUpdate() const
Definition: View3D.h:70
static void RegisterObject(ParticleGraphSystem *context)
Register particle node factory.
Definition: Clamp.cpp:38
ea::pair< CubeMapFace, IntVector2 > ProjectDirectionOnFaceTexel(const Vector3 &direction) const
Project direction on texel of cubemap face.
Definition: ImageCube.cpp:281
void DrawViewportQuad(ea::string_view debugComment, StaticPipelineStateId pipelineStateId, ea::span< const ShaderResourceDesc > resources, ea::span< const ShaderParameterDesc > parameters, bool flipVertical=false)
Render fullscreen quad into currently bound viewport-sized render buffer.
Definition: RenderBufferManager.cpp:436
unsigned materialHash_
Definition: BatchStateCache.h:197
SharedPtr< IndexBuffer > indexBuffer_
Index buffer.
Definition: RibbonTrail.h:240
bool GetInternalEdge() const
Definition: PhysicsWorld.h:266
IntVector2 lastPosition_
Last position in screen coordinates.
Definition: Input.h:74
Definition: RenderPipelineDefs.h:713
float GetPositiveSensitivity() const
Get positive sensitivity value.
Definition: AxisAdapter.h:48
Vector2 target_
Target.
Definition: ConstraintMouse2D.h:80
void SetHighlightMode(HighlightMode mode)
Definition: ListView.cpp:709
unsigned SeekRelative(int delta)
Set position relative to current position. Return actual new position.
Definition: Deserializer.cpp:51
Interface that wraps OpenXR swap chain and integrates it with the engine rendering API.
Definition: OpenXR.h:72
bool isActive_
Whether the rotation is performing now.
Definition: FreeFlyController.h:147
~RmlUIComponent() override
Destruct.
Definition: RmlUIComponent.cpp:60
unsigned sortFrameNumber_
Frame number on which was last sorted.
Definition: BillboardSet.h:232
unsigned lightmapSize_
Size of lightmap chart.
Definition: LightTracer.h:79
Element in an XML file.
Definition: XMLElement.h:52
static const IntVector2 UP
(0,1) vector.
Definition: Vector2.h:189
void FromRotationMatrix(const Matrix3 &matrix)
Define from a rotation matrix.
Definition: Quaternion.cpp:107
const BoundingBox & GetWorldBoundingBox() const
Definition: Octree.h:83
void Update(const FrameInfo &frame) override
Update before octree reinsertion. Is called from a worker thread.
Definition: ParticleEmitter.cpp:100
float inAirRPM_
Revolutions per minute value for in-air motor wheels. FIXME: set this one per wheel.
Definition: RaycastVehicle.h:167
void Clear()
Clear to undefined state.
Definition: Rect.h:185
void * handle_
Thread handle.
Definition: Thread.h:81
ParticleGraphNodeInstance * CreateInstanceAt(void *ptr, ParticleGraphLayerInstance *layer) override
Place new instance at the provided address.
Definition: Print.h:68
bool commandLinePriority_
Whether this parameter should be applied as soon as possible when specified in the command line.
Definition: ConfigFile.h:46
float GetSteeringFactor() const
Get steering factor.
bool LoadAsyncXML(AbstractFilePtr file, LoadMode mode=LOAD_SCENE_AND_RESOURCES)
Load from an XML file asynchronously. Return true if started successfully. The LOAD_RESOURCES_ONLY mo...
Definition: Scene.cpp:483
float GetYaw() const
Get yaw angle in degrees.
Definition: MoveAndOrbitComponent.h:50
ActionBuilder & Disable(ea::string_view attributeName=Actions::ISENABLED_ATTRIBUTE)
Continue with Disable action.
Definition: ActionBuilder.cpp:207
void SetFormat(unsigned frequency, bool sixteenBit, bool stereo)
Set uncompressed sound data format.
Definition: Sound.cpp:245
void HandleMouseButtonUp(StringHash eventType, VariantMap &eventData)
Handle mouse button up event.
Definition: UI.cpp:1700
void HandleKeyboardMouseAndJoysticks(float timeStep)
Handle keyboard and mouse input.
Definition: FreeFlyController.cpp:373
VariantType GetType() const
Return type of animation track. Defined by the type of the first keyframe.
Definition: VariantCurve.cpp:219
float ReadFloat(const XMLElement &element, const ea::string &name) const
Read float.
Definition: ParticleEffect2D.cpp:527
ea::vector< Drawable * > threadedDrawableUpdates_
Drawable objects that were inserted during threaded update phase.
Definition: Octree.h:294
int packedMessageLimit_
Outgoing packet size limit.
Definition: Connection.h:268
bool GetIgnoreSceneTimeScale() const
Return true if sound source ignores scene time scale.
Definition: SoundSource.h:138
ea::vector< SharedPtr< ShaderVariation > > & GetVertexShaders()
Return vertex shaders.
Definition: Technique.h:185
ea::vector< Particle2D > particles_
Particles.
Definition: ParticleEmitter2D.h:168
virtual FileIdentifier GetIdentifierFromAbsoluteName(const ea::string &absoluteFileName) const
Definition: MountPoint.cpp:51
Vector2 min_
Minimum vector.
Definition: Rect.h:273
bool SetPinValueType(unsigned pinIndex, VariantType type)
Definition: ParticleGraphNode.cpp:54
float GetLowerTranslation() const
Definition: ConstraintPrismatic2D.h:83
bool BeginLoad(Deserializer &source) override
Load resource from stream. May be called from a worker thread. Return true if successful.
Definition: ParticleGraphEffect.cpp:75
Operation on attribute.
Definition: Uniform.h:36
~FileWatcher() override
Destruct.
Definition: FileWatcher.cpp:69
void SetLightmapScaleOffset(const Vector4 &scaleOffset)
Set lightmap scale and offset.
Definition: TerrainPatch.h:119
static void RegisterObject(Context *context)
Definition: SoundListener.cpp:38
void SendBeginContactEvents()
Send begin contact events.
Definition: PhysicsWorld2D.cpp:732
MountedAliasRoot * GetOrCreateAliasRoot()
Return or create internal alias:// mount point.
Definition: VirtualFileSystem.cpp:37
const Matrix3x4 & GetView() const
Return view transform matrix.
Definition: OcclusionBuffer.h:133
void ProcessRayQuery(const RayOctreeQuery &query, ea::vector< RayQueryResult > &results) override
Process octree raycast. May be called from a worker thread.
Definition: DecalSet.cpp:210
Definition: FullScreenShaderPass.h:48
virtual SharedPtr< ActionState > StartAction(Object *target)
Create new action state from the action.
Definition: BaseAction.cpp:68
void ClipVertices(const Vector4 &plane, Vector4 *vertices, bool *triangles, unsigned &numTriangles)
Clip vertices against a plane.
Definition: OcclusionBuffer.cpp:678
float GetRotatePerSecond() const
Return rotate per second.
Definition: ParticleEffect2D.h:222
void OnObjectAnimationRemoved(ObjectAnimation *objectAnimation)
Handle object animation removed.
Definition: Animatable.cpp:493
int depth_
Depth.
Definition: Image.h:219
constexpr size_t MaxVariableLengthBytes
Return max number of bytes taken by a variable-length encoded integer of the given type.
Definition: MathDefs.h:419
virtual void OnGetAttribute(const AttributeInfo &attr, Variant &dest) const
Handle attribute read access. Default implementation reads the variable at offset,...
Definition: Serializable.cpp:84
static constexpr unsigned Calculate(const ea::string_view &view)
Calculate hash value for string_view.
Definition: StringHash.h:129
Vector3 position_
Definition: ModelView.h:231
float GetRowSpacing() const
Definition: Text3D.cpp:448
float shadowDistance_
Shadow distance.
Definition: Terrain.h:391
float distance_
Distance from camera.
Definition: Drawable.h:167
void CreateComponentIndex()
Create component index for template type. Scene must be empty.
Definition: Scene.h:118
Finite time action.
Definition: FiniteTimeAction.h:33
void GetRigidBodies(ea::vector< RigidBody2D * > &results, const Rect &aabb, unsigned collisionMask=M_MAX_UNSIGNED)
Return rigid bodies by a box query.
Definition: PhysicsWorld2D.cpp:677
Variant & GetUniform(unsigned index)
Get uniform variant by index.
Definition: ParticleGraphLayerInstance.cpp:164
BoundingBox boundingBox_
Local-space bounding box.
Definition: DecalSet.h:96
void Validate()
Validate parameters.
Definition: Light.cpp:74
bool asyncLoading_
Asynchronous loading flag.
Definition: Scene.h:355
ea::hash_set< Component * > SceneComponentIndex
Index of components in the Scene.
Definition: Scene.h:90
virtual void Stop()
Called when the component is detached from a scene node, usually on destruction. Note that you will n...
Definition: LogicComponent.h:69
void OnNodeSet(Node *previousNode, Node *currentNode) override
Handle node being assigned.
Definition: Drawable.cpp:355
float GetFrequency() const
Definition: SoundSource.h:111
static const Vector4 ONE
(1,1,1) vector.
Definition: Vector4.h:260
InterfaceType * Get() const noexcept
Return raw pointer. If expired, return null.
Definition: Ptr.h:482
float emitRadius_
Emit radius.
Definition: ParticleEmitter2D.h:66
float GetRollInfluence() const
Get roll influence.
float GetLodBias() const
Definition: Terrain.h:210
RayQueryResult()
Construct with defaults.
Definition: OctreeQuery.h:188
bool IsDynamic() const
Definition: IndexBuffer.h:59
ParticleGraphLayerInstance()
Construct.
Definition: ParticleGraphLayerInstance.cpp:35
BoundingBox GetWorldBoundingBox() const
Definition: NavArea.cpp:64
LightmapChartRegion region_
Allocated region.
Definition: LightmapCharter.h:82
bool ReadBool()
Read a bool.
Definition: Deserializer.cpp:122
unsigned ToUInt() const
Return color packed to a 32-bit integer, with R component in the lowest 8 bits. Components are clampe...
Definition: Color.cpp:35
void DrawDebugGeometries(bool depthTest) override
Draw debug geometries, if applicable.
Definition: StereoRenderPipeline.cpp:643
void SetShadowFadeDistance(float distance)
Definition: Light.cpp:374
Vector3 min_
Minimum vector.
Definition: BoundingBox.h:375
Root scene node, represents the whole scene.
Definition: Scene.h:93
Ray GetScreenRayFromMouse() const
Return ray corresponding to current mouse position, with origin on the near clip plane.
Definition: Camera.cpp:423
Adds a single window to game screen.
Definition: RmlUIComponent.h:30
Custom variant value type traits. Specialize the template to implement custom type behavior.
Definition: Variant.h:273
Definition: StereoRenderPipeline.h:87
ea::unique_ptr< TriangleMeshInterface > meshInterface_
Bullet triangle mesh interface.
Definition: CollisionShape.h:103
bool SaveJSON(JSONValue &dest) const
Save as XML data. Return true if successful.
Definition: ValueAnimation.cpp:189
RenderMesh(Context *context)
Construct RenderMesh.
Definition: RenderMesh.cpp:47
Context * context_
Context.
Definition: LightmapGeometryBuffer.h:77
static const IntVector2 DOWN
(0,-1) vector.
Definition: Vector2.h:191
void SetTextAttr(const ea::string &value)
Set text attribute.
Definition: Text.cpp:453
const BoundingBox & GetCullingBox() const
Return bounding box used for fitting drawable objects.
Definition: Octree.h:86
StringVector enumNames_
Enum names.
Definition: Attribute.h:164
~PackageFile() override
Destruct.
virtual void Update(float dt, Variant &value)
Called every frame with it's delta time and attribute value.
Definition: AttributeActionState.cpp:45
void EnableLayoutUpdate()
Enable automatic layout update.
Definition: UIElement.cpp:1240
void SetEndScale(float endScale)
Definition: RibbonTrail.cpp:327
void SetModelAttr(const ResourceRef &value)
Set model attribute.
Definition: CollisionShape.cpp:866
LightImportance lightImportance_
Light importance.
Definition: Light.h:469
void Reset(unsigned offset, unsigned capacity)
Reset layout.
Definition: ParticleGraphMemory.cpp:45
XrTime predictedTime_
Predicted time for display of the next frame.
Definition: OpenXR.h:313
float vertexDistance_
Distance between points. Basically is tail length.
Definition: RibbonTrail.h:250
void SerializeInBlock(Archive &archive) override
Serialize content from/to archive. May throw ArchiveException.
Definition: BaseAction.cpp:65
void OnKey(Key key, MouseButtonFlags buttons, QualifierFlags qualifiers) override
React to a key press.
Definition: CheckBox.cpp:80
unsigned GetMaxPingIntervalMs() const
Return max allowed ping by server.
Definition: Network.h:98
const Matrix4 & GetViewProj() const
Return view-projection matrix.
Definition: Camera.cpp:644
SharedPtr< Texture2D > depthTexture_
Depth stencil texture.
Definition: View3D.h:97
void SendDragOrHoverEvent(StringHash eventType, UIElement *element, const IntVector2 &screenPos, const IntVector2 &deltaPos, UI::DragData *dragData)
Send a UI element drag or hover begin event.
Definition: UI.cpp:1584
Vector3 CrossProduct(const Vector3 &rhs) const
Calculate cross product.
Definition: Vector3.h:390
const ea::string & GetString(const StringHash &hash) const
Return String for given StringHash. Return value is unsafe to use if RegisterString is called from ot...
Definition: StringHashRegister.cpp:102
void SetViewMask(unsigned mask)
Definition: Terrain.cpp:398
Node * SpawnCopy(Node *parent) const
Spawn similar node at the parent.
Definition: PackedSceneData.cpp:78
Intersection IsInside(const Vector3 &point) const
Test if a point is inside or outside.
Definition: Frustum.h:83
void FromUInt(unsigned color)
Set RGBA values from packed 32-bit integer, with R component in the lowest 8 bits (format 0xAABBGGRR)...
Definition: Color.cpp:78
Configuration parameter description.
Definition: ConfigFile.h:34
BodyType2D
Rigid body type.
Definition: RigidBody2D.h:39
float GetTimeScale() const
Get time scale.
Definition: ShakeComponent.h:53
void OnSceneSet(Scene *scene) override
Handle scene being assigned. This may happen several times during the component's lifetime....
Definition: KinematicCharacterController.cpp:132
const Vector3 & GetGravity() const
Get gravity.
Definition: KinematicCharacterController.h:80
InterfaceType & operator*() const noexcept
Dereference the object.
Definition: Ptr.h:234
void SetDrawCenterOfMass(bool drawCenterOfMass)
Definition: PhysicsWorld2D.cpp:389
bool hasSimulated_
Internal flag whether has simulated at least once.
Definition: RigidBody.h:353
IntVector2 selection_
Current selection in console window. This range denote start and end of selected characters and may s...
Definition: Console.h:143
static void RegisterObject(Context *context)
Register object factory.
Definition: ParticleGraphLayer.cpp:198
void ReloadTextures()
Reload textures.
Definition: Renderer.cpp:659
void Page(const IntVector2 &position, bool pressed)
Send slider page event.
Definition: Slider.cpp:275
void InitializeAnimationData()
Initialize skeletal animation data.
Definition: SoftwareModelAnimator.cpp:320
int GetWidth() const
Return buffer width.
Definition: OcclusionBuffer.h:139
Texture2D * GetDefaultLightRamp() const
Definition: Renderer.h:287
TmxFile2D * GetTmxFile() const
Definition: TileMap2D.cpp:153
ea::fixed_vector< GraphExitPin, 1 > exitPins_
Exit pins. Define next nodes in execution flow.
Definition: GraphNode.h:194
SharedPtr< Image > loadImage_
Image file acquired during BeginLoad.
Definition: Texture3D.h:64
bool IsAllowSleep() const
Definition: RigidBody2D.h:167
void LoadParameters()
Load optional parameters from an XML file.
Definition: Sound.cpp:341
void SetRollInfluence(float value)
Set roll influence.
bool IsLoaded() const
Return whether the plugin is loaded.
Definition: PluginApplication.h:76
unsigned GetNumExits() const
Get number of exit pins.
Definition: GraphNode.h:164
NetworkTime GetReplicaTime() const
Definition: ClientReplica.h:77
void SetFriction(float friction)
Definition: RigidBody.cpp:355
const Color & GetHoverColor() const
Definition: UISelectable.h:60
const ea::unordered_map< StringHash, ResourceGroup > & GetAllResources() const
Return all loaded resources.
Definition: ResourceCache.h:150
void OnSceneSet(Scene *scene) override
Handle scene being assigned.
Definition: RigidBody.cpp:869
SphericalHarmonics9()=default
Construct default.
void SendMessageInternal(NetworkMessageId messageId, const unsigned char *data, unsigned numBytes, PacketTypeFlags packetType=PacketType::ReliableOrdered) override
Definition: Connection.cpp:105
void FromUIntMask(unsigned color, const ChannelMask &mask)
Set RGBA values from packed 32-bit integer with arbitrary channel mask.
Definition: Color.cpp:86
SharedPtr< Sound > streamBuffer_
Decode buffer.
Definition: SoundSource.h:245
void SetCoordinates(const IntVector2 &coordinates)
Set patch coordinates.
Definition: TerrainPatch.cpp:260
const Vector2 & GetCenter() const
Definition: CollisionBox2D.h:64
void SetSplitImpulse(bool enable)
Definition: PhysicsWorld.cpp:431
Vector3 initialScale_
Reset scale.
Definition: Skeleton.h:79
bool LoadCharGlyph(unsigned charCode, Image *image=nullptr)
Load char glyph.
Definition: FontFaceFreeType.cpp:397
ea::unique_ptr< btCustomDiscreteDynamicsWorld > world_
Bullet physics world.
Definition: PhysicsWorld.h:355
Reference to attribute or sub-attribute;.
Definition: AnimationState.h:99
void UpdateBoneBoundingBox()
Recalculate the bone bounding box. Normally called internally, but can also be manually called if up-...
Definition: AnimatedModel.cpp:802
void WriteSnapshot(NetworkFrame frame, Serializer &dest) override
Write full snapshot.
Definition: StaticNetworkObject.cpp:71
float GetParticleLifespanVariance() const
Return particle lifespan variance.
Definition: ParticleEffect2D.h:153
float GetLength() const
Definition: SplinePath.h:90
Spline spline_
The Control Points of the Spline.
Definition: SplinePath.h:136
ea::vector< TechniqueEntry > techniques_
Techniques.
Definition: Material.h:348
Abstract base class for invoking attribute accessors.
Definition: Attribute.h:80
SharedPtr< Text > text_
Text element.
Definition: LineEdit.h:149
bool ConnectTo(GraphPinRef< GraphOutPin > pin)
Connect to other pin.
Definition: GraphPin.cpp:49
unsigned GetConnectedPinIndex() const
Get connected pin index.
Definition: ParticleGraphPin.h:119
static double GetSmallestPositiveRoot(const double roots[], int count)
Pick smallest positive root.
Definition: TetrahedralMesh.cpp:362
void InitializeView(RenderPipelineView *view) override
Initialize render pass before using it in view.
Definition: AmbientOcclusionPass.cpp:67
void SetRestitution(float restitution)
Definition: CollisionShape2D.cpp:166
void UpdateParameters(unsigned scope=M_MAX_UNSIGNED)
Update Detour crowd agent parameter.
Definition: CrowdAgent.cpp:188
unsigned GetLocalTime() const override
Return current local time.
Definition: Connection.cpp:705
unsigned GetComponents() const
Definition: Image.h:161
SharedPtr< DropDownList > filterList_
Filter dropdown.
Definition: FileSelector.h:182
void SetVisible(bool enable)
Show or hide.
Definition: Console.cpp:68
Reflection probe component that specifies reflection applied within a region.
Definition: ReflectionProbe.h:175
EventHandler(Object *receiver, HandlerFunction handler)
Construct with specified receiver and handler.
Definition: Object.h:249
ea::string titleText_
Title text element.
Definition: SystemMessageBox.h:62
virtual bool IsHumanReadable() const =0
Vector4 ToVector4(float w=0.0f) const
Return Vector4 vector.
Definition: Vector4.h:291
float time_
Time.
Definition: ValueAnimation.h:53
bool FilterImplicitAttributes(XMLElement &dest) const override
Filter implicit attributes in serialization process.
Definition: Slider.cpp:207
LightProbeCollectionBakedData lightProbesBakedData_
Baked light probes data.
Definition: GlobalIllumination.h:89
IntVector2 ScreenToElement(const IntVector2 &screenPosition) override
Convert screen coordinates to element coordinates.
Definition: Sprite.cpp:95
A class responsible for serializing configuration parameters.
Definition: ConfigFile.h:54
float GetScaleCorrection() const
Scale correction factor, premultiplied into all transforms.
Definition: VirtualReality.h:212
void InitializeView(RenderPipelineView *view) override
Initialize render pass before using it in view.
Definition: FullScreenShaderPass.cpp:51
UIElement * GetUIRoot() const
Definition: StateManager.h:81
SharedPtr< VertexBuffer > vertexBuffer_
Vertex buffer.
Definition: RibbonTrail.h:238
const IntRect & GetClipBorder() const
Definition: UIElement.h:548
GImpactMeshData(Model *model, unsigned lodLevel)
Construct from a model.
Definition: CollisionShape.cpp:219
void DrawTriangle(Vector4 *vertices, unsigned threadIndex)
Draw a triangle.
Definition: OcclusionBuffer.cpp:582
float GetAngleVariance() const
Return angle variance.
Definition: ParticleEffect2D.h:159
void GetFloatMinMax(const XMLElement &element, float &minValue, float &maxValue)
Read a float range from an XML element.
Definition: ParticleEffect.cpp:821
ea::vector< WeakPtr< RmlUI > > siblingSubsystems_
Other instances of RmlUI.
Definition: RmlUI.h:169
bool IsEnabled() const
Get enabled flag.
Definition: DirectionalPadAdapter.h:93
bool IsSleeping() const
Definition: Microphone.h:86
ea::vector< unsigned > lightmaps_
Lightmaps owned by this chunk.
Definition: BakedSceneChunk.h:50
bool Intersect(const NumericRange &rhs) const
Return whether the range intersects another.
Definition: NumericRange.h:49
Color SampleDiffuse(const Vector2 &uv) const
Return diffuse value at UV.
Definition: RaytracerScene.h:80
unsigned GetOrAddAttribute(const ea::string &name, VariantType type)
Get or add attribute.
Definition: ParticleGraphMemory.cpp:52
virtual const IntVector2 & GetScreenPosition() const
Definition: UIElement.cpp:423
void SetSphere(float diameter, const Vector3 &position=Vector3::ZERO, const Quaternion &rotation=Quaternion::IDENTITY)
Set as a sphere.
Definition: CollisionShape.cpp:591
void OnNodeSet(Node *previousNode, Node *currentNode) override
Handle node being assigned.
Definition: RigidBody.cpp:863
VariantAttributeAccessorImpl(TGetFunction getFunction, TSetFunction setFunction)
Construct.
Definition: Serializable.h:151
ea::string ToString() const
Return as string.
Definition: Vector3.cpp:52
SharedPtr< Text > cancelButtonText_
Cancel button text.
Definition: FileSelector.h:190
void Reset()
Reset.
Definition: PListFile.cpp:276
bool forceUpdate_
Force update flag (ignore animation LOD momentarily).
Definition: BillboardSet.h:224
bool GetMaximized() const
Definition: Graphics.cpp:475
Texture(Context *context)
Construct.
Definition: Texture.cpp:98
virtual ~Thread()
Destruct. If running, stop and wait for thread to finish.
Definition: Thread.cpp:132
SharedPtr< Texture2D > texture_
Texture that UIElement will be rendered into.
Definition: RmlCanvasComponent.h:75
WorkQueue * workQueue_
Definition: BatchCompositor.h:176
float sizeDelta_
Size delta.
Definition: ParticleEmitter2D.h:44
void CacheState(ApplicationState *state)
Cache state without using it.
Definition: StateManager.cpp:638
SharedPtr< BorderImage > knob_
Slider knob.
Definition: Slider.h:112
StringVariantMap variables_
Current state of variables.
Definition: ConfigFile.h:120
ConfigFlavorVector variablesPerFlavor_
Configuration variables per flavor, not used directly.
Definition: ConfigFile.h:115
constexpr FlagSet operator|(const Enum value) const
Bitwise OR against Enum value.
Definition: FlagSet.h:130
ea::vector< unsigned > requiredDirectLightmaps_
Direct lightmaps required to bake this chunk.
Definition: BakedSceneChunk.h:52
void SetValue(Serializable *serializable)
Set value of the resource.
Definition: SerializableResource.cpp:63
unsigned GetComponents() const
Definition: Texture.cpp:200
virtual unsigned GetChecksum()
Definition: Deserializer.cpp:61
bool enableMassUpdate_
Mass update enable flag.
Definition: RigidBody.h:351
~MoveAndOrbitController() override
Destruct.
Definition: MoveAndOrbitController.cpp:44
unsigned GetRevision() const
Definition: SceneSelection.h:63
float GetRange() const
Definition: Light.h:338
ea::unordered_map< StringHash, Variant > metadata_
Reflection metadata.
Definition: ObjectReflection.h:117
int TranslateString(Rml::String &translated, const Rml::String &input) override
Translate the input string into the translated string.
Definition: RmlSystem.cpp:53
2D gear constraint component.
Definition: ConstraintGear2D.h:31
SharedPtr< Texture > shapeTexture_
Spotlight attenuation texture.
Definition: Light.h:491
ActionInstantState(ActionInstant *action, Object *target)
Construct.
Definition: ActionInstantState.cpp:34
PhysicsWorld * GetPhysicsWorld() const
Return physics world.
Definition: CollisionShape.h:232
bool SaveXML(XMLElement &dest) const
Save as XML data. Return true if successful.
Definition: ObjectAnimation.cpp:114
VariantType type_
Type of attribute.
Definition: ParticleGraphMemory.h:87
Vector3 constantForce_
Particle constant force.
Definition: ParticleEffect.h:466
Color selectionColor_
Selection background color.
Definition: UISelectable.h:64
unsigned ToHash() const
Definition: AnimationState.h:111
void SetCustomMaterialAttr(const ResourceRef &value)
Set custom material attribute.
Definition: StaticSprite2D.cpp:247
~UIElement() override
Destruct.
Definition: UIElement.cpp:105
ea::optional< InternalType > GetRaw(NetworkFrame frame) const
Return raw value at given frame.
Definition: NetworkValue.h:469
void ReleaseConstraint()
Release the constraint.
Definition: Constraint.cpp:331
float emitParticleTime_
Emit particle time.
Definition: ParticleEmitter2D.h:164
float SignedDistanceToPoint(const Vector3 &point) const
Return signed distance to point. Negative if point is inside bounding box.
Definition: BoundingBox.cpp:205
static void RegisterObject(Context *context)
Definition: TerrainPatch.cpp:67
ea::vector< unsigned char > blendIndices_
Blend indices.
Definition: SoftwareModelAnimator.h:45
bool CheckActiveParticles() const
Return whether has active particles.
Definition: ParticleGraphEmitter.cpp:243
bool watchSubDirs_
Watch subdirectories flag.
Definition: FileWatcher.h:110
SharedPtr< Actions::FiniteTimeAction > Build()
Complete action building and produce result.
Definition: ActionBuilder.h:186
unsigned layoutNestingLevel_
Layout update nesting level to prevent endless loop.
Definition: UIElement.h:839
void Link(SharedPtr< BufferedSoundStream >)
Links the given stream object to automatically fill with microphone data.
Definition: Microphone.cpp:190
BatchStateCache deferredCache_
Definition: BatchCompositor.h:199
Break(Context *context)
Construct Break.
Definition: Break.cpp:75
unsigned Size() const
Return total size.
Definition: LightProbeGroup.h:64
bool Seek(unsigned sample_number) override
Seek to sample number. Return true on success.
Definition: OggVorbisSoundStream.cpp:62
void MixStereoToStereoIP(Sound *sound, int dest[], unsigned samples, int mixRate, float effectiveFrequency)
Mix stereo sample to stereo buffer interpolated.
Definition: SoundSource.cpp:1214
static const IntVector3 LEFT
(-1,0,0) vector.
Definition: Vector3.h:185
bool hasSimulated_
Internal flag whether has simulated at least once.
Definition: RaycastVehicle.h:176
SharedPtr< Model > Clone(const ea::string &cloneName=EMPTY_STRING) const
Clone the model. The geometry data is deep-copied and can be modified in the clone without affecting ...
Definition: Model.cpp:624
volatile signed char * GetPlayPosition() const
Return playback position.
Definition: SoundSource.h:99
float updateAcc_
Update time accumulator.
Definition: Network.h:179
void SetDetailSampleMaxError(float error)
Definition: NavigationMesh.cpp:336
void SetHeightRange(const Vector2 &range)
Set min and max height of the navigation mesh, i.e. min and max Y value in world space.
Definition: NavigationMesh.h:111
const Vector2 & GetGravity() const
Return gravity.
Definition: ParticleEffect2D.h:162
void SetQueryFilterType(unsigned queryFilterType)
Definition: CrowdAgent.cpp:415
void BuildDepthHierarchy()
Build reduced size mip levels.
Definition: OcclusionBuffer.cpp:227
bool readableColor_
Whether the both of output color buffers should be readable.
Definition: RenderPipelineDefs.h:215
InputVector verticalAxis_
Collection of active vertical axis inputs.
Definition: DirectionAggregator.h:129
ea::unordered_map< unsigned, float > kerningMapping_
Kerning mapping.
Definition: FontFace.h:111
~Image() override
Destruct.
bool Save(Serializer &dest) const override
Save resource. Return true if successful.
Definition: AssetPipeline.cpp:102
bool alphaToCoverage_
Alpha-to-coverage mode.
Definition: Technique.h:224
void SetLayer(int layer)
Definition: Drawable2D.cpp:77
Vector2 GetLinearVelocity() const
Definition: RigidBody2D.cpp:507
const ea::string & GetAnimation() const
Definition: AnimatedSprite2D.h:96
float GetDistanceToWall(const Vector3 &point, float radius, int queryFilterType, Vector3 *hitPos=nullptr, Vector3 *hitNormal=nullptr)
Return distance to wall from a point using the crowd initialized query extent (based on maxAgentRadiu...
Definition: CrowdManager.cpp:439
MoveAndOrbitComponent(Context *context)
Construct.
Definition: MoveAndOrbitComponent.cpp:29
Container & GetContainer()
Return underlying container.
Definition: Array2D.h:184
static Sint64 Seek(SDL_RWops *context, Sint64 offset, int whence)
Seek within the object's data.
Definition: RWOpsWrapper.h:61
ea::string GetSystemName() const
Returns the system name, ie. Windows Mixed Reality.
Definition: VirtualReality.h:274
unsigned totalResources_
Total resources.
Definition: Scene.h:82
int GetPriority() const
Definition: Zone.h:150
ea::string absoluteFileName_
Absolute file name.
Definition: File.h:132
bool EndLoad() override
Finish resource loading. Always called from the main thread. Return true if successful.
Definition: TextureCube.cpp:102
IntVector2 ClampIndex(const IntVector2 &index) const
Return index clamped to array boundaries.
Definition: Array2D.h:61
void SetAxisLowerThreshold(float threshold)
Set axis lower threshold. Axis value lower than threshold is interpreted as key press.
Definition: DirectionalPadAdapter.cpp:140
embree3::RTCScene GetEmbreeScene() const
Return Embree scene.
Definition: RaytracerScene.h:162
unsigned numQueryFilterTypes_
Number of query filter types configured in the crowd. Limit to DT_CROWD_MAX_QUERY_FILTER_TYPE.
Definition: CrowdManager.h:225
bool GetBakeLightmapEffective() const
Return whether the lightmap is baked for this object. Return false for objects with zero scale in lig...
Definition: Terrain.h:270
unsigned shadersLoadedFrameNumber_
Last shaders loaded frame number.
Definition: Technique.h:218
CompareMode depthTestMode_
Depth compare mode.
Definition: Technique.h:216
CullMode GetShadowCullMode() const
Definition: Material.h:280
const ResourceRef & GetResourceRef() const
Return a resource reference or empty on type mismatch.
Definition: Variant.h:1456
void SortChildren()
Sort child elements if sorting enabled and order dirty. Called by UI.
Definition: UIElement.cpp:1835
void SetScale(float scale)
Definition: UI.cpp:679
ModuleType GetModuleType() const
Return a type of current loaded module.
Definition: DynamicModule.h:62
Frequently-changing settings of render buffer manager.
Definition: RenderPipelineDefs.h:212
bool IsOccluder() const
Definition: Terrain.h:237
static unsigned litAlphaPassIndex
Index for lit alpha pass. Initialized once GetPassIndex() has been called for the first time.
Definition: Technique.h:322
int Width() const
Definition: Rect.h:421
unsigned indexSize_
Index size.
Definition: Model.h:86
~ResourceCache() override
Destruct. Free all resources.
Definition: ResourceCache.cpp:111
unsigned GetNumTechniques() const
Definition: Material.h:232
int max_
Maximum value.
Definition: OcclusionBuffer.h:51
unsigned EvaluateInstanceSize() const override
Evaluate size required to place new node instance.
Definition: Sphere.cpp:60
void SetBackupTexture(Texture *texture)
Definition: Texture.cpp:149
float sortDistance_
Distance for sorting.
Definition: RibbonTrail.h:61
float GetEngineForce() const
Get maximum linear momentum supplied by engine to RigidBody.
Definition: RaycastVehicle.h:71
float GetFov() const
Definition: Camera.h:154
NavBuildData()
Constructor.
Definition: NavBuildData.cpp:35
bool inheritMultiSampleLevel_
Whether to inherit multisample level from output render texture.
Definition: RenderPipelineDefs.h:167
float GetZoom() const
Definition: Camera.h:166
ea::vector< float > distances_
Distances.
Definition: Renderer2D.h:62
void AddDelayedWorldTransform(const DelayedWorldTransform &transform)
Add a delayed world transform assignment. Called by RigidBody.
Definition: PhysicsWorld.cpp:819
void InitializeShadowSplits(DrawableProcessor *drawableProcessor)
Definition: LightProcessor.cpp:306
void SetSenderAndEventType(Object *sender, StringHash eventType)
Set sender and event type.
Definition: Object.h:266
TextEffect GetTextEffect() const
Definition: Text3D.cpp:458
float cellHeight_
Cell height.
Definition: NavigationMesh.h:364
virtual void RelocateTo(void *dest)
Move object over destination.
Definition: Variant.h:250
XMLFile * GetDefaultStyle(bool recursiveUp=true) const
Return default style.
Definition: UIElement.cpp:1620
Package file send transfer.
Definition: Connection.h:80
Definition: TileMapDefs2D.h:50
void SetZoneMask(unsigned mask)
Definition: Terrain.cpp:428
~ParticleEffect2D() override
Destruct.
Free type font face description.
Definition: FontFaceFreeType.h:34
float angle_
Angle.
Definition: CollisionBox2D.h:83
float GetJumpSpeed() const
Return jump speed.
Definition: KinematicCharacterController.h:120
virtual void OnRenderBegin(const CommonFrameInfo &frameInfo)=0
Vector3 GetPoint(float factor) const
Get a point on the SplinePath from 0.f to 1.f where 0 is the start and 1 is the end.
Definition: SplinePath.cpp:216
float maxAccel_
Agent's max acceleration.
Definition: CrowdAgent.h:267
int top_
Top coordinate.
Definition: Rect.h:488
void AddCircle(const Vector3 ¢er, const Vector3 &normal, float radius, const Color &color, int steps=64, bool depthTest=true)
Add a circle.
Definition: DebugRenderer.cpp:494
Window * GetWindow() const
Definition: FileSelector.h:92
void NodeTagAdded(Node *node, const ea::string &tag)
Cache node by tag if tag not zero, no checking if already added. Used internaly in Node::AddTag.
Definition: Scene.cpp:961
void CollectParameters(StringVariantMap ¶ms) const override
Definition: OutlineRenderPass.cpp:38
bool GetAlphaToCoverage() const
Definition: Technique.h:155
void SetWeight(float weight)
Definition: AnimationState.cpp:190
bool LoadXML(const XMLElement &source)
Load from XML data. Return true if successful.
Definition: ObjectAnimation.cpp:80
Definition: StaticNetworkObject.h:36
void OnRemoveFromOctree() override
Handle removal from octree.
Definition: Zone.cpp:356
bool IsDelayedStartCalled() const
Return whether the DelayedStart() function has been called.
Definition: LogicComponent.h:93
Vector2 scaledOffset_
Point size scaled position adjustment for glyphs.
Definition: Font.h:114
Vector3 CalculateDirection() const
Calculate current direction.
Definition: InverseKinematics.cpp:137
float scaleInLightmap_
Texel density scale in lightmap.
Definition: Terrain.h:329
Frustum query for directional light shadow casters.
Definition: LightProcessorQuery.h:92
bool Equals(const Vector2 &rhs, float eps=M_EPSILON) const
Test for equality with another vector with epsilon.
Definition: Vector2.h:351
StringVariantMap vars_
User variables.
Definition: UIElement.h:797
HorizontalAlignment
UI element horizontal alignment.
Definition: UIElement.h:37
SharedPtr< LineEdit > pathEdit_
Path editor.
Definition: FileSelector.h:178
bool IsEmitting() const
Definition: ParticleGraphEmitter.h:67
void SetLinearDamping(float damping)
Definition: RigidBody.cpp:313
void OnWindowMoved()
Window was moved through user interaction. Called by Input subsystem.
Definition: Graphics.cpp:646
void Clear()
Clear the spline.
Definition: Spline.h:111
unsigned lodLevel_
Model LOD level.
Definition: CollisionShape.h:332
float GetFloat() const
Return float or zero on type mismatch. Ints and doubles are converted.
Definition: Variant.h:1385
StringHash nameHash_
Name hash.
Definition: Resource.h:147
~ParticleEmitter() override
Destruct.
UI element that can be toggled between unchecked and checked state.
Definition: CheckBox.h:31
ea::unordered_set< WeakPtr< Drawable > > drawables_
Selected drawables.
Definition: OutlineGroup.h:94
void SerializeInBlock(Archive &archive) override
Serialize content from/to archive. May throw ArchiveException.
Definition: Serializable.cpp:399
void SetAlpha(float alpha)
Definition: StaticSprite2D.cpp:160
void SetVertices(const ea::vector< Vector2 > &vertices)
Set vertices.
Definition: CollisionPolygon2D.cpp:71
Color color_
Color.
Definition: BillboardSet.h:48
CollisionPolygon2D(Context *context)
Construct.
Definition: CollisionPolygon2D.cpp:36
ea::string ToString() const
Return as string.
Definition: Matrix3.cpp:89
Scene pass with batches sorted by render order and pipeline state.
Definition: ScenePass.h:59
void SendPackages()
Send package files to client. Called by network.
Definition: Connection.cpp:233
ColorFrame(const Color &color, float time)
Construct from a color and time.
Definition: ParticleEffect.h:61
virtual ShadowMapRegion AllocateTransientShadowMap(const IntVector2 &size)=0
Allocate shadow map for one frame.
float pressure_
Finger pressure.
Definition: Input.h:78
static const Rect POSITIVE
Rect in the range (0, 0) - (1, 1).
Definition: Rect.h:280
void RegisterSubsystem(Object *object, StringHash type)
Register a subsystem by explicitly using a type. Type must belong to inheritance hierarchy.
Definition: Context.cpp:182
UIComponent(Context *context)
Construct.
Definition: UIComponent.cpp:161
unsigned GetLightMaskInZone() const
Return combined light masks of Drawable and its currently cached Zone.
Definition: Drawable.cpp:293
Vector3 ProjectOntoPlane(const Vector3 &origin, const Vector3 &normal) const
Project position vector onto plane with given origin and normal.
Definition: Vector3.h:361
SharedPtr< RenderPath > Clone() const
Make deep copy of RenderPath.
Definition: RenderPath.cpp:91
ea::vector< RemoteEvent > remoteEvents_
Queued remote events.
Definition: Connection.h:270
float GetDuration() const
Get action duration.
Definition: FiniteTimeActionState.h:52
void SetTextureAttr(const ResourceRef &value)
Set texture attribute.
Definition: Sprite.cpp:289
bool GetDrawJoint() const
Definition: PhysicsWorld2D.h:186
bool HasFocus() const
Definition: UIElement.cpp:1582
void SetSprite(Sprite2D *sprite)
Definition: StaticSprite2D.cpp:82
int GetWidth() const
Definition: Image.h:146
ActionBuilder & JumpBy(const Vector3 &offset, ea::string_view attributeName=Actions::POSITION_ATTRIBUTE)
Continue with JumpBy action.
Definition: ActionBuilder.cpp:134
ea::function< void(NetworkConnection *)> onDisconnected_
Called once, when a fully established connection disconnects gracefully or is aborted abruptly....
Definition: NetworkServer.h:44
void UpdateInstance(AnimationParameters ¶ms, float timeStep, bool fireTriggers)
Definition: AnimationController.cpp:1113
unsigned index_
Lightmap chart index.
Definition: LightmapGeometryBuffer.h:108
Definition: HttpRequest.h:51
~AnimationState() override
Destruct.
ea::string typeName_
Type name.
Definition: TypeInfo.h:60
MountPoint(Context *context)
Construct.
Definition: MountPoint.cpp:30
float GetAsyncProgress() const
Definition: Scene.cpp:812
Light calculation properties that can be used to adjust result.
Definition: LightBakingSettings.h:160
IntVector2 modalFrameSize_
Modal frame size, used when modal flag is set.
Definition: Window.h:188
void SetScaledGlyphOffset(const Vector2 &offset)
Definition: Font.cpp:134
bool endPointDirty_
Endpoint changed flag.
Definition: OffMeshConnection.h:97
XRBinding * FindBinding(const ea::string &name, VRHand hand) const
Find binding by name, case insensitive.
Definition: VirtualReality.cpp:51
unsigned numUniqueLightProbes_
Number of unique light probe groups. Used for saving results.
Definition: BakedSceneChunk.h:65
static Vector3 GetTriangleBarycentricCoords(const Vector3 &position, const Vector3 &p1, const Vector3 &p2, const Vector3 &p3)
Calculate barycentric coordinates on triangle.
Definition: TetrahedralMesh.cpp:373
bool IsTiled() const
Definition: BorderImage.h:115
const XPathResultSet * xpathResultSet_
XPath query result set.
Definition: XMLElement.h:331
void DrawDebugGeometry(bool depthTest)
Draw debug geometry.
Definition: CrowdAgent.cpp:162
BlendMode GetBlendMode() const
Definition: ParticleEmitter2D.h:116
void HandleRenderSurfaceUpdate(StringHash eventType, VariantMap &eventData)
Handle render surface update event. Queue the texture for update in case the View3D is visible and au...
Definition: View3D.cpp:170
unsigned BuildTilesFromGeometry(ea::vector< NavigationGeometryInfo > &geometryList, const IntVector2 &from, const IntVector2 &to) override
Build mesh tiles from the geometry data. Return true if successful.
Definition: DynamicNavigationMesh.cpp:753
void AddToOctree()
Add to octree.
Definition: Drawable.cpp:380
Four-dimensional vector.
Definition: Vector4.h:31
Vector2 scale_
Scale.
Definition: Sprite.h:131
void ResetLodLevels()
Reset LOD levels.
Definition: StaticModel.cpp:410
Move by 3D or 2D offset action. Target should have attribute "Position" of type Vector3,...
Definition: Move.h:33
Material rendering pass, which defines shaders and render state.
Definition: Technique.h:73
void Add(StringHash type, Object *subsystem)
Add subsystem.
Definition: SubsystemCache.cpp:77
Navigation manager that tracks all RmlNavigable in the RmlUIComponent.
Definition: RmlNavigationManager.h:37
Hemisphere(Context *context)
Construct Hemisphere.
Definition: Hemisphere.cpp:50
void SetExecuteConsoleCommands(bool enable)
Definition: FileSystem.cpp:582
A convex volume built from polygon faces.
Definition: Polyhedron.h:37
bool trackOnClient_
Definition: TrackedAnimatedModel.h:65
CullMode GetCullMode() const
Return culling mode.
Definition: OcclusionBuffer.h:151
float EvaluateToFloat(const XMLElement &element) const
Evaluate XPath query and expecting a float return value.
Definition: XMLElement.cpp:1269
void SetFov(float fov)
Definition: Light.cpp:329
unsigned GetNumLayers() const
Definition: TileMap2D.h:67
Expire(Context *context)
Construct Expire.
Definition: Expire.cpp:44
void SerializeInBlock(Archive &archive)
Serialize content from/to archive. May throw ArchiveException.
Definition: InputMap.cpp:500
ParticleGraphPinFlags GetFlags() const
Get pin flags.
Definition: ParticleGraphPin.h:84
void Disconnect(int waitMSec=0)
Disconnect the connection to the server. If wait time is non-zero, will block while waiting for disco...
Definition: Network.cpp:173
static Quaternion CalculateRotation(const Vector3 &originalPos0, const Vector3 &originalPos2, const Vector3 &originalDirection, const Vector3 ¤tPos0, const Vector3 ¤tPos2, const Vector3 ¤tDirection)
Return rotation of the entire chain.
Definition: InverseKinematics.cpp:193
float GetMaxRadius() const
Return max radius.
Definition: ParticleEffect2D.h:210
SerializedPlugins SuspendApplication()
Suspend all plugins in the stack and stop application.
Definition: PluginManager.cpp:161
float animationLodTimer_
Animation LOD timer.
Definition: BillboardSet.h:181
void SetData(const void *data, unsigned dataSize)
Set uncompressed sound data.
Definition: Sound.cpp:236
void Update(const SharedRenderPassState &sharedState) override
Perform update that does not invoke any rendering commands.
Definition: AmbientOcclusionPass.cpp:111
Vector3 center_
Geometry center.
Definition: StaticModel.h:36
void SetTransform(const Vector3 &position, const Quaternion &rotation)
Set offset transform.
Definition: CollisionShape.cpp:763
bool useHotSpot_
Use hot spot flag.
Definition: StaticSprite2D.h:185
bool usingTouchInput_
Touch used flag.
Definition: UI.h:443
Renders scene to texture with its own camera.
Definition: SceneRendererToTexture.h:75
void SetZoneTexture(Texture *texture)
Definition: Zone.cpp:170
int diffuseImageWidth_
Diffuse image width.
Definition: RaytracerScene.h:67
~StringHashRegister()
Destruct.
Definition: StringHashRegister.cpp:43
bool HasTangentBinormalCombined() const
Return whether the vertex has tangent and binormal combined.
Definition: ModelView.h:99
Definition: CubemapRenderer.h:58
bool SetStyleAuto(XMLFile *file=nullptr)
Set style from an XML file. Find the style element automatically by using the element's typename....
Definition: UIElement.cpp:1062
Definition: CallFunc.h:92
void UpdateSourceBatches() override
Update source batches.
Definition: StretchableSprite2D.cpp:148
bool SetIntRect(const ea::string &name, const IntRect &value)
Set an IntRect attribute.
Definition: XMLElement.cpp:397
ea::vector< Drawable * > litGeometries_
Definition: LightProcessor.h:167
void SetMaxAgents(unsigned maxAgents)
Definition: CrowdManager.cpp:254
Layout of attribute buffer.
Definition: ParticleGraphLayer.h:46
Acceleration structure for zone search.
Definition: Octree.h:171
void SetText(const ea::string &text)
Definition: LineEdit.cpp:478
ea::string name_
Property name.
Definition: GraphNode.h:61
void SetCollideConnected(bool collideConnected)
Definition: Constraint2D.cpp:129
void Reset(unsigned capacity)
Reset layout.
Definition: ParticleGraphMemory.cpp:72
Value animation key frame.
Definition: ValueAnimation.h:50
RenderBufferManagerFrameSettings frameSettings_
Definition: RenderBufferManager.h:221
unsigned numShadowedLights_
Total number of lights with shadows processed.
Definition: RenderPipelineDefs.h:262
LightProcessor * GetLightProcessor(Light *light)
Should be called on every frame to notify LRU cache.
Definition: LightProcessor.cpp:591
NumericRange< T > operator|(const NumericRange &rhs) const
Accumulate range.
Definition: NumericRange.h:66
ea::vector< Component * > GetGeometriesInBoundingBox(const IntVector3 &chunkIndex, const BoundingBox &boundingBox) override
Return geometries intersecting given volume.
Definition: BakedSceneCollector.cpp:281
@ CATMULL_ROM_CURVE
Catmull-Rom interpolation. The first and last knots control velocity and are not included on the path...
Definition: Spline.h:41
void SetColor(const Color &color)
Definition: StaticSprite2D.cpp:151
IntVector2 GetOutputSize() const
Return size of output region (not size of output texture itself).
Definition: RenderBufferManager.h:160
float GetLength() const
Definition: Light.h:307
void OnDrawOrderChanged() override
Handle draw order changed.
Definition: StaticSprite2D.cpp:277
Definition: RenderPipelineDefs.h:339
void AddLine(const Vector3 &start, const Vector3 &end, const Color &color, bool depthTest=true)
Add a line.
Definition: DebugRenderer.cpp:92
Definition: ClockSynchronizer.h:116
bool SaveXML(XMLElement &dest) const
Save as XML data. Return true if successful.
Definition: ValueAnimation.cpp:127
bool isMaster_
Master model flag.
Definition: AnimatedModel.h:244
Definition: ConfigFile.h:59
void ProcessDirectionalShadowCasters(DrawableProcessor *drawableProcessor, ea::vector< Drawable * > &shadowCastersBuffer)
Definition: ShadowSplitProcessor.cpp:143
ActionBuilder & AttributeTo(float duration, ea::string_view attributeName, const Variant &to)
Continue with AttributeTo action.
Definition: ActionBuilder.cpp:224
unsigned CalculatePipelineStateHash() const
Definition: RenderPipelineDefs.h:350
ea::string vertexShaderDefines_
Vertex shader defines.
Definition: Technique.h:232
const Quaternion & GetQuaternion() const
Return quaternion or identity on type mismatch.
Definition: Variant.h:1424
void SetGeometryDataAttr(const ea::vector< unsigned char > &value)
Set geometry data attribute.
Definition: CustomGeometry.cpp:447
~VirtualFileSystem() override
Destruct.
IntVector2 GetPointerPosition() const
Get last known pointer position.
Definition: PointerAdapter.h:76
static FileIdentifier FromUri(ea::string_view uri)
Construct from uri-like path.
Definition: FileIdentifier.cpp:39
float particleLifeSpan_
Particle lifespan.
Definition: ParticleEffect2D.h:269
void SetMinWidth(int width)
Definition: UIElement.cpp:643
static void Free(RefCount *instance)
Free RefCount using it's default allocator.
Definition: RefCounted.cpp:45
void SetMotorSpeed(float motorSpeed)
Definition: ConstraintWheel2D.cpp:106
float GetRandomRotationSpeed() const
Return random rotationspeed.
Definition: ParticleEffect.cpp:811
static void RegisterObject(Context *context)
Definition: JSONFile.cpp:53
Lightmap chart allocation settings.
Definition: LightBakingSettings.h:36
bool GetUseDerivedOpacity() const
Definition: UIElement.h:584
virtual bool Save(Serializer &dest) const
Save resource. Return true if successful.
Definition: Resource.cpp:147
bool GetWarmStarting() const
Definition: PhysicsWorld2D.cpp:694
int GetWidth() const
Definition: Texture.h:112
void Update()
Do work in main thread. Usually called once per frame.
Definition: WorkQueue.cpp:309
virtual unsigned SerializeVersion(unsigned version)=0
Serialize version number. 0 is invalid version.
Vector2 floatPosition_
Floating point position.
Definition: Sprite.h:127
bool updateInvisible_
Update when invisible flag.
Definition: RibbonTrail.h:282
void StoreResourceDependency(Resource *resource, const ea::string &dependency)
Store a dependency for a resource. If a dependency file changes, the resource will be reloaded.
Definition: ResourceCache.cpp:670
TimelineKey * GetTimelineKey(Ref *ref) const
Get timeline key by ref.
Definition: SpriterInstance2D.cpp:260
ea::string sceneFileName_
Scene file to load once all packages (if any) have been downloaded.
Definition: Connection.h:285
float width_
Width on screen.
Definition: FontFace.h:51
void RaycastSingle(RayOctreeQuery &query) const
Return the closest drawable object by a ray query.
Definition: Octree.cpp:679
static void RegisterObject(Context *context)
Definition: Camera.cpp:82
virtual ~Microphone()
Destruct.
Definition: Microphone.cpp:48
float speed_
Speed.
Definition: ParticleEffect2D.h:265
Model(Context *context)
Construct.
Definition: Model.cpp:64
bool GetAutoExit() const
Definition: Engine.h:128
void SetPlayPositionLockless(signed char *pos)
Set new playback position without locking the audio mutex. Called internally.
Definition: SoundSource.cpp:638
bool IsHovered() const
Returns true if any window of this UI context is hovered by mouse.
Definition: RmlUI.cpp:805
ea::string ToString() const override
Return debug connection string for logging.
Definition: Connection.cpp:685
WeakPtr< UIElement > touchedElement_
Last touched UI element from screen joystick.
Definition: Input.h:80
PListValueMap root_
Root dictionary.
Definition: PListFile.h:204
ea::string defines_
Defines to use when compiling the shader.
Definition: ShaderVariation.h:77
int GetMaxInactiveFps() const
Definition: Engine.h:116
void SetMaxJumpHeight(float maxJumpHeight)
Set max jump height.
Definition: KinematicCharacterController.cpp:541
VariantType GetPinValueType(unsigned pinIndex) const
Get pin type.
Definition: ParticleGraphNode.cpp:99
ea::optional< int > activeTouchId_
Identifier of active touch.
Definition: PointerAdapter.h:116
std::atomic_bool dirty_
Whether dirty flag is set.
Definition: ThreadSafeCache.h:71
SharedPtr< ConfigFile > engineParameters_
Engine parameters (default and current values).
Definition: Engine.h:171
int priority_
Priority.
Definition: UIElement.h:799
float traveled_
The fraction of the SplinePath covered.
Definition: SplinePath.h:142
XPathResultSet()
Construct empty result set.
Definition: XMLElement.cpp:1101
void ApplyShaderDefines(unsigned index=M_MAX_UNSIGNED)
Reapply shader defines to technique index. By default reapply all.
Definition: Material.cpp:1106
ResourceRefList GetResourceRefList() const
Return a resource reference list attribute, or empty if missing.
Definition: XMLElement.cpp:971
ea::unordered_map< int, VectorBuffer > outgoingBuffer_
Outgoing packet buffer which can contain multiple messages.
Definition: Connection.h:266
@ ASYNC_QUEUED
Queued for asynchronous loading.
Definition: Resource.h:74
ea::hash_set< unsigned > receivedFragments_
Already received fragments.
Definition: Connection.h:68
ResourceRef GetMaterialAttr() const
Return material attribute.
Definition: Terrain.cpp:820
ActionBuilder & SineOut()
Combine with SineOut action.
Definition: ActionBuilder.cpp:339
Vector3 Evaluate(const Vector3 &dir) const
Evaluate at given direction.
Definition: SphericalHarmonics.h:213
void TestDrawables(Drawable **start, Drawable **end, bool inside) override
Intersection test for drawables.
Definition: OctreeQuery.cpp:62
const FontGlyph * GetGlyph(unsigned c) override
Return pointer to the glyph structure corresponding to a character. Return null if glyph not found.
Definition: FontFaceFreeType.cpp:295
bool SaveXML(Serializer &dest, int pointSize, bool usedGlyphs=false, const ea::string &indentation="\t")
Save resource as a new bitmap font type in XML format. Return true if successful.
Definition: Font.cpp:114
Trail is consisting of series of tails. Two connected points make a tail.
Definition: RibbonTrail.h:42
VertexElement() noexcept
Default-construct.
Definition: GraphicsDefs.h:86
Geometry * GetMaxLodGeometry() const
Return max LOD geometry. Used for decals.
Definition: TerrainPatch.cpp:275
ManifoldPair()
Construct with defaults.
Definition: PhysicsWorld.h:116
void SetCustom(T value)
Set custom value.
Definition: Variant.h:1286
void OnResize(const IntVector2 &newSize, const IntVector2 &delta) override
React to resize.
Definition: ListView.cpp:323
Pipeline state UI batch cache entry. May be invalid.
Definition: BatchStateCache.h:189
void SetMinOffset(const IntVector2 &offset)
Definition: UIElement.cpp:777
void SetColor(const Color &color)
Definition: OutlineGroup.cpp:108
Matrix3x4 matrix_
Pre-computed matrix for calculating barycentric coordinates.
Definition: TetrahedralMesh.h:249
bool IsHovering() const
Definition: UIElement.h:619
unsigned EvaluateInstanceSize() const override
Evaluate size required to place new node instance.
Definition: Random.h:65
void UpdateBatches(const FrameInfo &frame) override
Calculate distance and prepare batches for rendering. May be called from worker thread(s),...
Definition: BillboardSet.cpp:192
static const ea::string LightmapSharedUV
Metadata key for shared lightmap UV flag.
Definition: LightmapUVGenerator.h:42
FileIdentifier GetIdentifierFromAbsoluteName(const ea::string &absoluteFileName) const override
Definition: MountedRoot.cpp:105
Quaternion(const Matrix3 &matrix) noexcept
Construct from a rotation matrix.
Definition: Quaternion.h:132
int right_
Right coordinate.
Definition: Rect.h:490
static const Matrix3x4 IDENTITY
Identity matrix.
Definition: Matrix3x4.h:759
unsigned hash_
Precomputed parameter hash.
Definition: TextRenderer3D.h:63
void OnDragMove(const IntVector2 &position, const IntVector2 &screenPosition, const IntVector2 &deltaPos, MouseButtonFlags buttons, QualifierFlags qualifiers, Cursor *cursor) override
React to mouse drag motion.
Definition: Window.cpp:144
SharedPtr< UIElement > buttonLayout_
Button layout.
Definition: FileSelector.h:198
IntRect GetLeftEyeRect() const
Viewport rectangle for left eye, required for multipass single-RT.
Definition: VirtualReality.h:226
VariantType valueType_
Value type.
Definition: ValueAnimation.h:166
TSetFunction setFunction_
Set functor.
Definition: Serializable.h:173
bool IsEmpty() const
Definition: Variant.h:1583
SharedPtr< ActionState > StartAction(Object *target) override
Create new action state from the action.
Definition: Sequence.cpp:185
ea::string localName_
Name without path.
Definition: DragDropPayload.h:61
void SetProjection(const Matrix4 &projection)
Definition: Camera.cpp:261
Allocator memory block.
Definition: Allocator.h:40
float GetTimePosition() const
Definition: SoundSource.h:107
const ea::vector< JSONValue > & GetArray() const
Return JSON array value.
Definition: JSONValue.h:231
Base class for texture resources.
Definition: Texture.h:46
SharedPtr< Engine > engine_
Urho3D engine.
Definition: Application.h:71
float time_
Time.
Definition: ParticleEffect.h:83
BaseAction * GetOrDefault(BaseAction *action) const
Get action from argument or empty action.
Definition: BaseAction.cpp:57
void HandleInputEnd(StringHash eventName, VariantMap &eventData)
Called on input end.
Definition: MoveAndOrbitController.cpp:115
unsigned GetIntFrequency() const
Return default frequency as an integer.
Definition: Sound.h:101
void LoadMultipleLanguageJSON(const JSONValue &source)
Load strings from JSONValue.
Definition: Localization.cpp:175
void SetExitAnimationAttr(const ResourceRef &value)
Set exit animation attribute.
Definition: TriggerAnimator.cpp:71
SharedPtr< Scene > scene_
Baking scene.
Definition: LightmapGeometryBuffer.h:83
void SetSortChildren(bool enable)
Definition: UIElement.cpp:902
void SetMaxMotorTorque(float maxMotorTorque)
Definition: ConstraintWheel2D.cpp:93
IntVector2 GetIntVector2(const ea::string &name) const
Return an IntVector2 attribute, or default if missing.
Definition: XMLElement.cpp:881
bool IsNaN() const
Return whether any element is NaN.
Definition: Quaternion.h:429
const Vector4 & GetVector4() const
Return Vector4 or zero on type mismatch.
Definition: Variant.h:1421
ea::span< unsigned > scalarIndices_
All indices set to 0.
Definition: ParticleGraphLayerInstance.h:156
void UnloadPlugin()
Unload plugin from the context and the engine subsystems.
Definition: PluginApplication.cpp:78
void Scan(ea::vector< ea::string > &result, const ea::string &pathName, const ea::string &filter, ScanFlags flags) const override
Enumerate objects in the mount point. Only files enumeration is guaranteed to be supported.
Definition: MountedAliasRoot.cpp:132
unsigned offset_
Offset in the buffer.
Definition: ParticleGraphMemory.h:39
unsigned indices_[2]
Indices.
Definition: TetrahedralMesh.h:186
void SetReflectionMode(ReflectionMode mode)
Set reflection mode.
Definition: Drawable.cpp:250
bool Unload()
Unload currently loaded dynamic library. Returns true only if library was previously loaded and unloa...
Definition: DynamicModule.cpp:196
static const Matrix2 IDENTITY
Identity matrix.
Definition: Matrix2.h:255
void SerializeInBlock(Archive &archive) override
Override of SerializeInBlock.
Definition: SerializableResource.cpp:26
bool TryAcquire()
Try to acquire the mutex without locking. Return true if successful.
Definition: Mutex.h:107
ea::string GetShaderName() const
Return shader name (as used in resources).
Definition: ShaderVariation.cpp:107
void GetFrustumSize(Vector3 &nearSize, Vector3 &farSize) const
Return frustum near and far sizes.
Definition: Camera.cpp:502
Object * pass_
Object that owns BatchStateCache that invoked the callback.
Definition: BatchStateCache.h:114
UIElement * GetElementEventSender() const
Get element which should send child added / removed events.
Definition: UIElement.cpp:1899
void SetDrawDistance(float distance)
Definition: Terrain.cpp:368
float GetFloat(const ea::string &name) const
Return a float attribute, or zero if missing.
Definition: XMLElement.cpp:846
bool GetClearSelectionOnDefocus() const
Definition: ListView.h:164
~MountedDirectory() override
Destruct.
Definition: MountedDirectory.cpp:43
void SetMaxSize(const IntVector2 &maxSize)
Definition: UIElement.cpp:653
int GetIndentWidth() const
Definition: UIElement.h:738
Self-sufficient batch that can be sorted and rendered by RenderPipeline.
Definition: BatchCompositor.h:47
Navigation mesh component. Collects the navigation geometry from child nodes with the Navigable compo...
Definition: NavigationMesh.h:74
bool batchedParameterUpdate_
Flag to suppress parameter hash and memory use recalculation when setting multiple shader parameters ...
Definition: Material.h:384
ea::list< Decal >::iterator RemoveDecal(ea::list< Decal >::iterator i)
Remove a decal by iterator and return iterator to the next decal.
Definition: DecalSet.cpp:980
static IndexAllocator< Mutex > indexAllocator
Shared allocator for this family.
Definition: IndexAllocator.h:150
ea::string targetPin_
Target pin name.
Definition: GraphPin.h:126
float SignedAngle(const Vector2 &rhs) const
Returns signed angle between this vector and another vector in degrees. Clockwise direction is positi...
Definition: Vector2.h:342
dtCrowdAgent * GetEditableDetourCrowdAgent(int agent)
Get editable detour crowd agent.
Definition: CrowdManager.cpp:698
bool WriteDouble(double value)
Write a double.
Definition: Serializer.cpp:93
SharedPtr< Image > loadImage_
Image file acquired during BeginLoad.
Definition: Texture2D.h:73
static void RegisterObject(Context *context)
Register object with the engine.
Definition: Viewport.cpp:92
XRBinding * GetInputBinding(const ea::string &path) const
Attempts to retrieve an input binding.
Definition: VirtualReality.cpp:167
GraphNode * Create(const ea::string &name)
Create node at the graph.
Definition: Graph.cpp:153
unsigned short GetIncludeFlags(unsigned queryFilterType) const
Get the include flags for the specified query filter type.
Definition: CrowdManager.cpp:494
Matrix3 RotationMatrix() const
Definition: Quaternion.cpp:258
void SetShiftRange(const Vector3 &value)
Set shift range.
Definition: ShakeComponent.cpp:87
void Update(const SharedRenderPassState &sharedState) override
Perform update that does not invoke any rendering commands.
Definition: BloomPass.cpp:82
bool isShadowRequested_
Definition: LightProcessor.h:153
bool IsObstacleInTile(Obstacle *obstacle, const IntVector2 &tileIndex) const
Return whether the Obstacle is touching the given tile.
Definition: DynamicNavigationMesh.cpp:310
static unsigned litBasePassIndex
Index for lit base pass. Initialized once GetPassIndex() has been called for the first time.
Definition: Technique.h:320
@ LM_VERTICAL
Layout child elements vertically and resize them to fit. Resize element if necessary.
Definition: UIElement.h:92
const ea::string & GetDownloadName() const
Definition: Connection.cpp:725
ea::string universalShaderPath_
Format string for universal shaders.
Definition: Graphics.h:318
Finite time action state.
Definition: FiniteTimeActionState.h:37
SharedPtr< Geometry > geometry_
Geometry.
Definition: TerrainPatch.h:134
ea::vector< SharedPtr< DrawableProcessorPass > > allPasses_
Definition: DrawableProcessor.h:270
~ParticleGraphNode() override
Destruct.
const T * GetCustomPtr() const
Return a pointer to a constant custom variant value or null on type mismatch.
Definition: Variant.h:1616
void SetColor(const Color &color)
Definition: Text3D.cpp:332
void SetSplineTension(float tension)
Definition: ValueAnimation.cpp:270
bool sourceBatchesDirty_
Source batches dirty flag.
Definition: Drawable2D.h:152
const ea::string & GetName() const
Name of the pin for visual editor.
Definition: ParticleGraphPin.h:87
bool HasDrawable(Drawable *drawable) const
Check if Drawable is present in group.
Definition: OutlineGroup.cpp:153
AnimatedSprite2D(Context *context)
Construct.
Definition: AnimatedSprite2D.cpp:53
Pipeline state cache entry. May be invalid.
Definition: BatchStateCache.h:96
SphericalHarmonicsDot9 operator*(float rhs) const
Scale spherical harmonics.
Definition: SphericalHarmonics.h:272
unsigned loadedNodes_
Loaded root-level nodes.
Definition: Scene.h:84
PipelineState * GetQuadPipelineState(StaticPipelineStateId id)
Return pipeline state for fullscreen quad rendering for current output.
Definition: RenderBufferManager.cpp:358
ParticleGraphPin * LoadOutputPin(ParticleGraphReader &reader, GraphOutPin &pin) override
Load output pin.
Definition: Uniform.cpp:90
XMLElement xmlElement_
Current XML element for XML mode.
Definition: Scene.h:70
unsigned GetFreeNodeID()
Get free node ID.
Definition: Scene.cpp:884
virtual bool HasAuxiliaryData() const
Definition: Component.h:81
void Validate()
Validate parameters.
Definition: Light.cpp:81
WindowDragMode dragMode_
Current drag mode.
Definition: Window.h:172
virtual void Start(bool isMain)
Called on StartApplication().
Definition: PluginApplication.h:92
void SetFrictionSlip(float slip)
Set friction slip.
static bool GetGL3Support()
Return whether is using an OpenGL 3 context. Return always false on DirectX 11.
Definition: Graphics.h:277
SharedPtr< Technique > CloneWithDefines(const ea::string &vsDefines, const ea::string &psDefines)
Return a clone with added shader compilation defines. Called internally by Material.
Definition: Technique.cpp:503
InterfaceType * Get() const noexcept
Return the raw pointer.
Definition: Ptr.h:302
void SetMaxRadiusVariance(float maxRadiusVariance)
Set max radius variance.
Definition: ParticleEffect2D.cpp:426
bool BuildTile(ea::vector< NavigationGeometryInfo > &geometryList, int x, int z)
Build one tile of the navigation mesh. Return true if successful.
Definition: NavigationMesh.cpp:1277
unsigned char adaptiveDivs
adaptive
Definition: CrowdManager.h:60
void SetPauseMinimized(bool enable)
Definition: Engine.cpp:841
Move instantly by 3D offset action. Target should have attribute "Position" of type Vector3 or IntVec...
Definition: Move.h:91
void BeginUpdate(DrawableProcessor *drawableProcessor, LightProcessorCallback *callback)
Begin update from main thread.
Definition: LightProcessor.cpp:161
const T & Get() const
Return object value. Intentionally unchecked, caller must ensure that cache is valid.
Definition: ThreadSafeCache.h:67
Sprite2D * GetSprite() const
Definition: StaticSprite2D.cpp:224
const ea::string & GetAttributeName() const
Get attribute name.
Definition: Attribute.h:49
float GetSlidingFactor() const
Get skid info cumulative.
virtual void FixedPostUpdate(float timeStep)
Called on physics post-update, fixed timestep.
Definition: LogicComponent.cpp:63
Scene component that spawns render pipeline instances.
Definition: RenderPipeline.h:82
Definition: MoveInstance.h:37
ea::ring_buffer< LogEntry > history_
Command history.
Definition: Console.h:115
ParticleGraphNodeInstance * CreateInstanceAt(void *ptr, ParticleGraphLayerInstance *layer) override
Place new instance at the provided address.
Definition: Constant.h:68
ea::string GetURL() const
Definition: HttpRequest.h:72
int kernelRadius_
Kernel radius.
Definition: LightBakingSettings.h:133
bool GetLevelVisible(LogLevel level) const
Get visibility of certain log levels in the console.
Definition: Console.cpp:446
const IntVector2 & GetNumPatches() const
Definition: Terrain.h:143
const ea::string & GetName() const
Return name.
Definition: TmxFile2D.h:51
~CrowdManager() override
Destruct.
Definition: CrowdManager.cpp:90
Color(unsigned color, const ChannelMask &mask=ABGR)
Construct from 32-bit integer. Default format is 0xAABBGGRR.
Definition: Color.h:104
void Unlink()
Unlinks the stream object, typically do this in E_RECORDINGENDED.
Definition: Microphone.cpp:197
int GetNumWheels() const
Definition: RaycastVehicle.cpp:517
float duration_
Duration.
Definition: ParticleEffect2D.h:305
SharedPtr< Texture > zoneTexture_
Zone texture.
Definition: Zone.h:233
ea::string category_
Category of the object.
Definition: ObjectReflection.h:114
Vector3(const float data[]) noexcept
Construct from a float array.
Definition: Vector3.h:232
Definition: StaticPipelineStateCache.h:17
constexpr FlagSet operator^(const Enum value) const
Bitwise XOR against Enum value.
Definition: FlagSet.h:142
void Clear()
Clear by removing all variables and XPath query object.
Definition: XMLElement.cpp:1252
ea::string GetEffectiveVertexShaderDefines() const
Return the effective vertex shader defines, accounting for excludes. Called internally by Renderer.
Definition: Technique.cpp:171
bool GetUseGravity() const
Definition: RigidBody.h:248
void SetDeadZone(float deadZone)
Set dead zone half-width to mitigate axis drift.
Definition: AxisAdapter.cpp:31
void RemoveEventReceiver(Object *receiver, Object *sender, StringHash eventType)
Remove event receiver from specific events.
Definition: Context.cpp:342
bool GetOptimizeBufferSize() const
Definition: DecalSet.h:179
StopToken()
Construct default.
Definition: StopToken.h:40
ea::string absoluteFileName_
Absolute file name.
Definition: Resource.h:149
float emitCounterReminder_
Emit counter reminder. When reminder value get over 1 the layer emits particle.
Definition: ParticleGraphLayerInstance.h:141
virtual UpdateGeometryType GetUpdateGeometryType()
Return whether a geometry update is necessary, and if it can happen in a worker thread.
Definition: Drawable.h:235
EaseElastic(Context *context)
Construct.
Definition: Ease.cpp:113
SDL_RWops ops_
SDL RWOps structure associated with the object.
Definition: RWOpsWrapper.h:117
bool CanLeaveState() const override
Return true if state is ready to be deactivated. Executed by StateManager.
Definition: SplashScreen.cpp:99
SharedPtr< IndexBuffer > indexBuffer_
Shared index buffer.
Definition: Terrain.h:317
void SetInnerAction(FiniteTimeAction *action)
Set inner action.
Definition: Repeat.cpp:188
void ResetTarget()
Reset any target request for the specified agent. Note that the agent will continue to move into the ...
Definition: CrowdAgent.cpp:360
RenderSurface * depthStencil_
Null if rendering to backbuffer or invalid.
Definition: RenderBuffer.h:162
ActionBuilder & CallFunc(T *receiver, typename Actions::ActionCallHandlerImpl< T >::HandlerFunctionPtr func, void *userData=nullptr)
Continue with CallFunc action.
Definition: ActionBuilder.h:122
WeakPtr< TileMap2D > tileMap_
Tile map.
Definition: TileMapLayer2D.h:123
void DereferenceAndDispose(RefCounted *instance)
Definition: Script.cpp:50
void SetTexture(Texture2D *texture)
Definition: SpriteSheet2D.cpp:145
ea::string path_
Current directory.
Definition: FileSelector.h:200
void UpdateRotationInNodes(bool fromPrevious, bool isLastSegment)
Update current rotation for nodes.
Definition: InverseKinematics.cpp:147
bool uiRendered_
Flag for UI already being rendered this frame.
Definition: UI.h:461
bool assignBonesPending_
Bone nodes assignment pending flag.
Definition: DecalSet.h:264
float GetMinRadius() const
Return min radius.
Definition: ParticleEffect2D.h:216
ea::string text_
Text.
Definition: TextRenderer3D.h:40
SharedPtr< Image > heightMap_
Heightmap image.
Definition: Terrain.h:319
unsigned fragmentSize_
Clip buffer size in samples.
Definition: Audio.h:162
bool osShapeDirty_
OS cursor shape needs update flag.
Definition: Cursor.h:149
void SetMaxTorque(float maxTorque)
Definition: ConstraintFriction2D.cpp:79
Manifold pointers stored during collision processing.
Definition: PhysicsWorld.h:113
void SetRelativeMouseMove(bool enabled, bool revertMousePositionOnDisable)
Definition: SystemUI.cpp:245
static void RegisterObject(ParticleGraphSystem *context)
Register particle node factory.
Definition: Cone.cpp:38
float blendWeights_[4]
Blend weights.
Definition: DecalSet.h:71
void SetDragBeginDistance(int pixels)
Definition: UI.cpp:594
const auto & GetLightVolumeBatches() const
Return sorted light volume batches.
Definition: BatchCompositor.h:245
@ OT_POLYLINE
Polyline.
Definition: TileMapDefs2D.h:100
T Max(T lhs, U rhs)
Definition: MathDefs.h:95
void SetFrom(int value)
Set From.
Definition: Box.cpp:88
ea::function< void(NetworkConnection *)> onConnected_
Called once, when new connection is established and ready to be used. May be called from non-main thr...
Definition: NetworkServer.h:42
const ea::unordered_map< StringHash, MaterialShaderParameter > & GetShaderParameters() const
Return all shader parameters.
Definition: Material.h:272
SphericalHarmonicsDot9 SampleAmbientSH(const Vector3 &position, unsigned &hint) const
Sample ambient spherical harmonics.
Definition: GlobalIllumination.cpp:123
embree3::RTCDevice GetEmbreeDevice() const
Return Embree device.
Definition: RaytracerScene.h:160
void HandleBeginFrame(StringHash eventType, VariantMap &eventData)
Handle frame begin event.
Definition: UI.cpp:1949
ea::vector< RaycastVehicleWheel * > wheelComponents_
Nodes of all wheels.
Definition: RaycastVehicle.h:165
ea::unordered_map< StringHash, PackageDownload > downloads_
Waiting or ongoing package file receive transfers.
Definition: Connection.h:281
void CommitGeometries(const IntVector3 &chunkIndex) override
Called when geometries were changed externally.
Definition: BakedSceneCollector.cpp:229
ea::vector< int > indices_
Triangle indices from geometries.
Definition: NavBuildData.h:67
WeakPtr< Camera > camera_
Active camera.
Definition: DebugRenderer.h:210
float ProjectOntoAxis(const Vector3 &axis) const
Project vector onto axis.
Definition: Vector4.h:197
EnabledRenderPasses RepairEnabledRenderPasses(const EnabledRenderPasses &sourcePasses) const
Repair the array of enabled render passes.
Definition: RenderPath.cpp:106
void HandleFileChanged(StringHash eventType, VariantMap &eventData)
Handle file changed to reload resource.
Definition: ResourceCache.cpp:874
ea::unordered_map< StringHash, PackageUpload > uploads_
Ongoing package send transfers.
Definition: Connection.h:283
ea::shared_array< signed char > GetData() const
Return shared sound data.
Definition: Sound.h:74
ea::string GetPath() const
Return the path.
Definition: FileSystem.h:162
AttributeBufferLayout attributeBufferLayout_
Attribute buffer layout.
Definition: ParticleGraphLayer.h:154
void SetEmitterType(EmitterType type)
Definition: ParticleEffect.cpp:480
Vector2 size_
Two-dimensional size. If BillboardSet has fixed screen size enabled, this is measured in pixels inste...
Definition: BillboardSet.h:44
Network subsystem. Manages client-server communications using the UDP protocol.
Definition: Network.h:41
SpeakerMode GetSpeakerMode() const
Definition: Audio.h:97
void Merge(const BoundingBox &box)
Merge another bounding box.
Definition: BoundingBox.h:201
virtual void OnIndentSet()
React to indent change.
Definition: UIElement.h:203
Quaternion(const float data[]) noexcept
Construct from a float array.
Definition: Quaternion.h:82
WindowSettings primaryWindowSettings_
Definition: Graphics.h:302
bool LoadAsync(AbstractFilePtr file, LoadMode mode=LOAD_SCENE_AND_RESOURCES)
Load from a binary file asynchronously. Return true if started successfully. The LOAD_RESOURCES_ONLY ...
Definition: Scene.cpp:410
static StringHashRegister * GetGlobalStringHashRegister()
Get global StringHashRegister. Use for debug purposes only. Return nullptr if URHO3D_HASH_DEBUG is of...
Definition: StringHash.cpp:47
void CalculateBoundingBox()
Recalculate the local-space bounding box.
Definition: DecalSet.cpp:998
void SetFogHeight(float height)
Definition: Zone.cpp:155
Thread(const ea::string &name=EMPTY_STRING)
Construct. Does not start the thread yet.
Definition: Thread.cpp:125
void SetMaxTiles(int maxTiles)
Set maximum number of tiles.
Definition: NavigationMesh.h:100
const Spriter::SpatialInfo & GetSpatialInfo() const
Return root spatial info.
Definition: SpriterInstance2D.h:74
DebugHud(Context *context)
Construct.
Definition: DebugHud.cpp:63
void OnNodeSet(Node *previousNode, Node *currentNode) override
Handle scene node being assigned at creation.
Definition: LightProbeGroup.cpp:295
float GetPanning() const
Definition: SoundSource.h:123
float GetAttributeAnimationTime(const ea::string &name) const
Return attribute animation time position.
Definition: Animatable.cpp:442
void SetMasterGain(const ea::string &type, float gain)
Definition: Audio.cpp:268
void SetScale(float scale)
Set uniform scaling elements.
Definition: Matrix2.h:147
IntVector2 disabledOffset_
Offset to image rectangle when disabled.
Definition: BorderImage.h:146
Definition: DrawableProcessor.h:119
unsigned GetNumHats() const
Definition: Input.h:106
Standard scene collector for light baking.
Definition: BakedSceneCollector.h:88
unsigned vertexStart_
Vertex data start index.
Definition: UIBatch.h:89
Get particle attribute value.
Definition: Uniform.h:59
bool GetWordwrap() const
Definition: Text3D.cpp:453
void Activate(StringVariantMap &bundle) override
Activate game screen. Executed by StateManager.
Definition: SplashScreen.cpp:76
float margin_
Collision margin.
Definition: CollisionShape.h:336
Material * GetMaterial() const
Definition: UIComponent.cpp:209
URHO3D_NETWORK_SETTING(InternalProtocolVersion, unsigned, 1)
Version of internal protocol.
virtual ea::string GetAbsoluteNameFromIdentifier(const FileIdentifier &fileName) const
Return absolute file name for existing identifier in this mount point, if supported.
Definition: MountPoint.cpp:46
void SetAnisotropy(unsigned level)
Definition: Texture.cpp:125
unsigned GetNumDragElements() const
Return the number of currently dragged elements.
Definition: UI.h:196
void Connect(Serializable *serializable)
Connect widget to Serializable.
Definition: RmlSerializableInspector.cpp:164
Vector2 gravity_
Gravity.
Definition: PhysicsWorld2D.h:251
Definition: BounceInstance.h:41
~BaseAction() override
Destruct.
Definition: BaseAction.cpp:54
ea::vector< NavAreaStub > navAreas_
Pretransformed navigation areas, no correlation to the geometry above.
Definition: NavBuildData.h:85
const ea::string & GetText() const
Definition: LineEdit.h:100
Quaternion lastRotation_
Last interpolated rotation from the simulation.
Definition: RigidBody.h:339
bool Connect(const URL &url, Scene *scene, const VariantMap &identity=Variant::emptyVariantMap)
Connect to a server using UDP protocol. Return true if connection process successfully started.
Definition: Network.cpp:116
static constexpr int DefaultMaxTiles
Default maximum number of tiles.
Definition: NavigationMesh.h:84
InputVector horizontalAxis_
Collection of active horizontal axis inputs.
Definition: DirectionAggregator.h:131
Zone * GetZone() const
Definition: Drawable.h:372
bool IsPlaying() const
Definition: SoundSource.cpp:310
bool SaveJSON(Serializer &dest, const ea::string &indentation="\t") const
Save to a JSON file. Return true if successful.
Definition: Scene.cpp:386
ea::vector< OffMeshConnection * > CollectOffMeshConnections(const BoundingBox &bounds)
Off-mesh connections to be rebuilt in the mesh processor.
Definition: DynamicNavigationMesh.cpp:794
ParticleGraphPin * LoadOutputPin(ParticleGraphReader &reader, GraphOutPin &pin) override
Load output pin.
Definition: Attribute.cpp:80
Matrix2 Scaled(const Vector2 &scale) const
Return scaled by a vector.
Definition: Matrix2.h:174
CullMode cullMode_
Normal culling mode.
Definition: Material.h:360
Signal< void(const FileSystemEntry &entry)> OnResourceUpdated
Definition: FileSystemReflection.h:97
Connection to a remote network host.
Definition: Connection.h:96
virtual ~PipelineStateTracker()
Destruct.
Definition: PipelineStateTracker.cpp:74
FaceCameraMode GetFaceCameraMode() const
Definition: BillboardSet.h:149
void SetSorted(bool enable)
Definition: ParticleEffect.cpp:465
ParticleGraphPin & GetPin(unsigned index) override
Get pin by index.
Definition: Uniform.h:128
void QueueUpdate()
Queue manual update of the viewport(s).
Definition: RenderSurface.cpp:79
SharedPtr< Font > font_
Font. Default font is used if none.
Definition: TextRenderer3D.h:42
void HandleUIMouseDoubleClick(StringHash eventType, VariantMap &eventData)
Handle global UI mouse doubleclick.
Definition: ListView.cpp:1116
Graph * graph_
Graph.
Definition: GraphNode.h:184
void ApplyDefinesForShadowPass(ShaderProgramDesc &result, Light *light, VertexBuffer *vertexBuffer, Material *material, Pass *pass) const
Definition: ShaderProgramCompositor.cpp:308
SharedPtr< Texture2D > renderTexture_
Renderable texture.
Definition: View3D.h:95
void SetVertexCount(unsigned count)
Definition: CollisionPolygon2D.cpp:53
Matrix3() noexcept
Construct an identity matrix.
Definition: Matrix3.h:35
unsigned numCompressedLevels_
Number of compressed mip levels.
Definition: Image.h:223
void RemoveTextureFrame(unsigned index)
Remove texture frame at index.
Definition: ParticleEffect.cpp:696
LightImportance GetLightImportance() const
Return light importance.
Definition: Light.h:284
void PopBack(unsigned outerIndex)
Pop element from back of specified outer vector.
Definition: MultiVector.h:183
~Sprite() override
Destruct.
bool IsOpen() const
Returns true if message box is open.
Definition: SystemMessageBox.h:55
Vector3 v2_
Vertex b.
Definition: DebugRenderer.h:84
bool scaled_
Scale affects billboard scale flag.
Definition: ParticleEffect.h:450
void SetAutoExit(bool enable)
Definition: Engine.cpp:846
~DirectionAggregator()
Destruct.
Definition: DirectionAggregator.cpp:52
Union for the possible variant values. Objects exceeding the VARIANT_VALUE_SIZE are allocated on the ...
Definition: Variant.h:438
ea::intrusive_list< EventHandler >::iterator EraseEventHandler(ea::intrusive_list< EventHandler >::iterator handlerIter)
Erase event handler from the list.
Definition: Object.cpp:423
float & operator[](unsigned index)
Return mutable value by index.
Definition: Vector4.h:177
void RecalculateOffsetMatrix()
Recalculate offset matrix from initial bone transform.
Definition: ModelView.cpp:471
virtual bool OnDragDropTest(UIElement *source)
React to drag and drop test. Return true to signal that the drop is acceptable.
Definition: UIElement.cpp:480
int GetDepth() const
Definition: Image.h:154
void SetNavigationPushiness(NavigationPushiness val)
Definition: CrowdAgent.cpp:456
void ReleaseResources(StringHash type, bool force=false)
Release all resources of a specific type.
Definition: ResourceCache.cpp:188
Quaternion rotation_
Rotation.
Definition: BakedLight.h:85
Context * GetContext() const override
Definition: StereoRenderPipeline.h:45
AddBatchResult AddCustomBatch(unsigned threadIndex, Drawable *drawable, unsigned sourceBatchIndex, Technique *technique) override
Definition: OutlineScenePass.cpp:79
void SetSourcePositionVariance(const Vector2 &sourcePositionVariance)
Set source position variance.
Definition: ParticleEffect2D.cpp:306
void InitializeOnServer() override
Definition: TrackedAnimatedModel.cpp:52
Definition: DirectionalPadAdapter.h:61
SharedPtr< ParticleGraphLayer > GetLayer(unsigned layerIndex) const
Get layer by index.
Definition: ParticleGraphEffect.cpp:70
time_t timestamp_
Timestamp when message was logged.
Definition: Log.h:100
const ea::vector< Drawable * > & GetLitGeometries() const
Definition: LightProcessor.h:119
bool GetResizable() const
Definition: Graphics.h:196
~DebugRenderer() override
Destruct.
bool EndLoad() override
Finish resource loading. Always called from the main thread. Return true if successful.
Definition: TmxFile2D.cpp:451
void SetScaled(bool enable)
Definition: BillboardSet.cpp:317
float advanceX_
Horizontal advance.
Definition: FontFace.h:59
DistanceAndNormal HitDistanceAndNormal(const BoundingBox &box) const
Return hit distance to a bounding box with normal, or infinity if no hit.
Definition: Ray.cpp:76
DirectDraw surface capabilities.
Definition: ImageDDS.h:74
bool IsRelative() const
Definition: ParticleEffect.h:290
Software renderer for occlusion.
Definition: OcclusionBuffer.h:92
XMLElement & operator=(const XMLElement &rhs)
Assignment operator.
Definition: XMLElement.cpp:85
int GetFps() const
Definition: PhysicsWorld.h:274
void SetSortByDistance(bool value)
Set Sort By Distance.
Definition: RenderBillboard.cpp:94
ResourceRef GetMaterialAttr() const
Get material attribute.
Definition: BorderImage.cpp:235
ea::vector< unsigned > lightMasks_
Definition: BakedSceneChunk.h:41
static void RegisterObject(Context *context)
Definition: UIComponent.cpp:198
bool FilterImplicitAttributes(XMLElement &dest) const override
Filter implicit attributes in serialization process.
Definition: ProgressBar.cpp:119
virtual void Deactivate()
Deactivate game state. Executed by StateManager.
Definition: StateManager.cpp:102
Vector3 GetContactPosition() const
Get contact position.
unsigned GetNumPins() const override
Get number of pins.
Definition: Curve.h:70
ea::shared_array< unsigned char > morphData_
Morphed vertices. Stored packed as <index, data> pairs.
Definition: Model.h:51
void SetWheelIndex(unsigned index)
Set wheel index. Executed by vehicle.
Definition: RaycastVehicleWheel.cpp:106
void UpdateParameters(const RenderPipelineSettings &settings, const StringVariantMap ¶ms) override
Definition: FullScreenShaderPass.cpp:68
bool WriteMatrix4(const Matrix4 &value)
Write a Matrix4.
Definition: Serializer.cpp:171
~Console() override
Destruct.
Definition: Console.cpp:63
Describes how to render 3D geometries.
Definition: Material.h:130
static void SetMainThread()
Set the current thread as the main thread.
Definition: Thread.cpp:194
void SetSortValue(float value)
Set sorting value.
Definition: Drawable.cpp:329
bool IsInputCaptured() const
Return true if input is captured by UI.
Definition: RmlUI.cpp:811
float GetRadius() const
Get Radius.
Definition: Circle.cpp:74
void PostUpdate(float timeStep) override
Called on scene post-update, variable timestep.
Definition: IKSolver.cpp:73
bool drawNavAreas_
Debug draw NavArea components.
Definition: NavigationMesh.h:396
void SetType(JSONValueType valueType, JSONNumberType numberType=JSONNT_NAN)
Set value type and number type, internal function.
Definition: JSONValue.cpp:395
Definition: TextRenderer3D.h:104
ShadowMapRegion GetSplit(unsigned split, const IntVector2 &numSplits) const
Definition: ShadowMapAllocator.cpp:36
RenderSurfaceUpdateMode GetUpdateMode() const
Definition: RenderSurface.h:96
unsigned sampleSize_
Sample size.
Definition: Audio.h:160
float GetScaleInLightmap() const
Return scale in lightmap.
Definition: Terrain.h:274
EaseExponentialOut(Context *context)
Construct.
Definition: Ease.cpp:354
virtual bool LoadProperties(ParticleGraphReader &reader, GraphNode &node)
Load properties.
Definition: ParticleGraphNode.cpp:246
bool geometryTypeUpdate_
Update billboard geometry type.
Definition: BillboardSet.h:226
void SetNumColorFrames(unsigned number)
Definition: ParticleEffect.cpp:646
VariantType
Variant's supported types.
Definition: Variant.h:54
virtual ea::vector< LightProbeGroup * > GetUniqueLightProbeGroups(const IntVector3 &chunkIndex)=0
Return unique light probe groups within chunk. Order of groups must stay the same for each call.
bool directoryMode_
Directory mode flag.
Definition: FileSelector.h:208
void SetEdgeMaxLength(float length)
Definition: NavigationMesh.cpp:321
CullMode GetCullMode() const
Definition: Technique.h:136
virtual void SetModel(Model *model)
Definition: StaticModel.cpp:240
Color GetPixelBilinear(float x, float y) const
Return a bilinearly sampled 2D pixel color. X and Y have the range 0-1.
Definition: Image.cpp:1383
bool GetColorWrite() const
Definition: Technique.h:147
const VRHand hand_
Hand this action is attached to if a hand relevant action.
Definition: VirtualReality.h:133
void HandleFocused(StringHash eventType, VariantMap &eventData)
Handle being focused.
Definition: LineEdit.cpp:645
bool BeginLoad(Deserializer &source) override
Load resource from stream. May be called from a worker thread. Return true if successful.
Definition: BinaryFile.cpp:51
embree3::RTCGeometry embreeGeometry_
Internal geometry pointer.
Definition: RaytracerScene.h:104
ea::vector< Drawable * > * shadowCasters_
Result array of shadow casters, if applicable.
Definition: LightProcessorQuery.h:88
@ TM_BREADTH_FIRST
Traverse through children having same priority first and recurse into their children before traversin...
Definition: UIElement.h:99
ea::vector< ea::pair< PipelineStateTracker *, unsigned > > DependantVector
Vector of subscribers with reference counters.
Definition: PipelineStateTracker.h:118
ea::string lightmapNameFormat_
Definition: LightBakingSettings.h:181
void RemoveAllTrackedNodes()
Remove all instance scene nodes.
Definition: CameraOperator.cpp:189
float GetBeginTime() const
Return begin time.
Definition: ValueAnimation.h:132
Definition: ConeInstance.h:35
void SetStepHeight(float stepHeight)
Set step height.
Definition: KinematicCharacterController.cpp:532
virtual void Update(const FrameInfo &frameInfo) override
Called for defined pipelines before rendering. Frame info is only partially filled.
Definition: StereoRenderPipeline.cpp:470
unsigned EvaluateInstanceSize() const override
Evaluate size required to place new node instance.
Definition: EmitterPosition.cpp:53
Condition on which a thread can wait.
Definition: Condition.h:36
Definition: Constant.h:47
float GetBufferLength() const
Return length of buffered (unplayed) sound data in seconds.
Definition: BufferedSoundStream.cpp:123
bool Load() override
Definition: ModulePlugin.cpp:40
void SetAnisotropicFriction(const Vector3 &friction)
Definition: RigidBody.cpp:363
unsigned cursorPosition_
Text edit cursor position.
Definition: LineEdit.h:159
SharedPtr< ImageCube > GetDecompressedImageLevel(unsigned index) const
Return decompressed cube image mip level.
Definition: ImageCube.cpp:240
Definition: KinematicCharacterController.h:37
unsigned ConvertEnumToUInt(ea::string_view value) const
Convert enum value to integer.
Definition: Attribute.h:145
@ HM_FOCUS
Highlight when focused.
Definition: ListView.h:39
JSONValue(bool value)
Construct with a boolean.
Definition: JSONValue.h:86
bool BeginLoad(Deserializer &source) override
Load resource from stream. May be called from a worker thread. Return true if successful.
Definition: ImageCube.cpp:65
SharedPtr< ParticleGraph > emit_
Emission graph.
Definition: ParticleGraphLayer.h:148
VariantType GetRequestedType() const
Requested value type of the pin. VAR_NONE for autodetected value type.
Definition: ParticleGraphPin.h:93
int patchSize_
Patch size, quads per side.
Definition: Terrain.h:361
Raycast result.
Definition: OctreeQuery.h:185
bool IsEmpty(bool ignoreComponents=false) const
Return whether the Scene is empty.
Definition: Scene.cpp:780
Animation(Context *context)
Construct.
Definition: Animation.cpp:83
T RoundToNearestMultiple(T x, T multiple)
Round value to nearest multiple.
Definition: MathDefs.h:272
bool AddDrawable(Drawable *drawable)
Add drawable. Returns true if drawable added.
Definition: OutlineGroup.cpp:158
Vector4 tangent_
Tangent.
Definition: CustomGeometry.h:43
Vector3 GetTranslation() const
Get Translation.
Definition: Box.cpp:78
static double Fade(double t)
Apply 5-th order smoothstep.
Definition: PerlinNoise.cpp:94
FaceCameraMode GetFaceCameraMode() const
Definition: Text3D.h:213
bool IsInitialized() const
Definition: Graphics.cpp:577
void SerializeInBlock(Archive &archive) override
Serialize content from/to archive. May throw ArchiveException.
Definition: Misc.cpp:133
unsigned vertexCount_
Number of vertices.
Definition: Model.h:47
constexpr bool IsCustomTypeOnStack()
Checks whether the custom variant type could be stored on stack.
Definition: Variant.h:435
static constexpr bool HasPriority
Whether the signal is prioritized.
Definition: Signal.h:96
bool IsVisible() const
Return is visible.
Definition: TmxFile2D.h:60
void SetDrawShape(bool drawShape)
Definition: PhysicsWorld2D.cpp:356
RigidBody2D * body_
Rigid body that was hit.
Definition: PhysicsWorld2D.h:53
unsigned GetNumNodes() const
Get number of nodes in the graph.
Definition: Graph.h:53
unsigned GetLocalTimeOfLatestRoundtrip() const
Return local timestamp of the latest successful roundtrip.
Definition: ClockSynchronizer.h:108
void OnUpdateBegin(const FrameInfo &frameInfo)
Definition: DrawableProcessor.cpp:185
const StringVector & GetLoadedPlugins() const
Return loaded plugins.
Definition: PluginManager.h:118
EaseBackIn(Context *context)
Construct.
Definition: Ease.cpp:128
VariantVector GetVariantVector() const
Return a variant vector.
Definition: JSONValue.cpp:749
virtual bool IsOutOfDate() const
Returns true if plugin was modified on the disk and should be reloaded.
Definition: Plugin.h:59
void RemoveConstraint(Constraint *constraint)
Remove a constraint. Called by Constraint.
Definition: PhysicsWorld.cpp:814
short ReadShort()
Read a 16-bit integer.
Definition: Deserializer.cpp:80
float halfAngleTan_
Tangent of half light angle.
Definition: BakedLight.h:79
Get particle attribute value.
Definition: Attribute.h:60
static void RegisterObject(Context *context)
Definition: AnimatedModel.cpp:81
WorkQueue * workQueue_
Definition: DrawableProcessor.h:264
Vector3 ToVector3(float z=0.0f) const
Return Vector3 vector.
Definition: Vector3.h:580
static void Move(ea::unique_ptr< T > &dest, ea::unique_ptr< T > &src)
Move value.
Definition: Variant.h:347
void AddViewBatch(ViewBatchInfo2D &viewBatchInfo, Material *material, unsigned indexStart, unsigned indexCount, unsigned vertexStart, unsigned vertexCount, float distance)
Add view batch.
Definition: Renderer2D.cpp:466
TextureFormat rttFormat_
Render texture format.
Definition: View3D.h:107
static unsigned basePassIndex
Index for base pass. Initialized once GetPassIndex() has been called for the first time.
Definition: Technique.h:310
ea::vector< Vector3 > directLight_
Incoming direct light from completely backed lights, to be baked in lightmap.
Definition: LightTracer.h:83
unsigned char areaID_
Detour area ID.
Definition: NavigationMesh.h:70
VariantType valueType_
Value type at runtime.
Definition: ParticleGraphPin.h:135
int height_
Height.
Definition: Image.h:217
void SaveConfigFile()
Save config file.
Definition: Engine.cpp:1242
bool passThroughEvents_
When set to true, SystemUI will not consume SDL events and they will be passed to to Input and other ...
Definition: SystemUI.h:77
StringHash nameHash_
Bone name hash.
Definition: Skeleton.h:71
unsigned Write(const void *data, unsigned size) override
Write bytes to the file. Return number of bytes actually written.
Definition: File.cpp:318
ActionBuilder & Then(const SharedPtr< Actions::FiniteTimeAction > &nextAction)
Continue with provided action.
Definition: ActionBuilder.cpp:46
void SetGravity(const Vector2 &gravity)
Set gravity.
Definition: ParticleEffect2D.cpp:341
unsigned GetNeighborFaceIndex(unsigned neighborTetIndex) const
Return face index corresponding to given neighbor. Return 4 if not found.
Definition: TetrahedralMesh.h:287
bool IsNaN() const
Return whether any element is NaN.
Definition: Matrix3.h:287
ea::shared_array< unsigned char > data_
Index data.
Definition: Model.h:90
T GetMetadata(const StringHash &key) const
Return attribute metadata of specified type.
Definition: Attribute.h:130
UpdateGeometryType GetUpdateGeometryType() override
Return whether a geometry update is necessary, and if it can happen in a worker thread.
Definition: Text3D.cpp:184
float GetInertia() const
Definition: RigidBody2D.cpp:486
static int SolveCubicEquation(double result[], double a, double b, double c, double eps)
Solve cubic equation x^3 + a*x^2 + b*x + c = 0.
Definition: TetrahedralMesh.cpp:294
Definition: ParticleEffect.h:45
T SmoothStep(T lhs, T rhs, T t)
Definition: MathDefs.h:152
void OnSetEnabled() override
Handle enabled/disabled state change.
Definition: ParticleGraphEmitter.cpp:57
float lodBias_
LOD bias.
Definition: Drawable.h:487
T * GetChildStaticCast(unsigned index) const
Template version of returning child element by index using static cast.
Definition: UIElement.h:938
Description of a geometry for asynchronous loading.
Definition: Model.h:94
Animation instance.
Definition: AnimationState.h:138
Bone * GetRootBone()
Definition: Skeleton.cpp:194
Context * GetContext() const
Return context.
Definition: RaytracerScene.h:158
ea::unique_ptr< pugi::xpath_query > query_
Pugixml xpath_query.
Definition: XMLElement.h:426
bool Reveal(const ea::string &path)
Reveal path or file in OS file browser.
Definition: FileSystem.cpp:1069
const Vector3 & GetEmitterSize() const
Definition: ParticleEffect.h:314
bool IsFinished() const
Definition: SplinePath.h:109
void OnMarkedDirty(Node *node) override
Handle node transform being dirtied.
Definition: RigidBody2D.cpp:556
Variant GetVariant() const
Return a variant attribute, or empty if missing.
Definition: XMLElement.cpp:901
bool SaveWEBP(const ea::string &fileName, float compression=0.0f) const
Save in WebP format with minimum (fastest) or specified compression. Return true if successful....
Definition: Image.cpp:1215
static void RegisterObject(Context *context)
Definition: NavArea.cpp:48
UIElement * GetPlaceholder() const
Definition: DropDownList.h:98
void Define(const BoundingBox &box)
Define from another bounding box.
Definition: BoundingBox.h:146
unsigned lightMask_
Light mask.
Definition: Drawable.h:469
bool FromString(const ea::string &source)
Deserialize from a string. Return true if successful.
Definition: JSONFile.cpp:265
float SaturationHSL() const
Return saturation as defined for HSL.
Definition: Color.cpp:136
Integer value_
Value.
Definition: FlagSet.h:262
void WriteReliableDelta(NetworkFrame frame, Serializer &dest) override
Write reliable delta update. Delta is applied to previous delta or snapshot.
Definition: ReplicatedAnimation.cpp:216
void SetAnchor(const Vector2 &anchor)
Definition: ConstraintWeld2D.cpp:54
bool wordWrap_
Wordwrap mode.
Definition: Text.h:264
void SetInputMapAttr(const ResourceRef &value)
Set input map attribute.
Definition: MoveAndOrbitController.cpp:80
void OnWorldBoundingBoxUpdate() override
Recalculate the world-space bounding box.
Definition: Light.cpp:543
virtual void OnWorldBoundingBoxUpdate()=0
Recalculate the world-space bounding box.
Geometry * geometry_
Geometry.
Definition: Drawable.h:169
BorderImage * GetCursor() const
Definition: LineEdit.h:136
ActionCallHandlerImpl(T *receiver, HandlerFunctionPtr function, void *userData=nullptr)
Construct with receiver and function pointers and userdata.
Definition: CallFunc.h:70
bool BeginLoad(Deserializer &source) override
Definition: PrefabResource.cpp:97
int ignoreJoystickId_
Joystick to ignore (SDL gyroscope virtual joystick)
Definition: FreeFlyController.h:144
T & GetClamped(const IntVector2 &index)
Return element by clamped index.
Definition: Array2D.h:195
int maxSubSteps_
Maximum number of simulation substeps per frame. 0 (default) unlimited, or negative values for adapti...
Definition: PhysicsWorld.h:385
Vector3 absNormal_
Plane absolute normal.
Definition: Plane.h:131
ConstraintPrismatic2D(Context *context)
Construct.
Definition: ConstraintPrismatic2D.cpp:35
FontHintLevel fontHintLevel_
FreeType hinting level (default is FONT_HINT_LEVEL_NORMAL).
Definition: UI.h:455
const ea::string & GetMessage() const
Return message text. Return empty string if there is no message text element.
Definition: SystemMessageBox.cpp:74
void QueueProbeUpdate(ReflectionProbe *reflectionProbe)
Queue reflection probe rendering as soon as possible.
Definition: ReflectionProbe.cpp:257
void GetFace(ea::vector< ea::vector< DecalVertex > > &faces, Drawable *target, unsigned batchIndex, unsigned i0, unsigned i1, unsigned i2, const unsigned char *positionData, const unsigned char *normalData, const unsigned char *skinningData, unsigned positionStride, unsigned normalStride, unsigned skinningStride, const Frustum &frustum, const Vector3 &decalNormal, float normalCutoff)
Get triangle face from the target geometry.
Definition: DecalSet.cpp:806
volatile float timePosition_
Playback time position.
Definition: SoundSource.h:243
MouseButtonFlags mouseButtons_
Mouse buttons held down.
Definition: UI.h:433
void Define(const Vector2 &min, const Vector2 &max)
Define from minimum and maximum vectors.
Definition: Rect.h:146
unsigned fps_
Simulation substeps per second.
Definition: PhysicsWorld.h:383
const Color & GetColor() const
Definition: StaticSprite2D.h:121
void SetValueVector(const PListValueVector &valueVector)
Set value vector.
Definition: PListFile.cpp:180
const CrowdObstacleAvoidanceParams & GetObstacleAvoidanceParams(unsigned obstacleAvoidanceType) const
Get the params for the specified obstacle avoidance type.
Definition: CrowdManager.cpp:552
void UpdateSourceBatches() override
Update source batches.
Definition: StaticSprite2D.cpp:282
void RecreateFixture()
Recreate fixture.
Definition: CollisionEdge2D.cpp:86
static const char ** GetFaceCameraModeNames()
Return FaceCameraMode enum value names.
Definition: BillboardSet.cpp:454
unsigned short GetPort() const
Result may be 0, when connection is not State::Connected or when result is not applicable to the unde...
Definition: NetworkConnection.h:57
const IntVector2 & GetScreenPosition() const override
Update and return screen position.
Definition: Sprite.cpp:88
ParticleGraphSpan updateNodePointers_
Update node pointers.
Definition: ParticleGraphLayer.h:55
Vertex or pixel shader on the GPU.
Definition: ShaderVariation.h:44
float alpha_
Alpha value.
Definition: RaytracerScene.h:53
void SetText(const ea::string &text)
Definition: Text.cpp:292
Matrix4 Transpose() const
Return transposed.
Definition: Matrix4.h:581
bool IsGripPose() const
Return true if this action is hand grip pose.
Definition: VirtualReality.h:123
void SetUseTextureRect(bool useTextureRect)
Definition: StaticSprite2D.cpp:189
const ea::string directory_
Target directory.
Definition: MountedDirectory.h:79
float GetTime() const
Definition: AnimationController.h:80
static constexpr unsigned long long PixelLightBits
Definition: PipelineBatchSortKey.h:42
SignalSubscription()=default
Construct default.
bool SetMode(int bufferLengthMSec, int mixRate, SpeakerMode mode, bool interpolation=true)
Initialize sound output with specified buffer length and output mode.
Definition: Audio.cpp:111
int scrollToEnd_
Number of frames to attempt scrolling to the end. Usually two tries are required to properly complete...
Definition: Console.h:125
SphericalHarmonicsDot9 sphericalHarmonics_
Accumulated SH lights and ambient light.
Definition: LightAccumulator.h:199
IntVector2 SumTouchPositions(UI::DragData *dragData, const IntVector2 &oldSendPos)
Sum touch positions and return the begin position ready to send.
Definition: UI.cpp:2076
SharedPtr< Material > noTextureMaterial_
Definition: UI.h:495
float frequency_
Frequency.
Definition: SoundSource.h:170
bool textDirty_
Text needs update flag.
Definition: Text3D.h:272
const XMLFile * GetFile() const
Definition: XMLElement.cpp:1088
bool bakeLightmap_
Whether the lightmap is enabled.
Definition: Terrain.h:327
LightmapChartBakedDirect(unsigned lightmapSize)
Construct valid.
Definition: LightTracer.h:50
static void RegisterObject(Context *context)
Definition: StaticSprite2D.cpp:60
int GetLayoutSpacing() const
Definition: UIElement.h:649
Currently playing animations.
Definition: AnimationController.h:264
int GetWidth() const
Definition: Graphics.h:172
static constexpr unsigned Calculate(const char *data, unsigned length)
Calculate hash value from binary data.
Definition: StringHash.h:141
void SetCullMode(CullMode mode)
Set culling mode.
Definition: OcclusionBuffer.cpp:133
bool IsModal() const
Definition: Window.h:133
bool isInstancingUsed_
Definition: ShaderProgramCompositor.h:56
void SetCustomGImpactMesh(CustomGeometry *custom, const Vector3 &scale=Vector3::ONE, const Vector3 &position=Vector3::ZERO, const Quaternion &rotation=Quaternion::IDENTITY)
Set as a triangle mesh from CustomGeometry.
Definition: CollisionShape.cpp:700
void SetSnapToPixels(bool enable)
Set whether to snap text to pixels. Has effect only if fixed screen size is enabled.
Definition: Text3D.cpp:381
ea::list< AsyncExecRequest * > asyncExecQueue_
Async execution queue.
Definition: FileSystem.h:144
void SetVertexBuffers(const ea::vector< SharedPtr< VertexBuffer >> &vertexBuffers)
Set all vertex buffers at once.
Definition: Geometry.cpp:88
Rect(const float data[]) noexcept
Construct from a float array.
Definition: Rect.h:64
unsigned char ReadUByte()
Read an 8-bit unsigned integer.
Definition: Deserializer.cpp:115
bool resetViews_
Flag for views needing reset.
Definition: Renderer.h:379
ResourceRef(StringHash type)
Construct with type only and empty id.
Definition: Variant.h:119
Pass * litBasePass_
Lit base pass (per-pixel lighting from one light source and ambient lighting).
Definition: DrawableProcessor.h:102
unsigned GetNumAxes() const
Definition: Input.h:102
virtual void UpdateBatches(const FrameInfo &frame)
Calculate distance and prepare batches for rendering. May be called from worker thread(s),...
Definition: Drawable.cpp:145
int GetHeight() const
Return height.
Definition: Array2D.h:46
void SetWalkIncrement(const Vector3 &walkDir)
Set walk increment. This is neither a direction nor a velocity, but the amount to increment the posit...
Definition: KinematicCharacterController.cpp:577
bool recreateShape_
Recreate collision shape flag.
Definition: CollisionShape.h:338
VectorBuffer readBuffer_
Read buffer for the main thread.
Definition: HttpRequest.h:108
bool isWatching_
Are file watchers enabled.
Definition: VirtualFileSystem.h:102
Placeholder that doesn't represent any object in SerializeOptionalValue.
Definition: ArchiveSerializationBasic.h:226
float GetKerning(unsigned c, unsigned d) const
Return the kerning for a character and the next character.
Definition: FontFace.cpp:67
bool IsAlphaMask() const
Return whether the pass uses cutout transparency via ALPHAMASK.
Definition: Technique.h:158
float GetBrightness() const
Definition: Light.h:323
WeakPtr< RigidBody > hullBody_
Hull RigidBody.
Definition: RaycastVehicle.h:159
void ProcessClickEnd(const IntVector2 &windowCursorPos, MouseButton button, MouseButtonFlags buttons, QualifierFlags qualifiers, Cursor *cursor, bool cursorVisible)
Handle button or touch end.
Definition: UI.cpp:1436
bool HasElement(VertexElementSemantic semantic, unsigned char index=0) const
Return whether has a specified element semantic.
Definition: VertexBuffer.h:76
void Swap(ArrayDimensions2D &other)
Swap with other array dimensions.
Definition: Array2D.h:95
void SetTitle(const ea::string &text)
Set title text. No-ops if there is no title text element.
Definition: SystemMessageBox.cpp:59
ea::string GetDebugInfo() const
Definition: ServerReplicator.cpp:749
void Clear()
Clear all faces.
Definition: Polyhedron.cpp:232
void SetOcclusionLodLevel(unsigned level)
Definition: Terrain.cpp:219
Definition: AutoExposurePass.h:63
void PatchRemove(const pugi::xpath_node &original) const
Remove a node or attribute in the Patch.
Definition: XMLFile.cpp:297
Vector3 GetDisplayDPI(int monitor=0) const
Definition: Graphics.cpp:480
Vector2 Size() const
Definition: Rect.h:206
bool IsTypeOf() const
Check current type is type of specified class type.
Definition: TypeInfo.h:47
CrowdAgent(Context *context)
Construct.
Definition: CrowdAgent.cpp:78
int Bottom() const
Return bottom coordinate.
Definition: Rect.h:480
Utility to process render camera (not cull camera!).
Definition: CameraProcessor.h:38
ea::unordered_map< StringHash, ea::vector< SharedPtr< ShaderVariation > > > extraPixelShaders_
Pixel shaders with extra defines from the renderpath.
Definition: Technique.h:246
void SetPrefab(PrefabResource *prefab, ea::string_view path={}, bool createInstance=true, PrefabInstanceFlags instanceFlags=PrefabInstanceFlag::None)
Definition: PrefabReference.cpp:288
Rml::ElementDocument * ReloadDocument(Rml::ElementDocument *document)
Unload passed document and load it's rml again, return newly loaded document. This operation preserve...
Definition: RmlUI.cpp:904
void OnSetEnabled() override
Handle enabled/disabled state change.
Definition: Constraint.cpp:124
StringHash type_
Object type.
Definition: Variant.h:202
Vector3 size_
Shape size.
Definition: CollisionShape.h:328
void SetRadiusThickness(float value)
Set Radius Thickness.
Definition: Sphere.cpp:77
float ambientBrightness_
Ambient brightness.
Definition: Zone.h:211
ea::vector< Vector3 > offMeshVertices_
Offmesh connection vertices.
Definition: NavBuildData.h:69
ParticleEmitter2D(Context *context)
Construct.
Definition: ParticleEmitter2D.cpp:43
Definition: BurstTimerInstance.h:34
void MarkSolversDirty()
Notify host component that the list of solvers is dirty and needs to be rebuilt.
Definition: IKSolver.h:42
void SetShapeTextureAttr(const ResourceRef &value)
Set shape texture attribute.
Definition: Light.cpp:521
ea::string loadTextureName_
Texture name used while loading.
Definition: SpriteSheet2D.h:102
void SetScale(const Vector2 &scale)
Definition: Sprite.cpp:165
void MarkBodyDirty()
Mark body dirty.
Definition: RigidBody.h:312
int GetMipsToSkip(MaterialQuality quality) const
Definition: Texture.cpp:169
void ConvertToNodes()
Convert component selection to node selection.
Definition: SceneSelection.cpp:185
ea::vector< WeakPtr< RigidBody2D > > rigidBodies_
Rigid bodies.
Definition: PhysicsWorld2D.h:271
DynamicNavBuildData(dtTileCacheAlloc *allocator)
Constructor.
Definition: NavBuildData.cpp:70
void SetMouseMode(MouseMode mode)
Set the mouse mode.
Definition: StateManager.cpp:155
void RunGraph(ea::span< ParticleGraphNodeInstance * > &nodes, UpdateContext &updateContext)
Run graph.
Definition: ParticleGraphLayerInstance.cpp:235
Variant(const Quaternion &value)
Construct from a quaternion.
Definition: Variant.h:560
static ea::string ToString(const ea::unique_ptr< T > &value)
Convert type to string.
Definition: Variant.h:353
static void RegisterObject(Context *context)
Definition: Sprite2D.cpp:49
const JSONValue & Get(const ea::string &key) const
Return JSON value with key.
Definition: JSONValue.cpp:348
Base class for serializable resource that uses Archive serialization.
Definition: SerializableResource.h:14
Definition: RenderMesh.h:37
void HandleMouseModeRequest(StringHash eventType, VariantMap &eventData)
Handle request for mouse mode on web platform.
Definition: StateManager.cpp:284
Write-only viewport depth-stenil texture.
Definition: RenderBuffer.h:140
void SetScale(const Vector3 &scale)
Set scaling elements.
Definition: Matrix4.h:504
Vector3 direction_
Wheel direction.
Definition: RaycastVehicleWheel.h:219
Color modalShadeColor_
Modal shade color, used when modal flag is set.
Definition: Window.h:184
bool RemoveChild(const XMLElement &element)
Remove a child element. Return true if successful.
Definition: XMLElement.cpp:162
bool readableDepth_
Whether the depth buffer should be readable.
Definition: RenderPipelineDefs.h:177
Graph node.
Definition: GraphNode.h:67
static void RegisterObject(ParticleGraphSystem *context)
Register particle node factory.
Definition: TimeStepScale.cpp:38
~Drawable() override
Destruct.
Definition: Drawable.cpp:98
float rotationEnd_
Rotation end.
Definition: ParticleEffect2D.h:327
b2RevoluteJointDef jointDef_
Box2D joint def.
Definition: ConstraintRevolute2D.h:99
~MountPoint() override
Destruct.
unsigned mipsToSkip_[MAX_TEXTURE_QUALITY_LEVELS]
Mip levels to skip when loading per texture quality setting.
Definition: Texture.h:229
Tmx image layer.
Definition: TmxFile2D.h:130
void SetDampingCompression(float compression)
Set wheel damping compression.
void CalculateAttributeTrack(Variant &output, const VariantAnimationTrack &track, unsigned &frame, float baseWeight) const
Apply single attribute track to target object. Key frame hint is updated on call.
Definition: AnimationState.cpp:373
Variant(const Rect &value)
Construct from a rect.
Definition: Variant.h:632
Definition: BehaviorNetworkObject.h:76
bool GetDrawDebug() const
Definition: Viewport.h:98
SharedPtr< ActionState > StartAction(Object *target) override
Create new action state from the action.
Definition: Attribute.cpp:107
StringHash destinationState_
Destination state.
Definition: StateManager.h:261
@ AM_NOEDIT
Attribute should not be shown in the editor.
Definition: Attribute.h:43
void RenderGeometryBuffer(Viewport *viewport, int textureSize)
Render geometry buffer. May be called only once.
Definition: LightmapRenderPipeline.cpp:51
Physics raycast hit.
Definition: PhysicsWorld.h:79
void SetShape(const ea::string &shape)
Definition: Cursor.cpp:176
float GetDampingRelaxation() const
Get wheel damping relaxation.
void Clear()
Clear collection.
Definition: LightProbeGroup.h:116
bool bufferSizeDirty_
Buffers need resize flag.
Definition: BillboardSet.h:220
static void Serialize(Archive &archive, const char *name, T &value)
Serialize type.
Definition: Variant.h:326
float GetAgentMaxClimb() const
Definition: NavigationMesh.h:242
bool CheckVisibility(Drawable2D *drawable) const
Check visibility.
Definition: Renderer2D.cpp:269
static const Vector4 ZERO
Zero vector.
Definition: Vector4.h:258
void SetAnimationAttr(const ea::string &name)
Definition: AnimatedSprite2D.cpp:224
IteratorRange(const T &begin, const T &end)
Construct valid.
Definition: IteratorRange.h:37
Color ReadColor(const XMLElement &element, const ea::string &name) const
Read Color.
Definition: ParticleEffect2D.cpp:532
void SetAgentMaxSlope(float maxSlope)
Definition: NavigationMesh.cpp:306
LightmapStitchingSettings stitching_
Stitching settings.
Definition: LightBakingSettings.h:215
void SetCellSize(float size)
Definition: NavigationMesh.cpp:281
Quaternion(float angle) noexcept
Construct from an angle (in degrees, for Urho2D).
Definition: Quaternion.h:102
~Window() override
Destruct.
void RemoveConstraint2D(Constraint2D *constraint)
Remove constraint.
Definition: RigidBody2D.cpp:469
ea::unordered_map< unsigned, Component * > replicatedComponents_
Replicated components by ID.
Definition: Scene.h:325
void ProcessShadowCasters()
Internal. Finalize shadow casters processing.
Definition: DrawableProcessor.cpp:747
static void RegisterObject(Context *context)
Definition: ParticleEffect2D.cpp:111
void SetPosition(const Vector3 &position)
Definition: RigidBody.cpp:218
void SetRelative(bool enable)
Definition: BillboardSet.cpp:311
void SetFogHeightScale(float scale)
Definition: Zone.cpp:160
void DrawDebugGeometry()
Add debug geometry to the debug renderer.
Definition: PhysicsWorld2D.cpp:344
bool ProcessMessage(NetworkMessageId messageId, MemoryBuffer &messageData)
Process messages for this client.
Definition: ServerReplicator.cpp:294
float Distance(const Vector3 &point) const
Return distance of a point to the frustum, or 0 if inside.
Definition: Frustum.h:162
constexpr FlagSet & operator|=(const Enum value)
Bitwise OR against Enum value.
Definition: FlagSet.h:90
ParticleGraphNodeInstance * CreateInstanceAt(void *ptr, ParticleGraphLayerInstance *layer) override
Place new instance at the provided address.
Definition: Random.h:68
unsigned targetNode_
Target node.
Definition: GraphPin.h:123
static void RegisterObject(ParticleGraphSystem *context)
Register particle node factory.
Definition: Multiply.cpp:38
Parallel(Context *context)
Construct.
Definition: Parallel.cpp:87
void SetInt(int value)
Set int.
Definition: PListFile.cpp:124
Vector3 previousPosition_
Agent's previous position used to check for position changes.
Definition: CrowdAgent.h:283
ea::vector< unsigned char > GetBuffer(const ea::string &name) const
Return buffer attribute, or empty if missing.
Definition: XMLElement.cpp:822
void SetDrawableIndex(unsigned drawableIndex)
Update drawable index.
Definition: Drawable.h:432
bool BeginLoad(Deserializer &source) override
Load resource from stream. May be called from a worker thread. Return true if successful.
Definition: JSONFile.cpp:115
ParticleGraphNodeInstance * CreateInstanceAt(void *ptr, ParticleGraphLayerInstance *layer) override
Place new instance at the provided address.
Definition: Slerp.cpp:62
void PrepareInstancingBuffer(PipelineBatchGroup< PipelineBatchByState > &batches)
Definition: BatchRenderer.cpp:1028
btCollisionConfiguration * collisionConfig_
Override for the collision configuration (default btDefaultCollisionConfiguration).
Definition: PhysicsWorld.h:137
bool shadowedPending_
Shadowed flag.
Definition: VertexBuffer.h:147
Definition: WrappedScalar.h:33
void UpdateNodeIds()
Update the Node IDs of the Control Points.
Definition: SplinePath.cpp:326
SharedPtr< PipelineState > CreateUIBatchPipelineState(const UIBatchStateKey &key, const UIBatchStateCreateContext &ctx) override
Definition: BatchStateCache.cpp:150
@ ASYNC_LOADING
In progress of calling BeginLoad() in a worker thread.
Definition: Resource.h:76
ShaderVariation * GetShader(ShaderType type, const ea::string &name, const ea::string &defines=EMPTY_STRING) const
Return a shader variation by name and defines.
Definition: Graphics.cpp:582
Definition: AmbientOcclusionPass.h:82
float rotatePerSecond_
Rotate per second.
Definition: ParticleEffect2D.h:317
AttributeTo(Context *context)
Construct.
Definition: Attribute.cpp:113
void SetOutputDesc(const PipelineStateOutputDesc &outputDesc)
Set currently used output description. Invalidates cache if it has changed.
Definition: BatchStateCache.cpp:44
ea::vector< ea::vector< unsigned > > geometryBoneMappings_
Mapping of subgeometry bone indices, used if more bones than skinning shader can manage.
Definition: AnimatedModel.h:220
const SceneProcessorSettings & GetSettings() const
Definition: SceneProcessor.h:94
ea::string entity_
Entity name.
Definition: AnimatedSprite2D.h:141
XMLElement GetOrCreateChild(const ea::string &name)
Return the first child element with name or create if does not exist.
Definition: XMLElement.cpp:124
unsigned GetNumAnimations() const
Definition: AnimationSet2D.cpp:155
void HandleNodeCollisionEnd(StringHash eventType, VariantMap &eventData)
Handle trigger been exited.
Definition: TriggerAnimator.cpp:156
static unsigned char * GetImageData(Deserializer &source, int &width, int &height, unsigned &components)
Decode an image using stb_image.
Definition: Image.cpp:2119
unsigned GetFrameNumber() const
Definition: Timer.h:99
Definition: CubemapRenderer.h:52
void ResetToDefaults()
Reset to defaults.
Definition: ParticleGraphEffect.cpp:88
bool IsInternal() const
Definition: UIElement.h:623
CollisionGeometryDataCache convexCache_
Cache for convex geometry data by model and LOD level.
Definition: PhysicsWorld.h:373
IntRect imageRect_
Image rectangle.
Definition: Cursor.h:82
static void RegisterObject(ParticleGraphSystem *context)
Register particle node factory.
Definition: Noise3D.cpp:38
float GetFontSize() const
Definition: Text3D.cpp:423
void UpdateCursor()
Update cursor position and restart cursor blinking.
Definition: LineEdit.cpp:600
ea::vector< SourceBatch2D > sourceBatches_
Source batches.
Definition: Drawable2D.h:150
RefCount * refCount_
Pointer to the reference count structure.
Definition: RefCounted.h:123
Matrix4() noexcept
Construct an identity matrix.
Definition: Matrix4.h:42
void SetOcclusionLodLevelAttr(unsigned value)
Set occlusion LOD level attribute.
Definition: Terrain.cpp:810
void AddTags(const ea::string &tags, char separator=';')
Add tags with the specified separator (; by default).
Definition: UIElement.cpp:1509
void DisableLayoutUpdate()
Disable automatic layout update. Should only be used if there are performance problems.
Definition: UIElement.cpp:1235
Application(Context *context)
Construct. Parse default engine parameters from the command line, and create the engine in an uniniti...
Definition: Application.cpp:62
WeakPtr< CrowdManager > crowdManager_
Crowd manager.
Definition: CrowdAgent.h:251
Definition: ParticleGraph.h:94
Texture2D * GetRenderTarget() const
Returns texture to which this UI is rendered.
Definition: UI.h:281
unsigned char * GetData() const
Return memory area.
Definition: MemoryBuffer.h:59
void SetDragBeginInterval(float interval)
Definition: UI.cpp:589
const ea::string & GetProperty(const ea::string &name) const
Return property.
Definition: TileMapLayer2D.cpp:262
WeakPtr< TerrainPatch > west_
West neighbor patch.
Definition: TerrainPatch.h:148
InterpMethod interpolationMethod_
Interpolation method.
Definition: ValueAnimation.h:162
bool LoadJSON(const JSONValue &source) override
Load from JSON data. Return true if successful.
Definition: Animatable.cpp:125
2D motor constraint component.
Definition: ConstraintMotor2D.h:31
MaterialQuality textureQuality_
Texture quality level.
Definition: Renderer.h:375
float GetAngle() const
Return angle.
Definition: ParticleEffect2D.h:156
void SetConsoleHeight(unsigned height)
Set console height.
Definition: Console.cpp:95
bool operator==(const WeakPtr< U1, U2 > &rhs) const noexcept
Test for equality with another weak pointer.
Definition: Ptr.h:502
virtual void Suspend(Archive &output)
Called on SuspendApplication().
Definition: PluginApplication.h:96
Container subsystems_
Subsystems (dynamic hash map).
Definition: SubsystemCache.h:128
virtual bool SaveJSON(JSONValue &dest) const
Save as JSON data. Return true if successful.
Definition: Serializable.cpp:320
float GetDuration() const
Get effect duration in seconds.
Definition: ParticleGraphLayer.h:99
unsigned GetNumMorphs() const
Definition: AnimatedModel.h:119
ea::string stitchSeamsTechniqueName_
Technique used for seams rendering during stitching.
Definition: LightBakingSettings.h:156
StringHash GetNameHash() const
Definition: GraphNode.h:46
void UpdateEventSubscription()
Subscribe/unsubscribe to update events based on current enabled state and update event mask.
Definition: MoveAndOrbitController.cpp:198
float GetBrakeFactor() const
Get brake factor.
float GetMaxEmissionRate() const
Definition: ParticleEffect.h:346
float y_
Y coordinate.
Definition: Quaternion.h:501
WeakPtr< Camera > rightEye_
Right eye camera pointer.
Definition: Viewport.h:127
unsigned tailColumn_
Number of columns for every tails.
Definition: RibbonTrail.h:268
float drawDistance_
Draw distance.
Definition: Drawable.h:481
void SetImageBorder(const IntRect &rect)
Definition: BorderImage.cpp:103
SystemUI widget to preview texture.
Definition: Texture2DWidget.h:34
void AddRigidBody(RigidBody2D *rigidBody)
Add rigid body.
Definition: PhysicsWorld2D.cpp:439
float RandomNormal(float meanValue, float variance)
Return a random normal distributed number with the given mean value and variance.
Definition: MathDefs.h:362
void Clear(const Color &color)
Clear the image with a color.
Definition: Image.cpp:1042
ParticleGraphLayer * GetLayer() const
Get graph layer.
Definition: TemplateNode.h:93
unsigned indexCount_
Index count.
Definition: Model.h:84
bool IsResourceLoaded(const ea::string &resourceName)
Returns true if file was opened since last call to ClearOpenedFiles().
Definition: RmlFile.cpp:86
unsigned NumMountPoints() const
Get number of mount points.
Definition: VirtualFileSystem.h:50
unsigned GetMaxLodLevels() const
Definition: Terrain.h:147
Definition: ModelView.h:48
WeakPtr< Drawable2D > owner_
Owner.
Definition: Drawable2D.h:68
bool IsStarted() const
Return whether the application is started now.
Definition: PluginManager.h:59
Geometry * GetGeometry(unsigned index, unsigned lodLevel) const
Return geometry by index and LOD level. The LOD level is clamped if out of range.
Definition: Model.cpp:739
void CallFromMainThread(WorkFunction workFunction)
Definition: WorkQueue.cpp:586
static bool IsMainThread()
Return whether is executing in the main thread.
Definition: Thread.cpp:212
Light probe description.
Definition: LightProbeGroup.h:40
SharedPtr< FiniteTimeAction > Reverse() const override
Create reversed action.
Definition: Move.cpp:452
unsigned nonModalBatchSize_
Non-modal batch size (used internally for rendering).
Definition: UI.h:463
Constraint2D(Context *context)
Construct.
Definition: Constraint2D.cpp:39
bool GetNextChange(FileChange &dest)
Return a file change (true if was found, false if not).
Definition: MultiFileWatcher.cpp:53
Technique * FindTechnique(Drawable *drawable, MaterialQuality materialQuality) const
Find best technique for given drawable and quality settings.
Definition: Material.cpp:896
WeakPtr(const WeakPtr< U1, U2 > &rhs) noexcept
Copy-construct from another weak pointer allowing implicit upcasting.
Definition: Ptr.h:367
void GetBatches(ea::vector< UIBatch > &batches, ea::vector< float > &vertexData, const IntRect ¤tScissor) override
Return UI rendering batches.
Definition: Text.cpp:119
void Update()
Update reflection probes if dirty. Usually called internally once per frame.
Definition: ReflectionProbe.cpp:269
ParticleGraphPin & GetPin(unsigned index) override
Get pin by index.
Definition: Attribute.h:127
void SetDrawJoint(bool drawJoint)
Definition: PhysicsWorld2D.cpp:365
float GetMaxForce() const
Definition: ConstraintMotor2D.h:70
void Define(const Vector2 &point)
Define from a point.
Definition: Rect.h:153
const ea::string & GetPath() const
Return the path being watched, or empty if not watching.
Definition: FileWatcher.h:85
void AddComponent(unsigned oldID, Component *component)
Remember a created component.
Definition: SceneResolver.cpp:53
ea::vector< LightProbeGroup * > lightProbeGroups_
Unique light probe groups.
Definition: BakedSceneCollector.h:123
Definition: WorldToLocalInstance.h:35
float GetDampingRatio() const
Definition: ConstraintWheel2D.h:92
void ProcessRemoteEvent(int msgID, MemoryBuffer &msg)
Process a remote event message from the client or server. Called by Network.
Definition: Connection.cpp:639
virtual bool SaveDefaultAttributes(const AttributeInfo &attr) const
Return whether should save default-valued attributes into XML. Default false.
Definition: Serializable.h:90
void SetShaderParameterAnimation(const ea::string &name, ValueAnimation *animation, WrapMode wrapMode=WM_LOOP, float speed=1.0f)
Set shader parameter animation.
Definition: Material.cpp:664
bool WriteVariantData(const Variant &value)
Write a variant without the type information.
Definition: Serializer.cpp:264
float scaleX_
X scaling for viewport transform.
Definition: OcclusionBuffer.h:219
void SetUVTransform(const Vector2 &offset, float rotation, const Vector2 &repeat)
Set texture coordinate transform.
Definition: Material.cpp:734
float GetDuration() const override
Get action duration.
Definition: Repeat.cpp:103
float PitchAngle() const
Definition: Quaternion.cpp:223
FocusParameters shadowFocus_
Shadow map focus parameters.
Definition: Light.h:485
HiresTimer()
Construct. Get the starting high-resolution clock value.
Definition: Timer.cpp:223
void setWorldTransform(const btTransform &worldTrans) override
Definition: RigidBody.cpp:157
SharedPtr< XMLFile > loadXMLFile_
XML file used while loading.
Definition: SpriteSheet2D.h:98
Definition: EffectTimeInstance.h:34
bool GetLineAntiAlias() const
Definition: Material.h:296
GraphPinRef< GraphEnterPin > GetEnter(const ea::string_view name)
Get enter pin by name.
Definition: GraphNode.cpp:222
virtual void Start()
Setup after engine initialization and before running the main loop. Call ErrorExit() to terminate wit...
Definition: Application.h:53
void SetLinearVelocity(const Vector3 &velocity)
Set linear velocity.
Definition: KinematicCharacterController.cpp:612
void ForEachTriangle(T callback)
Iterate all triangles in primitive. Callback is called with three vertex indices.
Definition: ModelView.h:165
bool softwareSkinning_
Software skinning flag.
Definition: AnimatedModel.h:240
bool Equals(const Matrix4 &rhs, float eps=M_EPSILON) const
Test for equality with another matrix with epsilon.
Definition: Matrix4.h:618
Data used for Delaunay triangulation.
Definition: TetrahedralMesh.h:369
3-vector with double precision.
Definition: TetrahedralMesh.h:42
float GetShadowDistance() const
Definition: Terrain.h:206
void SetTemporary(bool enable)
Definition: Serializable.cpp:510
void Transform(const Matrix3 &transform)
Transform with a 3x3 matrix.
Definition: BoundingBox.cpp:116
void SetEnabled(bool state)
Definition: Microphone.cpp:87
Vector3 GetPoint(float theta, float phi) const
Return point on the sphere.
Definition: Sphere.h:222
void Normalize()
Normalize to unit length.
Definition: Vector2.h:304
SharedPtr< ActionState > StartAction(Object *target) override
Create new action state from the action.
Definition: Ease.cpp:257
void WriteReliableDelta(NetworkFrame frame, Serializer &dest) override
Write reliable delta update. Delta is applied to previous delta or snapshot.
Definition: BehaviorNetworkObject.cpp:282
void FromString(const ea::string &type, const ea::string &value)
Set from typename and value strings. Pointers will be set to null, and VariantBuffer or VariantMap ty...
Definition: Variant.cpp:451
Sprite timeline key.
Definition: SpriterData2D.h:295
unsigned ToHash() const
Return precomputed parameter hash.
Definition: TextRenderer3D.h:83
void Render()
Update vertex buffer and render all debug lines. The viewport and rendertarget should be set before.
Definition: DebugRenderer.cpp:543
IntVector2 GetDesiredCanvasSize() const
Returns a size that this UI screen will cover.
Definition: RmlUI.cpp:793
XML output archive block.
Definition: XMLArchive.h:77
unsigned LocalToRemoteTime(unsigned time) const override
Convert local timestamp to remote timestamp.
Definition: Connection.cpp:700
Memory layout definition.
Definition: ParticleGraphMemory.h:31
unsigned totalDataSize_
Total data size in the package using each entry's actual size if it is a compressed package file.
Definition: PackageFile.h:127
void SetUsePhysicalValues(bool enable)
Definition: Light.cpp:303
const ea::vector< Bone > & GetBones() const
Return all bones.
Definition: Skeleton.h:122
int GetMaskBits() const
Definition: CollisionShape2D.h:88
void SetWordwrap(bool enable)
Definition: Text3D.cpp:279
void ClearLoadedResources()
Clear a set of opened files.
Definition: RmlFile.h:62
Base class for creating dynamically linked plugins.
Definition: PluginApplication.h:36
void SetPosition(const Vector3 &position)
Set position from 3-vector.
Definition: ModelView.h:75
@ LM_FORCE_LOOPED
Force looped.
Definition: AnimatedSprite2D.h:44
~PhysicsWorld2D() override
Destruct.
Definition: PhysicsWorld2D.cpp:65
RigidBody2D * GetOwnerBody() const
Definition: Constraint2D.h:69
void FromAxes(const Vector3 &xAxis, const Vector3 &yAxis, const Vector3 &zAxis)
Define from orthonormal axes.
Definition: Quaternion.cpp:96
unsigned GetDataSize(int width, int height) const
Return data size in bytes for a rectangular region.
Definition: Texture.cpp:344
ea::string * stringValue_
Definition: JSONValue.h:332
ParticleGraph * graph_
Parent graph.
Definition: ParticleGraphNode.h:123
float cursorSpeed_
Current cursor velocity.
Definition: PointerAdapter.h:118
StaticModelGroup(Context *context)
Construct.
Definition: StaticModelGroup.cpp:47
const ea::string & GetTitle() const
Definition: FileSelector.cpp:259
ListView(Context *context)
Construct.
Definition: ListView.cpp:175
ea::string verb_
Verb.
Definition: HttpRequest.h:96
unsigned GetVertexStart() const
Definition: Geometry.h:107
Definition: LengthInstance.h:31
void Serialize(Archive &archive, const char *name) override
Serialize to Archive.
Definition: Variant.h:423
void SetEmitter(ParticleGraphEmitter *emitter)
Set emitter reference.
Definition: ParticleGraphLayerInstance.cpp:199
ParticleGraph * GetGraph()
Get graph.
Definition: ParticleGraphNode.h:55
NormalizedEffectTime(Context *context)
Construct NormalizedEffectTime.
Definition: NormalizedEffectTime.cpp:44
Camera * GetEye(int) const
Get the given eye by index, starting from the left.
Definition: Viewport.cpp:283
void SetLoggerVisible(const ea::string &loggerName, bool visible)
Set visibility of certain loggers in the console.
Definition: Console.cpp:421
float DistanceToBoundingBox(const BoundingBox &box) const
Return distance to another bounding box.
Definition: BoundingBox.cpp:214
void SetSkidInfoCumulative(float skidInfo)
Set skid info cumulative.
Color color_
Color.
Definition: TextRenderer3D.h:143
bool FilterImplicitAttributes(XMLElement &dest) const override
Filter implicit attributes in serialization process.
Definition: ListView.cpp:945
~RmlCanvasComponent() override
Destruct.
Definition: RmlCanvasComponent.cpp:61
ControllerAxis GetControllerAxis() const
Get controller button.
Definition: InputMap.h:76
Rml::DataEventFunc WrapCallback(void(T::*callback)())
Wrap data event callback.
Definition: RmlUIComponent.h:110
bool SetScreenMode(const WindowSettings &windowSettings)
Definition: Graphics.cpp:155
Component(Context *context)
Construct.
Definition: Component.cpp:54
Packed nodes and components.
Definition: PackedSceneData.h:92
virtual IntVector2 ElementToScreen(const IntVector2 &position)
Convert element coordinates to screen coordinates.
Definition: UIElement.cpp:495
Aggregated settings of the IK solver.
Definition: InverseKinematics.h:38
bool emitting_
Currently emitting flag.
Definition: ParticleGraphEmitter.h:143
WeakPtr< Scene > scene_
Extra weak pointer to scene to allow for cleanup in case the world is destroyed before other componen...
Definition: PhysicsWorld.h:357
T * GetCustomPtr()
Return a pointer to a modifiable custom variant value or null on type mismatch.
Definition: Variant.h:1613
ea::vector< Drawable * > & result_
Result vector reference.
Definition: OctreeQuery.h:61
IntVector2 minOffset_
Minimum offset.
Definition: UIElement.h:892
ea::hash_set< Technique * > shaderErrorDisplayed_
Techniques for which missing shader error has been displayed.
Definition: Renderer.h:367
ea::vector< unsigned > morphRangeCounts_
Vertex buffer morph range vertex count.
Definition: Model.h:253
unsigned FloatToRawIntBits(float value)
Return a representation of the specified floating-point value as a single format bit layout.
Definition: MathDefs.h:116
SharedPtr< XMLFile > defaultStyle_
Default style file.
Definition: UIElement.h:920
b2WheelJointDef jointDef_
Box2D joint def.
Definition: ConstraintWheel2D.h:99
XrSessionState sessionState_
Current session state.
Definition: OpenXR.h:315
void SetChildOffset(const IntVector2 &offset)
Set child offset.
Definition: UIElement.cpp:1846
Definition: AnimationTrack.h:54
ObjectType
Object type.
Definition: SpriterData2D.h:196
const T & GetWrapped(const IntVector2 &index) const
Return constant element by wrapped index.
Definition: Array2D.h:201
Definition: FullScreenShaderPass.h:36
bool drawDebugGeometry_
Definition: RenderPipelineDefs.h:670
bool GetShadowCompare() const
Return whether shadow compare is enabled.
Definition: Texture.h:140
Mainline key.
Definition: SpriterData2D.h:166
void RemoveAllTags()
Remove all tags.
Definition: UIElement.cpp:1531
void UpdateShape()
Update the collision shape after attribute changes.
Definition: CollisionShape.cpp:990
unsigned EvaluateInstanceSize() const override
Evaluate size required to place new node instance.
Definition: Circle.cpp:59
Vector3 HeightMapToWorld(const IntVector2 &pixelPosition) const
Convert heightmap pixel position to world position.
Definition: Terrain.cpp:597
ea::vector< WeakPtr< Node > > instanceNodes_
Instance nodes.
Definition: StaticModelGroup.h:89
FileIdentifier GetCanonicalIdentifier(const FileIdentifier &fileName) const
Return canonical file identifier, if possible.
Definition: VirtualFileSystem.cpp:289
void AddTriangleMesh(const void *vertexData, unsigned vertexSize, const void *indexData, unsigned indexSize, unsigned indexStart, unsigned indexCount, const Matrix3x4 &transform, const Color &color, bool depthTest=true)
Add a triangle mesh.
Definition: DebugRenderer.cpp:425
Vector3 spacing_
Vertex spacing.
Definition: CollisionShape.h:136
void Initialize()
Initialize when screen mode initially set.
Definition: UI.cpp:857
float y_
Y coordinate.
Definition: Text.h:70
const void * indexData_
Index data pointer. Null if using non-indexed geometry.
Definition: OcclusionBuffer.h:75
BoundingBox boundingBox_
Bounding box.
Definition: BakedSceneCollector.h:125
~Renderer2D() override
Destruct.
float GetNormalFloat(float mean, float sigma)
Return random float with normal distribution.
Definition: RandomEngine.h:106
void OnNodeSet(Node *previousNode, Node *currentNode) override
Handle node being assigned.
Definition: AnimatedModel.cpp:808
float Ease(float time) const override
Apply easing function to the time argument.
Definition: Ease.h:379
void SetTextCopyable(bool enable)
Definition: LineEdit.cpp:530
unsigned GetClockBufferSize() const
Return number of clock synchronization samples used.
Definition: Network.h:100
BoundingBox(const Vector3 *vertices, unsigned count)
Construct from an array of vertices.
Definition: BoundingBox.h:92
void OnWorldBoundingBoxUpdate() override
Recalculate the world-space bounding box.
Definition: Skybox.cpp:100
Reference to input shader resource. Only textures are supported now.
Definition: RenderPipelineDefs.h:705
Operating system thread.
Definition: Thread.h:40
void SetDrawObstacles(bool enable)
Definition: DynamicNavigationMesh.h:99
StringVariantMap engineParameters_
Engine parameters defined from the code.
Definition: Application.h:73
bool Exists(const FileIdentifier &fileName) const
Check if a file exists in the virtual file system.
Definition: VirtualFileSystem.cpp:375
unsigned Write(const void *data, unsigned size) override
Write bytes to the buffer. Return number of bytes actually written.
Definition: VectorBuffer.cpp:76
static bool IsZero(const T &value)
Check whether the value is zero.
Definition: Variant.h:300
Helper class to mount and unmount an object automatically.
Definition: VirtualFileSystem.h:106
void StopWatching()
Stop watching the directory.
Definition: FileWatcher.cpp:195
void ResetDependencies(Resource *resource)
Reset dependencies for a resource.
Definition: ResourceCache.cpp:682
void Initialize(unsigned numThreads)
Create worker threads. Can only be called once.
Definition: WorkQueue.cpp:282
int layoutSpacing_
Layout spacing.
Definition: UIElement.h:831
bool InitializeSystem(RenderBackend backend)
Initialize the OpenXR subsystem. Renderer backend is not yet initialized at this point.
Definition: OpenXR.cpp:1319
void RecreateFixture()
Recreate fixture.
Definition: CollisionPolygon2D.cpp:107
ArrayDimensions2D(const IntVector2 &size)
Construct with given size as vector (implicitly convertible).
Definition: Array2D.h:41
bool skinned_
Skinned mode flag.
Definition: DecalSet.h:256
~FiniteTimeActionState() override
Destruct.
Definition: FiniteTimeActionState.cpp:41
bool skinNormals_
Whether the buffer has normals affected by skeletal animation.
Definition: SoftwareModelAnimator.h:39
EventReceiverGroup * GetEventReceivers(Object *sender, StringHash eventType)
Return event receivers for a sender and event type, or null if they do not exist.
Definition: Context.h:141
void OnSetEnabled() override
Update the owning mesh when enabled status has changed.
Definition: Obstacle.cpp:60
void SetDrawDebug(bool enable)
Definition: Viewport.cpp:122
void OnNodeSet(Node *previousNode, Node *currentNode) override
Handle scene node being assigned at creation.
Definition: RmlUIComponent.cpp:210
void UpdateCachedGeometryShape(CollisionGeometryDataCache &cache)
Update cached geometry collision shape.
Definition: CollisionShape.cpp:1087
void Commit()
Update vertex buffer and calculate the bounding box. Call after finishing defining geometry.
Definition: CustomGeometry.cpp:326
FiniteTimeAction * GetInnerAction() const
Get inner action.
Definition: Repeat.h:48
SignalSubscription(WeakPtr< RefCounted > receiver, Handler handler)
Construct valid.
Definition: Signal.h:53
Clamp(Context *context)
Construct Clamp.
Definition: Clamp.cpp:68
T & operator[](const IntVector2 &index)
Return element by index.
Definition: Array2D.h:206
int GetLayer() const
Definition: Drawable2D.h:123
Render pass, component of render path.
Definition: RenderPass.h:28
Vector3 previousPosition_
Definition: KinematicCharacterController.h:201
const IntVector3 & GetIntVector3() const
Return an IntVector3 or empty on type mismatch.
Definition: Variant.h:1498
bool delayedStartCalled_
Flag for delayed start.
Definition: LogicComponent.h:119
bool ConnectTo(GraphPinRef< GraphEnterPin > pin)
Connect to other pin.
Definition: GraphPin.cpp:106
Morph of ModelVertex.
Definition: ModelView.h:113
Vector2 WorldToScreenPoint(const Vector3 &worldPos) const
Convert a world space point to normalized screen coordinates (0 - 1).
Definition: Camera.cpp:431
void UpdateDrawables()
Update all drawable attributes. Executed by ParticleGraphEmitter.
Definition: ParticleGraphLayerInstance.cpp:183
bool GetUsePhysicalValues() const
Definition: Light.h:311
void SetTangentialAcceleration(float tangentialAcceleration)
Set tangential acceleration.
Definition: ParticleEffect2D.cpp:351
void SetSuspensionRestLength(float length)
Set suspension rest length.
void AddTriangle(const Vector3 &v1, const Vector3 &v2, const Vector3 &v3, const Color &color, bool depthTest=true)
Add a solid triangle.
Definition: DebugRenderer.cpp:122
void UpdateSoftwareSkinningState()
Reconsider whether to use software skinning.
Definition: AnimatedModel.cpp:1152
void OnSetEnabled() override
Handle enabled/disabled state change. Changes update event subscription.
Definition: MoveAndOrbitController.cpp:60
unsigned frequency_
HZ freq of the mic.
Definition: Microphone.h:114
LogicComponent(Context *context)
Construct.
Definition: LogicComponent.cpp:36
const ea::vector< ea::string > GetEntryNames() const
Return list of file names in the package.
Definition: PackageFile.h:89
ea::hash_set< StringHash > resources_
Resource name hashes left to load.
Definition: Scene.h:78
Definition: RaycastVehicle.h:35
float Hue() const
Return hue mapped to range [0, 1.0).
Definition: Color.cpp:128
void SetAutoRemoveMode(AutoRemoveMode mode)
Definition: ParticleEmitter.cpp:310
float animationLodTimer_
Animation LOD timer.
Definition: RibbonTrail.h:219
unsigned GetNumLights() const
Definition: Renderer.cpp:387
void OnSetEntity(Entity *entity)
Handle set entity.
Definition: SpriterInstance2D.cpp:171
float Chroma() const
Return the colorfulness relative to the brightness of a similarly illuminated white.
Definition: Color.cpp:120
void SetRootModalElement(UIElement *rootModal)
Sets new root UI element for modals.
Definition: UI.cpp:2171
ParticleGraphSpan values_
Particle attribute values.
Definition: ParticleGraphLayer.h:67
bool IsActive() const
Definition: RigidBody.cpp:664
float distance_
Distance from ray origin.
Definition: OctreeQuery.h:213
const ea::string & GetDefines() const
Return defines used to create the shader.
Definition: ShaderVariation.h:55
float GetTime() const
Definition: AnimationState.h:202
void SerializeInBlock(Archive &archive) override
Serialize content from/to archive. May throw ArchiveException.
Definition: ShaderParameter.cpp:109
virtual bool PerformUnload()
Actually unloads the module. Called by PluginManager at the end of frame when IsUnloading is true.
Definition: Plugin.h:65
void SetMaxMotorForce(float maxMotorForce)
Definition: ConstraintPrismatic2D.cpp:132
unsigned GetMaxAgents() const
Definition: CrowdManager.h:144
Variant(const VariantMap &value)
Construct from a variant map.
Definition: Variant.h:620
bool neighborsDirty_
Terrain neighbor attributes dirty flag.
Definition: Terrain.h:405
const ea::string & GetName() const
Return pass name.
Definition: Technique.h:125
ParticleGraphNodeInstance * CreateInstanceAt(void *ptr, ParticleGraphLayerInstance *layer) override
Place new instance at the provided address.
Definition: Hemisphere.cpp:66
UpdateContext MakeUpdateContext(float timeStep)
Initialize update context.
Definition: ParticleGraphLayerInstance.cpp:222
Vector2 axis_
Axis.
Definition: ConstraintPrismatic2D.h:110
LimitVelocity(Context *context)
Construct LimitVelocity.
Definition: LimitVelocity.cpp:45
bool Save(Serializer &dest) const override
Save resource. Return true if successful.
Definition: Animation.cpp:364
void Deactivate() override
Deactivate game screen. Executed by StateManager.
Definition: SplashScreen.cpp:109
const CustomVariantValue * GetCustomVariantValuePtr() const
Return const pointer to custom variant value.
Definition: Variant.h:1543
ea::vector< SharedPtr< Node > > nodes_
Tile node or image nodes.
Definition: TileMapLayer2D.h:137
float GetFadeOutDuration() const
Get fade out animation duration;.
Definition: StateManager.h:228
float timeStep_
Next frame timestep in seconds.
Definition: Engine.h:180
SharedPtr< ActionState > StartAction(Object *target) override
Create new action state from the action.
Definition: Move.cpp:761
float Determinant() const
Return determinant.
Definition: Matrix3.cpp:62
ea::vector< int16_t > buffer_
Stored copy of data contained.
Definition: Microphone.h:106
ea::unordered_map< ea::string, SharedPtr< Sprite2D > > spriteMapping_
Sprite mapping.
Definition: SpriteSheet2D.h:94
float GetMaxRotationSpeed() const
Definition: ParticleEffect.h:386
float traumaFalloff_
Current trauma falloff.
Definition: ShakeComponent.h:97
SpeakerMode speakerMode_
Speaker configuration.
Definition: Audio.h:170
Vector2 gravity_
Gravity.
Definition: ParticleEffect2D.h:277
Texture * GetParentTexture() const
Definition: RenderSurface.h:114
static Matrix3x4 GetFullscreenQuadTransform(const Camera *camera)
Return a transform for deferred fullscreen quad (directional light) rendering.
Definition: Light.cpp:645
~WeakPtr() noexcept
Destruct. Release the weak reference to the object.
Definition: Ptr.h:401
void SerializeInBlock(Archive &archive) override
Serialize content from/to archive. May throw ArchiveException.
Definition: GraphPin.cpp:89
VariantMap nodeCollisionData_
Cached event data for node collision.
Definition: KinematicCharacterController.h:209
Negate(Context *context)
Construct Negate.
Definition: Negate.cpp:73
FillMode GetFillMode() const
Definition: Camera.h:191
Mutex resourceMutex_
Mutex for thread-safe access to the resource directories, resource packages and resource dependencies...
Definition: ResourceCache.h:239
IntVector3 ToIntVector3() const
Return IntVector3 vector.
Definition: Vector3.h:489
Definition: VirtualReality.h:189
void Unsubscribe(RefCounted *receiver)
Unsubscribe all handlers of specified receiver from this signal.
Definition: Signal.h:109
bool Equals(T lhs, T rhs, T eps=M_EPSILON)
Definition: MathDefs.h:75
void DeactivateState()
Deactivate state.
Definition: StateManager.cpp:360
RenderTargetView GetView(unsigned slice) const override
Return render surface. Face could be specified for cubemap texture.
Definition: RenderBuffer.cpp:156
float GetMaxSideSlipSpeed() const
Definition: RaycastVehicle.cpp:466
float GetRadialAccelVariance() const
Return radial acceleration variance.
Definition: ParticleEffect2D.h:171
CachedDrawableReflection & GetMutableCachedReflection()
Return mutable cached reflection data.
Definition: Drawable.h:396
bool LoadWav(Deserializer &source)
Load WAV format sound data.
Definition: Sound.cpp:134
b2World * GetWorld()
Return the Box2D physics world.
Definition: PhysicsWorld2D.h:229
unsigned parentIndex_
Parent bone index.
Definition: Skeleton.h:73
RGBA color.
Definition: Color.h:33
void SetAngleAttenuation(float innerAngle, float outerAngle)
Set angle attenuation parameters.
Definition: SoundSource3D.cpp:109
Vector3 direction_
Definition: LightProcessor.h:44
ea::vector< Light * > GetLightsInBoundingBox(const IntVector3 &chunkIndex, const BoundingBox &boundingBox) override
Return lights intersecting given volume.
Definition: BakedSceneCollector.cpp:260
virtual AddBatchResult AddCustomBatch(unsigned threadIndex, Drawable *drawable, unsigned sourceBatchIndex, Technique *technique)
Custom callback for adding batches.
Definition: DrawableProcessor.h:137
float GetLast()
Return last fully accumulated sample.
Definition: Timer.cpp:270
Node * GetHead() const
Definition: VRRig.h:27
void GetChildrenWithTagRecursive(ea::vector< UIElement * > &dest, const ea::string &tag) const
Return child elements with a specific tag recursively.
Definition: UIElement.cpp:1777
static void RegisterObject(Context *context)
Definition: SplinePath.cpp:54
Vector3 lastPosition_
Last interpolated position from the simulation.
Definition: RigidBody.h:337
void Normalize()
All equivalent views should be literally equal after normalization.
Definition: ModelView.cpp:841
void SetBrightness(float brightness)
Definition: Light.cpp:313
const ea::string & GetAppliedStyle() const
Definition: UIElement.cpp:1615
Vector3 ProjectTexelOnCube(CubeMapFace face, int x, int y) const
Return offset from the center of the unit cube for given texel (assuming zero mip level).
Definition: ImageCube.cpp:276
void Update(float timeStep)
Update the UI logic. Called by HandlePostUpdate().
Definition: UI.cpp:326
void CopyAttributes(const Serializable *source, bool resetToDefault=true)
Copy all attributes from another serializable.
Definition: Serializable.cpp:617
~Technique() override
Destruct.
unsigned GetIndexStart() const
Definition: Geometry.h:99
Utility class to convert pipeline batches into sequence of draw commands.
Definition: BatchRenderer.h:58
bool AcceptsScheme(const ea::string &scheme) const override
Checks if mount point accepts scheme.
Definition: PackageFile.cpp:192
UIElement * parent_
Parent element.
Definition: UIElement.h:791
Physics constraint component. Connects two rigid bodies together, or one rigid body to a static point...
Definition: Constraint.h:48
XMLFile(Context *context)
Construct.
Definition: XMLFile.cpp:66
float indirectBrightness_
Indirect brightness multiplier.
Definition: Light.h:499
Plane() noexcept
Construct a degenerate plane with zero normal and parameter.
Definition: Plane.h:38
Baking chunk. Contains everything to bake light for given chunk.
Definition: BakedSceneChunk.h:47
Spatial info.
Definition: SpriterData2D.h:248
void CustomUpdate(unsigned numSteps, float fixedTimeStep, float overtime, ea::optional< SynchronizedPhysicsStep > sync)
Custom simulation with explicit steps and extrapolation/interpolation time.
Definition: PhysicsWorld.cpp:372
void Restore()
Definition: Graphics.cpp:559
BoundingBox ReadBoundingBox()
Read a bounding box.
Definition: Deserializer.cpp:243
static void RegisterObject(Context *context)
Definition: AnimationController.cpp:411
Vector3 GetAxle() const
Get wheel axle vector.
void CreateGeometries()
Create light volume geometries.
Definition: Renderer.cpp:673
ea::vector< Drawable * > rayQueryDrawables_
Ray query temporary list of drawables.
Definition: Octree.h:302
static unsigned GetThreadIndex()
Return current thread index.
Definition: WorkQueue.cpp:567
DirectLightTracingSettings directProbesTracing_
Settings for direct light tracing for light probes.
Definition: LightBakingSettings.h:203
LockState
Vertex/index buffer lock state.
Definition: GraphicsDefs.h:53
SharedPtr< Sprite2D > sprite_
Sprite.
Definition: ParticleEffect2D.h:261
SharedPtr< RmlNavigationManager > navigationManager_
Navigation manager.
Definition: RmlUIComponent.h:196
float GetFov() const
Definition: Light.h:342
void AddChange(const FileChange &change)
Add a file change into the changes queue.
Definition: FileWatcher.cpp:396
Direct light accumulated for given lightmap chart.
Definition: LightTracer.h:45
2D collision shape component.
Definition: CollisionShape2D.h:35
WeakPtr< Camera > cullCamera_
Culling camera pointer.
Definition: Viewport.h:129
float maxAgentRadius_
The maximum radius of any agent that will be added to the crowd.
Definition: CrowdManager.h:223
int refs_
Reference count. If below zero, the object has been destroyed.
Definition: RefCounted.h:56
void ResetEmissionTimer()
Reset the emission period timer.
Definition: ParticleEmitter.cpp:315
bool HasScriptObject() const
Return true if script runtime object wrapping this native object exists.
Definition: RefCounted.h:92
void SetVelocityIterations(int velocityIterations)
Definition: PhysicsWorld2D.cpp:429
void StartAnimation(Animation *animation)
Start selected animation. The argument should be either enter or exit animation.
Definition: TriggerAnimator.cpp:183
Vector3 Abs() const
Return absolute vector.
Definition: Vector3.h:400
PointerAdapterFlags subscriptionFlags_
Active subscriptions bitmask.
Definition: PointerAdapter.h:108
Definition: AttributeActionState.h:69
void SetDepthTest(bool enable)
Set whether to enable the depth test when rendering the text. Default is true.
Definition: Text3D.cpp:403
ImFont * AddFont(const ea::string &fontPath, const ImWchar *ranges=nullptr, float size=0, bool merge=false)
Definition: SystemUI.cpp:313
btCompoundShape * GetParentCompoundShape()
Find the parent rigid body component and return its compound collision shape.
Definition: CollisionShape.cpp:982
static void RegisterObject(ParticleGraphSystem *context)
Register particle node factory.
Definition: Box.cpp:38
unsigned mask_
Flags mask to represent properties of this mesh.
Definition: OffMeshConnection.h:99
SharedPtr< Technique > Clone(const ea::string &cloneName=EMPTY_STRING) const
Clone the technique. Passes will be deep copied to allow independent modification.
Definition: Technique.cpp:388
SharedPtr< Animation > Clone(const ea::string &cloneName=EMPTY_STRING) const
Clone the animation.
Definition: Animation.cpp:562
unsigned maxBounces_
Max number of bounces.
Definition: LightBakingSettings.h:122
static void RegisterObject(ParticleGraphSystem *context)
Register particle node factory.
Definition: Divide.cpp:38
bool isRoomScale_
Indicates we have room scale tracking.
Definition: VirtualReality.h:301
bool Load(const XMLElement &element, const TileMapInfo2D &info)
Load from XML element.
Definition: TmxFile2D.cpp:232
bool nonFocusedMouseWheel_
Flag to switch mouse wheel event to be sent to non-focused element at cursor.
Definition: UI.h:445
void OnMarkedDirty(Node *node) override
Handle node transform being dirtied.
Definition: Obstacle.cpp:118
void DrawDirection(DebugRenderer *debug, const Vector3 &position, const Vector3 &direction, bool markBegin=false, bool markEnd=true) const
Draw direction in DebugRenderer.
Definition: IKSolverComponent.cpp:209
float GetEffectiveAmbientBrightness() const
Return effective ambient light brightness.
Definition: Camera.cpp:768
Scene * GetScene() const
Definition: Material.cpp:965
void SetPingBufferSize(unsigned size)
Set number of ping samples used.
Definition: Network.cpp:336
unsigned GetNumPoints() const
Definition: TileMapDefs2D.cpp:190
float GetMass() const
Definition: RigidBody.h:190
BaseAction(Context *context)
Construct.
Definition: BaseAction.cpp:48
unsigned GetShadowViewMask() const
Return view mask for shadow casters.
Definition: Camera.h:180
Animation * GetAnimation() const
Definition: AnimationState.h:176
unsigned zoneMask_
Zone mask.
Definition: Octree.h:200
void SerializeInBlock(Archive &archive) override
Serialize content from/to archive. May throw ArchiveException.
Definition: Move.cpp:462
bool SetFont(const ea::string &fontName, float size=DEFAULT_FONT_SIZE)
Set font by looking from resource cache by name and font size. Return true if successful.
Definition: Text.cpp:252
IntVector2 Size() const
Definition: Rect.h:417
NetworkObject * FindClosestNetworkObject() const
Internal. Find closest parent NetworkObject.
Definition: BehaviorNetworkObject.cpp:52
void * handle_
Raw gc handle value.
Definition: Script.h:123
bool WriteBuffer(const ea::vector< unsigned char > &value)
Write a buffer, with size encoded as VLE.
Definition: Serializer.cpp:223
void UpdateText(bool onResize=false)
Update text when text, font or spacing changed.
Definition: Text.cpp:486
void OnNodeSet(Node *previousNode, Node *currentNode) override
Handle node being assigned.
Definition: RaycastVehicle.cpp:297
Microphone(Context *)
Construct.
Definition: Microphone.cpp:39
void ReleaseBody()
Release body.
Definition: RigidBody2D.cpp:364
void ReloadBakedData()
Reload baked light probes data.
Definition: LightProbeGroup.cpp:227
static void FreeImageData(unsigned char *pixelData)
Free an image file's pixel data.
Definition: Image.cpp:2128
TraversalMode
Traversal mode for rendering.
Definition: UIElement.h:96
unsigned indices_[3]
Indices of triangle vertices.
Definition: TetrahedralMesh.h:134
void SetCollisionEventMode(CollisionEventMode mode)
Definition: RigidBody.cpp:477
constexpr StringHash(const char *str, NoReverse) noexcept
Construct from a C string (no side effects).
Definition: StringHash.h:58
unsigned GetXPathResultIndex() const
Return current result index.
Definition: XMLElement.h:316
virtual void ReadUnreliableDelta(NetworkFrame frame, Deserializer &src)
Read unreliable delta update.
Definition: NetworkCallbacks.h:116
SharedPtr< ActionState > StartAction(Object *target) override
Create new action state from the action.
Definition: Misc.cpp:150
ea::optional< bool > committed_
Is the effect committed.
Definition: ParticleGraphLayer.h:138
void TestDrawables(Drawable **start, Drawable **end, bool inside) override
Intersection test for drawables.
Definition: OctreeQuery.cpp:84
const ea::string & GetPlaceholderText() const
Definition: DropDownList.cpp:221
Color finishColorVariance_
Finish color variance.
Definition: ParticleEffect2D.h:293
virtual bool CopyTo(CustomVariantValue &dest) const
Assign value to destination.
Definition: Variant.h:244
static void RegisterObject(ParticleGraphSystem *context)
Register particle node factory.
Definition: TimeStep.cpp:38
ea::string text_
UTF-8 encoded text.
Definition: Text.h:258
Sound stream that supports manual buffering of data from the main thread.
Definition: BufferedSoundStream.h:35
Color GetPixelTrilinear(float x, float y, float z) const
Return a trilinearly sampled 3D pixel color. X, Y and Z have the range 0-1.
Definition: Image.cpp:1398
void StartServer()
Start new server from current state.
Definition: ReplicationManager.cpp:297
void Update(unsigned char *rawData, int rawDataLen)
Appends data to the internal buffer.
Definition: Microphone.cpp:124
bool GetSwapXY() const
Definition: StaticSprite2D.h:117
Definition: ClampInstance.h:43
void OnPackageDownloadFailed(const ea::string &name)
Handle a package download failure on the client.
Definition: Connection.cpp:905
StringHash eventType_
Event type.
Definition: Connection.h:52
Allocator(unsigned initialCapacity=0)
Construct.
Definition: Allocator.h:75
void OnClickBegin(const IntVector2 &position, const IntVector2 &screenPosition, MouseButton button, MouseButtonFlags buttons, QualifierFlags qualifiers, Cursor *cursor) override
React to mouse click begin.
Definition: LineEdit.cpp:116
Skybox(Context *context)
Construct.
Definition: Skybox.cpp:40
bool Load(const XMLElement &source)
Load resource from XMLElement synchronously. Return true if successful.
Definition: ParticleEffect.cpp:132
void SetAgentMaxClimb(float maxClimb)
Definition: NavigationMesh.cpp:301
bool GetSnapToPixels() const
Return whether text is snapped to pixels.
Definition: Text3D.h:210
bool IsTextCopyable() const
Definition: LineEdit.h:128
void SetAnchor(const Vector2 &anchor)
Definition: ConstraintWheel2D.cpp:59
void ObstacleChanged(Obstacle *obstacle)
Used by Obstacle class to update itself.
Definition: DynamicNavigationMesh.cpp:877
void SetParticlesAttr(const VariantVector &value)
Set particles attribute.
Definition: ParticleEmitter.cpp:366
const ea::vector< ModelMorph > & GetMorphs() const
Return vertex morphs.
Definition: Model.h:202
SharedPtr< Image > image_
Image.
Definition: Cursor.h:78
virtual bool SaveProperties(ParticleGraphWriter &writer, GraphNode &node)
Save node.
Definition: ParticleGraphNode.cpp:283
void SetDrawDistance(float distance)
Definition: Drawable.cpp:184
void SetRadiusThickness(float value)
Set Radius Thickness.
Definition: Hemisphere.cpp:77
bool SaveXML(XMLElement &dest) const override
Save as XML data. Return true if successful.
Definition: Component.cpp:85
Definition: BloomPass.h:88
bool SetCurrentDir(const ea::string &pathName)
Definition: FileSystem.cpp:527
ea::vector< float > debugVertexData_
UI rendering vertex data for debug draw.
Definition: UI.h:415
void ProcessForwardLightingForLight(unsigned lightIndex, const ea::vector< Drawable * > &litGeometries)
Accumulate forward lighting for specified light source and geometries.
Definition: DrawableProcessor.cpp:628
RuntimeException(ea::string_view message)
Construct exception with static message.
Definition: Exception.h:42
Tracking structure for event receivers.
Definition: Context.h:37
void HandleTerrainCreated(StringHash eventType, VariantMap &eventData)
Update terrain collision shape from the terrain component.
Definition: CollisionShape.cpp:1187
void SetBroadcastTimeMs(unsigned time)
Set new broadcast interval, which is defined in in milliseconds.
Definition: LANDiscoveryManager.h:59
bool IsNaN() const
Return whether any element is NaN.
Definition: Matrix3x4.h:708
const Variant & GetValue()
Definition: GraphPin.h:112
unsigned GetNumPins() const override
Get number of pins.
Definition: TemplateNode.h:114
SharedPtr< ActionState > StartAction(Object *target) override
Create new action state from the action.
Definition: Attribute.cpp:166
pugi::xpath_query * GetXPathQuery() const
Return pugixml xpath_query.
Definition: XMLElement.h:417
Bounce(Context *context)
Construct Bounce.
Definition: Bounce.cpp:46
CullMode cullMode_
Culling mode.
Definition: OcclusionBuffer.h:201
static const IntVector3 FORWARD
(0,0,1) vector.
Definition: Vector3.h:193
const Vector2 & GetMaxParticleSize() const
Definition: ParticleEffect.h:354
Rect rectUV_
Lightmap rectangle on the chart (in normalized coordinates).
Definition: LightmapCharter.h:71
Vector2 ownerBodyAnchor_
Owner body anchor.
Definition: ConstraintDistance2D.h:86
bool IsServer() const
Definition: NamedPipe.h:69
Binary output archive block.
Definition: BinaryArchive.h:48
const VariantVector & GetControlPointIdsAttr() const
Return Control Point Node IDs attribute.
Definition: SplinePath.h:115
bool Contains(const ea::string &key) const
Return whether contains a pair with key.
Definition: JSONValue.cpp:379
virtual SharedPtr< PipelineState > CreateBatchPipelineStatePlaceholder(unsigned vertexStride, const PipelineStateOutputDesc &outputDesc)=0
Create placeholder pipeline state when actual pipeline state creation fails.
void Toggle()
Toggle visibility.
Definition: Console.cpp:83
void SetUseFixtureMass(bool useFixtureMass)
Definition: RigidBody2D.cpp:158
Vector3 GetAnisotropicFriction() const
Definition: RigidBody.cpp:634
SharedPtr< Geometry > maxLodGeometry_
Geometry that is locked to the max LOD level. Used for decals.
Definition: TerrainPatch.h:136
float rowSpacing_
Row spacing.
Definition: Text.h:262
void SetRotation(const Quaternion &rotation)
Definition: CollisionShape.cpp:754
void SetAspectRatio(float aspectRatio)
Definition: Camera.cpp:163
void ProcessRayQuery(const RayOctreeQuery &query, ea::vector< RayQueryResult > &results) override
Process octree raycast. May be called from a worker thread.
Definition: StaticModelGroup.cpp:104
ea::string GetAttributeUpper(const ea::string &name) const
Return attribute in lowercase, or empty if missing.
Definition: XMLElement.cpp:780
SharedPtr< Resource > resource_
Resource.
Definition: BackgroundLoader.h:43
Utility to allocate shadow maps in texture atlas.
Definition: ShadowMapAllocator.h:43
void ReadReliableDelta(NetworkFrame frame, Deserializer &src) override
Read reliable delta update. Delta is applied to previous reliable delta or snapshot message.
Definition: BehaviorNetworkObject.cpp:297
Time(Context *context)
Construct.
Definition: Timer.cpp:51
void Reset(const ArrayDimensions2D &dim, const T &value)
Resize array. All elements are reset to specified default value.
Definition: Array2D.h:153
void OnDragBegin(const IntVector2 &position, const IntVector2 &screenPosition, MouseButtonFlags buttons, QualifierFlags qualifiers, Cursor *cursor) override
React to mouse drag begin.
Definition: Slider.cpp:111
Definition: NegateInstance.h:32
void SetRotationEndVariance(float rotationEndVariance)
Set rotation end variance.
Definition: ParticleEffect2D.cpp:471
Corner
UI element corners.
Definition: UIElement.h:55
void DeleteChild(unsigned index)
Delete child octant.
Definition: Octree.cpp:116
CustomGeometry(Context *context)
Construct.
Definition: CustomGeometry.cpp:45
SharedPtr< FiniteTimeAction > Reverse() const override
Create reversed action.
Definition: Ease.cpp:231
Animate attribute between two values.
Definition: Attribute.h:92
const ea::string & GetPath() const
Return a path to loaded module.
Definition: DynamicModule.h:64
CollisionEventMode collisionEventMode_
Collision event signaling mode.
Definition: RigidBody.h:335
unsigned lightMask_
Light mask of light probe group.
Definition: LightProbeGroup.h:210
float length_
The length of the SplinePath.
Definition: SplinePath.h:144
StringVector updateEvents_
Update events to be sent on every update.
Definition: Scene.h:365
void ApplyImpulse(const Vector3 &impulse)
Apply impulse to center of mass.
Definition: RigidBody.cpp:509
unsigned obstacleId_
Id received from tile cache.
Definition: Obstacle.h:95
Vector3 end_
End position.
Definition: DebugRenderer.h:61
bool stereo_
Stereo flag.
Definition: SoundStream.h:76
void SetID(unsigned id)
Definition: Component.cpp:165
bool WriteInt(int value)
Write a 32-bit integer.
Definition: Serializer.cpp:48
float GetAnimationLodBias() const
Definition: AnimatedModel.h:105
bool IsReloadPending() const
Return whether the load is pending at the end of the frame.
Definition: PluginManager.h:122
ea::vector< Vector3 > vertices_
Vertices from geometries.
Definition: NavBuildData.h:65
~GlobalIllumination() override
Destruct.
bool DrawOcclusion(OcclusionBuffer *buffer) override
Draw to occlusion buffer. Return true if did not run out of triangles.
Definition: CustomGeometry.cpp:165
bool AreTracksDirty() const
Definition: AnimationState.cpp:140
Definition: CurlNoise3DInstance.h:35
Timer useTimer_
Last used timer.
Definition: Resource.h:151
bool sendEventOnFailure_
Whether to send failure event.
Definition: BackgroundLoader.h:49
void UpdateLayout()
Manually update layout. Should not be necessary in most cases, but is provided for completeness.
Definition: UIElement.cpp:1123
int finishBackgroundResourcesMs_
How many milliseconds maximum per frame to spend on finishing background loaded resources.
Definition: ResourceCache.h:253
Physics simulation world component. Should be added only to the root scene node.
Definition: PhysicsWorld.h:147
void PostUpdate(float timeStep) override
Called on scene post-update, variable timestep.
Definition: TextRenderer3D.cpp:74
static const Rect ZERO
Zero-sized rect.
Definition: Rect.h:282
SharedPtr< ActionState > StartAction(Object *target) override
Create new action state from the action.
Definition: Ease.cpp:332
void SetCcdMotionThreshold(float threshold)
Definition: RigidBody.cpp:404
Vector3 vertices_[NUM_FRUSTUM_VERTICES]
Frustum vertices.
Definition: Frustum.h:184
float cellSize_
Cell size.
Definition: NavigationMesh.h:362
void SetParameters(XMLFile *file)
Set additional parameters from an XML file.
Definition: Texture.cpp:208
void SetMotorSpeed(float motorSpeed)
Definition: ConstraintPrismatic2D.cpp:145
ResourceRef GetRampTextureAttr() const
Return ramp texture attribute.
Definition: Light.cpp:527
ParticleGraphNodeInstance * CreateInstanceAt(void *ptr, ParticleGraphLayerInstance *layer) override
Place new instance at the provided address.
Definition: EmitterRotation.cpp:59
IntRect rect_
Iterated rectangle.
Definition: Rect.h:546
void SetAutoVisibleOnError(bool enable)
Automatically set console to visible when receiving an error log message.
Definition: Console.h:52
void DrawWheelDebugGeometry(unsigned index, DebugRenderer *debug, bool depthTest) const
Visualize wheel as debug geometry.
Definition: RaycastVehicle.cpp:260
unsigned GetZoneMask() const
Definition: Drawable.h:322
void AssignBoneNodes()
Assign skeleton and animation bone node references as a postprocess. Called by ApplyAttributes.
Definition: AnimatedModel.cpp:851
Rml::Context * GetRmlContext() const
Returns RmlUi context object.
Definition: RmlUI.cpp:507
float a_
Alpha value.
Definition: Color.h:272
Variant CatmullRomInterpolation(const ea::vector< Variant > &knots, float t) const
Perform Spline interpolation on the spline.
Definition: Spline.cpp:191
bool IsOccluder() const
Definition: Drawable.h:330
unsigned GetChecksum() override
Return a checksum of the file contents using the SDBM hash algorithm.
Definition: File.cpp:363
SharedPtr< UIElement > LoadLayout(Deserializer &source, XMLFile *styleFile=nullptr)
Load a UI layout from an XML file. Optionally specify another XML file for element style....
Definition: UI.cpp:513
Vector3 GetRawNormal(int x, int z) const
Get slope-based terrain normal at position.
Definition: Terrain.cpp:1353
Zone * zone_
Current zone containing camera.
Definition: Camera.h:381
float DistanceToPoint(const Vector3 &point) const
Calculate distance to another position vector.
Definition: Vector3.h:381
UpdateGeometryType GetUpdateGeometryType() override
Return whether a geometry update is necessary, and if it can happen in a worker thread.
Definition: BillboardSet.cpp:267
Variant(const IntRect &value)
Construct from an integer rect.
Definition: Variant.h:638
Definition: BloomPass.h:79
ea::optional< NetworkObjectRelevance > GetRelevanceForClient(AbstractConnection *connection) override
Definition: BehaviorNetworkObject.cpp:216
unsigned texIndex_
Current texture animation index.
Definition: ParticleEmitter.h:50
VariantVector GetQueryFilterTypesAttr() const
Return all the filter types configured in the crowd as attribute.
Definition: CrowdManager.cpp:464
void CollectParameters(StringVariantMap ¶ms) const override
Definition: ToneMappingPass.cpp:50
WeakPtr< TerrainPatch > north_
North neighbor patch.
Definition: TerrainPatch.h:144
void SerializeInBlock(Archive &archive)
Serialize content from/to archive. May throw ArchiveException.
Definition: VariantCurve.cpp:224
Color hoverColor_
Hover background color.
Definition: UISelectable.h:66
JSONValue(double value)
Construct with a double.
Definition: JSONValue.h:110
void SerializeInBlock(Archive &archive)
Serialize content from/to archive. May throw ArchiveException.
Definition: InputMap.cpp:410
void SetMaterialAttr(const ResourceRef &value)
Set material attribute.
Definition: RibbonTrail.cpp:870
void SerializeVLE(const char *name, unsigned &value) final
Serialize Variable Length Encoded unsigned integer, up to 29 significant bits.
Definition: XMLArchive.cpp:105
Vector2 otherPositions_[2]
Other side of the edge on lightmap UV.
Definition: LightmapGeometryBuffer.h:57
void SetShapeType(ShapeType type)
Definition: CollisionShape.cpp:725
void CalculateViewport()
Calculate viewport transform.
Definition: OcclusionBuffer.cpp:571
2D prismatic constraint component.
Definition: ConstraintPrismatic2D.h:31
void SetBrakeFactor(float factor)
Set brake factor. Brake power is multiplied by the factor.
ThreadSafeCache< CachedProjection > cachedProjection_
Cached projection data.
Definition: Camera.h:353
static void RegisterObject(Context *context)
Definition: ParticleEmitter2D.cpp:59
bool GetFastMode() const
Return whether uses fast mode. Fast mode uses a simpler allocation scheme which may waste free space,...
Definition: AreaAllocator.h:53
static long long frequency
High-resolution timer frequency.
Definition: Timer.h:76
Definition: Subtract.h:35
Intersection TestOctant(const BoundingBox &box, bool inside) override
Intersection test for an octant.
Definition: OctreeQuery.cpp:32
const ea::string & GetName() const override
Returns name of this object.
Definition: VectorBuffer.cpp:142
void SetOffset(const IntVector2 &offset)
Definition: Sprite2D.cpp:128
unsigned GetFormat() const
Definition: View3D.h:66
Vector4 lightmapScaleOffset_
Lightmap scale and offset.
Definition: TerrainPatch.h:163
void CopyDrawableAttributes(Drawable *drawable, ParticleGraphEmitter *emitter)
Copy drawable attributes from emitter.
Definition: ParticleGraphNodeInstance.cpp:36
UpdateGeometryType GetUpdateGeometryType() override
Return whether a geometry update is necessary, and if it can happen in a worker thread.
Definition: TerrainPatch.cpp:156
void DrawDebugGeometry(DebugRenderer *debug, bool depthTest) override
Add debug geometry to the debug renderer.
Definition: TileMapLayer2D.cpp:58
void SetUniformType(VariantType valueType) override
Set attribute type.
Definition: Uniform.cpp:108
void SetVelocityCallback(const CrowdAgentVelocityCallback &callback)
Set velocity callback.
Definition: CrowdAgent.h:100
void Scan(ea::vector< ea::string > &result, const ea::string &pathName, const ea::string &filter, ScanFlags flags) const override
Enumerate objects in the mount point. Only files enumeration is guaranteed to be supported.
Definition: MountedDirectory.cpp:172
void EndBlock() noexcept final
End archive block. May postpone ArchiveException until later.
Definition: BinaryArchive.cpp:129
float animationLodBias_
Animation LOD bias.
Definition: BillboardSet.h:179
Vector2 linearOffset_
Linear offset.
Definition: ConstraintMotor2D.h:87
ParticleGraph(Context *context)
Construct.
Definition: ParticleGraph.cpp:36
void CompleteImmediateForThisThread()
Definition: WorkQueue.cpp:498
ParticleGraphNodeInstance * CreateInstanceAt(void *ptr, ParticleGraphLayerInstance *layer) override
Place new instance at the provided address.
Definition: RenderBillboard.cpp:71
ParticleGraphPin()
Construct default pin.
Definition: ParticleGraphPin.cpp:34
Post-processing pass that applies bloom to scene.
Definition: BloomPass.h:23
ParticleGraphSpan destructionQueue_
Indices to destroy.
Definition: ParticleGraphLayer.h:65
unsigned GetChecksum() override
Return a checksum if applicable.
Definition: ArchiveBase.h:45
bool GetForceAutoHint() const
Definition: UI.h:246
TimeStepScale(Context *context)
Construct TimeStepScale.
Definition: TimeStepScale.cpp:73
Archive * archive_
Archive.
Definition: Archive.h:91
PipelineStateSubscription CreateDependency(PipelineStateTracker *dependency)
Create dependency onto another pipeline state.
Definition: PipelineStateTracker.cpp:45
2D physics constraint component.
Definition: Constraint2D.h:36
ea::string ToUri() const
Return URI-like path. Does not always return original path.
Definition: FileIdentifier.cpp:78
bool assignBonesPending_
Bone nodes assignment pending flag.
Definition: AnimatedModel.h:246
Vector2 GetOffset() const
Return lightmap offset of the region.
Definition: LightmapCharter.h:57
void SetLowerAngle(float lowerAngle)
Definition: ConstraintRevolute2D.cpp:81
Object * GetOriginalTarget() const
Gets the original target.
Definition: ActionState.h:53
void HandleRenderUpdate(StringHash eventType, VariantMap &eventData)
Handle render update event.
Definition: UI.cpp:1964
void SetInternal(bool enable)
Definition: UIElement.cpp:1480
void SetLightmapIndex(unsigned idx)
Set lightmap index.
Definition: StaticModel.h:128
ActionBuilder & ExponentialOut()
Combine with ExponentialOut action.
Definition: ActionBuilder.cpp:366
ea::unordered_map< ea::string, SharedPtr< XMLFile > > tsxXMLFiles_
TSX name to XML file mapping.
Definition: TmxFile2D.h:219
Terrain * GetOwner() const
Return owner terrain.
Definition: TerrainPatch.cpp:290
StringVector GetLoggers() const
Returns a set of loggers that exist in console history.
Definition: Console.cpp:406
Definition: Skeleton.h:55
InterfaceType * ptr_
Pointer to the object.
Definition: Ptr.h:604
void SetWidth(int width)
Definition: Text3D.cpp:324
float uiScale_
Current scale of UI.
Definition: UI.h:485
BoundingBox CalculateBoundingBox() const
Calculate bounding box.
Definition: ModelView.cpp:1359
void SetRemapMousePos(bool remap)
Enable input remapping (use if canvas renders on 3D objects).
Definition: RmlCanvasComponent.h:51
const float * Data() const
Return float data.
Definition: Matrix2.h:203
Vector3 GetScale() const
Get Scale.
Definition: Circle.cpp:90
void SetTechniques(const ea::vector< TechniqueEntry > &techniques)
Set all techniques in bulk.
Definition: Material.cpp:602
void DrawDebugGeometry(DebugRenderer *debug, bool depthTest) override
Visualize the component as debug geometry.
Definition: Light.cpp:232
void PatchAdd(const pugi::xml_node &patch, pugi::xpath_node &original) const
Add an node in the Patch.
Definition: XMLFile.cpp:263
pugi::xpath_variable_set * GetXPathVariableSet() const
Return pugixml xpath_variable_set.
Definition: XMLElement.h:420
virtual void GetBatches(ea::vector< UIBatch > &batches, ea::vector< float > &vertexData, const IntRect ¤tScissor)
Return UI rendering batches.
Definition: UIElement.cpp:371
void SetWatching(bool enable)
Enable or disable file watchers.
Definition: VirtualFileSystem.cpp:340
static void RegisterObject(Context *context)
Definition: AnimatedSprite2D.cpp:70
ea::vector< UIElement * > tempElements_
UI element query vector.
Definition: UI.h:421
unsigned GetNumDownloads() const
Definition: Connection.cpp:720
const Vector3 & GetPivot() const
Get rotation pivot.
Definition: Move.h:193
CollisionEdge2D(Context *context)
Construct.
Definition: CollisionEdge2D.cpp:37
ea::unique_ptr< btCompoundShape > compoundShape_
Bullet compound collision shape.
Definition: RigidBody.h:317
ea::string line_
Text line.
Definition: LineEdit.h:153
@ DD_SOURCE_AND_TARGET
Drag and drop source and target.
Definition: UIElement.h:113
const Color & GetAmbientStartColor()
Definition: Zone.cpp:218
Node * GetObjectNode(unsigned index) const
Return object node (for object group only).
Definition: TileMapLayer2D.cpp:319
StringHash ReadStringHash()
Read a 32-bit StringHash.
Definition: Deserializer.cpp:274
@ FM_NOTFOCUSABLE
Is not focusable and does not affect existing focus.
Definition: UIElement.h:75
void DrawDebugGeometry(DebugRenderer *debug, bool depthTest) override
Visualize the component as debug geometry.
Definition: IKSpineSolver.cpp:47
void SetPatchSizeAttr(int value)
Set patch size attribute.
Definition: Terrain.cpp:786
StringHash eventType_
Event type.
Definition: ValueAnimation.h:64
float GetSensitivity(const ea::string &key, float defaultValue) const
Get sensitivity value from input map or default one.
Definition: MoveAndOrbitController.cpp:314
ea::vector< VariantMap * > eventDataMaps_
Event data stack.
Definition: Context.h:190
signed char * end_
Sound data end.
Definition: Sound.h:131
SDL_Cursor * osCursor_
OS cursor.
Definition: Cursor.h:86
PListValueMap & ConvertToValueMap()
Convert to value map (internal use only).
Definition: PListFile.cpp:252
virtual RenderTargetView GetView(unsigned slice=0) const =0
Return render surface. Face could be specified for cubemap texture.
GraphicsPipelineStateDesc pipelineStateDesc_
Definition: PipelineStateBuilder.h:102
float GetMinRotationSpeed() const
Definition: ParticleEffect.h:382
bool GetOcclusion() const
Definition: Material.h:307
Audio subsystem.
Definition: Audio.h:42
PrimitiveType primitiveType_
Primitive type.
Definition: Geometry.h:157
4x4 matrix for arbitrary linear transforms including projection.
Definition: Matrix4.h:38
Circle(Context *context)
Construct Circle.
Definition: Circle.cpp:49
static const IntVector2 ONE
(1,1) vector.
Definition: Vector2.h:193
WeakPtr< Graphics > graphics_
Graphics subsystem.
Definition: UI.h:395
bool HasMutableGlyphs() const override
Return if font face uses mutable glyphs.
Definition: FontFaceFreeType.h:48
const IntVector2 & GetCoordinates() const
Return patch coordinates.
Definition: TerrainPatch.h:105
unsigned westID_
Node ID of west neighbor.
Definition: Terrain.h:399
void ReleaseFontFaces()
Force release of font faces when global font properties change.
Definition: UI.cpp:1253
static void RegisterObject(Context *context)
Register object factory. Drawable must be registered first.
Definition: GlobalIllumination.cpp:45
void Initialize(Animation *animation, const ea::string &startBone, AnimationBlendMode blendMode)
Initialize static properties of the state and dirty tracks if changed.
Definition: AnimationState.cpp:122
UIElement * GetDragElement(unsigned index)
Return the drag element at index.
Definition: UI.cpp:830
void HandleEffectReloadFinished(StringHash eventType, VariantMap &eventData)
Handle live reload of the particle effect.
Definition: ParticleGraphEmitter.cpp:295
ea::vector< Vector3 > albedo_
Albedo of the surface.
Definition: LightTracer.h:87
void SetPassThroughEvents(bool enabled)
When set to true, SystemUI will not consume SDL events and they will be passed to to Input and other ...
Definition: SystemUI.h:67
float GetLifetime() const
Definition: RibbonTrail.h:179
constexpr FlagSet(Integer value)
Ctor by integer.
Definition: FlagSet.h:56
2D friction constraint component.
Definition: ConstraintFriction2D.h:31
int GetCycles() const
Get Cycles.
Definition: BurstTimer.cpp:80
PipelineStateSubscription indexBufferDependency_
Index buffer dependency.
Definition: Geometry.h:155
void OnSetEnabled() override
Handle enabled/disabled state change.
Definition: RigidBody.cpp:132
BaseIterator< typename OuterCollection::const_iterator, typename InnerCollection::const_iterator > ConstIterator
Const iterator.
Definition: MultiVector.h:155
WeakPtr< Terrain > west_
West neighbor terrain.
Definition: Terrain.h:343
void HandleKeyDown(StringHash eventType, VariantMap &eventData)
Handle press event.
Definition: RmlUI.cpp:612
float Top() const
Definition: Rect.h:262
ea::unordered_map< ShaderVariationKey, SharedPtr< ShaderVariation > > variations_
Shader variations.
Definition: Shader.h:82
ea::vector< ea::vector< Vector3 > > faces_
Polygon faces.
Definition: Polyhedron.h:108
void PostUpdate(float timeStep, float overtime)
Trigger after physics update, after all of simulation steps.
Definition: PhysicsWorld.cpp:884
void SetTransportDefault()
Use the default transport (WebRTC)
Definition: Network.cpp:384
bool subpixel_
Use subpixel glyph positioning?
Definition: FontFaceFreeType.h:65
void SetAspectRatio(float aspectRatio)
Definition: Light.cpp:335
float x_
X coordinate.
Definition: Vector2.h:428
unsigned GetNumAttributes() const
Definition: Serializable.cpp:611
bool IsCompressed() const
Definition: Texture.cpp:338
signed char * GetEnd() const
Return sound data end.
Definition: Sound.h:83
Serializer * currentBlockSerializer_
Serializer used within currently open block.
Definition: BinaryArchive.h:102
Color color_
Color.
Definition: ParticleEmitter2D.h:50
Vector3 GetVector3(const Vector3 &min, const Vector3 &max)
Return random 3D vector in 3D volume.
Definition: RandomEngine.cpp:185
ea::vector< float > rowWidths_
Row widths.
Definition: Text.h:292
void RaycastSingle(PhysicsRaycastResult &result, const Ray &ray, float maxDistance, unsigned collisionMask=M_MAX_UNSIGNED)
Perform a physics world raycast and return the closest hit.
Definition: PhysicsWorld.cpp:469
ea::vector< LightmapChart > LightmapChartVector
Vector of lightmap charts.
Definition: LightmapCharter.h:109
void SetTextureEdgeOffset(float offset)
Definition: Sprite2D.cpp:133
void MixZeroVolume(Sound *sound, unsigned samples, int mixRate, float effectiveFrequency)
Advance playback pointer without producing audible output.
Definition: SoundSource.cpp:1838
Definition: Serializer.h:46
Definition: PatternMatchingNode.h:78
ea::vector< Billboard > billboards_
Billboards.
Definition: BillboardSet.h:177
const XrActionSet set_
Owning ActionSet that contains this action.
Definition: OpenXR.h:111
void SetUseGravity(bool enable)
Definition: RigidBody.cpp:413
Definition: Deserializer.h:37
void SetLoop(bool loop)
Set effect loop flag.
Definition: ParticleGraphLayer.cpp:235
StringVariantMap GetFlavorVariables(const ApplicationFlavor &flavor) const
Definition: ConfigFile.cpp:235
const ea::unordered_map< unsigned, Component * > & GetAllComponents() const
Return all components parented by this Scene.
Definition: Scene.h:260
void FromAngleAxis(float angle, const Vector3 &axis)
Define from an angle (in degrees) and axis.
Definition: Matrix3.cpp:41
bool IsDeferredLighting() const
Definition: RenderPipelineDefs.h:569
DependantVector::iterator FindSubscriberIter(PipelineStateTracker *subscriber)
Find subscriber iterator by pointer.
Definition: PipelineStateTracker.cpp:88
JSONValue(JSONValueType valueType, JSONNumberType numberType=JSONNT_NAN)
Construct a default value with defined type.
Definition: JSONValue.h:79
bool PrepareReliableDelta(NetworkFrame frame) override
Prepare for reliable delta update and return update mask. If mask is zero, reliable delta update is s...
Definition: BehaviorNetworkObject.cpp:261
void HandleScenePostUpdate(StringHash eventType, VariantMap &eventData)
Handle scene post-update event.
Definition: DecalSet.cpp:1155
ActionBuilder & RemoveSelf()
Combine with RemoveSelf action.
Definition: ActionBuilder.cpp:423
const Vector2 & GetSize() const
Definition: CollisionBox2D.h:60
static ScriptRuntimeApi * GetRuntimeApi()
Returns script runtime api implemented in managed code.
Definition: Script.h:87
bool IsInitialized() const
Definition: NavigationMesh.h:281
CrowdAgentHeightCallback heightCallback_
Height callback.
Definition: CrowdManager.h:215
IntVector2 sumPos
Sum of all touch locations.
Definition: UI.h:294
void SetScale(float scale)
Set uniform scaling elements.
Definition: Matrix3.h:194
OctreeQueryResult()
Construct with defaults.
Definition: OctreeQuery.h:160
ea::vector< Component * > CollectGeometriesFromDrawables(const ea::vector< Drawable * > drawables)
Filter drawables and return relevant components.
Definition: BakedSceneCollector.cpp:326
Finite time action.
Definition: AttributeAction.h:39
bool Define(RenderSurface *renderTarget, Viewport *viewport) override
Definition: DefaultRenderPipeline.cpp:179
virtual bool IsWatching() const
Returns true if FileChanged events are enabled.
Definition: MountPoint.cpp:60
void SetLogFormat(const ea::string &format)
Definition: Log.cpp:424
~Terrain() override
Destruct.
void SetRoot(UIElement *root)
Sets new root UI element.
Definition: UI.cpp:2164
virtual void OnAttributeAnimationAdded()=0
Handle attribute animation added.
int velocityIterations_
Velocity iterations.
Definition: PhysicsWorld2D.h:253
Camera * GetCullCamera() const
Definition: Viewport.cpp:171
void SetClipPlane(const Plane &plane)
Definition: Camera.cpp:250
static void RegisterObject(ParticleGraphSystem *context)
Register particle node factory.
Definition: EmitterScale.cpp:38
void ResetRenderTargets()
Reset all rendertargets, depth-stencil surface and viewport.
Definition: Graphics.cpp:568
void Append(const ea::string &define, const ea::string &value)
Append define with value.
Definition: ShaderDefs.h:83
void Init()
Init the vehicle component after creation.
Definition: RaycastVehicle.cpp:368
Matrix4(float v00, float v01, float v02, float v03, float v10, float v11, float v12, float v13, float v20, float v21, float v22, float v23, float v30, float v31, float v32, float v33) noexcept
Construct from values.
Definition: Matrix4.h:121
virtual ~Serializer()
Destruct.
float cursorAcceleration_
Cursor acceleration.
Definition: PointerAdapter.h:122
void SetNearClip(float nearClip)
Definition: Camera.cpp:117
SharedPtr< ActionState > StartAction(Object *target) override
Create new action state from the action.
Definition: Move.cpp:469
VariantType type_
Pin type.
Definition: GraphPin.h:81
void SetIsWorldspace(bool value)
Set Is Worldspace.
Definition: RenderBillboard.cpp:98
SharedPtr< Sprite2D > sprite_
Sprite (for tile).
Definition: TileMapDefs2D.h:243
Definition: RenderPipelineDebugger.h:62
int multiSampleLevel_
Multisample level of both output color buffers and depth buffer.
Definition: RenderPipelineDefs.h:169
Base class for tracked component with reference that is stable during object lifetime.
Definition: TrackedComponent.h:109
LineEdit * GetFileNameEdit() const
Definition: FileSelector.h:108
Rendering frame update parameters.
Definition: Drawable.h:100
bool bakedDataDirty_
Whether the baked data is dirty.
Definition: LightProbeGroup.h:223
JSONValue()
Construct null value.
Definition: JSONValue.h:73
Console window with log history and command line prompt.
Definition: Console.h:37
ParticleGraphNodeInstance * CreateInstanceAt(void *ptr, ParticleGraphLayerInstance *layer) override
Place new instance at the provided address.
Definition: Uniform.h:137
FreeFlyController(Context *context)
Construct.
Definition: FreeFlyController.cpp:40
PackageDownload()
Construct with defaults.
Definition: Connection.cpp:59
Vector3 position_
World-space position of the path point.
Definition: NavigationMesh.h:66
Vector3 origin_
Ray origin.
Definition: Ray.h:120
float trauma_
Current trauma value.
Definition: ShakeComponent.h:93
ConstraintWeld2D(Context *context)
Construct.
Definition: ConstraintWeld2D.cpp:35
EmitterRotation(Context *context)
Construct EmitterRotation.
Definition: EmitterRotation.cpp:44
void Define(const Vector4 &plane)
Define from a 4-dimensional vector, where the w coordinate is the plane parameter.
Definition: Plane.h:85
unsigned GetUInt(const ea::string &name) const
Return an unsigned integer attribute, or zero if missing.
Definition: XMLElement.cpp:856
EaseSineInOut(Context *context)
Construct.
Definition: Ease.cpp:336
float mouseSensitivity_
Mouse sensitivity.
Definition: FreeFlyController.h:125
std::atomic_bool invalidated_
Whether the PipelineState is invalidated and should be recreated.
Definition: BatchStateCache.h:99
BakedLightmap()=default
Construct default.
void Load(const ea::string &state)
Load state from string.
Definition: RandomEngine.cpp:56
bool WritePackedQuaternion(const Quaternion &value)
Write a quaternion with each component packed in 16 bits.
Definition: Serializer.cpp:149
unsigned GetId() const
Return node ID.
Definition: PackedSceneData.h:50
static const unsigned MaxBounces
Max number of bounces.
Definition: LightBakingSettings.h:106
float GetAgentMaxSlope() const
Definition: NavigationMesh.h:246
@ FONT_HINT_LEVEL_LIGHT
Light hinting. FreeType will pixel-align fonts vertically, but not horizontally.
Definition: UI.h:43
char inputBuffer_[0x1000]
Input box buffer.
Definition: Console.h:121
void SetAgentHeight(float height)
Definition: NavigationMesh.cpp:291
~Model() override
Destruct.
ResourceRef GetZoneTextureAttr() const
Return zone texture attribute.
Definition: Zone.cpp:256
Definition: ReplicatedAnimation.h:109
void OnWorldBoundingBoxUpdate() override
Recalculate the world-space bounding box.
Definition: ParticleEmitter2D.cpp:185
void SetOtherBody(RigidBody *body)
Definition: Constraint.cpp:156
ea::string name_
Name.
Definition: TileMapDefs2D.h:231
bool GetBringToFront() const
Definition: UIElement.h:568
ParticleGraphNodeInstance * CreateInstanceAt(void *ptr, ParticleGraphLayerInstance *layer) override
Place new instance at the provided address.
Definition: Curve.cpp:107
bool GetExecuteConsoleCommands() const
Definition: FileSystem.h:90
float GetTemperature() const
Definition: Light.h:299
ReflectionMode
Definition: Drawable.h:91
SharedPtr< StaticModel > model_
Model created by this component. If node already has StaticModel then this will be null.
Definition: UIComponent.h:73
float Bottom() const
Definition: Rect.h:270
void Clear()
Clear mainline key and timeline keys.
Definition: SpriterInstance2D.cpp:296
@ LT_TILE_LAYER
Tile layer.
Definition: TileMapDefs2D.h:81
bool GetUseScreenKeyboard() const
Definition: UI.h:238
ResourceRefList lightmaps_
Lightmap textures names.
Definition: Scene.h:360
static const IntVector2 RIGHT
(1,0) vector.
Definition: Vector2.h:187
bool WriteMatrix3(const Matrix3 &value)
Write a Matrix3.
Definition: Serializer.cpp:161
void SetRotation(Quaternion value)
Set Rotation.
Definition: Cone.cpp:95
SharedPtr< VertexBuffer > vertexBuffer_
Vertex buffer.
Definition: CustomGeometry.h:147
Definition: AnimationStateSource.h:13
Definition: IKSolver.h:32
Orientation GetOrientation() const
Definition: Slider.h:85
void HandleListViewKey(StringHash eventType, VariantMap &eventData)
Handle a key press from the listview.
Definition: DropDownList.cpp:328
void RemoveRigidBody(RigidBody *body)
Remove a rigid body. Called by RigidBody.
Definition: PhysicsWorld.cpp:792
auto Tie() const
Definition: BloomPass.h:52
const auto & GetShadowCasters() const
Definition: ShadowSplitProcessor.h:79
static void RegisterObject(ParticleGraphSystem *context)
Register particle node factory.
Definition: Lerp.cpp:38
void OnSceneSet(Scene *scene) override
Handle scene being assigned. This may happen several times during the component's lifetime....
Definition: ReflectionProbe.cpp:214
int strokeThickness_
Text effect stroke thickness.
Definition: Text.h:276
void SetMaxRotation(float rotation)
Definition: ParticleEffect.cpp:565
bool SetString(const ea::string &name, const ea::string &value)
Set a string attribute.
Definition: XMLElement.cpp:422
void SetOccludee(bool enable)
Definition: Terrain.cpp:458
bool IsInstanced(GeometryType geometryType) const
Return whether the geometry can be rendered using instancing buffer.
Definition: Geometry.h:138
JSONValue(float value)
Construct with a float.
Definition: JSONValue.h:104
const ea::string & GetName() const
Definition: GraphNode.h:89
Similar to NetworkValue, except each frame contains an array of elements.
Definition: NetworkValue.h:655
Variant SplineInterpolation(unsigned index1, unsigned index2, float scaledTime) const
Spline interpolation.
Definition: ValueAnimation.cpp:439
const SphericalHarmonicsDot9 GetAmbientAndBackgroundLighting() const
Return zone's ambient and background light in linear space.
Definition: Zone.cpp:202
void SetTraumaFalloff(float value)
Set trauma falloff (how many units to loose per second).
Definition: ShakeComponent.cpp:82
Definition: LocalToWorld.h:37
PluginApplication * GetMainPlugin() const
Return main plugin. The result is valid after StartApplication.
Definition: PluginManager.cpp:227
void RemoveReflection(StringHash typeNameHash)
Remove reflection.
Definition: ObjectReflection.cpp:249
float GetTextureEdgeOffset() const
Definition: Sprite2D.h:88
bool connectPending_
Set to true when connection is initiated, but has not fully opened yet and network stream is not avai...
Definition: Connection.h:295
ShapeType GetShapeType() const
Definition: CollisionShape.h:236
void DrawDebugGeometry(DebugRenderer *debug, bool depthTest) override
Visualize the component as debug geometry.
Definition: PhysicsWorld.cpp:287
const ea::string name_
Name of the mount point.
Definition: MountedDirectory.h:81
void MarkTextDirty()
Mark text & geometry dirty.
Definition: Text3D.cpp:561
virtual const ea::string & GetTypeName() const =0
void SetNumViewports(unsigned num)
Definition: Renderer.cpp:298
const Matrix3x4 * worldTransform_
World transform(s). For a skinned model, these are the bone transforms.
Definition: Drawable.h:173
unsigned LocalToRemote(unsigned value) const
Convert from local to remote timestamp.
Definition: ClockSynchronizer.h:102
Context * GetContext() final
Get context.
Definition: ArchiveBase.h:41
SharedPtr< SpriteSheet2D > spriteSheet_
Sprite sheet.
Definition: AnimationSet2D.h:119
void SetTimeScale(float value)
Set time scale. This is a multiplier for Perlin Noise argument.
Definition: ShakeComponent.cpp:54
float b_
Blue value.
Definition: Color.h:270
Shared pointer template class with intrusive reference counting.
Definition: Ptr.h:146
Scene(Context *context)
Construct.
Definition: Scene.cpp:65
bool Contains(IntVector2 point) const
Return true if specified point is within rectangle bounds.
Definition: Rect.h:483
void OnMarkedDirty(Node *node) override
Handle scene node transform dirtied.
Definition: LightProbeGroup.cpp:301
void SwapColorBuffers(bool synchronizeContents)
Definition: RenderBufferManager.cpp:189
unsigned char * buffer_
Pointer to the memory area.
Definition: MemoryBuffer.h:66
ValueAnimationInfo(ValueAnimation *animation, WrapMode wrapMode, float speed)
Construct without target object.
Definition: ValueAnimationInfo.cpp:34
Definition: ReplicationManager.h:139
void SetAutoLocalizable(bool enable)
Definition: Text.cpp:337
void SetUIElement(UIElement *element)
Set UI element to filter touch events. Only touch events originated in the element going to be handle...
Definition: DirectionAggregator.cpp:81
unsigned GetNumPasses() const
Definition: Technique.cpp:462
void AddTextureFrame(const TextureFrame &textureFrame)
Add a texture frame sorted in the correct position based on time.
Definition: ParticleEffect.cpp:691
Attribute layout.
Definition: ParticleGraphMemory.h:124
static void RegisterObject(Context *context)
Definition: Shader.cpp:134
bool pointerPressed_
Is there an active "pressed" event.
Definition: PointerAdapter.h:114
void SetRollingFriction(float friction)
Definition: RigidBody.cpp:371
float GetSpeedVariance() const
Return speed variance.
Definition: ParticleEffect2D.h:147
Font glyph description.
Definition: FontFace.h:40
WrapMode wrapMode_
Wrap mode.
Definition: ValueAnimationInfo.h:90
float animationLodBias_
Animation LOD bias.
Definition: ParticleEffect.h:456
Image(Context *context)
Construct empty.
Definition: Image.cpp:125
void RemoveAgentFromCrowd()
Remove agent from crowd.
Definition: CrowdAgent.cpp:315
Variant(const char *value)
Construct from a C string.
Definition: Variant.h:578
unsigned GetPinIndex(const ea::string &name)
Get pin index by name.
Definition: ParticleGraphNode.cpp:83
bool LoadXML(const XMLElement &source)
Load resource from XML file.
Definition: Animation.cpp:104
void AddTag(const ea::string &tag)
Add a tag.
Definition: UIElement.cpp:1501
b2JointDef * GetJointDef() override
Return joint def.
Definition: ConstraintGear2D.cpp:97
virtual void TestDrawables(Drawable **start, Drawable **end, bool inside)=0
Intersection test for drawables.
bool SetAttribute(const ea::string &name, const ea::string &value)
Set an attribute.
Definition: XMLElement.cpp:303
VariantVector GetBillboardsAttr() const
Return billboards attribute.
Definition: BillboardSet.cpp:434
Subsystem for file and directory operations and access control.
Definition: FileSystem.h:39
const Color & GetColorAttr() const
Get color attribute. Uses just the top-left color.
Definition: Text3D.h:231
void HandleMouseWheel(StringHash eventType, VariantMap &eventData)
Handle mouse wheel event.
Definition: UI.cpp:1759
IntVector2 windowSize_
Console window size.
Definition: Console.h:123
bool trigger_
Trigger flag.
Definition: RigidBody.h:343
bool Listen(const URL &url) override
Supports "ws" and "wss" schemes. "wss" scheme requires calling SetTLSCertificate before calling Liste...
Definition: DataChannelServer.cpp:44
AsyncLoadState
Asynchronous loading state of a resource.
Definition: Resource.h:69
~Text3D() override
Destruct.
int GetNumIterations() const
Definition: PhysicsWorld.cpp:777
float timeStep_
Time elapsed since last frame.
Definition: Drawable.h:105
bool GetBringToBack() const
Definition: UIElement.h:572
int GetNumLanguages() const
Definition: Localization.h:44
void ValidateShadowBias()
Validate shadow bias.
Definition: Light.h:465
float time_
Trigger time.
Definition: Animation.h:39
SharedPtr< ActionState > StartAction(Object *target) override
Create new action state from the action.
Definition: ShaderParameter.cpp:168
PrioritySignalSubscription(WeakPtr< RefCounted > receiver, Priority priority, Handler handler)
Construct valid.
Definition: Signal.h:71
void SetMaxWidth(int width)
Definition: UIElement.cpp:665
void SetSpacing(const Vector3 &spacing)
Definition: Terrain.cpp:197
bool WriteStringVariantMap(const StringVariantMap &value)
Write a string variant map.
Definition: Serializer.cpp:397
void RegisterRemoteEvent(StringHash eventType)
Register a remote event as allowed to be received. There is also a fixed blacklist of events that can...
Definition: Network.cpp:344
Definition: InputMap.h:131
const BoundingBox & GetWorldBoundingBox()
Definition: Drawable.cpp:262
virtual bool SaveXML(XMLElement &dest) const
Save as XML data. Return true if successful.
Definition: Serializable.cpp:278
ea::string_view GetName() const
Return name of the archive if applicable.
Definition: JSONArchive.h:41
void OnNodeSet(Node *previousNode, Node *currentNode)
Handle scene node being assigned at creation.
Definition: CameraOperator.cpp:285
XPathResultSet Evaluate(const XMLElement &element) const
Definition: XMLElement.cpp:1292
Text * messageText_
Message text element.
Definition: MessageBox.h:79
void Step(float dt) override
Called every frame with it's delta time.
Definition: ActionInstantState.cpp:44
void SetUseDerivedOpacity(bool enable)
Definition: UIElement.cpp:910
static void RegisterObject(Context *context)
Register object factory and attributes.
Definition: MoveAndOrbitController.cpp:48
WeakPtr< UIElement > uiElement_
UI element to filter touch events.
Definition: DirectionAggregator.h:137
ShaderParameterAction(Context *context)
Construct.
Definition: ShaderParameter.cpp:100
bool SetBoundingBox(const BoundingBox &value)
Set a BoundingBox attribute.
Definition: XMLElement.cpp:340
float GetCellHeight() const
Definition: NavigationMesh.h:224
float ScalarCrossProduct(const Vector2 &rhs) const
Return scalar cross product of 2D vectors.
Definition: Vector2.h:336
float GetEffectiveFogStart() const
Return effective fog start distance considering current zone.
Definition: Camera.cpp:778
void Reset()
Reset the particle emitter completely. Removes current particles, sets emitting state on,...
Definition: ParticleEmitter.cpp:328
void UpdateMainlineKey()
Update mainline key.
Definition: SpriterInstance2D.cpp:238
bool GetRemapMousePos() const
Return whether input remapping is enabled.
Definition: RmlCanvasComponent.h:53
void UpdateBuffers()
Rewrite decal vertex and index buffers.
Definition: DecalSet.cpp:1007
Hide target. The Target should have "Is Visible" attribute.
Definition: Misc.h:60
void OnHover(const IntVector2 &position, const IntVector2 &screenPosition, MouseButtonFlags buttons, QualifierFlags qualifiers, Cursor *cursor) override
React to mouse hover.
Definition: Slider.cpp:82
VariantVector ReadVariantVector()
Read a variant vector.
Definition: Deserializer.cpp:437
Vector3 CalculateCenter() const
Calculate center of vertices' bounding box.
Definition: ModelView.cpp:680
void UnsubscribeFromEvent(StringHash eventType)
Unsubscribe from an event.
Definition: Object.cpp:145
void SetDebuggerVisible(bool visible)
Show or hide RmlUi debugger.
Definition: RmlUI.cpp:480
void UpdateProjection() const
Recalculate projection matrix.
Definition: Camera.cpp:710
void SetBakeLightmap(bool bakeLightmap)
Set whether the lightmap is baked for this object.
Definition: Terrain.cpp:841
Spinlock mutex.
Definition: Mutex.h:68
bool playing_
Playing flag.
Definition: Audio.h:172
RenderBillboard(Context *context)
Construct RenderBillboard.
Definition: RenderBillboard.cpp:51
ea::shared_array< unsigned char > fontData_
Font data.
Definition: Font.h:108
const PListValueVector & GetValueVector() const
Return value vector.
Definition: PListFile.cpp:247
unsigned primaryViewMask_
View mask for primary rendering.
Definition: Camera.h:375
XMLFile * GetParametersXML() const
Return parameters XML.
Definition: ImageCube.h:60
TextureFrame()
Construct with default values.
Definition: ParticleEffect.h:91
~CustomGeometry() override
Destruct.
void DefineOrtho(float orthoSize, float aspectRatio, float zoom, float nearZ, float farZ, const Matrix3x4 &transform=Matrix3x4::IDENTITY)
Define with orthographic projection parameters and a transform matrix.
Definition: Frustum.cpp:136
unsigned EvaluateInstanceSize() const override
Evaluate size required to place new node instance.
Definition: ApplyForce.cpp:54
unsigned short GetExcludeFlags(unsigned queryFilterType) const
Get the exclude flags for the specified query filter type.
Definition: CrowdManager.cpp:503
static void RegisterObject(Context *context)
Definition: Terrain.cpp:118
For internal use only! Helper class used to associate instance of RmlUI with Rml::Context.
Definition: RmlUI.h:204
UIElement * GetWheelHandlerElement(UIElement *element)
Return the first element in hierarchy that can handle wheel.
Definition: UI.cpp:1209
Variant(const StringVector &value)
Construct from a string vector.
Definition: Variant.h:626
bool GetSortByDistance() const
Get Sort By Distance.
Definition: RenderBillboard.cpp:96
unsigned GetCursorPosition() const
Definition: LineEdit.h:104
void Define(const Vector3 &min, const Vector3 &max)
Define from minimum and maximum vectors.
Definition: BoundingBox.h:158
void SetLodBias(float bias)
Definition: Camera.cpp:177
Skeleton & GetSkeleton()
Definition: AnimatedModel.h:101
void InvalidateStaticWheelParameters(unsigned wheelIndex)
Mark wheel static data as dirty and update it before simulation.
Definition: RaycastVehicle.cpp:551
void CreateInstance(bool tryInplace=false, PrefabInstanceFlags instanceFlags=PrefabInstanceFlag::None)
Definition: PrefabReference.cpp:264
unsigned frameNumber_
Frame number.
Definition: Timer.h:131
PackageFile(Context *context)
Construct.
Definition: PackageFile.cpp:33
float GetMaxForce() const
Definition: ConstraintFriction2D.h:60
Vector2 size_
Size (for rectangle and ellipse).
Definition: TileMapDefs2D.h:237
AutoRemoveMode GetAutoRemoveMode() const
Definition: ParticleEmitter.h:114
Font face description.
Definition: FontFace.h:67
~ParticleGraphEffect() override
Destruct.
bool IsInput() const final
Definition: ArchiveBase.h:189
bool HasAxisPosition(unsigned index) const
Definition: Input.h:122
void AssignBoneNodes()
Find bones after loading.
Definition: DecalSet.cpp:1101
void SetDefaultStyle(XMLFile *style)
Definition: FileSelector.cpp:146
ParticleGraphPin & GetPin(unsigned index) override
Get pin by index.
Definition: Print.h:62
SharedPtr< ActionState > StartAction(Object *target) override
Create new action state from the action.
Definition: Misc.cpp:85
bool GetNodesWithTag(ea::vector< Node * > &dest, const ea::string &tag) const
Get nodes with specific tag from the whole scene, return false if empty.
Definition: Scene.cpp:793
void HandleUpdate(StringHash eventName, VariantMap &args)
Handle update event to animate state transitions.
Definition: StateManager.cpp:577
static void RegisterObject(Context *context)
Definition: TileMapLayer2D.cpp:46
~Obstacle() override
Destruct.
Definition: Obstacle.cpp:46
void SetCustomMaterial(Material *customMaterial)
Definition: StaticSprite2D.cpp:213
WeakPtr< Renderer > renderer_
Renderer subsystem.
Definition: UI.h:397
void AddLayer(unsigned index, TmxLayer2D *layer)
Add layer at index, if index > number of layers then append to end.
Definition: TmxFile2D.cpp:542
void SetHovering(bool enable)
Set hovering state.
Definition: UIElement.cpp:1856
bool RemoveTag(const ea::string &tag)
Remove specific tag. Return true if existed.
Definition: UIElement.cpp:1521
float regionMergeSize_
Region merge size.
Definition: NavigationMesh.h:378
T & GetWrapped(const IntVector2 &index)
Return element by wrapped index.
Definition: Array2D.h:193
constexpr bool operator!=(Enum rhs) const
Non-equality check against enum value.
Definition: FlagSet.h:202
float GetSpeed() const
Definition: SplinePath.h:86
ea::vector< ea::pair< unsigned, unsigned > > debugHighlightEdges_
Debug array of edges related to errors in generation.
Definition: TetrahedralMesh.h:428
bool operator!=(const SourceBatch2D &other) const
Inequality comparison operator.
Definition: Drawable2D.h:88
unsigned occlusionLodLevel_
LOD level used for occlusion.
Definition: Terrain.h:369
BiasParameters(float constantBias, float slopeScaledBias, float normalOffset=0.0f)
Construct with initial values.
Definition: Light.h:93
bool elementEventSender_
Flag whether node should send child added / removed events by itself.
Definition: UIElement.h:928
void OnSetEditable() override
React to editable status change.
Definition: DropDownList.cpp:147
void SetVelocityCallback(const CrowdAgentVelocityCallback &callback)
Set velocity callback.
Definition: CrowdManager.h:89
bool debugGeometry_
Enables vertex buffer shadowing.
Definition: Terrain.h:407
void DrawTransform(const b2Transform &xf) override
Draw a transform. Choose your own length scale.
Definition: PhysicsWorld2D.cpp:263
Weak pointer template class with intrusive reference counting. Does not keep the object pointed to al...
Definition: Ptr.h:339
bool RemoveChildren(const ea::string &name=EMPTY_STRING)
Remove child elements of certain name, or all child elements if name is empty. Return true if success...
Definition: XMLElement.cpp:186
short y_
Y position in texture.
Definition: FontFace.h:45
Vector4 lightmapScaleOffset_
Lightmap scale and offset.
Definition: Terrain.h:333
void Detach()
Detach from parent.
Definition: UIElement.cpp:2269
void HandleRenderUpdate(StringHash eventType, VariantMap &eventData)
Handle render update in case of headless execution.
Definition: Octree.cpp:767
Frustum GetViewSpaceSplitFrustum(float nearClip, float farClip) const
Return split frustum in view space.
Definition: Camera.cpp:371
Vector3 otherPosition_
Constraint other body position.
Definition: Constraint.h:213
WeakPtr< Image > windowIcon_
Window icon image.
Definition: Graphics.h:299
void SetEmitting(bool enable)
Definition: ParticleEmitter2D.cpp:161
int systemCursor_
System cursor index.
Definition: Cursor.h:90
ParticleGraphNodeInstance * CreateInstanceAt(void *ptr, ParticleGraphLayerInstance *layer) override
Place new instance at the provided address.
Definition: BurstTimer.cpp:63
@ AM_READONLY
Attribute is readonly. Can't be used with binary serialized objects.
Definition: Attribute.h:51
bool WriteVariantMap(const VariantMap &value)
Write a variant map.
Definition: Serializer.cpp:385
Intersection IsInside(const Vector3 &point) const
Test if a point is inside.
Definition: Sphere.h:174
CullMode GetCullMode() const
Definition: Material.h:276
BlendMode GetBlendMode() const
Definition: StaticSprite2D.h:105
void OnMarkedDirty(Node *node) override
Handle node transform being dirtied.
Definition: CollisionShape.cpp:936
bool Rename(const ea::string &srcFileName, const ea::string &destFileName)
Rename a file. Return true if successful.
Definition: FileSystem.cpp:762
Polyhedron Transformed(const Matrix3 &transform) const
Return transformed with a 3x3 matrix.
Definition: Polyhedron.cpp:257
LightProbeCollectionBakedData bakedData_
Baked data.
Definition: LightProbeGroup.h:225
void SetInstanceDefault(bool enable)
(Internal use) Set instance-level default flag.
Definition: Serializable.h:98
NumericRange(const T &minValue, const T &maxValue)
Construct valid.
Definition: NumericRange.h:40
void SetFontOversampling(int oversampling)
Definition: UI.cpp:668
void RemoveAllParticles()
Remove all current particles.
Definition: ParticleGraphLayerInstance.cpp:94
Frustum GetSplitFrustum(float nearClip, float farClip) const
Return frustum split by custom near and far clip distances.
Definition: Camera.cpp:318
~Sprite2D() override
Destruct.
ea::vector< UpdateFlag > isDrawableUpdated_
Definition: DrawableProcessor.h:291
const ea::string & GetStartBone() const
Return name of start bone.
Definition: AnimationState.h:182
bool operator<(const PrioritySignalSubscription< Handler, Priority > &rhs) const
Compare subscriptions. Higher priority goes before.
Definition: Signal.h:78
TmxFile2D * GetTmxFile() const
Return tmx file.
Definition: TmxFile2D.cpp:50
float GetActiveTime() const
Definition: ParticleEffect.h:334
const Vector3 & GetGeometryCenter(unsigned index) const
Definition: Model.h:193
int GetInt(const ea::string &name) const
Return an integer attribute, or zero if missing.
Definition: XMLElement.cpp:861
bool PrepareUnreliableDelta(NetworkFrame frame) override
Prepare for unreliable delta update and return update mask. If mask is zero, unreliable delta update ...
Definition: BehaviorNetworkObject.cpp:312
ea::string logger_
Message text.
Definition: Log.h:102
void SetRepeatDelay(float delayInSeconds)
Set repeat delay in seconds.
Definition: DirectionalPadAdapter.cpp:143
Drawable(Context *context, DrawableFlags drawableFlags=DRAWABLE_UNDEFINED)
Construct.
Definition: Drawable.cpp:73
IntVector3 coordinateSystem_
Coordinate system.
Definition: RaycastVehicle.h:163
bool AddTile(const ea::vector< unsigned char > &tileData) override
Add tile to navigation mesh.
Definition: DynamicNavigationMesh.cpp:317
SharedPtr< ParticleGraphEffect > effect_
Particle effect.
Definition: ParticleGraphEmitter.h:126
void ReloadLightmaps()
Reload lightmap textures.
Definition: Scene.cpp:295
void SetModelAttr(const ResourceRef &value)
Set model attribute.
Definition: StaticModel.cpp:372
unsigned vertexCount_
Number of vertices.
Definition: CollisionShape.h:120
Vector2 size_
Original billboard size.
Definition: ParticleEmitter.h:38
unsigned char GetRenderOrder() const
Definition: Material.h:300
static const SphericalHarmonicsDot9 ZERO
Zero harmonics.
Definition: SphericalHarmonics.h:302
File opened either through the filesystem or from within a package file.
Definition: File.h:56
unsigned lastUpdateFrameNumber_
Rendering framenumber on which was last updated.
Definition: RibbonTrail.h:270
void SetHeightCallback(const CrowdAgentHeightCallback &callback)
Set height callback.
Definition: CrowdAgent.h:104
Vector3 GetRandomPoint(int queryFilterType, dtPolyRef *randomRef=nullptr)
Return a random point on the navigation mesh using the crowd initialized query extent (based on maxAg...
Definition: CrowdManager.cpp:422
void HandleHeightMapReloadFinished(StringHash eventType, VariantMap &eventData)
Handle heightmap image reload finished.
Definition: Terrain.cpp:1451
unsigned WriteNode(unsigned index)
Write graph node. Return node id.
Definition: ParticleGraph.cpp:119
ea::unique_ptr< ClockSynchronizer > clock_
Definition: Connection.h:276
VariantCurvePoint VariantAnimationKeyFrame
Generic variant animation keyframe.
Definition: AnimationTrack.h:76
const ea::vector< VertexElement > & GetElements() const
Definition: VertexBuffer.h:67
float GetSortValue() const
Return sorting value.
Definition: Drawable.h:384
int GetLanguageIndex() const
Definition: Localization.h:48
void SetEngineFactor(float factor)
Set engine factor. Engine power is multiplied by the factor.
bool isServer_
Server mode flag.
Definition: NamedPipe.h:73
ParticleGraphPin * LoadInputPin(ParticleGraphReader &reader, GraphInPin &pin) override
Load input pin.
Definition: Helpers.cpp:137
Watches a set of directories for files being modified.
Definition: MultiFileWatcher.h:31
float GetAnimationLodBias() const
Definition: BillboardSet.h:157
virtual Matrix4 GetProjection(VREye eye, float nearDist, float farDist) const =0
Return the projection matrix for an eye.
Utility class to read prefab data from Archive.
Definition: PrefabReader.h:81
static void RegisterObject(Context *context)
Definition: Zone.cpp:71
void SetAngle(float value)
Set Angle.
Definition: Cone.cpp:83
const Color & GetAmbientColor() const
Definition: Zone.h:101
void SetInitialTransform(const Vector3 &position, const Quaternion &rotation=Quaternion::IDENTITY, const Vector3 &scale=Vector3::ONE)
Set initial bone transform. Doesn't change offset matrix.
Definition: ModelView.cpp:464
static void RegisterObject(Context *context)
Definition: ConstraintRope2D.cpp:45
bool autoSize_
Auto-size (reduce resolution when far away) flag.
Definition: Light.h:175
bool LoadFile(const FileIdentifier &fileName)
Load resource from file.
Definition: Resource.cpp:153
float GetAngularVelocity() const
Return angular velocity.
Definition: RigidBody2D.cpp:512
void SetColor(const Color &color)
Definition: Light.cpp:283
SharedPtr< Sprite2D > sprite_
Sprite.
Definition: TmxFile2D.h:153
unsigned g_
Green channel mask. If zero, green channel is set to 0.
Definition: Color.h:42
static void RegisterObject(Context *context)
Register object factory.
Definition: SystemMessageBox.cpp:54
Vector3 GetColor(bool isLinear) const
Return light color in appropriate color space.
Definition: LightProcessor.h:85
void CalculateOuterMatrices()
Calculate matrices for outer tetrahedrons.
Definition: TetrahedralMesh.cpp:1116
bool nonUniform_
Non-uniform focusing flag.
Definition: Light.h:173
Utility used to update and process visible or shadow caster Drawables.
Definition: DrawableProcessor.h:169
NavmeshPartitionType GetPartitionType() const
Definition: NavigationMesh.h:289
void SetShadowNearFarRatio(float nearFarRatio)
Definition: Light.cpp:341
Vector2 ConvertPosition(const Vector2 &position) const
Convert tmx position to Urho position.
Definition: TileMapDefs2D.cpp:50
bool editable_
Value editable flag.
Definition: UIElement.h:815
unsigned dataSize_
Total data size in bytes.
Definition: Image.h:56
static Variant ParseShaderParameterValue(const ea::string &value)
Parse a shader parameter value from a string. Retunrs either a bool, a float, or a 2 to 4-component v...
Definition: Material.cpp:970
void SetDeepEnabled(bool enable)
Set enabled state on self and child elements. Elements' own enabled state is remembered (IsEnabledSel...
Definition: UIElement.cpp:921
void HandleFileSelected(StringHash eventType, VariantMap &eventData)
Handle file selected from the list.
Definition: FileSelector.cpp:406
void SetRadius(float value)
Set Radius.
Definition: Sphere.cpp:73
WeakPtr< Terrain > south_
South neighbor terrain.
Definition: Terrain.h:341
SharedPtr< ActionState > StartAction(Object *target) override
Create new action state from the action.
Definition: Misc.cpp:76
void SetParentAsFrameOfReference(const IKNode &childNode)
Same as SetFrameOfReference, except it accepts first child of the node.
Definition: IKSolverComponent.cpp:173
void SerializeData(Archive &archive)
Serialize GI data. May throw ArchiveException.
Definition: GlobalIllumination.cpp:147
float GetMaxRadiusVariance() const
Return max radius variance.
Definition: ParticleEffect2D.h:213
void InitializeDirectional(DrawableProcessor *drawableProcessor, const FloatRange &splitRange, const ea::vector< Drawable * > &litGeometries)
Definition: ShadowSplitProcessor.cpp:88
2D circle collision component.
Definition: CollisionCircle2D.h:31
static void SetMaxBones(unsigned maxBones)
Sets the maximum number of supported bones for hardware skinning. Check GPU capabilities before setti...
Definition: Graphics.cpp:543
unsigned GetRevision() const
Return object revision.
Definition: ObjectRevisionTracker.h:38
void SetFirstBoneName(const ea::string &name)
Definition: IKRotateTo.h:26
Definition: NavigationMesh.h:63
AllocatorNode * next_
Next free node.
Definition: Allocator.h:57
void SetCursorMovable(bool enable)
Definition: LineEdit.cpp:520
int GetCurrentMonitor() const
Definition: Graphics.cpp:470
ResourceRouter * GetResourceRouter(unsigned index) const
Return a resource router by index.
Definition: ResourceCache.cpp:660
2D texture resource.
Definition: Texture2D.h:36
FiniteTimeAction * GetAction(unsigned index) const
Get action by index.
Definition: Parallel.cpp:123
SharedPtr< Scene > defaultScene_
Default scene for rendering.
Definition: VirtualReality.h:304
float GetEndTime() const
Return end time.
Definition: ValueAnimation.h:135
@ CA_STATE_WALKING
The agent is traversing a normal navigation mesh polygon.
Definition: CrowdAgent.h:54
float Length() const
Return length.
Definition: Vector3.h:173
void OnWorldBoundingBoxUpdate() override
Recalculate the world-space bounding box.
Definition: Zone.cpp:283
TetrahedralMesh lightProbesMesh_
Light probes mesh.
Definition: GlobalIllumination.h:87
ActionCallHandler(Object *receiver, void *userData=nullptr)
Construct with specified receiver and userdata.
Definition: CallFunc.h:38
const Vector2 & GetPosition() const
Definition: TileMapDefs2D.h:192
WeakPtr< UIElement > focusElement_
Currently focused element.
Definition: UI.h:405
ea::unordered_map< StringHash, SharedPtr< Resource > > resources_
Resources.
Definition: ResourceCache.h:62
float GetUpperTranslation() const
Definition: ConstraintPrismatic2D.h:87
Definition: RaycastVehicleWheel.h:33
bool retryCreation_
Shape creation retry flag if attributes initially set without scene.
Definition: CollisionShape.h:340
void ProcessCustomRayQuery(const RayOctreeQuery &query, const BoundingBox &worldBoundingBox, const Matrix3x4 &worldTransform, ea::vector< RayQueryResult > &results)
Process raycast with custom transform.
Definition: StaticModel.cpp:82
@ AM_EDIT
Attribute shown only in the editor, but not serialized.
Definition: Attribute.h:39
void SetRadialAcceleration(float radialAcceleration)
Set radial acceleration.
Definition: ParticleEffect2D.cpp:346
void RefreshInterpreters()
Populate the command line interpreters that could handle the console command.
Definition: Console.cpp:105
float GetHeight() const
Definition: CrowdAgent.h:196
ea::vector< TaskFunction > mainThreadTasks_
Tasks to be invoked from main thread.
Definition: WorkQueue.h:257
void SetCullMode(CullMode mode)
Definition: Technique.cpp:71
ea::unordered_map< StringHash, WeakPtr< ApplicationState > > stateCache_
Cache of previously created states.
Definition: StateManager.h:264
void SetDefaultTechnique(Technique *technique)
Definition: Renderer.cpp:311
unsigned sizeHint_
Block size.
Definition: Archive.h:93
Definition: ToneMappingPass.h:47
VariantMap & GetIdentity()
Return client identity.
Definition: Connection.h:153
bool enabled_
Is aggregator enabled.
Definition: PointerAdapter.h:104
int GetCategoryBits() const
Definition: CollisionShape2D.h:84
bool SetBuffer(const ea::string &name, const void *data, unsigned size)
Set a buffer attribute.
Definition: XMLElement.cpp:347
VariantType GetType() const
Definition: GraphPin.h:70
Obstacle for dynamic navigation mesh.
Definition: Obstacle.h:34
Definition: OctreeQuery.h:136
bool BeginLoad(Deserializer &source) override
Load resource from stream. May be called from a worker thread. Return true if successful.
Definition: ActionSet.cpp:43
unsigned viewMask_
View mask.
Definition: Drawable.h:467
unsigned GetVertexCount() const
Definition: CollisionChain2D.h:62
Color clearColor_
Color which will be used to clear target texture.
Definition: UI.h:491
Repeat inner action several times.
Definition: Repeat.h:34
void OnNodeSet(Node *previousNode, Node *currentNode) override
Handle scene node being assigned at creation.
Definition: LogicComponent.cpp:86
Intersection
Intersection test result.
Definition: MathDefs.h:65
void AddColorFrame(const ColorFrame &colorFrame)
Add a color frame sorted in the correct position based on time.
Definition: ParticleEffect.cpp:616
void UpdateBatchesDelayed(const FrameInfo &frame) override
Batch update from main thread. Called on demand only if RequestUpdateBatchesDelayed() is called from ...
Definition: DecalSet.cpp:232
bool SetResourceRefList(const ResourceRefList &value)
Set a resource reference list attribute.
Definition: XMLElement.cpp:491
float CrossProduct(const Vector2 &rhs) const
Calculate "cross product" aka z component of cross product of (x1, y1, 0) and (x2,...
Definition: Vector2.h:330
unsigned GetNumFiles() const
Definition: PackageFile.h:70
unsigned objectIndex_
Index of the object in the array.
Definition: LightmapGeometryBuffer.h:41
void Release()
Release the mutex.
Definition: Mutex.h:109
WeakPtr< UIElement > doubleClickElement_
UI element last clicked for tracking double clicks.
Definition: UI.h:467
virtual bool ShouldBeTrackedInRegistry() const
Returns whether the component should be tracked by the registry.
Definition: TrackedComponent.h:54
static const unsigned MaxIterations
Max number of tries to produce "good" random values.
Definition: RandomEngine.h:46
Hardware index buffer.
Definition: IndexBuffer.h:44
bool EnterFile()
Enter a directory or confirm a file. Return true if a directory entered.
Definition: FileSelector.cpp:350
Parameters for indirect light filtering.
Definition: LightBakingSettings.h:130
Texture * GetShapeTexture() const
Definition: Light.h:390
bool IsNaN() const
Return whether any component is NaN.
Definition: Vector3.h:426
void UpdateNodeIDs() const
Update node IDs attribute from the actual nodes.
Definition: CameraOperator.cpp:207
Vector3 GetScale() const
Get Scale.
Definition: Hemisphere.cpp:91
Matrix3x4 transforms_
Transform matrices for position and orientation.
Definition: RibbonTrail.h:242
float maxSpeed_
Agent's max Velocity.
Definition: CrowdAgent.h:269
unsigned drawCount_
Index or vertex count.
Definition: OcclusionBuffer.h:81
ea::string error_
Error string. Empty if no error.
Definition: HttpRequest.h:98
Iterator base.
Definition: MultiVector.h:46
float GetFinishParticleSizeVariance() const
Return finish particle size variance.
Definition: ParticleEffect2D.h:201
Node * node_
Scene node.
Definition: OctreeQuery.h:172
VertexElement(VertexElementType type, VertexElementSemantic semantic, unsigned char index=0, unsigned stepRate=0) noexcept
Construct with type, semantic, index and whether is per-instance data.
Definition: GraphicsDefs.h:96
unsigned mtime_
Last modification time.
Definition: ModulePlugin.h:59
void SetDampen(float value)
Set Dampen.
Definition: LimitVelocity.cpp:69
float GetDeadZone() const
Get dead zone.
Definition: DirectionAggregator.h:100
bool PrepareUnreliableDelta(NetworkFrame frame) override
Prepare for unreliable delta update and return update mask. If mask is zero, unreliable delta update ...
Definition: ReplicatedAnimation.cpp:230
LightPSVariation
Light pixel shader variations.
Definition: Renderer.h:89
Vector3 GetRandomDirection() const
Return random direction.
Definition: ParticleEffect.cpp:790
void SetInterpolationMode(InterpolationMode interpolationMode)
Definition: Spline.h:92
bool SetData(unsigned layer, unsigned level, int x, int y, int width, int height, const void *data)
Set data either partially or fully on a layer's mip level. Return true if successful.
Definition: Texture2DArray.cpp:155
@ AM_PREFAB
Attribute should be saved in prefab.
Definition: Attribute.h:53
bool updateInvisible_
Update animation when invisible flag.
Definition: AnimatedModel.h:238
void SetPriority(int priority)
Set thread priority. The thread must have been started first.
Definition: Thread.cpp:180
FocusMode
UI element focus mode.
Definition: UIElement.h:72
bool IsFixedScreenSize() const
Definition: ParticleEffect.h:302
Audio(Context *context)
Construct.
Definition: Audio.cpp:91
UIElement * element_
Element this batch represents.
Definition: UIBatch.h:77
Vector4 ToVector4() const
Definition: Color.h:172
PipelineState * GetOrCreatePipelineState(const UIBatchStateKey &key, const UIBatchStateCreateContext &ctx, UIBatchStateCacheCallback *callback)
Definition: BatchStateCache.cpp:127
int GetLevelDepth(unsigned level) const
Return mip level depth, or 0 if level does not exist.
Definition: Texture.cpp:188
float fontSize_
Font size.
Definition: TextRenderer3D.h:44
float GetAngularDamping() const
Return linear velocity damping factor.
Definition: KinematicCharacterController.h:88
static const unsigned NumPer
Number of permutations.
Definition: PerlinNoise.h:35
ea::string ReadString()
Read a null-terminated string.
Definition: Deserializer.cpp:250
Variant(const Color &value)
Construct from a color.
Definition: Variant.h:566
~MutexLock()
Destruct. Release the mutex.
Definition: Mutex.h:155
Cached zone parameters.
Definition: Octree.h:193
unsigned shaderParameterHash_
Shader parameter hash value.
Definition: Material.h:372
bool TextInputActivatedThisFrame() const
Return true if text input activation was requested on this frame.
Definition: RmlSystem.cpp:118
T Sign(T value)
Definition: MathDefs.h:105
Matrix4 GetProjection(bool ignoreFlip=false) const
Definition: Camera.cpp:461
XrSpaceLocation location_
Position and orientation from space location.
Definition: OpenXR.h:120
void SendPackageError(const ea::string &name)
Send an error reply for a package download.
Definition: Connection.cpp:887
bool LoadAsyncJSON(AbstractFilePtr file, LoadMode mode=LOAD_SCENE_AND_RESOURCES)
Load from a JSON file asynchronously. Return true if started successfully. The LOAD_RESOURCES_ONLY mo...
Definition: Scene.cpp:552
void UpdateTileCache()
Definition: DynamicNavigationMesh.cpp:824
TileMapLayerType2D type_
Layer type.
Definition: TmxFile2D.h:77
void SetLength(float length)
Definition: Animation.cpp:461
float GetMotorSpeed() const
Definition: ConstraintWheel2D.h:84
void SetRadius(float radius)
Set wheel radius.
float GetFadeDistance() const
Definition: Light.h:350
Definition: AttributeActionState.h:83
void BeginBlock(const char *name, unsigned &sizeHint, bool safe, ArchiveBlockType type) final
Definition: XMLArchive.cpp:80
bool GetBakeLightmap() const
Return whether the lightmap is baked for this object.
Definition: Terrain.h:268
const Vector2 & GetHotSpot() const
Definition: Sprite2D.h:80
BoundingBox CalculateBoundingBox(const Vector3 &padding=Vector3::ZERO)
Calculate padded bounding box.
Definition: LightProbeGroup.h:107
ea::vector< LightmapSeam > LightmapSeamVector
Vector of lightmap seams.
Definition: LightmapGeometryBuffer.h:71
AttributeMode
Definition: Attribute.h:36
virtual void SetCurrentActionSet(const ea::string &setName)
Sets the current action set by name.
Definition: VirtualReality.cpp:187
void OnSetAttribute(const AttributeInfo &attr, const Variant &src) override
Handle attribute write access. Default implementation writes to the variable at offset,...
Definition: KinematicCharacterController.cpp:93
void DrawDebugGeometry(DebugRenderer *debug, bool depthTest)
Definition: Octree.cpp:209
Vector4 GetScaleOffset() const
Return lightmap scale & offset vector.
Definition: LightmapCharter.h:59
Move(Context *context)
Construct Move.
Definition: Move.cpp:44
void SetEngineForce(float engineForce)
Set maximum linear momentum supplied by engine to RigidBody.
Definition: RaycastVehicle.h:73
@ NotStarted
Baking is not started.
Variant(const VariantVector &value)
Construct from a variant vector.
Definition: Variant.h:614
Skeleton()
Construct an empty skeleton.
Definition: Skeleton.cpp:35
unsigned lodIndex_
Index of geometry LOD.
Definition: LightmapGeometryBuffer.h:45
unsigned index_
Lightmap chart index.
Definition: LightmapCharter.h:89
void ReleaseSDL()
Indicate that you are done with using SDL. Must be called after using RequireSDL().
Definition: Context.cpp:247
bool QueueResource(StringHash type, const ea::string &name, bool sendEventOnFailure, Resource *caller)
Queue loading of a resource. The name must be sanitated to ensure consistent format....
bool GetShowPercentText() const
Definition: ProgressBar.h:94
float GetEngineForce() const
Get engine force.
ea::string Reverse() const
Definition: StringHash.cpp:72
IntVector2 ReadIntVector2()
Read an IntVector2.
Definition: Deserializer.cpp:148
ea::vector< SharedPtr< ShaderVariation > > vertexShaders_
Vertex shaders.
Definition: Technique.h:240
void SetCone(float diameter, float height, const Vector3 &position=Vector3::ZERO, const Quaternion &rotation=Quaternion::IDENTITY)
Set as a cone.
Definition: CollisionShape.cpp:654
const ea::vector< ea::vector< SharedPtr< Geometry > > > & GetGeometries() const
Return animated geometries.
Definition: SoftwareModelAnimator.h:77
Indirect light accumulated for given lightmap chart.
Definition: LightTracer.h:91
const Vector3 & GetPositionDelta() const
Get position delta.
Definition: Move.h:44
void SetPadding(const Vector3 &padding)
Definition: NavigationMesh.cpp:341
Vector3 GetPosition() const
Get the parent Node's last position on the spline.
Definition: SplinePath.h:93
ea::map< ea::string, JSONValue > * objectValue_
Definition: JSONValue.h:338
void ProcessRayQuery(const RayOctreeQuery &query, ea::vector< RayQueryResult > &results) override
Process octree raycast. May be called from a worker thread.
Definition: CustomGeometry.cpp:79
void EndContact(b2Contact *contact) override
Called when two fixtures cease to touch.
Definition: PhysicsWorld2D.cpp:120
float texelDensity_
Texel density in texels per Scene unit.
Definition: LightBakingSettings.h:43
static PackedNodeComponentData FromNodes(Iter begin, Iter end)
Pack nodes.
Definition: PackedSceneData.h:99
Vector3 chunkSize_
Chunk size.
Definition: BakedSceneCollector.h:131
const ea::string & GetName() const
Returns a name of the plugin. Name is usually a base name of plugin file.
Definition: Plugin.h:43
static const ResourceRef emptyResourceRef
Empty resource reference.
Definition: Variant.h:1653
constexpr void Set(const Integer flags, bool enabled=true)
Definition: FlagSet.h:227
pugi::xml_node_struct * GetNode() const
Return pugixml xml_node_struct.
Definition: XMLElement.h:307
unsigned EvaluateInstanceSize() const override
Evaluate size required to place new node instance.
Definition: WorldToLocal.cpp:53
ea::unordered_map< ea::string, SharedPtr< ValueAnimationInfo > > attributeAnimationInfos_
Name to attribute animation info mapping.
Definition: ObjectAnimation.h:96
Matrix3x4 ReflectionMatrix() const
Definition: Plane.cpp:52
Vector2 ToVector2() const
Return Vector2 vector.
Definition: Vector2.h:502
@ USE_FIXEDPOSTUPDATE
Bitmask for using the physics post-update event.
Definition: LogicComponent.h:44
float touchSensitivity_
Touch sensitivity.
Definition: FreeFlyController.h:127
bool discardShaderCache_
Whether to discard shader cache on the disk.
Definition: Graphics.h:76
ea::vector< float > * vertexData_
Vertex data.
Definition: UIBatch.h:87
unsigned customGeometryID_
CustomGeometry component ID. 0 if not creating the convex hull / triangle mesh from a CustomGeometry.
Definition: CollisionShape.h:334
const ea::string & GetPinName(unsigned pinIndex) const
Get pin name.
Definition: ParticleGraphNode.cpp:94
void OnResize(const IntVector2 &newSize, const IntVector2 &delta) override
React to resize.
Definition: ProgressBar.cpp:70
StringHash nameHash_
Property name hash.
Definition: GraphNode.h:63
Vector4 tangent_
Tangent. W-component is the sign of binormal direction.
Definition: ModelView.h:62
3D texture resource.
Definition: Texture3D.h:34
Definition: Attribute.h:191
void SetBodyType(BodyType2D type)
Definition: RigidBody2D.cpp:102
unsigned value_
Hash value.
Definition: StringHash.h:155
void ClearDepthStencil(RenderBuffer *depthStencilBuffer, ClearTargetFlags flags, float depth, unsigned stencil, CubeMapFace face=FACE_POSITIVE_X)
Definition: RenderBufferManager.cpp:270
void SetTranslation(const Vector3 &translation)
Set translation elements.
Definition: Matrix4.h:482
SharedPtr< FiniteTimeAction > Reverse() const override
Create reversed action.
Definition: Ease.cpp:90
static void RegisterObject(Context *context)
Definition: ConstraintFriction2D.cpp:44
void UpdateTransforms(XrSession session, Node *controllerNode)
Update transforms in loaded model.
Definition: OpenXR.cpp:1233
bool WriteStringVector(const StringVector &value)
Write a variant vector.
Definition: Serializer.cpp:376
void GetTileGeometry(NavBuildData *build, ea::vector< NavigationGeometryInfo > &geometryList, BoundingBox &box)
Get geometry data within a bounding box.
Definition: NavigationMesh.cpp:1072
bool recreateTerrain_
Terrain needs regeneration flag.
Definition: Terrain.h:403
void Update(Component *component) const
Update attributes of existing component.
Definition: PackedSceneData.cpp:156
FileIdentifier(const ea::string &uri)
Deprecated. Use FromUri() instead.
Definition: FileIdentifier.h:52
void SetOrderInLayer(int orderInLayer)
Definition: Drawable2D.cpp:87
int CeilToInt(T x)
Definition: MathDefs.h:292
virtual bool IsLightShadowed(Light *light)=0
Return whether light needs shadow.
~Graphics() override
Destruct. Release the Direct3D11 device and close the window.
Definition: Graphics.cpp:124
bool GetAutoLocalizable() const
Definition: Text.h:168
float TwistAngle(const Vector3 &axis) const
Return twist angle around given axis. Quaternion may or may not have additional rotation that will be...
Definition: Quaternion.cpp:362
Base archive for JSON serialization.
Definition: JSONArchive.h:36
bool addSkybox_
Whether to add skybox background. Doesn't affect object reflections!
Definition: GLTFImporter.h:76
void SetFogStart(float start)
Definition: Zone.cpp:139
float GetLodDistance() const
Definition: Geometry.h:115
void DisableMassUpdate()
Disable mass update. Call this to optimize performance when adding or editing multiple collision shap...
Definition: RigidBody.cpp:554
float Luma() const
Return the 'grayscale' representation of RGB values, as used by JPEG and PAL/NTSC among others.
Definition: Color.h:181
static PackedSceneData FromScene(Scene *scene)
Pack whole scene.
Definition: PackedSceneData.cpp:181
bool IsSimulating() const
Return whether is currently inside the Bullet substep loop.
Definition: PhysicsWorld.h:322
Vector4 tangent_
Tangent.
Definition: DecalSet.h:69
ea::string systemName_
Name of the system being run, ie. Windows Mixed Reality.
Definition: VirtualReality.h:282
static unsigned GetSystemTime()
Get system time as milliseconds.
Definition: Timer.cpp:160
void SetLength(float value)
Set Length.
Definition: Cone.cpp:87
Model geometry, unpacked for easy editing.
Definition: ModelView.h:206
Vector3 Normalized() const
Return normalized to unit length.
Definition: Vector3.h:432
void UpdateResourceGroup(StringHash type)
Update a resource group. Recalculate memory use and release resources if over memory budget.
Definition: ResourceCache.cpp:823
void HandleMouseButtonDown(StringHash eventType, VariantMap &eventData)
Handle mouse button down event.
Definition: UI.cpp:1679
const char * GetCString(const char *defaultValue="") const
Return C string value. Default to empty string literal.
Definition: JSONValue.h:229
MountPoint * MountPackageFile(const ea::string &path)
Mount package file into virtual file system.
Definition: VirtualFileSystem.cpp:103
void ReleaseNavigationMesh() override
Release the navigation mesh, query, and tile cache.
Definition: DynamicNavigationMesh.cpp:812
FiniteTimeActionState(FiniteTimeAction *action, Object *target)
Construct.
Definition: FiniteTimeActionState.cpp:34
~ActionInstantState() override
Destruct.
Definition: ActionInstantState.cpp:40
static void BulkTranspose(float dest[], const float src[], unsigned count)
Bulk transpose matrices.
Definition: Matrix3.h:333
static void RegisterObject(ParticleGraphSystem *context)
Register particle node factory.
Definition: Attribute.cpp:75
void SetVariantValue(const Variant &variant, Context *context=nullptr)
Set variant value, context must provide for resource ref.
Definition: JSONValue.cpp:457
Octant * GetOrCreateChild(unsigned index)
Return or create a child octant.
Definition: Octree.cpp:88
bool GetHierarchyMode() const
Definition: ListView.h:172
bool directory_
Directory flag.
Definition: FileSelector.h:47
ea::string vertexShaderName_
Vertex shader name.
Definition: Technique.h:228
Output that aggregates all ModelAnimationStateTrack-s targeted at the same bone.
Definition: AnimationState.h:84
void CalculateLength()
Calculate the length of the SplinePath. Used for movement calculations.
Definition: SplinePath.cpp:340
void SetTileLayer(const TmxTileLayer2D *tileLayer)
Set tile layer.
Definition: TileMapLayer2D.cpp:338
CustomVariantValueImpl(const T &value)
Construct from value.
Definition: Variant.h:368
GraphPinRef< GraphEnterPin > GetConnectedPin(GraphExitPin &pin) const
Get pin connected to the exit pin.
Definition: Graph.cpp:66
void SetCFM(float cfm)
Definition: Constraint.cpp:300
ea::shared_array< unsigned char > inputBuffer_
Decompression input buffer for compressed file loading.
Definition: File.h:144
ea::string ToString() const
Return as string.
Definition: Matrix4.cpp:136
BoundingBox worldBoundingBox_
World bounding box.
Definition: Octree.h:306
void UnlockScene() override
Called after everything else. Scene objects must stay unchanged until this call.
Definition: BakedSceneCollector.cpp:316
ParticleGraphNodeInstance * CreateInstanceAt(void *ptr, ParticleGraphLayerInstance *layer) override
Place new instance at the provided address.
Definition: Emit.cpp:59
void SetRadius(float radius)
Definition: Light.cpp:293
Variant(const char *type, const char *value)
Construct from type and value.
Definition: Variant.h:704
void HandleDefocused(StringHash eventType, VariantMap &eventData)
Handle being defocused.
Definition: LineEdit.cpp:658
SharedPtr< ApplicationState > state_
Target state if set by pointer to an object.
Definition: StateManager.h:171
void ValidatePosition()
Validate window position.
Definition: Window.cpp:401
void OnSetEnabled() override
Handle enabled/disabled state change.
Definition: CollisionShape2D.cpp:65
void DefineShape(const ea::string &shape, Image *image, const IntRect &imageRect, const IntVector2 &hotSpot)
Define a shape.
Definition: Cursor.cpp:135
void ResetCrowdTarget(Node *node=nullptr)
Reset any crowd target for all crowd agents found in the specified node. Defaulted to scene node.
Definition: CrowdManager.cpp:244
Signal< void(const RmlDocumentReloadedArgs &)> documentReloaded_
Emitted when automatic resource reloading triggers reload of a document.
Definition: RmlUI.h:115
unsigned expectedElementCount_
Expected block size (for arrays).
Definition: JSONArchive.h:71
unsigned Seek(unsigned position) override
Set position from the beginning of the stream. Not supported.
Definition: HttpRequest.cpp:290
ea::string GetCurrentDir() const
Definition: FileSystem.cpp:799
const ea::unordered_map< StringHash, AnimationTrack > & GetTracks() const
Return all animation tracks.
Definition: Animation.h:111
int GetLevelHeight(unsigned level) const
Definition: Texture.cpp:181
ParticleGraphPin & GetPin(unsigned index) override
Get pin by index.
Definition: Uniform.h:85
float quantize_
Focus quantization.
Definition: Light.h:177
float GetMapHeight() const
Definition: TileMapDefs2D.cpp:40
T VectorClamp(const T &value, const T &min, const T &max)
Per-component clamp of vector.
Definition: MathDefs.h:144
bool IsVisible() const override
Returns whether the VR session is presented to the user.
Definition: OpenXR.cpp:1518
BaseIterator()=default
Construct default.
void SetMouseVisible(bool enable)
Set whether the operating system mouse cursor is visible.
Definition: StateManager.cpp:135
void AddQuad(float x, float y, float width, float height, int texOffsetX, int texOffsetY, int texWidth=0, int texHeight=0)
Add a quad.
Definition: UIBatch.cpp:76
XMLElement CreateChild(const ea::string &name)
Create a child element.
Definition: XMLElement.cpp:109
float opacity_
Opacity.
Definition: UIElement.h:906
float slopeScaledBias_
Slope scaled bias.
Definition: Light.h:106
BorderImage(Context *context)
Construct.
Definition: BorderImage.cpp:36
SceneResolver resolver_
Node and component ID resolver for asynchronous loading.
Definition: Scene.h:331
void SetFrequencyHz(float frequencyHz)
Definition: ConstraintWheel2D.cpp:119
void DefineTangent(const Vector4 &tangent)
Define a vertex tangent.
Definition: CustomGeometry.cpp:291
unsigned EvaluateInstanceSize() const override
Evaluate size required to place new node instance.
Definition: BurstTimer.cpp:57
WeakPtr< RigidBody2D > ownerBody_
Owner body.
Definition: Constraint2D.h:104
void HandleSceneSubsystemUpdate(StringHash eventType, VariantMap &eventData)
Trigger the tile cache to make updates to the nav mesh if necessary.
Definition: DynamicNavigationMesh.cpp:915
Vector2 size_
Size.
Definition: CollisionBox2D.h:79
Zone(Context *context)
Construct.
Definition: Zone.cpp:52
ea::unordered_map< StringHash, SharedPtr< EventReceiverGroup > > eventReceivers_
Event receivers for non-specific events.
Definition: Context.h:184
const ea::vector< SharedPtr< VertexBuffer > > & GetVertexBuffers() const
Return all cloned vertex buffers.
Definition: SoftwareModelAnimator.h:80
void HandleTextInput(StringHash eventType, VariantMap &eventData)
Handle text input event.
Definition: RmlUI.cpp:636
unsigned position_
Byte position in the front most buffer.
Definition: BufferedSoundStream.h:64
IntVector2 hoverOffset_
Offset to image rectangle on hover.
Definition: BorderImage.h:144
void SetEnableLimit(bool enableLimit)
Definition: ConstraintRevolute2D.cpp:68
ea::vector< PipelineBatch > unsortedShadowBatches_
Definition: ShadowSplitProcessor.h:132
void UpdateViewProjectionMatrices() const
Recalculate view-projection matrices.
Definition: Camera.cpp:756
void OnNodeSet(Node *previousNode, Node *currentNode) override
Handle scene node being assigned at creation.
Definition: ReflectionProbe.cpp:780
ea::vector< RayQueryResult > & result_
Result vector reference.
Definition: OctreeQuery.h:251
bool flipX_
Flip X.
Definition: StaticSprite2D.h:177
ea::unique_ptr< btTypedConstraint > constraint_
Bullet constraint.
Definition: Constraint.h:205
float orthoSize_
Orthographic view size.
Definition: Camera.h:367
Definition: HemisphereInstance.h:35
static void RegisterObject(Context *context)
Definition: CollisionPolygon2D.cpp:44
void OnRenderBegin(const CommonFrameInfo &frameInfo) override
Definition: RenderBuffer.cpp:234
void ProcessPackageInfo(int msgID, MemoryBuffer &msg)
Process a SyncPackagesInfo message from server.
Definition: Connection.cpp:952
unsigned fps_
Calculated fps.
Definition: DebugHud.h:96
Definition: EffectTime.h:37
void SetInactiveTime(float time)
Definition: ParticleEffect.cpp:515
ea::vector< ea::vector< CustomGeometryVertex > > vertices_
Source vertices per geometry.
Definition: CustomGeometry.h:143
Material(Context *context)
Construct.
Definition: Material.cpp:197
AnimatedAttributeReference ParseAnimatablePath(ea::string_view path, Node *startNode)
Parse animatable path from starting node.
Definition: AnimationController.cpp:1021
AttributeModeFlags mode_
Attribute mode: whether to use for serialization, network replication, or both.
Definition: Attribute.h:170
bool BeginShadowMapRendering(const ShadowMapRegion &shadowMap)
Begin shadow map rendering. Clears shadow map if necessary.
Definition: ShadowMapAllocator.cpp:129
unsigned GetIndexInParent() const
Return index of this component in the node.
Definition: Component.cpp:194
bool bakeLightmap_
Whether the lightmap is enabled.
Definition: StaticModel.h:162
void SetResolveDirty(bool enable)
Set or clear the need resolve flag. Called internally by Graphics.
Definition: RenderSurface.h:129
virtual SharedPtr< RenderPipelineView > Instantiate()
Create new instance of render pipeline.
Definition: RenderPipeline.cpp:252
unsigned GetNumAreas(unsigned queryFilterType) const
Definition: CrowdManager.cpp:459
void WriteFloat(XMLElement &element, const ea::string &name, float value) const
Write float.
Definition: ParticleEffect2D.cpp:550
WeakPtr(U *ptr) noexcept
Construct from a raw pointer.
Definition: Ptr.h:385
static const unsigned FLIP_HORIZONTAL
Tile flipping flags.
Definition: TileMapDefs2D.h:127
ea::vector< ContactInfo > beginContactInfos_
Begin contact infos.
Definition: PhysicsWorld2D.h:307
Vector2 GetMassCenter() const
Definition: CollisionShape2D.cpp:263
Material * GetBatchMaterial(const UIBatch &batch) const
Return material corresponding to UIBatch.
Definition: UI.cpp:926
const Vector2 & GetAxis() const
Definition: ConstraintPrismatic2D.h:75
unsigned capacity_
Number of nodes in this block.
Definition: Allocator.h:45
void RecalculateHash()
Recalculate parameter hash.
Definition: TextRenderer3D.h:66
bool IsKinematic() const
Definition: RigidBody.h:260
ea::vector< unsigned char > ReadBinary()
Reads a binary file to buffer.
Definition: File.h:111
void SetDefaultFontAttr(const ResourceRef &value)
Set default font attribute.
Definition: TextRenderer3D.cpp:171
ConstraintMotor2D(Context *context)
Construct.
Definition: ConstraintMotor2D.cpp:35
ea::vector< TetrahedralMeshSurfaceEdge > edges_
Temporary buffer for calculating adjacency.
Definition: TetrahedralMesh.h:221
ea::vector< ea::vector< Matrix3x4 > > geometrySkinMatrices_
Subgeometry skinning matrices, used if more bones than skinning shader can manage.
Definition: AnimatedModel.h:222
Serializer & AsSerializer()
Cast to Serializer.
Definition: BinaryFile.h:81
ea::vector< SharedPtr< Viewport > > viewports_
Backbuffer viewports.
Definition: StateManager.h:145
Vector3 targetPosition_
Requested target position.
Definition: CrowdAgent.h:259
bool IsInf() const
Return whether any component is Inf.
Definition: Vector4.h:215
Actions::ActionState * Run(Object *target) const
Definition: ActionBuilder.cpp:454
void SetTextAlignment(HorizontalAlignment align)
Definition: Text3D.cpp:265
void SetRowSpacing(float spacing)
Definition: Text3D.cpp:272
State of render pipeline that can be accessed by render path and render passes.
Definition: SharedRenderPassState.h:21
bool WriteFileID(const ea::string &value)
Write a four-letter file ID. If the string is not long enough, spaces will be appended.
Definition: Serializer.cpp:207
Matrix2(float v00, float v01, float v10, float v11) noexcept
Construct from values.
Definition: Matrix2.h:47
ea::string GetTypeName() const
Definition: Variant.cpp:689
void SetupShaders(ShaderProgramDesc &result, Pass *pass)
Definition: ShaderProgramCompositor.cpp:136
void ResetUpdateQueued()
Reset update queued flag. Called internally.
Definition: RenderSurface.cpp:84
MoveAndOrbitController(Context *context)
Construct.
Definition: MoveAndOrbitController.cpp:38
ea::string stitchBackgroundModelName_
Model used for background during stitching.
Definition: LightBakingSettings.h:152
BaseIterator(OuterIterator begin, OuterIterator end)
Construct from outer range.
Definition: MultiVector.h:53
ResourceRef GetCustomMaterialAttr() const
Return custom material attribute.
Definition: StaticSprite2D.cpp:253
void SetFaceCameraMode(FaceCameraMode mode)
Definition: BillboardSet.cpp:335
HorizontalAlignment textAlignment_
Row alignment.
Definition: Text.h:260
CollisionBox2D(Context *context)
Construct.
Definition: CollisionBox2D.cpp:36
void OnSetEnabled() override
Handle enabled/disabled state change.
Definition: Terrain.cpp:173
float time_
Keyframe time.
Definition: AnimationTrack.h:41
unsigned indexCount_
Index count.
Definition: Model.h:105
bool initialized_
Initialized flag.
Definition: Engine.h:196
void ValidateShadowFocus()
Validate shadow focus.
Definition: Light.h:461
IntRect imageRect_
Image rectangle.
Definition: BorderImage.h:138
Base archive for XML serialization.
Definition: XMLArchive.h:36
void DecDrawableCount()
Decrease drawable object count recursively and remove octant if it becomes empty.
Definition: Octree.h:131
SpatialInfo spatialInfo_
Root spatial info.
Definition: SpriterInstance2D.h:103
~SpriteSheet2D() override
Destruct.
float GetSpeed() const
Return speed.
Definition: ParticleEffect2D.h:144
float Left() const
Definition: Rect.h:258
Vector2 ConvertUV(const Vector2 &uv) const
Return transformed UV coordinates.
Definition: RaytracerScene.h:72
void SetImageLayer(const TmxImageLayer2D *imageLayer)
Set image layer.
Definition: TileMapLayer2D.cpp:404
void Initialize(TileMap2D *tileMap, const TmxLayer2D *tmxLayer)
Initialize with tile map and tmx layer.
Definition: TileMapLayer2D.cpp:170
SharedPtr< Animation > exitAnimation_
Exit animation.
Definition: TriggerAnimator.h:90
void ValidateShadowCascade()
Validate shadow cascade.
Definition: Light.h:463
unsigned GetNumPins() const override
Get number of pins.
Definition: Attribute.h:124
void SetPasses(ea::vector< SharedPtr< ScenePass >> passes)
Definition: SceneProcessor.cpp:256
void ApplyAttributes() override
Apply attribute changes that can not be applied immediately. Called after scene load or a network upd...
Definition: Constraint.cpp:98
bool BeginLoad(Deserializer &source) override
Load resource from stream. May be called from a worker thread. Return true if successful.
Definition: Model.cpp:76
bool InitializeNodes(IKNodeCache &nodeCache) override
Definition: IKHeadSolver.cpp:67
static void RegisterObject(Context *context)
Definition: Octree.cpp:425
ea::string ToString() const
Convert value to string. Pointers are returned as null, and VariantBuffer or VariantMap are not suppo...
Definition: Variant.cpp:694
bool inverseWorldDirty_
Inverse transform dirty flag.
Definition: Zone.h:199
bool GetBakeLightmap() const
Return whether the lightmap is baked for this object.
Definition: TerrainPatch.h:113
bool IsSixteenBit() const
Return whether data is sixteen bit.
Definition: SoundStream.h:63
Light baker component.
Definition: LightBaker.h:52
virtual SharedPtr< RenderPipelineView > Instantiate() override
Create new instance of render pipeline.
Definition: StereoRenderPipeline.cpp:684
float GetEffectiveTimeScale() const
Definition: Scene.h:242
void SetFinishParticleSize(float finishParticleSize)
Set finish particle size.
Definition: ParticleEffect2D.cpp:401
Package file receive transfer.
Definition: Connection.h:60
bool ProcessMessage(MemoryBuffer &buffer)
Process a message from the server or client. Called by Network.
Definition: Connection.cpp:302
static const IntVector3 RIGHT
(1,0,0) vector.
Definition: Vector3.h:187
const ea::vector< ColorFrame > & GetColorFrames() const
Return all color animation frames.
Definition: ParticleEffect.h:397
virtual bool LoadPins(ParticleGraphReader &reader, GraphNode &node)
Load pins.
Definition: ParticleGraphNode.cpp:167
IntVector2(int x, int y) noexcept
Construct from coordinates.
Definition: Vector2.h:50
void SetCursor(Cursor *cursor)
Definition: UI.cpp:158
void SetDepthWrite(bool enable)
Definition: Technique.cpp:89
static unsigned GetMaxBones()
Return maximum number of supported bones for skinning.
Definition: Graphics.cpp:675
T Sin(T angle)
Definition: MathDefs.h:173
void SetPath(const ea::string &path)
Definition: FileSelector.cpp:196
bool FindAndRemoveIntersected(DelaunayContext &ctx, const Vector3 &position, TetrahedralMeshSurface &holeSurface, ea::vector< unsigned > &removedTetrahedrons, bool dumpErrors=false) const
Definition: TetrahedralMesh.cpp:602
void ApplyValue(const Variant &newValue) override
Apply new animation value to the target object. Called by Update().
Definition: Animatable.cpp:55
A common root class for objects that implement both Serializer and Deserializer.
Definition: AbstractFile.h:39
Temporary storage for internal structures.
Definition: OpenXR.h:325
Quaternion GetRotation() const
Definition: RigidBody.cpp:579
const ea::string & GetName() const override
Returns human-readable name of the mount point.
Definition: MountedAliasRoot.cpp:107
void SerializeInBlock(Archive &archive) override
Serialize from/to archive. Return true if successful.
Definition: ParticleGraph.cpp:81
ea::shared_array< signed char > data_
Compressed sound data.
Definition: OggVorbisSoundStream.h:53
const ea::string & ConvertEnumToString(unsigned value) const
Convert enum value to string.
Definition: Attribute.h:142
b2Joint * joint_
Box2D joint.
Definition: Constraint2D.h:102
bool Defined() const
Return true if this bounding box is defined via a previous call to Define() or Merge().
Definition: BoundingBox.h:294
virtual Animatable * FindAttributeAnimationTarget(const ea::string &name, ea::string &outName)
Find target of an attribute animation from object hierarchy by name.
Definition: Animatable.cpp:462
virtual bool PrepareUnreliableFeedback(NetworkFrame frame)
Prepare for unreliable feedback and return feedback mask. If mask is zero, unreliable feedback is ski...
Definition: NetworkCallbacks.h:119
void SetOrthoSizeAttr(float orthoSize)
Set orthographic size attribute without forcing the aspect ratio.
Definition: Camera.cpp:669
SharedPtr< InputMap > inputMap_
Input map.
Definition: MoveAndOrbitController.h:117
const CrowdAgentHeightCallback & GetHeightCallback() const
Return current height callback.
Definition: CrowdAgent.h:106
void SetControlledNode(Node *controlled)
Definition: SplinePath.cpp:192
static void RegisterObject(ParticleGraphSystem *context)
Register particle node factory.
Definition: Add.cpp:38
float endTime_
End time.
Definition: ValueAnimation.h:172
Vector2 ToVector2() const
Return Vector2 vector (z component is ignored).
Definition: Vector3.h:161
Geometry for ray tracing.
Definition: RaytracerScene.h:89
void SetMaxMotorTorque(float maxMotorTorque)
Definition: ConstraintRevolute2D.cpp:133
SharedPtr< Zone > defaultZone_
Default zone.
Definition: Renderer.h:344
Variant Convert(VariantType targetType) const
Convert variant value. Returns variant of VAR_NONE type if conversion fails / not possible.
Definition: Variant.cpp:618
virtual void OnSceneSet(Scene *scene)
Handle scene change in instance.
Definition: ParticleGraphNodeInstance.cpp:48
static const Color TRANSPARENT_BLACK
Transparent black color (black with no alpha).
Definition: Color.h:293
float minView_
Minimum view size.
Definition: Light.h:179
@ JSONNT_UINT
Unsigned integer.
Definition: JSONValue.h:63
VectorBuffer()
Construct an empty buffer.
MultiFileWatcher(Context *context)
Construct.
Definition: MultiFileWatcher.h:37
Vector4(const Vector2 &v1, const Vector2 &v2) noexcept
Construct from two 2-dimensional vectors.
Definition: Vector4.h:56
Vector4 Ar_
Dot product with (Nx, Ny, Nz, 1), red channel.
Definition: SphericalHarmonics.h:287
static size_t Write(SDL_RWops *context, const void *ptr, size_t size, size_t maxNum)
Write to the object. Return number of "packets" written.
Definition: RWOpsWrapper.h:109
void ApplyAttributes() override
Apply attribute changes that can not be applied immediately. Called after scene load or a network upd...
Definition: AnimatedModel.cpp:107
bool SetIndexBuffers(const ea::vector< SharedPtr< IndexBuffer > > &buffers)
Set index buffers.
Definition: Model.cpp:529
void SetShadowMask(unsigned mask)
Definition: ParticleGraphEmitter.cpp:164
unsigned GetIndexCount() const
Definition: IndexBuffer.h:63
void DynamicCast(const SharedPtr< U1, U2 > &rhs) noexcept
Perform a dynamic cast from a shared pointer of another type.
Definition: Ptr.h:295
Color endColor_
Color for end of trails.
Definition: RibbonTrail.h:258
float velocityMin_
Particle velocity minimum.
Definition: ParticleEffect.h:486
void QueueNodeTransformUpdate(Node *node, const Transform &transform)
Definition: Octree.cpp:756
Sound resource.
Definition: Sound.h:36
static const Matrix3x4 ZERO
Zero matrix.
Definition: Matrix3x4.h:757
bool GetEnableLimit() const
Definition: ConstraintRevolute2D.h:72
void BroadcastRemoteEvent(StringHash eventType, bool inOrder, const VariantMap &eventData=Variant::emptyVariantMap)
Broadcast a remote event to all client connections.
Definition: Network.cpp:284
float GetFadeInDuration() const
Get fade in animation duration;.
Definition: StateManager.h:226
void Remove(GraphNode *)
Add node to the graph.
Definition: Graph.cpp:210
SharedPtr< CollisionGeometryData > geometry_
Shared geometry data.
Definition: CollisionShape.h:318
Curve(Context *context)
Construct.
Definition: Curve.cpp:65
LightType lightType_
Light type.
Definition: BakedLight.h:60
void CreateNextState()
Dequeue and set next state as active.
Definition: StateManager.cpp:643
Base class for an application state. Examples of a state would be a loading screen,...
Definition: StateManager.h:24
void SetMaterial(Material *material)
Definition: BillboardSet.cpp:277
unsigned ToHash() const
Return hash value for HashSet & HashMap.
Definition: Matrix4.h:678
JSON output archive block.
Definition: JSONArchive.h:56
virtual ParticleGraphPin * LoadInputPin(ParticleGraphReader &reader, GraphInPin &pin)
Load input pin.
Definition: ParticleGraphNode.cpp:134
void RemoveMarkedTetrahedrons(const ea::vector< bool > &removed)
Remove marked tetrahedrons from array.
Definition: TetrahedralMesh.cpp:970
unsigned char * GetData() const
Return pixel data.
Definition: Image.h:164
ea::string dataModelName_
Name of the data model.
Definition: RmlUIComponent.h:208
void RemoveSoundSource(SoundSource *soundSource)
Remove a sound source. Called by SoundSource.
Definition: Audio.cpp:338
void UpdateSourceBatchesSpriter()
Update vertices for spriter animation.
Definition: AnimatedSprite2D.cpp:416
Matrix3 Inverse() const
Return inverse.
Definition: Matrix3.cpp:72
unsigned vertexSize_
Vertex size.
Definition: VertexBuffer.h:139
float minRadiusVariance_
Min radius variance.
Definition: ParticleEffect2D.h:315
FillMode GetFillMode() const
Definition: Material.h:284
Definition: ObjectRevisionTracker.h:32
Utility to assign unique non-zero IDs to objects. Thread-safe.
Definition: IndexAllocator.h:37
bool InitializeQuery()
Ensure that the navigation mesh query is initialized. Return true if successful.
Definition: NavigationMesh.cpp:1525
void SetRootBoneIndex(unsigned index)
Set root bone's index.
Definition: Skeleton.cpp:120
void SetView(Camera *camera)
Set camera view to render from.
Definition: OcclusionBuffer.cpp:114
void EvaluateTouchRects(IntRect &movementRect, IntRect &rotationRect) const
Evaluate active touch areas.
Definition: MoveAndOrbitController.cpp:233
void EndThreadedUpdate()
End a threaded update. Notify components that marked themselves for delayed dirty processing.
Definition: Scene.cpp:860
void ReleaseShaders()
Reset all shader pointers.
Definition: Material.cpp:836
unsigned FindBestResolutionIndex(int monitor, int width, int height, int refreshRate) const
Return index of the best resolution for requested width, height and refresh rate.
Definition: Graphics.cpp:429
ea::unordered_map< ea::string, SharedPtr< AttributeAnimationInfo > > attributeAnimationInfos_
Attribute animation infos.
Definition: Animatable.h:158
unsigned zoneMask_
Zone mask.
Definition: Camera.h:379
ActionCallHandler * GetCallHandler() const
Get call handler.
Definition: CallFunc.h:100
bool alphaToCoverage_
Alpha-to-coverage flag.
Definition: Material.h:374
float x_
X coordinate.
Definition: Text.h:68
~JSONValue()
Destruct.
Definition: JSONValue.h:152
void OnWorldBoundingBoxUpdate() override
Recalculate the world-space bounding box.
Definition: Text3D.cpp:546
void SetName(const ea::string &name)
Definition: ModelView.h:321
EaseBackInOut(Context *context)
Construct.
Definition: Ease.cpp:225
bool GetSortChildren() const
Definition: UIElement.h:580
bool active_
Is the game screen active.
Definition: StateManager.h:131
Attribute animation instance.
Definition: Animatable.h:40
float zoom_
Zoom.
Definition: Camera.h:371
SharedPtr< FiniteTimeAction > Reverse() const override
Create reversed action.
Definition: Move.cpp:606
SharedPtr< FiniteTimeAction > Reverse() const override
Create reversed action.
Definition: Ease.cpp:152
CallFunc(Context *context)
Construct.
Definition: CallFunc.cpp:59
ea::unordered_map< StringHash, ea::hash_set< StringHash > > dependentResources_
Dependent resources. Only used with automatic reload to eg. trigger reload of a cube texture when any...
Definition: ResourceCache.h:243
void SetScale(Vector3 value)
Set Scale.
Definition: Box.cpp:84
void FromHSL(float h, float s, float l, float a=1.0f)
Set RGBA values from specified HSL values and alpha.
Definition: Color.cpp:95
Spline for creating smooth movement based on Speed along a set of Control Points modified by the Inte...
Definition: SplinePath.h:40
SharedPtr< FiniteTimeAction > Reverse() const override
Create reversed action.
Definition: Repeat.cpp:120
bool SetVector2(const ea::string &name, const Vector2 &value)
Set a Vector2 attribute.
Definition: XMLElement.cpp:577
void InitMouseMode()
Initialize mouse mode on non-web platform.
Definition: StateManager.cpp:259
Variant value_
Target node.
Definition: GraphPin.h:129
Server part of ReplicationManager subsystem.
Definition: ServerReplicator.h:206
unsigned GetAreaID() const
Definition: OffMeshConnection.h:83
void FromEulerAngles(float x, float y, float z)
Define from Euler angles (in degrees). Equivalent to Y*X*Z.
Definition: Quaternion.cpp:50
ea::string name_
Pass name.
Definition: Technique.h:250
Vector3 angularVelocity_
Optional: angular velocity of the pose.
Definition: VirtualReality.h:155
Vector2 otherBodyAnchor_
Other body anchor.
Definition: ConstraintRope2D.h:75
float GetRotationStartVariance() const
Return rotation start variance.
Definition: ParticleEffect2D.h:234
void SetUniformName(const ea::string &name)
Set attribute name.
Definition: Uniform.h:46
Component that runs animation when triggered.
Definition: TriggerAnimator.h:33
AxisAdapter axisAdapter_
Gamepad default axis adapter.
Definition: FreeFlyController.h:134
~File() override
Destruct. Close the file if open.
Definition: File.cpp:124
UIElement * GetFocusElement() const
Definition: UI.h:187
UIElement * GetUIElement() const
Get UI element to filter touch events.
Definition: PointerAdapter.h:67
RawTexture * GetSecondaryColorTexture() const
Definition: RenderBufferManager.h:157
unsigned EvaluateInstanceSize() const override
Evaluate size required to place new node instance.
Definition: Attribute.h:89
Render buffer parameters. Actual render buffer size is controlled externally.
Definition: RenderPipelineDefs.h:133
void SetDefaultFogColor(const Color &color)
Set default zone fog color.
Definition: StateManager.cpp:218
void Disconnect()
Disconnect pin.
Definition: GraphPin.cpp:121
unsigned GetMaxTriangles() const
Return maximum number of triangles.
Definition: OcclusionBuffer.h:148
unsigned GetNumIndices() const
Definition: DecalSet.h:167
ObjectAnimation * GetObjectAnimation() const
Definition: Animatable.cpp:419
float GetFrequencyHz() const
Definition: ConstraintWeld2D.h:60
MountPoint * MountDir(const ea::string &path)
Mount real folder into virtual file system.
Definition: VirtualFileSystem.cpp:55
Vertex Buffer of dynamic size. Resize policy is similar to standard vector.
Definition: VertexBuffer.h:151
void ApplyEffect()
Apply not continuously updated values such as the material, the number of particles and sorting mode ...
Definition: ParticleEmitter.cpp:335
unsigned Seek(unsigned position) override
Set position from the beginning of the memory area. Return actual new position.
Definition: MemoryBuffer.cpp:100
Vector3 lastNodeScale_
Last node scale used during auto placement.
Definition: LightProbeGroup.h:218
void SetBoundingBox(const BoundingBox &box)
Set bounding box.
Definition: CameraOperator.cpp:150
void DrawDebugGeometry(DebugRenderer *debug, bool depthTest) override
Visualize the component as debug geometry.
Definition: RigidBody.cpp:192
ea::string ToString(const ea::string &indentation="\t") const
Serialize the XML content to a string.
Definition: XMLFile.cpp:218
void Reset(const ArrayDimensions2D &dim)
Resize array. All elements are reset to default value.
Definition: Array2D.h:147
T SnapRound(T x, T y)
Round value to nearest number that can be represented as i*y, where i is integer.
Definition: MathDefs.h:265
bool occludee_
Occludee flag.
Definition: Terrain.h:379
void SetRotatePerSecondVariance(float rotatePerSecondVariance)
Set rotate per second variance.
Definition: ParticleEffect2D.cpp:446
void SetRectangle(const IntRect &rectangle)
Definition: Sprite2D.cpp:118
ea::vector< ea::vector< Matrix3x4 * > > geometrySkinMatrixPtrs_
Subgeometry skinning matrix pointers, if more bones than skinning shader can manage.
Definition: AnimatedModel.h:224
bool internalEdge_
Use internal edge utility flag.
Definition: PhysicsWorld.h:397
ea::array< const ReflectionProbeData *, 2 > reflectionProbes_
Reflection probe.
Definition: LightAccumulator.h:201
ea::string GetSerializedLightProbes() const
Return serialized light probes.
Definition: LightProbeGroup.cpp:273
void SerializeInBlock(Archive &archive) override
Serialize content from/to archive. May throw ArchiveException.
Definition: CallFunc.cpp:100
CachedDrawableZone QueryZone(const Vector3 &position, unsigned zoneMask) const
Query zone for given position and mask.
Definition: Octree.cpp:367
Definition: FileIdentifier.h:42
int GetWidth() const
Return the current width.
Definition: AreaAllocator.h:47
ea::fixed_function< HandlerSize, bool(RefCounted *, Sender *, Args...)> Handler
Signal handler type.
Definition: Signal.h:93
bool IsChanged() const
Returns true if this action has changed state since the last update.
Definition: VirtualReality.h:87
~PhysicsWorld() override
Destruct.
Definition: PhysicsWorld.cpp:225
T * Reserve(const T &object)
Reserve and copy-construct an object.
Definition: Allocator.h:101
Animate shader parameter.
Definition: ShaderParameter.h:32
float GetDefaultFontSize() const
Return default font size.
Definition: TextRenderer3D.h:127
unsigned GetNumItems() const
Definition: ListView.cpp:837
virtual ParticleGraphPin * LoadOutputPin(ParticleGraphReader &reader, GraphOutPin &pin)
Load output pin.
Definition: ParticleGraphNode.cpp:150
Console * CreateConsole()
Create the console and return it. May return null if engine configuration does not allow creation (he...
Definition: Engine.cpp:781
PluginApplication * GetMainPlugin() const
Return main plugin. The result is valid after plugin application started.
Definition: PluginManager.cpp:422
IntRect scissor_
Scissor rectangle.
Definition: UIBatch.h:81
void RecreateJoint()
Recreate joint.
Definition: Constraint2D.cpp:174
void SetDoubleClickInterval(float interval)
Definition: UI.cpp:579
Menu UI element that displays a popup list view.
Definition: DropDownList.h:33
static RmlUIComponent * FromDocument(Rml::ElementDocument *document)
Returns instance of the component from the document.
Definition: RmlUIComponent.cpp:530
bool IsScaled() const
Definition: BillboardSet.h:137
b2PolygonShape boxShape_
Box shape.
Definition: CollisionBox2D.h:77
static const Matrix3 ZERO
Zero matrix.
Definition: Matrix3.h:353
const SceneProcessor *const sceneProcessor_
Definition: PipelineStateBuilder.h:88
NavArea(Context *context)
Construct.
Definition: NavArea.cpp:39
int lastFontSize_
Last used text size.
Definition: LineEdit.h:157
static void UpdateSource(const CreateCallback &createPayload)
Call this function on every frame from drag source.
Definition: DragDropPayload.cpp:56
void DrawDebugGeometry(DebugRenderer *debug, bool depthTest) override
Visualize the component as debug geometry.
Definition: CollisionShape.cpp:514
void DrawTriangles()
Draw submitted batches. Uses worker threads if enabled during SetSize().
Definition: OcclusionBuffer.cpp:199
float Right() const
Definition: Rect.h:266
ActionBuilder & MoveBy(float duration, const Vector3 &offset, ea::string_view attributeName=Actions::POSITION_ATTRIBUTE)
Continue with MoveBy action.
Definition: ActionBuilder.cpp:92
bool EndLoad() override
Finish resource loading. Always called from the main thread. Return true if successful.
Definition: Texture2DArray.cpp:112
int GetHeight() const
Definition: Graphics.h:176
Color clearColor_
Color used to clear render surface if not rendering into backbuffer.
Definition: RmlUI.h:163
void Erase(unsigned pos, unsigned length=1)
Erase a range of JSON values.
Definition: JSONValue.cpp:298
IntRect GetEffectiveRect(RenderSurface *renderTarget, bool compensateRenderTargetFlip=true) const
Definition: Viewport.cpp:137
ea::string name_
Package name.
Definition: Connection.h:70
Packed Scene as whole.
Definition: PackedSceneData.h:138
void SetMessage(const ea::string &text)
Set message text. No-ops if there is no message text element.
Definition: SystemMessageBox.cpp:64
void Clear()
Clear.
Definition: TetrahedralMesh.h:224
int unusedStreamSize_
Unused stream bytes from previous frame.
Definition: SoundSource.h:247
Color colors_[MAX_UIELEMENT_CORNERS]
Colors.
Definition: UIElement.h:795
void SetBackgroundStatic(bool isStatic)
Set the background is considered static by lightmapper.
Definition: Zone.cpp:128
void SetScaled(bool enable)
Definition: ParticleEffect.cpp:460
const ea::vector< Vector3 > & GetGeometryCenters() const
Return geometry center points.
Definition: Model.h:186
ea::vector< DebugLine > lines_
Lines rendered with depth test.
Definition: DebugRenderer.h:190
virtual ea::vector< unsigned char > GetTileData(const IntVector2 &tileIndex) const
Return tile data.
Definition: NavigationMesh.cpp:505
void Update(const FrameInfo &frame) override
Update before octree reinsertion. Is called from a worker thread.
Definition: AnimatedModel.cpp:224
float GetValue() const
Definition: Slider.h:93
Animatable(Context *context)
Construct.
Definition: Animatable.cpp:65
Vector2 Max() const
Return right-bottom corner position.
Definition: Rect.h:254
ea::unordered_map< StringHash, MaterialShaderParameter > shaderParameters_
Shader parameters.
Definition: Material.h:352
void HandleSceneSubsystemUpdate(StringHash eventType, VariantMap &eventData)
Handle the scene subsystem update event, step simulation here.
Definition: PhysicsWorld.cpp:865
void SerializeInBlock(Archive &archive) override
Serialize content from/to archive. May throw ArchiveException.
Definition: ShaderParameter.cpp:127
unsigned size_
Size in bytes.
Definition: ParticleGraphMemory.h:41
static const StringVector emptyStringVector
Empty string vector.
Definition: Variant.h:1661
unsigned viewMask_
Drawable layers to include.
Definition: OctreeQuery.h:65
float GetDistanceSquared(float lhs, float rhs)
Definition: NetworkValue.h:44
Custom geometry component.
Definition: CustomGeometry.h:49
static void RegisterObject(Context *context)
Definition: OffMeshConnection.cpp:52
ea::vector< DecalVertex > vertices_
Decal vertices.
Definition: DecalSet.h:98
void SetLayoutSpacing(int spacing)
Definition: UIElement.cpp:1088
void SetBlendMode(BlendMode mode)
Definition: Technique.cpp:65
IntVector2 movementTouchOrigin_
Position where the touch gesture started.
Definition: MoveAndOrbitController.h:134
void DumpResources(bool dumpFileName=false)
Dump information of all resources to the log.
Definition: Engine.cpp:889
void Clear()
Clear scene completely.
Definition: Scene.cpp:716
void OnScreenModeChanged()
Called when screen mode is successfully changed by the backend.
Definition: Graphics.cpp:524
void HandleKeyDown(StringHash eventType, VariantMap &eventData)
Handle keypress event.
Definition: UI.cpp:1865
ea::unique_ptr< btCapsuleShape > shape_
Bullet collision shape.
Definition: KinematicCharacterController.h:186
void SetSorted(bool enable)
Definition: RibbonTrail.cpp:843
constexpr bool Test(const Enum value) const
Return true if specified enum value is set.
Definition: FlagSet.h:214
ShaderParameterTo(Context *context)
Construct.
Definition: ShaderParameter.cpp:118
virtual void ReconnectToRegistry()=0
Reconnect component to registry of the current scene.
void SetOtherBodyAnchor(const Vector2 &anchor)
Definition: ConstraintDistance2D.cpp:68
bool operator==(const SharedPtr< U1, U2 > &rhs) const noexcept
Test for equality with another shared pointer.
Definition: Ptr.h:244
void SetDefaultFontSize(float fontSize)
Set default font size.
Definition: TextRenderer3D.h:125
Connection * GetServerConnection() const
Definition: Network.cpp:405
bool AddManualResource(Resource *resource)
Add a manually created resource. Must be uniquely named within its type.
Definition: ResourceCache.cpp:119
BoundingBox lastWorldBoundingBox_
Last world-space bounding box.
Definition: Zone.h:207
BakedLight()=default
Construct default.
static int Inc(int coord, int repeat)
Increment coordinate.
Definition: PerlinNoise.h:50
bool ignoreTransformChanges_
Internal flag to ignore transform changes because it came from us, used in OnCrowdAgentReposition().
Definition: CrowdAgent.h:289
void SetBonesEnabledAttr(const VariantVector &value)
Set bones' animation enabled attribute.
Definition: AnimatedModel.cpp:736
Helper class used for StringHash reversing.
Definition: StringHashRegister.h:38
bool IsSorted() const
Definition: RibbonTrail.h:175
float GetAngle() const
Definition: CollisionBox2D.h:68
bool Write()
Write graph.
Definition: ParticleGraph.cpp:108
void ProcessUnknownMessage(int msgID, MemoryBuffer &msg)
Process unknown message. All unknown messages are forwarded as an events.
Definition: Connection.cpp:966
bool InitializeNodes(IKNodeCache &nodeCache) override
Definition: IKIdentitySolver.cpp:66
void SetObjectAttributeAnimation(const ea::string &name, ValueAnimation *attributeAnimation, WrapMode wrapMode, float speed)
Set object attribute animation internal.
Definition: Animatable.cpp:469
unsigned index_
Lightmap chart index.
Definition: LightmapGeometryBuffer.h:79
RigidBody2D * GetOtherBody() const
Definition: Constraint2D.h:73
static void RegisterObject(ParticleGraphSystem *context)
Register particle node factory.
Definition: Sphere.cpp:38
static void Sleep(unsigned mSec)
Sleep for a number of milliseconds.
Definition: Timer.cpp:188
StringVector ScanAvailableModules()
Enumerate dynamic modules available to load.
Definition: PluginManager.cpp:558
Matrix3x4 GetMatrix3x4(const ea::string &name) const
Return a Matrix3x4 attribute, or zero matrix if missing.
Definition: XMLElement.cpp:1078
SharedPtr< Material > material_
Material that is set to the model.
Definition: UIComponent.h:69
constexpr bool operator==(Enum rhs) const
Equality check against enum value.
Definition: FlagSet.h:190
bool PrepareUnreliableFeedback(NetworkFrame frame) override
Prepare for unreliable feedback and return feedback mask. If mask is zero, unreliable feedback is ski...
Definition: BehaviorNetworkObject.cpp:363
void Commit()
Commit all added data to GPU.
Definition: VertexBuffer.cpp:471
const BakedSceneBackgroundArrayPtr & GetBackgrounds() const
Return background.
Definition: RaytracerScene.h:166
Renders off-screen UI into a texture.
Definition: RmlCanvasComponent.h:33
float GetRegionMergeSize() const
Definition: NavigationMesh.h:254
ea::vector< SharedPtr< Tile2D > > tiles_
Tiles.
Definition: TmxFile2D.h:103
ea::vector< IntRect > freeAreas_
Free rectangles.
Definition: AreaAllocator.h:62
AbstractFile()
Construct.
Definition: AbstractFile.h:43
unsigned vertexCount_
Number of used vertices.
Definition: Geometry.h:165
bool updateEnabled_
Automatic simulation update enabled flag.
Definition: PhysicsWorld2D.h:265
ea::unordered_map< ea::pair< StringHash, StringHash >, SharedPtr< Technique > > cloneTechniques_
Cached clones with added shader compilation defines.
Definition: Technique.h:330
const ea::vector< Drawable * > & GetAllDrawables() const
Return all drawables in all octants.
Definition: Octree.h:271
void OnSceneSet(Scene *scene) override
Handle scene being assigned.
Definition: ParticleEmitter.cpp:435
void VerifyChildAlignment()
Verify that child elements have proper alignment for layout mode.
Definition: UIElement.cpp:2275
Light * GetLight() const
Definition: LightProcessor.h:114
void SetMaxFps(int fps)
Definition: Engine.cpp:831
static unsigned GetPassIndex(const ea::string &passName)
Return a pass type index by name. Allocate new if not used yet.
Definition: Technique.cpp:535
void SetBoxThickness(Vector3 value)
Set Box Thickness.
Definition: Box.cpp:72
Debug geometry rendering component. Should be added only to the root scene node.
Definition: DebugRenderer.h:92
void Push(JSONValue value)
Add JSON value at end.
Definition: JSONValue.cpp:274
Context()
Construct.
Definition: Context.cpp:126
CrowdAgentVelocityCallback velocityCallback_
Velocity callback.
Definition: CrowdManager.h:213
void SetNumTextureFrames(unsigned number)
Definition: ParticleEffect.cpp:721
T Mod(T x, T y)
Return remainder of X/Y for float values.
Definition: MathDefs.h:213
void SetScale(float scale)
Set UI scale aka dp to px ratio. 1.0 is default (pixel perfect).
Definition: RmlUI.cpp:670
Intersection IsInside(const IntVector2 &point) const
Test whether a point is inside.
Definition: Rect.h:428
const Vector3 & GetPadding() const
Definition: NavigationMesh.h:274
virtual void OnKey(Key key, MouseButtonFlags buttons, QualifierFlags qualifiers)
React to a key press.
Definition: UIElement.h:189
PListValue()
Construct.
Definition: PListFile.cpp:42
ParticleGraphSpan initNodePointers_
Init node pointers.
Definition: ParticleGraphLayer.h:53
unsigned ToHash() const
Return hash value for HashSet & HashMap.
Definition: Vector4.h:237
static Geometry * GetGeometryIfNotEmpty(Geometry *geometry)
Get Geometry pointer if the source one is not null or empty.
Definition: Drawable.cpp:305
bool GetDisableCollision() const
Definition: Constraint.h:171
bool isSleeping_
Whether the microphone has failed to meet wake thresholds.
Definition: Microphone.h:120
Enable(Context *context)
Construct.
Definition: Misc.cpp:115
Detail::RmlContext * rmlContext_
RmlUi context.
Definition: RmlUI.h:159
Base component for all IK solvers.
Definition: IKSolverComponent.h:18
Matrix4 inverseViewProj_
Cached inverse view-projection matrix.
Definition: Camera.h:347
T & EmplaceBack(unsigned outerIndex, Args &&... args)
Emplace element at the back of specified outer vector.
Definition: MultiVector.h:167
void FixInterpolation()
Fix interpolation by copying data from loop start to loop end (looped), or adding silence (oneshot)....
Definition: Sound.cpp:295
const ea::string & GetText() const
Definition: Text3D.cpp:428
void ResetSilent()
Reset all animating bones to initial positions without marking the nodes dirty. Requires the node dir...
Definition: Skeleton.cpp:184
unsigned GetObjectID() const
Return unique object ID or 0 if not assigned.
Definition: IndexAllocator.h:126
void LoadSingleLanguageJSON(const JSONValue &source, const ea::string &language=EMPTY_STRING)
Load strings from JSONValue for specific language.
Definition: Localization.cpp:223
Vector3 GetScale() const
Get Scale.
Definition: Sphere.cpp:91
const VariantVector & GetNodeIDsAttr() const
Return node IDs attribute.
Definition: CameraOperator.cpp:131
void Restore(const T &object)
Restore cached object. This call may be ignored if cache is already restored.
Definition: ThreadSafeCache.h:49
ConstraintGear2D(Context *context)
Construct.
Definition: ConstraintGear2D.cpp:35
bool IsEmitting() const
Definition: ParticleEmitter.h:106
const Vector3 & GetMinDirection() const
Definition: ParticleEffect.h:318
void SetTracks(const ea::vector< AnimationTrack > &tracks)
Set all animation tracks.
Definition: Animation.cpp:626
SplashScreen(Context *context)
Construct.
Definition: SplashScreen.cpp:62
void SetLayoutBorder(const IntRect &border)
Definition: UIElement.cpp:1094
void SetLinearOffset(const Vector2 &linearOffset)
Definition: ConstraintMotor2D.cpp:57
Vector2 GetCharSize(unsigned index)
Definition: Text3D.cpp:523
void SetRelevant(bool value)
Definition: FilteredByDistance.h:50
SharedPtr< FiniteTimeAction > Reverse() const override
Create reversed action.
Definition: Ease.cpp:324
void SerializeInBlock(Archive &archive) override
Serialize content from/to archive. May throw ArchiveException.
Definition: Attribute.cpp:122
Ray GetHandAimRay(VRHand hand) const override
Returns the aiming ray for a given hand.
Definition: OpenXR.cpp:1957
SharedPtr< Texture2D > CreateFaceTexture()
Create a texture for font rendering.
Definition: FontFace.cpp:98
Definition: BoxInstance.h:35
SharedPtr< Texture2D > loadTexture_
Texture used while loading.
Definition: Sprite2D.h:118
void WaitForResource(StringHash type, StringHash nameHash)
Wait and finish possible loading of a resource when being requested from the cache.
void ApplyTorqueImpulse(const Vector3 &torque)
Apply torque impulse.
Definition: RigidBody.cpp:527
ReflectionMode reflectionMode_
Reflection mode.
Definition: Drawable.h:445
unsigned GetNumChars() const
Definition: Text3D.cpp:508
void UpdateRenderPathParameters(const VariantMap ¶ms)
Update existing render path parameters.
Definition: RenderPipeline.cpp:210
static void RegisterObject(ParticleGraphSystem *context)
Register particle node factory.
Definition: Negate.cpp:38
bool GetLineAntiAlias() const
Definition: DebugRenderer.h:167
void DrawDebugGeometry(DebugRenderer *debug, bool depthTest) override
Draw the agents' pathing debug data.
Definition: CrowdManager.cpp:135
VariantVector nodeIDsAttr_
IDs of instance nodes for serialization.
Definition: CameraOperator.h:101
Array2D(int width, int height)
Construct with given size and default value.
Definition: Array2D.h:129
unsigned mostDetailedLevel_
Most detailed mip level currently used.
Definition: Texture.h:241
JSONValue & operator[](unsigned index)
Return JSON value at index.
Definition: JSONValue.cpp:258
LightBatchQueue * GetLightQueue() const
Return light queue. Called by View.
Definition: Light.h:418
void SetData(const unsigned char *pixelData)
Set new image data.
Definition: Image.cpp:758
unsigned CountSetBits(unsigned value)
Count the number of set bits in a mask.
Definition: MathDefs.h:332
ea::vector< UIBatch > debugDrawBatches_
UI rendering batches for debug draw.
Definition: UI.h:413
unsigned GetNumGeometries() const
Definition: Model.h:176
void SetColorFrame(unsigned index, const ColorFrame &colorFrame)
Set color animation frame at index. If index is greater than number of color frames,...
Definition: ParticleEffect.cpp:639
void SetTmxFileAttr(const ResourceRef &value)
Set tile map file attribute.
Definition: TileMap2D.cpp:176
BlendMode blendMode_
Blend mode.
Definition: ParticleEffect2D.h:321
GlyphLocation(float x, float y, const FontGlyph *glyph)
Construct.
Definition: Text.h:60
void SetOtherConstraint(Constraint2D *constraint)
Definition: ConstraintGear2D.cpp:67
void SetRecursive(bool enable)
Definition: Navigable.cpp:49
ea::string logger_
Name of logger.
Definition: Console.h:101
void End()
End buffer composition and commit added instances to GPU.
Definition: InstancingBuffer.cpp:53
bool Save(Serializer &dest) const override
Save the image to a stream. Regardless of original format, the image is saved as png....
Definition: Image.cpp:633
void Resize(unsigned size)
Set size.
Definition: VectorBuffer.cpp:134
MutexType mutex_
Mutex that protects list and index.
Definition: IndexAllocator.h:107
void OnNodeSet(Node *previousNode, Node *currentNode) override
Definition: VRRig.cpp:53
dtCrowdAgent * GetEditableDetourCrowdAgent()
Get editable internal Detour crowd agent.
Definition: CrowdAgent.cpp:659
bool temporary_
Temporary flag.
Definition: Serializable.h:140
void DrawDebugGeometry(DebugRenderer *debug, bool depthTest) override
Visualize the component as debug geometry.
Definition: ReflectionProbe.cpp:208
Diligent::RefCntAutoPtr< Diligent::ITextureView > renderTargetView_
Diligent rendertarget or depth-stencil view.
Definition: RenderSurface.h:148
void SetDampingRatio(float dampingRatio)
Definition: ConstraintWheel2D.cpp:132
void SetLightMask(unsigned mask)
Definition: Terrain.cpp:408
virtual ~ApplicationState() override
Destruct.
const ea::vector< SourceBatch2D > & GetSourceBatches()
Return all source batches (called by Renderer2D).
Definition: Drawable2D.cpp:97
WeakPtr< Texture2D > texture_
Texture that UI will be rendered into.
Definition: UI.h:489
float offsetY_
Y offset for viewport transform.
Definition: OcclusionBuffer.h:225
float tangentialAccelVariance_
Tangential acceleration variance.
Definition: ParticleEffect2D.h:285
Color SampleNearest(const Vector3 &direction) const
Return nearest pixel color at given direction.
Definition: ImageCube.cpp:262
bool sortOrderDirty_
Child priority sorting dirty flag.
Definition: UIElement.h:916
ea::vector< Constraint * > constraints_
Constraints that refer to this rigid body.
Definition: RigidBody.h:323
ea::unordered_map< StringHash, VariantAnimationTrack > variantTracks_
Generic variant animation tracks.
Definition: Animation.h:172
virtual RawTexture * GetTexture() const =0
Return readable texture. May return null if not supported.
RigidBody * GetOwnBody() const
Definition: Constraint.h:127
void QueueRenderSurface(RenderSurface *renderTarget)
Queue a render surface's viewports for rendering. Called by the surface, or by View.
Definition: Renderer.cpp:520
void SetLocalBoundingBox(const BoundingBox &boundingBox)
Reset bounding volume to local bounding box.
Definition: ModelView.cpp:481
static void RegisterObject(Context *context)
Register object factory. Drawable must be registered first.
Definition: LightProbeGroup.cpp:72
Zone * GetLightProbeGroupZone(const IntVector3 &chunkIndex, LightProbeGroup *lightProbeGroup) override
Return zone that corresponds to light probe group within chunk.
Definition: BakedSceneCollector.cpp:241
bool IsNegative() const
Definition: Light.h:406
bool IsDragging() const
Return whether a drag is in progress.
Definition: UI.h:264
void RunFrame()
Run one frame.
Definition: Engine.cpp:663
PhysicsWorld * GetPhysicsWorld() const
Return physics world.
Definition: Constraint.h:116
void UpdateProgressBar()
Update ProgressBar knob position & size.
Definition: ProgressBar.cpp:139
void UpdateParameters(const RenderPipelineSettings &settings, const EnabledRenderPasses &enabledPasses, const StringVariantMap ¶ms)
Update settings for all passes.
Definition: RenderPath.cpp:34
void AddEventReceiver(Object *receiver, StringHash eventType)
Add event receiver.
Definition: Context.cpp:299
ea::unordered_set< ea::string > typeNames_
File type tags.
Definition: DragDropPayload.h:73
virtual StringHash GetType() const =0
void SerializeInBlock(Archive &archive) override
Serialize content from/to archive. May throw ArchiveException.
Definition: Repeat.cpp:199
Helper class to create and destory temporary directory.
Definition: FileSystem.h:152
DebugTriangle(const Vector3 &v1, const Vector3 &v2, const Vector3 &v3, unsigned color)
Construct with start and end positions and color.
Definition: DebugRenderer.h:73
void AcquireObjectID()
Acquire unique object ID. Ignored if unique ID is already acquired.
Definition: IndexAllocator.h:132
const TmxLayer2D * tmxLayer_
Tmx layer.
Definition: TileMapLayer2D.h:125
unsigned GetMask() const
Definition: OffMeshConnection.h:79
float GetShadowDistance() const
Definition: Drawable.h:302
const ea::string & GetString() const
Return string.
Definition: PListFile.cpp:207
void SetContinuousPhysics(bool enable)
Definition: PhysicsWorld2D.cpp:407
Animatable * FindAttributeAnimationTarget(const ea::string &name, ea::string &outName) override
Find target of an attribute animation from object hierarchy by name.
Definition: UIElement.cpp:1936
bool Update(float timeStep)
Advance time position and apply. Return true when the animation is finished. No-op when the target ob...
Definition: ValueAnimationInfo.cpp:67
Post-processing pass that converts HDR linear color input to LDR gamma color.
Definition: ToneMappingPass.h:16
float GetSteeringValue() const
Get steering value of particular wheel.
bool specular_
Specular lighting flag.
Definition: Material.h:380
void ProcessClickBegin(const IntVector2 &windowCursorPos, MouseButton button, MouseButtonFlags buttons, QualifierFlags qualifiers, Cursor *cursor, bool cursorVisible)
Handle button or touch begin.
Definition: UI.cpp:1354
bool tiled_
Tiled flag.
Definition: BorderImage.h:150
ea::string stitchBackgroundTechniqueName_
Technique used for background during stitching.
Definition: LightBakingSettings.h:154
Material * GetMaterial() const
Definition: BillboardSet.cpp:374
bool GetEnableAnchor() const
Definition: UIElement.h:524
float angleVariance_
Angle variance.
Definition: ParticleEffect2D.h:275
Node * GetTrackNodeByNameHash(StringHash trackNameHash, Node *startBone) const
Get animated node (bone or owner node) by track name hash.
Definition: AnimationController.cpp:1094
void SetReach(float reach)
Definition: SoundSource.cpp:295
void UpdateSpriterAnimation(float timeStep)
Update spriter animation.
Definition: AnimatedSprite2D.cpp:409
void OnUpdateBegin(const FrameInfo &frameInfo)
Definition: CameraProcessor.cpp:87
void UpdateBatches(const FrameInfo &frame) override
Calculate distance and prepare batches for rendering. May be called from worker thread(s),...
Definition: Renderer2D.cpp:118
unsigned activeParticles_
Number of active particles.
Definition: ParticleGraphLayerInstance.h:164
SharedPtr< Material > material_
Material.
Definition: Drawable.h:171
bool AcceptsScheme(const ea::string &scheme) const override
Definition: MountedExternalMemory.cpp:83
T Floor(T x)
Definition: MathDefs.h:233
unsigned objectId_
Unique object ID.
Definition: IndexAllocator.h:152
Vector2 anchor_
Anchor.
Definition: ConstraintWheel2D.h:101
ea::string name_
Annotated name of the curve. May have special meaning for the user.
Definition: VariantCurve.h:91
virtual IntVector2 ScreenToElement(const IntVector2 &screenPosition)
Convert screen coordinates to element coordinates.
Definition: UIElement.cpp:490
ViewportDepthStencilRenderBuffer(RenderPipelineInterface *renderPipeline)
Construct.
Definition: RenderBuffer.cpp:209
Vector3 ToVector3() const
Return Vector3 vector (w component is ignored).
Definition: Vector4.h:228
float fontSubpixelThreshold_
Maxmimum font size for subpixel glyph positioning and oversampling (default is 12).
Definition: UI.h:457
Animation * GetExitAnimation() const
Return exit animation.
Definition: TriggerAnimator.h:60
void ProcessDragCancel()
Handle clean up on a drag cancel.
Definition: UI.cpp:2048
void SetLightmapScaleOffset(const Vector4 &scaleOffset)
Set lightmap scale and offset.
Definition: StaticModel.h:132
Geometry * GetLightGeometry(Light *light)
Return volume geometry for a light.
Definition: Renderer.cpp:544
VariantMap & GetEventDataMap()
Return a preallocated map for event data. Used for optimization to avoid constant re-allocation of ev...
Definition: Context.cpp:206
void SetBlendMode(BlendMode mode)
Definition: BorderImage.cpp:131
Scene batch sorted by pipeline state, material and geometry. Also sorted front to back.
Definition: PipelineBatchSortKey.h:38
NavigationPathPointFlag
A flag representing the type of path point- none, the start of a path segment, the end of one,...
Definition: NavigationMesh.h:55
SharedPtr< Technique > defaultTechnique_
Default non-textured material technique.
Definition: Renderer.h:342
void SetText(ea::string_view text)
Set data from text.
Definition: BinaryFile.cpp:114
static Sprite2D * LoadFromResourceRef(Object *object, const ResourceRef &value)
Load sprite from ResourceRef.
Definition: Sprite2D.cpp:203
bool GetAutoAspectRatio() const
Definition: Camera.h:199
void DrawDebugGeometry(DebugRenderer *debug, bool depthTest) override
Visualize the component as debug geometry.
Definition: Octree.cpp:437
bool LoadGraph(Graph &graph)
Load graph.
Definition: ParticleGraph.cpp:68
void Define(const Vector3 &normal, const Vector3 &point)
Define from a normal vector and a point on the plane.
Definition: Plane.h:77
bool Copy(const ea::string &srcFileName, const ea::string &destFileName)
Copy a file. Return true if successful.
Definition: FileSystem.cpp:734
IntVector2 GetDesktopResolution(int monitor) const
Definition: Graphics.cpp:453
void OnMarkedDirty(Node *node) override
Handle node transform being dirtied.
Definition: Drawable.cpp:369
float GetStartParticleSize() const
Return start particle size.
Definition: ParticleEffect2D.h:192
float scaledPositionBackfaceBias_
Determines how much position is pushed from behind backface to prevent shadow bleeding....
Definition: LightBakingSettings.h:75
Animation trigger point.
Definition: Animation.h:36
SharedPtr< Node > shadowCameraNode_
Definition: ShadowSplitProcessor.h:115
bool flipY_
Flip Y.
Definition: StaticSprite2D.h:179
void RemoveInstanceDefault()
Remove instance's default values if they are set previously.
Definition: Serializable.cpp:505
void SetOpacity(float opacity)
Definition: Text3D.cpp:354
Definition: DataChannelServer.h:44
static const Matrix4 ZERO
Zero matrix.
Definition: Matrix4.h:742
void Invalidate()
Invalidate cached object.
Definition: ThreadSafeCache.h:43
void SetNumLevels(unsigned levels)
Set number of requested mip levels. Needs to be called before setting size.
Definition: Texture.cpp:106
Array2D()=default
Construct default.
ParticleGraphNodeInstance * CreateInstanceAt(void *ptr, ParticleGraphLayerInstance *layer) override
Place new instance at the provided address.
Definition: Bounce.cpp:64
ea::unique_ptr< FindPathData > pathData_
Temporary data for finding a path.
Definition: NavigationMesh.h:356
bool GetSRGB() const
Definition: Graphics.h:210
Variant(const ea::string &type, const ea::string &value)
Construct from type and value.
Definition: Variant.h:692
float GetHeight(const Vector3 &worldPosition) const
Return height at world coordinates.
Definition: Terrain.cpp:516
AutoRemoveMode GetAutoRemoveMode() const
Definition: SoundSource.h:135
@ LOAD_SCENE_AND_RESOURCES
Default mode: preload resources used by the scene first, then load the scene content.
Definition: Scene.h:56
PhysicsWorld2D(Context *context)
Construct.
Definition: PhysicsWorld2D.cpp:48
ea::optional< SynchronizedPhysicsStep > synchronizedStep_
Indicates which physical step is synchronized with network frame.
Definition: PhysicsWorld.h:387
SharedPtr< Material > Clone(const ea::string &cloneName=EMPTY_STRING) const
Clone the material.
Definition: Material.cpp:846
ActionBuilder & Hide(ea::string_view attributeName=Actions::ISVISIBLE_ATTRIBUTE)
Continue with Hide action.
Definition: ActionBuilder.cpp:186
ParticleEmitter(Context *context)
Construct.
Definition: ParticleEmitter.cpp:45
float beginTime_
Begin time.
Definition: ValueAnimation.h:170
Matrix3x4(const Vector3 &translation, const Quaternion &rotation, const Vector3 &scale) noexcept
Construct from translation, rotation and nonuniform scale.
Definition: Matrix3x4.h:164
Material * GetMaterial() const
Definition: DecalSet.cpp:509
float ProjectOntoAxis(const Vector3 &axis) const
Project direction vector onto axis.
Definition: Vector3.h:358
ea::vector< SharedPtr< ShaderVariation > > pixelShaders_
Pixel shaders.
Definition: Technique.h:242
void CalculateBoundingBox()
Calculate local-space bounding box.
Definition: DecalSet.cpp:144
ea::string giDataFileName_
Global illumination data file.
Definition: LightBakingSettings.h:178
Lightmap geometry buffer of lightmap chart.
Definition: LightmapGeometryBuffer.h:105
const Vector2 & GetVertex2() const
Definition: CollisionEdge2D.h:59
ea::vector< Vector3 > ambient_
Baked ambient light.
Definition: LightProbeGroup.h:58
Animate shader parameter from current value to another.
Definition: ShaderParameter.h:55
Vector3 cachedWorldScale_
Cached world scale for determining if the constraint position needs update.
Definition: Constraint.h:217
Definition: SphereInstance.h:35
CollisionGeometryDataCache & GetConvexCache()
Return convex collision geometry cache.
Definition: PhysicsWorld.h:310
Vector3 directionMin_
Particle direction minimum.
Definition: ParticleEffect.h:462
const Matrix3x4 & GetMatrix3x4() const
Return a Matrix3x4 or identity on type mismatch.
Definition: Variant.h:1516
void SetLogStatistics(bool enable)
Definition: Connection.cpp:187
ElasticIn easing action.
Definition: Ease.h:65
std::future< void > task_
Async baking task.
Definition: LightBaker.h:107
void SetVerticalAlignment(VerticalAlignment align)
Definition: Text3D.cpp:258
bool dirty_
Cleanup required flag.
Definition: Context.h:66
void SetFrom(int value)
Set From.
Definition: Cone.cpp:103
bool IsHaptic() const
Returns true if this is an output haptic action.
Definition: VirtualReality.h:121
bool IsElementEventSender() const
Definition: UIElement.h:758
Common parameters of rendered frame.
Definition: RenderPipelineDefs.h:55
Numerical range (pair of min and max value). Invalid if flipped.
Definition: NumericRange.h:33
bool IsWatching() const
Returns true if the file watchers are enabled.
Definition: VirtualFileSystem.h:83
void SetZoom(float zoom)
Definition: Camera.cpp:169
Signal< void(Rml::ElementDocument *)> documentClosedEvent_
Emitted when a window document owned by this subsystem is closed.
Definition: RmlUI.h:111
void SetWestNeighbor(Terrain *west)
Definition: Terrain.cpp:293
static ModuleType ReadModuleInformation(Context *context, const ea::string &path, unsigned *pdbPathOffset=nullptr, unsigned *pdbPathLength=nullptr)
Inspects a specified file and detects it's type.
Definition: DynamicModule.cpp:253
Memory lightmap cache.
Definition: BakedLightCache.h:81
static void RegisterObject(Context *context)
Registers object with the engine.
Definition: RmlUIComponent.cpp:65
Vector3 GetLinearVelocity() const
Definition: RigidBody.cpp:584
void SetMaterialsAttr(const ResourceRefList &value)
Set materials attribute.
Definition: StaticModel.cpp:378
void GetDrawables(OctreeQuery &query) const
Definition: Octree.cpp:664
unsigned RemoteToLocalTime(unsigned time) const override
Convert remote timestamp to local timestamp.
Definition: Connection.cpp:695
float CalculateScore(const ea::vector< Vector3 > &vertices) const
Calculate the ratio between longest and shortest side of the triangle.
Definition: TetrahedralMesh.h:167
void GetBatches(ea::vector< UIBatch > &batches, ea::vector< float > &vertexData, const IntRect ¤tScissor) override
Return UI rendering batches.
Definition: DropDownList.cpp:85
static void Copy(T &dest, const T &src)
Copy value.
Definition: Variant.h:276
3D text requested via interface and not processed yet.
Definition: TextRenderer3D.h:136
Definition: SceneHierarchyWidget.h:31
void Release()
Stop sound output and release the sound buffer.
Definition: Audio.cpp:422
~Time() override
Destruct. Reset the low-resolution timer period if set.
Definition: Timer.cpp:70
IntVector2 IndexToLocation(unsigned index) const
Convert index to location.
Definition: LightmapGeometryBuffer.h:148
void SetCapsule(float diameter, float height, const Vector3 &position=Vector3::ZERO, const Quaternion &rotation=Quaternion::IDENTITY)
Set as a capsule.
Definition: CollisionShape.cpp:638
void SetRotationRange(const Vector3 &value)
Set rotation range.
Definition: ShakeComponent.cpp:92
Tile map component.
Definition: TileMap2D.h:35
float GetRadialAcceleration() const
Return radial acceleration.
Definition: ParticleEffect2D.h:165
void OnSetEnabled() override
Handle enabled/disabled state change. Changes update event subscription.
Definition: LogicComponent.cpp:46
ea::vector< Variant > inTangents_
Tangents for cubic spline. Recalculated on commit for tension spline.
Definition: VariantCurve.h:100
float roughnessToLODFactor_
Roughness to LOD factor. Should be equal to log2(NumLODs - 1).
Definition: ReflectionProbeData.h:41
ea::span< GraphNodeProperty > GetProperties()
Get properties.
Definition: GraphNode.h:101
bool operator<(const IntVector2 &rhs) const
Lexicographic comparison for sorting.
Definition: Vector2.h:82
bool LoadJSON(const JSONValue &source) override
Load from JSON data. Removes all existing child nodes and components first. Return true if successful...
Definition: Scene.cpp:265
Definition: Attribute.h:65
bool flipVertical_
Flip vertical flag.
Definition: Camera.h:397
SharedPtr(const SharedPtr< U1, U2 > &rhs) noexcept
Construct from another shared pointer.
Definition: Ptr.h:162
Defines one or more vertex buffers, an index buffer and a draw range.
Definition: Geometry.h:40
Font * GetFont() const
Definition: Text3D.cpp:418
PList value.
Definition: PListFile.h:56
ea::hash_set< Octree * > updatedOctrees_
Octrees that have been updated during the frame.
Definition: Renderer.h:365
static const TypeInfo * GetTypeInfoStatic()
Return type info static.
Definition: Object.h:129
ea::vector< Constraint * > constraints_
Constraints in the world.
Definition: PhysicsWorld.h:363
void SetInterpolation(bool enable)
Definition: PhysicsWorld.cpp:421
const Matrix3 & GetMatrix3() const
Return a Matrix3 or identity on type mismatch.
Definition: Variant.h:1510
void GetBatches(ea::vector< UIBatch > &batches, ea::vector< float > &vertexData, const IntRect ¤tScissor) override
Return UI rendering batches.
Definition: BorderImage.cpp:68
ea::unique_ptr< btRigidBody > body_
Bullet rigid body.
Definition: RigidBody.h:315
virtual void OnDragBegin(const IntVector2 &position, const IntVector2 &screenPosition, MouseButtonFlags buttons, QualifierFlags qualifiers, Cursor *cursor)
React to mouse drag begin.
Definition: UIElement.cpp:454
IntRect GetViewportRect() const override
Definition: RenderBuffer.h:153
ea::unordered_map< WeakPtr< UIElement >, DragData * > dragElements_
Currently dragged elements.
Definition: UI.h:475
virtual void OnDragEnd(const IntVector2 &position, const IntVector2 &screenPosition, MouseButtonFlags dragButtons, MouseButtonFlags releaseButtons, Cursor *cursor)
React to mouse drag end.
Definition: UIElement.cpp:466
ea::unique_ptr< btConstraintSolver > solver_
Bullet constraint solver.
Definition: PhysicsWorld.h:353
Node * InstantiateXML(const XMLElement &source, const Vector3 &position, const Quaternion &rotation)
Instantiate scene content from XML data. Return root node if successful.
Definition: Scene.cpp:652
LightmapSeam Transformed(const Vector2 &scale, const Vector2 &offset) const
Transform by scale and offset.
Definition: LightmapGeometryBuffer.h:59
b2Joint * GetJoint() const
Return Box2D joint.
Definition: Constraint2D.h:83
float GetCcdRadius() const
Definition: RigidBody.cpp:654
void SetMorphWeight(unsigned index, float weight)
Set vertex morph weight by index.
Definition: AnimatedModel.cpp:507
void Close(Rml::FileHandle file) override
Closes a previously opened file.
Definition: RmlFile.cpp:56
ea::pair< Quaternion, Quaternion > ToSwingTwist(const Vector3 &twistAxis) const
Decompose quaternion to swing and twist components. swing * twist is the original quaternion.
Definition: Quaternion.cpp:349
TerrainPatch(Context *context)
Construct.
Definition: TerrainPatch.cpp:47
void ReleaseRef() noexcept
Release the weak reference. Delete the Refcount structure if necessary.
Definition: Ptr.h:588
IntVector2(const float data[])
Construct from an float array.
Definition: Vector2.h:64
void IncDrawableCount()
Increase drawable object count recursively.
Definition: Octree.h:123
virtual bool HasMutableGlyphs() const
Return if font face uses mutable glyphs.
Definition: FontFace.h:83
float radius_
Radius of the circle. Negative is invalid.
Definition: Sphere.h:48
Handler handler_
Signal handler callable.
Definition: Signal.h:47
float attenuation_
Attenuation.
Definition: SoundSource.h:174
bool IsVisible(const BoundingBox &worldSpaceBox) const
Test a bounding box for visibility. For best performance, build depth hierarchy first.
Definition: OcclusionBuffer.cpp:329
static const FileIdentifier Empty
File identifier that references nothing.
Definition: FileIdentifier.h:45
unsigned GetDataSize() const
Return total sound data size.
Definition: Sound.h:90
CrowdAgentRequestedTarget GetRequestedTargetType() const
Definition: CrowdAgent.h:166
@ FONT_HINT_LEVEL_NONE
Completely disable font hinting. Output will be blurrier but more "correct".
Definition: UI.h:40
virtual ~BatchStateCacheCallback()
Destruct.
Definition: RenderPipelineDefs.cpp:56
void HandleApplicationExit()
Definition: Network.cpp:521
Color(const Vector4 &color)
Construct from 4-vector.
Definition: Color.h:110
bool IsRenderTarget() const
Definition: Texture.h:196
bool IsFixedWidth() const
Definition: UIElement.h:504
float Length() const
Definition: Vector2.h:317
const Quaternion & GetRotationDelta() const
Get rotation delta.
Definition: Move.h:158
const float * Data() const
Return float data.
Definition: Matrix3.h:275
int GetHeight() const
Definition: RenderSurface.cpp:94
RefCounted()
Construct. Allocate the reference count structure and set an initial self weak reference.
Definition: RefCounted.cpp:51
ThisType & operator=(const ThisType &rhs) noexcept
Assign from another shared pointer.
Definition: Ptr.h:169
virtual unsigned Write(const void *data, unsigned size)=0
Write bytes to the stream. Return number of bytes actually written.
ea::unordered_map< Camera *, Matrix3x4 > customWorldTransforms_
Custom world transform per camera.
Definition: Skybox.h:58
TextureCube * GetMixedProbeTexture() const
Return writeable cubemap, available for mixed probes.
Definition: ReflectionProbe.h:193
static const SphericalHarmonicsColor9 ZERO
Zero harmonics.
Definition: SphericalHarmonics.h:167
Vector4 GetDefaultClipToUVSpaceOffsetAndScale() const
Return identity offset and scale used to convert clip space to UV space.
Definition: RenderBufferManager.cpp:324
ActionBuilder & BounceIn()
Combine with BounceIn action.
Definition: ActionBuilder.cpp:321
const ea::string & GetUniformName() const
Get attribute name.
Definition: Uniform.h:49
FileSystem(Context *context)
Construct.
Definition: FileSystem.cpp:509
void Update(float timeStep)
Update the UI logic. Called by HandlePostUpdate().
Definition: RmlUI.cpp:868
float GetMaxSpeed() const
Definition: CrowdAgent.h:188
Vector2 Center() const
Definition: Rect.h:202
bool BeginLoad(Deserializer &source) override
Load resource from stream. May be called from a worker thread. Return true if successful.
Definition: TmxFile2D.cpp:393
NetworkCallbackMask
Definition: NetworkCallbacks.h:43
bool Save(Serializer &dest) const override
Save resource. Return true if successful.
Definition: ParticleGraphEffect.cpp:97
Vector4 uOffset_
Transform for U coordinate.
Definition: RaytracerScene.h:58
bool IsLooped() const
Definition: Sound.h:105
void HandlePostUpdate(StringHash eventType, VariantMap &eventData)
Handle logic post-update event.
Definition: UIElement.cpp:2285
~UIComponent() override
Destruct.
T Fract(T value)
Definition: MathDefs.h:229
Vector3 GetNormal() const
Return normal as 3-vector.
Definition: ModelView.h:84
bool IsScriptStrongRef() const
Return true if script reference is strong.
Definition: RefCounted.h:102
IntVector2 GetUICursorPosition() const
Definition: UI.cpp:709
void SerializeVLE(const char *name, unsigned &value) final
Serialize Variable Length Encoded unsigned integer, up to 29 significant bits.
Definition: JSONArchive.cpp:144
PointerAdapterFlags GetSubscriptionMask() const
Get subscription mask.
Definition: PointerAdapter.h:65
WeakPtr< SpriteSheet2D > spriteSheet_
Sprite sheet.
Definition: Sprite2D.h:116
void Mix(int dest[], unsigned samples, int mixRate, SpeakerMode mode, bool interpolation)
Mix sound source output to a 32-bit clipping buffer. Called by Audio.
Definition: SoundSource.cpp:371
VectorBuffer & GetMutableBuffer()
Return mutable internal buffer.
Definition: BinaryFile.h:79
void SetAngularDamping(float angularDamping)
Set angular velocity damping factor.
Definition: KinematicCharacterController.cpp:476
void OnSetEnabled() override
Handle enabled/disabled state change.
Definition: RibbonTrail.cpp:166
void SetLightImportance(LightImportance importance)
Set light importance.
Definition: Light.cpp:273
SharedPtr< ApplicationState > activeState_
Current active game screen.
Definition: StateManager.h:270
signed char * repeat_
Loop start.
Definition: Sound.h:129
void SetWarmStarting(bool enable)
Definition: PhysicsWorld2D.cpp:402
void SetAttachedConstraint(Constraint2D *constraint)
Set attached constriant (for gear).
Definition: Constraint2D.cpp:139
ea::vector< Camera * > viewCameras_
List of cameras from which is seen on the current frame.
Definition: Drawable.h:491
ActionBuilder & RotateBy(float duration, const Quaternion &delta, ea::string_view attributeName=Actions::ROTATION_ATTRIBUTE)
Continue with RotateBy action.
Definition: ActionBuilder.cpp:167
unsigned GetMaxVertices() const
Definition: DecalSet.h:171
void SerializeInBlock(Archive &archive) override
Serialize content from/to archive. May throw ArchiveException.
Definition: Sequence.cpp:177
void SetTerrain(unsigned lodLevel=0)
Set as a terrain. Only works if the same scene node contains a Terrain component.
Definition: CollisionShape.cpp:706
T * RegisterSubsystem()
Template version of registering subsystem.
Definition: Context.h:197
VerticalAlignment GetVerticalAlignment() const
Definition: UIElement.cpp:1548
static void RegisterObject(Context *context)
Definition: ConstraintRevolute2D.cpp:43
Input * input_
Cached input subsystem pointer.
Definition: DirectionAggregator.h:127
unsigned lightmapIndex_
Lightmap chart index.
Definition: RaytracerScene.h:100
float CalculateScaledTime(float currentTime, bool &finished) const
Calculate scaled time.
Definition: ValueAnimationInfo.cpp:128
~Serializable() override
Destruct.
Node * Instantiate(Deserializer &source, const Vector3 &position, const Quaternion &rotation)
Instantiate scene content from binary data. Return root node if successful.
Definition: Scene.cpp:629
unsigned long long memoryBudget_
Memory budget.
Definition: ResourceCache.h:58
void ApplyForceToCenter(const Vector2 &force, bool wake)
Apply force to center.
Definition: RigidBody2D.cpp:304
Vector2 patchWorldOrigin_
Origin of patches on the XZ-plane.
Definition: Terrain.h:351
unsigned GetTotalSize() const
Definition: PackageFile.h:74
void SetObjectAnimationAttr(const ResourceRef &value)
Set object animation attribute.
Definition: Animatable.cpp:448
Definition: ProtocolMessages.h:51
Definition: NetworkValue.h:55
bool IsLoaded() const override
Returns true if plugin is loaded and functional.
Definition: ModulePlugin.cpp:78
BoundingBox boundingBox_
Bounds of area to mark.
Definition: NavArea.h:69
void * face_
FreeType face. Non-null after creation only in dynamic mode.
Definition: FontFaceFreeType.h:61
Stack of loaded plugins that are automatically unloaded on destruction.
Definition: PluginManager.h:41
ParticleGraphNodeInstance * CreateInstanceAt(void *ptr, ParticleGraphLayerInstance *layer) override
Place new instance at the provided address.
Definition: TimeStep.cpp:59
IntVector2 OffsetToIndex(unsigned index) const
Convert linear array index to 2D array index.
Definition: Array2D.h:80
unsigned GetSphericalHarmonicsMipLevel() const
Return mip level used for SH calculation.
Definition: ImageCube.cpp:290
void SetAllowSleep(bool allowSleep)
Definition: RigidBody2D.cpp:200
Vector3 forward_
Forward vector.
Definition: RibbonTrail.h:51
Sphere sphere_
Sphere.
Definition: OctreeQuery.h:109
void Stop() override
Definition: AttributeActionState.cpp:113
void RemoveObjectAnimation()
Remove object animation. Same as calling SetObjectAnimation with a null pointer.
Definition: Animatable.cpp:409
WeakPtr< RenderSurface > backbufferSurface_
Render surface that acts as backbuffer.
Definition: Renderer.h:339
unsigned numLods_
Number of LODs.
Definition: RaytracerScene.h:98
Base implementation of watchable mount point.
Definition: MountPoint.h:84
Matrix3x4 offsetMatrix_
Inverted value of bone transform corresponding to default vertex position.
Definition: ModelView.h:235
void SetObstacleAvoidanceType(unsigned obstacleAvoidanceType)
Definition: CrowdAgent.cpp:431
static void RegisterObject(Context *context)
Register object factory.
Definition: ActionSet.cpp:41
bool IsFixedScreenSize() const
Definition: Text3D.h:208
virtual void InitializeView(RenderPipelineView *view)
Initialize render pass before using it in view.
Definition: RenderPass.h:43
float emissionTime_
Emission time.
Definition: ParticleEmitter2D.h:162
void HandleMouseVisibleChanged(StringHash eventType, VariantMap &eventData)
Handle operating system mouse cursor visibility change event.
Definition: Cursor.cpp:304
int GetTileSize() const
Definition: NavigationMesh.h:216
void SetCursorBlinkRate(float rate)
Definition: LineEdit.cpp:501
void AddItem(UIElement *item)
Add item to the end of the list.
Definition: DropDownList.cpp:152
void UpdateInternalLayout()
Manually update layout on internal elements.
Definition: ListView.cpp:332
virtual bool Load(Deserializer &source)
Load from binary data. Return true if successful.
Definition: Serializable.cpp:99
void SerializeInBlock(Archive &archive) override
Serialize content from/to archive. May throw ArchiveException.
Definition: Graph.cpp:101
void SetActivateTriggers(bool activateTriggers)
Set activate triggers flag.
Definition: KinematicCharacterController.cpp:512
Definition: LimitVelocity.h:37
void SetModel(ResourceRef value)
Set Model.
Definition: RenderMesh.cpp:69
SharedPtr< FiniteTimeAction > Reverse() const override
Create reversed action.
Definition: Repeat.cpp:191
const XrSpacePtr actionSpace_
If we're a space action we'll have an action space.
Definition: OpenXR.h:117
static void RegisterObject(Context *context)
Definition: View3D.cpp:62
Image * GetHeightMap() const
Definition: Terrain.cpp:479
ParticleGraphLayerInstance * layer_
Pointer to graph layer instance.
Definition: TemplateNode.h:109
void SetMovable(bool movable)
Definition: ReflectionProbe.cpp:587
float timeToLiveMin_
Particle time to live minimum.
Definition: ParticleEffect.h:482
void StoreDirectLight(unsigned lightmapIndex, LightmapChartBakedDirect bakedDirect) override
Store direct light for the lightmap chart.
Definition: BakedLightCache.cpp:45
ActionBuilder & ElasticInOut(float period=0.3f)
Combine with ElasticInOut action.
Definition: ActionBuilder.cpp:413
SharedPtr< UIElement > placeholder_
Selected item placeholder element.
Definition: DropDownList.h:120
Occlusion hierarchy depth value.
Definition: OcclusionBuffer.h:46
void SetGlobalVar(StringHash key, const Variant &value)
Definition: Object.cpp:352
bool sendFinishedEvent_
Whether finished event should be sent on playback stop.
Definition: SoundSource.h:182
bool Copy(File *srcFile)
Definition: File.cpp:595
float GetCursorAcceleration() const
Set cursor acceleration factor.
Definition: PointerAdapter.h:73
Vector2 HalfSize() const
Definition: Rect.h:210
ea::string EvaluateToString(const XMLElement &element) const
Evaluate XPath query and expecting a string return value.
Definition: XMLElement.cpp:1278
void SetScene(Scene *newScene)
Definition: Connection.cpp:131
HighPrecisionVector3 operator+(const HighPrecisionVector3 &rhs) const
Add another vector.
Definition: TetrahedralMesh.h:83
ea::string oldFileName_
Previous file name in case of FILECHANGE_MODIFIED event. Empty otherwise.
Definition: FileWatcher.h:55
bool colorWrite_
Color write mode.
Definition: Technique.h:220
Three-dimensional vector.
Definition: Vector3.h:201
void FinishLoading(Deserializer *source)
Finish loading. Sets the scene filename and checksum.
Definition: Scene.cpp:1148
bool GetAutoClearForces() const
Definition: PhysicsWorld2D.cpp:709
~NavArea() override
Destruct.
void SetRotationStartVariance(float rotationStartVariance)
Set rotation start variance.
Definition: ParticleEffect2D.cpp:461
Vector4 Bg_
Dot product with (Nx*Ny, Ny*Nz, Nz*Nz, Nz*Nx), green channel.
Definition: SphericalHarmonics.h:295
void SetUseHotSpot(bool useHotSpot)
Definition: StaticSprite2D.cpp:169
Base class for simple resource that uses Archive serialization.
Definition: Resource.h:159
int GetEffectStrokeThickness() const
Definition: Text3D.cpp:468
bool IsHumanReadable() const final
Definition: ArchiveBase.h:191
AbstractFilePtr file_
Destination file.
Definition: Connection.h:66
void OnNodeSetEnabled(Node *point) override
Listener to manage Control Point enabling.
Definition: SplinePath.cpp:303
float SignedDistanceToBoundingBox(const BoundingBox &box) const
Return signed distance to another bounding box. Negative if inside.
Definition: BoundingBox.cpp:224
Component which tags geometry for inclusion in the navigation mesh. Optionally auto-includes geometry...
Definition: Navigable.h:31
void UpdateQueuedViewport(unsigned index)
Update a queued viewport for rendering.
Definition: Renderer.cpp:564
void SetLinearDamping(float linearDamping)
Set linear velocity damping factor.
Definition: KinematicCharacterController.cpp:467
Physics rigid body component.
Definition: RigidBody.h:51
CurlNoise3D(Context *context)
Construct CurlNoise3D.
Definition: CurlNoise3D.cpp:44
void SetAnimationLodBias(float lodBias)
Definition: ParticleEffect.cpp:475
void SetMaxFontTextureSize(int size)
Definition: UI.cpp:604
void SetTimerPeriod(unsigned mSec)
Set the low-resolution timer period in milliseconds. 0 resets to the default period.
Definition: Timer.cpp:142
void Update(float timeStep) override
Perform UI element update.
Definition: LineEdit.cpp:99
Definition: RenderPipelineDebugger.h:79
~LightBaker() override
Destruct.
Definition: LightBaker.cpp:85
void SerializeInBlock(Archive &archive) override
Definition: AssetPipeline.cpp:77
bool hasOrthoCamera_
Whether was last rendered from an ortho camera.
Definition: BillboardSet.h:230
Incremental light baker.
Definition: IncrementalLightBaker.h:56
void HandleNeighborTerrainCreated(StringHash eventType, VariantMap &eventData)
Handle neighbor terrain geometry being created. Update the edge patch neighbors as necessary.
Definition: Terrain.cpp:1456
IntVector2 GetNearestLocation(const Vector2 &uv) const
Return nearest point location by UV.
Definition: LightTracer.h:59
unsigned CalculatePipelineStateHash() const
Definition: RenderPipelineDefs.h:435
unsigned collisionLayer_
Collision layer.
Definition: RigidBody.h:331
BoundingBox boundingBox_
Local-space bounding box.
Definition: Drawable.h:437
const dtCrowdAgent * GetDetourCrowdAgent() const
Get internal Detour crowd agent.
Definition: CrowdAgent.cpp:654
WeakPtr< MoveAndOrbitComponent > component_
Component that provides animation states for the model.
Definition: MoveAndOrbitController.h:119
unsigned timerPeriod_
Low-resolution timer period.
Definition: Timer.h:135
MaterialQuality GetTextureQuality() const
Definition: Renderer.h:249
void SetMaxOffset(const IntVector2 &offset)
Definition: UIElement.cpp:787
void SendTileAddedEvent(const IntVector2 &tileIndex)
Send tile added event.
Definition: NavigationMesh.cpp:1267
void LoadJSONFile(const ea::string &name, const ea::string &language=EMPTY_STRING)
Load strings from JSONFile. The file should be UTF8 without BOM.
Definition: Localization.cpp:161
float time_
Current time value.
Definition: ShakeComponent.h:91
float GetNextTimeStep() const
Get timestep of the next frame. Updated by ApplyFrameLimit().
Definition: Engine.h:104
static const JSONValue EMPTY
Empty JSON value.
Definition: JSONValue.h:298
btCompoundShape * GetCompoundShape() const
Return Bullet compound collision shape.
Definition: RigidBody.h:186
PerlinNoise(RandomEngine &engine)
Construct and initialize from random generator.
Definition: PerlinNoise.cpp:32
WeakPtr< Graphics > graphics_
Cached pointer to Graphics subsystem.
Definition: ShaderVariation.h:73
bool sortThisFrame_
Sorting flag. Triggers a vertex buffer rewrite for each view this billboard set is rendered from.
Definition: BillboardSet.h:228
ActionBuilder & Show(ea::string_view attributeName=Actions::ISVISIBLE_ATTRIBUTE)
Continue with Show action.
Definition: ActionBuilder.cpp:193
void HandleNodeCollisionStart(StringHash eventType, VariantMap &eventData)
Handle trigger been entered.
Definition: TriggerAnimator.cpp:148
SharedPtr< FiniteTimeAction > Reverse() const override
Create reversed action.
Definition: Parallel.cpp:139
ResourceRefList ReadResourceRefList()
Read a resource reference list.
Definition: Deserializer.cpp:301
const IntRect & GetBorder() const
Definition: BorderImage.h:95
unsigned GetNumGroups() const
Return number of groups.
Definition: LightProbeGroup.h:104
Vector2 sizeMax_
Particle size maximum.
Definition: ParticleEffect.h:480
float Distance(const Vector3 &point) const
Return distance of a point from the ray.
Definition: Ray.h:83
static const unsigned MaxPixelLights
Definition: LightAccumulator.h:112
RaycastVehicle(Urho3D::Context *context)
Construct.
Definition: RaycastVehicle.cpp:231
ByteVector ReadBuffer()
Read a buffer with size encoded as VLE.
Definition: Deserializer.cpp:279
const Variant & GetSetting(const NetworkSetting &setting) const
Definition: ServerReplicator.cpp:228
void StopAsyncLoading()
Stop asynchronous loading.
Definition: Scene.cpp:617
void Validate()
Validate parameters.
Definition: Light.cpp:67
int GetDrawOrder() const
Definition: TileMapLayer2D.h:77
static void RegisterObject(Context *context)
Definition: ConstraintWeld2D.cpp:43
TerrainPatch * GetWestPatch() const
Return west neighbor patch.
Definition: TerrainPatch.h:96
unsigned wakeThreshold_
Signal threshold above which to "wake" the microphone. Not very effective.
Definition: Microphone.h:116
float GetFramesPerSecond() const
Definition: Timer.cpp:198
~AttributeAnimationInfo() override
Destruct.
unsigned readPosition_
Read buffer read cursor.
Definition: HttpRequest.h:110
Texture3D(Context *context)
Construct.
Definition: Texture3D.cpp:42
Color fogColor_
Fog color.
Definition: Zone.h:221
ea::string GetError() const
Definition: HttpRequest.cpp:301
float GetRepeatInterval() const
Get repeat interval in seconds.
Definition: DirectionalPadAdapter.h:110
float accumulator_
Samples of current incomplete interval.
Definition: Timer.h:162
Definition: MultiplyInstance.h:31
BiasParameters shadowBias_
Shadow depth bias parameters.
Definition: Light.h:481
TileMapLayer2D * GetLayer(unsigned index) const
Return tile map layer at index.
Definition: TileMap2D.cpp:158
bool IsEof() const override
Return whether all response data has been read.
Definition: HttpRequest.cpp:295
ea::vector< TrailPoint > points_
Tails.
Definition: RibbonTrail.h:213
VectorBuffer attrBuffer_
Attribute buffer.
Definition: AnimatedModel.h:228
float distance_
Distance to camera.
Definition: Drawable2D.h:70
void SetLinearFactor(const Vector3 &factor)
Definition: RigidBody.cpp:297
~ObjectAnimation() override
Destruct.
unsigned GetNumLevels() const
Definition: Octree.h:268
TextureFilterMode textureFilterMode_
Texture filtering mode.
Definition: Renderer.h:373
void ProcessHover(const IntVector2 &windowCursorPos, MouseButtonFlags buttons, QualifierFlags qualifiers, Cursor *cursor)
Handle button or touch hover.
Definition: UI.cpp:1264
void Scan(ea::vector< ea::string > &result, const ea::string &pathName, const ea::string &filter, ScanFlags flags) const
Scan for specified files.
Definition: ResourceCache.cpp:901
void RemoveKnot(unsigned index)
Remove the knot at the specific index.
Definition: Spline.h:108
ea::string name_
UI context name.
Definition: RmlUI.h:157
void SetOccluder(bool enable)
Definition: Terrain.cpp:448
void SetShapeTexture(Texture *texture)
Definition: Light.cpp:394
BoundingBox Clipped(const BoundingBox &box) const
Return this bounding box clipped by another box.
Definition: BoundingBox.h:267
bool Save(Serializer &dest) const override
Save resource to a stream.
Definition: BinaryFile.cpp:59
bool IsLowFrequency() const
Definition: SoundSource.h:131
Definition: TimeStepScaleInstance.h:31
Context * GetContext() const override
Definition: RenderPipeline.h:68
unsigned EvaluateInstanceSize() const override
Evaluate size required to place new node instance.
Definition: Destroy.cpp:53
unsigned EncodeVariableLength(T value, ea::span< unsigned char, MaxVariableLengthBytes< T >> dest)
Definition: MathDefs.h:427
float GetAspectRatio() const
Definition: Camera.h:162
2D weld constraint component.
Definition: ConstraintWeld2D.h:31
constexpr bool operator<(const StringHash &rhs) const
Test if less than another hash.
Definition: StringHash.h:97
IntRect GetViewportRect() const override
Definition: RenderBuffer.cpp:168
float GetDeadZone() const
Get dead zone half-width.
Definition: AxisAdapter.h:39
Accumulates statistics for specified number of intervals.
Definition: Timer.h:139
bool IsNonFocusedMouseWheel() const
Definition: UI.h:230
SharedPtr< Text > okButtonText_
OK button text.
Definition: FileSelector.h:186
@ JSONNT_INT
Integer.
Definition: JSONValue.h:61
Text UI element.
Definition: Text.h:76
void OnSetEnabled() override
Handle enabled/disabled state change.
Definition: Drawable2D.cpp:67
void ToggleExpand(unsigned index, bool recursive=false)
Toggle item's expanded flag at index. Only has effect in hierarchy mode.
Definition: ListView.cpp:824
void SetAppStats(const ea::string &label, const Variant &stats)
Definition: DebugHud.cpp:109
void SetName(const ea::string &name)
Definition: UIElement.cpp:541
ParticleGraphPin * LoadOutputPin(ParticleGraphReader &reader, GraphOutPin &pin) override
Load output pin.
Definition: Uniform.cpp:114
Vector2 invTextureSize_
Inverse texture size.
Definition: UIBatch.h:85
OcclusionBuffer(Context *context)
Construct.
Definition: OcclusionBuffer.cpp:48
bool EndLoad() override
Finish resource loading. Always called from the main thread. Return true if successful.
Definition: Sprite2D.cpp:81
void Mount(MountPoint *mountPoint)
Mount virtual or real folder into virtual file system.
Definition: VirtualFileSystem.cpp:115
const Vector2 & GetPosition() const
Definition: Sprite.h:92
SharedPtr< ActionState > StartAction(Object *target) override
Create new action state from the action.
Definition: Ease.cpp:160
void SetSkeleton(const Skeleton &skeleton)
Set skeleton.
Definition: Model.cpp:609
FontFace * GetFaceBitmap(float pointSize)
Return bitmap font face. Called internally. Return null on error.
Definition: Font.cpp:234
ea::string GetProgramFileName() const
Return the program's executable file path, or empty string if not applicable.
Definition: FileSystem.cpp:975
void UpdateBatches(const FrameInfo &frame) override
Calculate distance and prepare batches for rendering. May be called from worker thread(s),...
Definition: Light.cpp:217
bool movable_
Movable flag.
Definition: Window.h:162
int Top() const
Return top coordinate.
Definition: Rect.h:474
FontFace * GetFaceFreeType(float pointSize)
Return font face using FreeType. Called internally. Return null on error.
Definition: Font.cpp:223
bool GetScancodeDown(Scancode scancode) const
Check if a key is held down by scancode. Only Up, Down, Left and Right scancodes are supported.
Definition: DirectionalPadAdapter.cpp:159
IntVector2 numVertices_
Terrain size in vertices.
Definition: Terrain.h:355
void InitializeStandalone() override
Definition: BehaviorNetworkObject.cpp:148
void SetFinishBackgroundResourcesMs(int ms)
Definition: ResourceCache.h:126
unsigned lastUpdateFrameNumber_
Rendering framenumber on which was last updated.
Definition: ParticleEmitter.h:155
Vector2 textureUV_
Hit texture position.
Definition: OctreeQuery.h:211
GraphPinRef< GraphInPin > GetInput(const ea::string_view name)
Get input pin by name.
Definition: GraphNode.cpp:128
Destroy(Context *context)
Construct Destroy.
Definition: Destroy.cpp:44
Vector2 NormalizedOrDefault(const Vector2 &defaultValue=Vector2::ZERO, float eps=M_LARGE_EPSILON) const
Return normalized to unit length or zero if length is too small.
Definition: Vector2.h:373
int GetHeight() const
Return the current height.
Definition: AreaAllocator.h:50
virtual void SetVelocity(const Vector3 &velocity)
Set movement velocity in node's local space.
Definition: MoveAndOrbitComponent.cpp:40
const float * Data() const
Return float data.
Definition: Vector3.h:466
ea::string PrintResources(const ea::string &typeName=EMPTY_STRING) const
Returns a formatted string containing the currently loaded resources with optional type name filter.
Definition: ResourceCache.cpp:926
Frustum frustum_
Frustum.
Definition: OctreeQuery.h:153
void * GetSymbol(const ea::string &symbol)
Looks up exported symbol in current loaded dynamic library and returns it. Works only for native modu...
Definition: DynamicModule.cpp:229
unsigned Size() const
Return size.
Definition: MultiVector.h:190
bool SetInt(const ea::string &name, int value)
Set an integer attribute.
Definition: XMLElement.cpp:382
void RenderUI(DebugHudModeFlags mode)
Render system ui.
Definition: DebugHud.cpp:129
WindowDragMode GetDragMode(const IntVector2 &position) const
Identify drag mode (move/resize).
Definition: Window.cpp:318
bool WriteUShort(unsigned short value)
Write a 16-bit unsigned integer.
Definition: Serializer.cpp:73
void AddText3D(const Vector3 &position, const Quaternion &rotation, const Color &color, const TextParams3D ¶ms)
Add new 3D text.
Definition: TextRenderer3D.cpp:51
bool IsStereo() const
Definition: Sound.h:113
SharedPtr< ListView > listView_
Listview element.
Definition: DropDownList.h:118
void Reset(Rml::ElementDocument *document)
Reset current navigation state to default.
Definition: RmlNavigationManager.cpp:197
InterpolatedValueSpan SampleValid(const NetworkTime &time, float snapThreshold=M_LARGE_VALUE) const
Definition: NetworkValue.h:714
Vector3 initialPosition_
Reset position.
Definition: Skeleton.h:75
~ParticleEffect() override
Destruct.
b2JointDef * GetJointDef() override
Return joint def.
Definition: ConstraintFriction2D.cpp:92
void * logger_
Instance of spdlog logger.
Definition: Log.h:136
Viewport * GetViewport(unsigned index) const
Definition: RenderSurface.cpp:114
const ea::string & GetPixelShader() const
Definition: Technique.h:166
~Allocator()
Destruct.
Definition: Allocator.h:83
bool IsAnimationThrottlingAllowed() const
Return whether animation throttling is disabled.
Definition: AnimationStateSource.h:29
void Reset()
Reset the timer.
Definition: Timer.cpp:243
StaticPipelineStateId CreateQuadPipelineState(GraphicsPipelineStateDesc desc)
Definition: RenderBufferManager.cpp:330
ea::unique_ptr< btTriangleInfoMap > infoMap_
Bullet triangle info map.
Definition: CollisionShape.h:90
void ToggleSelection(unsigned index)
Toggle selection of an item.
Definition: ListView.cpp:651
const ea::string & GetName(unsigned attrIndex) const
Get name by attribute index.
Definition: ParticleGraphMemory.h:64
Viewport * GetViewportForScene(Scene *scene, unsigned index) const
Return nth backbuffer viewport associated to a scene. Index 0 returns the first.
Definition: Renderer.cpp:352
float scaleY_
Y scaling for viewport transform.
Definition: OcclusionBuffer.h:221
WeakPtr< TerrainPatch > south_
South neighbor patch.
Definition: TerrainPatch.h:146
float GetScale() const
Definition: UI.h:268
unsigned GetNumItems() const
Definition: DropDownList.cpp:196
ea::vector< StringHash > indexedComponentTypes_
Types of components that should be indexed.
Definition: Scene.h:318
void OnNodeSet(Node *previousNode, Node *currentNode) override
Definition: BehaviorNetworkObject.cpp:59
Viewport * GetViewport(unsigned index) const
Definition: StateManager.cpp:231
void SetDelay(float interval)
Set the delay in seconds before file changes are notified. This (hopefully) avoids notifying when a f...
Definition: MultiFileWatcher.cpp:46
void HandleMouseModeChange(StringHash eventType, VariantMap &eventData)
Handle request for mouse mode change on web platform.
Definition: StateManager.cpp:299
const Color & GetEffectiveAmbientColor() const
Return effective ambient light color.
Definition: Camera.cpp:763
URL url_
URL.
Definition: HttpRequest.h:94
LightmapSeamVector seams_
Lightmap seams.
Definition: LightmapGeometryBuffer.h:127
void RemoveEventSender(Object *sender)
Remove event handlers related to a specific sender.
Definition: Object.cpp:432
SharedPtr< Button > cancelButton_
Cancel button.
Definition: FileSelector.h:188
void SetFinishColor(const Color &finishColor)
Set finish color.
Definition: ParticleEffect2D.cpp:376
SphericalHarmonicsDot9 & operator*=(float rhs)
Scale spherical harmonics (inplace).
Definition: SphericalHarmonics.h:259
Context * context_
Urho3D context.
Definition: ActionBuilder.h:198
float GetAlpha() const
Definition: StaticSprite2D.h:125
virtual void UpdateGeometry(const FrameInfo &frame)
Prepare geometry for rendering.
Definition: Drawable.h:232
Definition: CubemapRenderer.h:80
@ JSON_OBJECT
JSON object type.
Definition: JSONValue.h:52
ea::string ToString() const
Return as string.
Definition: Rect.cpp:74
void Update(float timeStep) override
Perform UI element update.
Definition: Slider.cpp:72
bool IsEnabled() const
Get enabled flag.
Definition: DirectionAggregator.h:94
static void RegisterObject(ParticleGraphSystem *context)
Register particle node factory.
Definition: Uniform.cpp:76
static void RegisterObject(Context *context)
Definition: ParticleEmitter.cpp:62
Vector3 GetPoint() const
Returns closest point to origin.
Definition: Plane.h:119
float GetMinVelocity() const
Definition: ParticleEffect.h:366
void MarkNodeDirty()
Mark node transform dirty.
Definition: Zone.h:190
float GetShaderParameterAnimationSpeed(const ea::string &name) const
Return shader parameter animation speed.
Definition: Material.cpp:959
void SetRawVertexData(const ea::shared_array< unsigned char > &data, const ea::vector< VertexElement > &elements)
Override raw vertex data to be returned for CPU-side operations.
Definition: Geometry.cpp:176
ea::vector< CollisionShape * > collisionShapes_
Collision shapes in the world.
Definition: PhysicsWorld.h:361
int GetMinFps() const
Definition: Engine.h:108
void SetMultiselect(bool enable)
Definition: ListView.cpp:715
void ResetBoundingVolume()
Reset bounding volume.
Definition: ModelView.cpp:476
int loadMode_
Load mode.
Definition: FontFaceFreeType.h:63
void SetButtonTexts(const ea::string &okText, const ea::string &cancelText)
Set button texts.
Definition: FileSelector.cpp:190
WeakPtr< const XMLFile > file_
XML file.
Definition: XMLElement.h:371
Vector3 GetTranslation() const
Get Translation.
Definition: Cone.cpp:93
void LoadInfo(const XMLElement &element)
Load layer info.
Definition: TmxFile2D.cpp:69
Texture2D * GetDepthTexture() const
Definition: View3D.cpp:144
bool Save(Serializer &dest, InternalResourceFormat format) const
Save resource in specified internal format.
Definition: Resource.cpp:205
float updateInterval_
Update time interval.
Definition: Network.h:177
float HitDistance(const Plane &plane) const
Return hit distance to a plane, or infinity if no hit.
Definition: Ray.cpp:56
@ OT_INVALID
Invalid.
Definition: TileMapDefs2D.h:104
double Distance(const Vector3 &position) const
Return signed distance from position to the sphere.
Definition: TetrahedralMesh.h:122
Surface of tetrahedral mesh. Vertices are shared with tetrahedral mesh and are not stored.
Definition: TetrahedralMesh.h:215
virtual SharedPtr< PipelineState > CreateUIBatchPipelineState(const UIBatchStateKey &key, const UIBatchStateCreateContext &ctx)=0
float activeTime_
Active period.
Definition: ParticleEffect.h:470
ConstraintWheel2D(Context *context)
Construct.
Definition: ConstraintWheel2D.cpp:35
unsigned GetLevel() const
Return subdivision level.
Definition: Octree.h:89
Variant(const StringHash &value)
Construct from a string hash (convert to integer).
Definition: Variant.h:518
Signal< void()> OnReloaded
Signals that shader source code was reloaded.
Definition: Shader.h:41
bool SetInt64(const ea::string &name, long long value)
Set a long long integer attribute.
Definition: XMLElement.cpp:392
External context that is not present in the key but is necessary to create new pipeline state.
Definition: BatchStateCache.h:111
unsigned RemoteToLocal(unsigned value) const
Convert from remote to local timestamp.
Definition: ClockSynchronizer.h:104
long long ReadInt64()
Read a 64-bit integer.
Definition: Deserializer.cpp:66
void SetBlendMode(BlendMode blendMode)
Definition: StaticSprite2D.cpp:115
bool EndLoad() override
Finish resource loading. Always called from the main thread. Return true if successful.
Definition: Texture3D.cpp:128
Vector4 lightmapScaleOffset_
Lightmap scale and offset.
Definition: StaticModel.h:168
void ReAddBodyToWorld()
Readd rigid body to the physics world to clean up internal state like stale contacts.
Definition: RigidBody.cpp:548
static void RegisterObject(Context *context)
Definition: ConstraintGear2D.cpp:42
EventReceiverGroup()
Construct.
Definition: Context.h:41
void GetHandVelocity(VRHand hand, Vector3 *linear, Vector3 *angular) const override
Return linear and/or angular velocity of a hand.
Definition: OpenXR.cpp:1971
void SetSlidingFactor(float factor)
Set sliding factor 0 <= x <= 1. The less the value, more sliding.
bool Bake(StopToken stopToken)
Definition: IncrementalLightBaker.cpp:531
Node * GetNode() const
Definition: Component.h:97
bool focus_
Focus flag.
Definition: Light.h:171
float speed_
Definition: AnimationController.h:101
WeakPtr< TerrainPatch > east_
East neighbor patch.
Definition: TerrainPatch.h:150
void MarkTerrainDirty()
Mark terrain dirty.
Definition: Terrain.h:312
HighlightMode GetHighlightMode() const
Definition: ListView.h:156
void SetCustomShape(ShapeType shapeType, CustomGeometry *custom, const Vector3 &scale, const Vector3 &position, const Quaternion &rotation)
Set as specified shape type using CustomGeometry.
Definition: CollisionShape.cpp:1152
const StringTextureMap & GetTextures() const
Return all textures.
Definition: Material.h:252
Variant GetPoint(float f) const
Return the T of the point of the spline at f from 0.f - 1.f.
Definition: Spline.cpp:56
ea::string type_
Type.
Definition: TileMapDefs2D.h:233
void HandleMouseMove(StringHash eventType, VariantMap &eventData)
Handle mouse move event.
Definition: RmlUI.cpp:553
ea::span< T > SetUninitialized(NetworkFrame frame)
Set value and return uninitialized buffer to be filled.
Definition: NetworkValue.h:676
Tetrahedron with adjacency information.
Definition: TetrahedralMesh.h:237
Base implementation of ArchiveBlock. May contain inline blocks.
Definition: ArchiveBase.h:143
@ AM_TEMPORARY
Attribute should be saved in temporary storages even when other serialization is disabled.
Definition: Attribute.h:55
Template wrapper class for using Serializer / Deserializer or their subclasses through SDL's RWOps st...
Definition: RWOpsWrapper.h:33
float GetDampingCompression() const
Get wheel damping compression.
float GetDistance(const Vector3 &worldPos) const
Return distance to position. In orthographic mode uses only Z coordinate.
Definition: Camera.cpp:534
SharedPtr< SoundStream > GetDecoderStream() const
Return a new instance of a decoder sound stream. Used by compressed sounds.
Definition: Sound.cpp:313
Cached internal structure for reflection probe search.
Definition: ReflectionProbe.h:45
LogLevel level_
Log level.
Definition: Console.h:97
bool SetMode(int width, int height, bool fullscreen, bool borderless, bool resizable, bool highDPI, bool vsync, bool tripleBuffer, int multiSample, int monitor, int refreshRate)
Set default window modes. Deprecated. Return true if successful.
Definition: Graphics.cpp:303
constexpr unsigned ToHash() const
Return hash value.
Definition: FlagSet.h:258
void RemoveInstanceNode(Node *node)
Remove an instance scene node.
Definition: StaticModelGroup.cpp:287
unsigned GetPosition() const
Definition: Deserializer.h:65
ResourceRef GetParticleEffectAttr() const
Return particle model attr.
Definition: ParticleEmitter2D.cpp:149
btCollisionShape * GetCollisionShape() const
Return Bullet collision shape.
Definition: CollisionShape.h:226
float GetAxisUpperThreshold() const
Get axis upper threshold. Axis value greater than threshold is interpreted as key press.
Definition: DirectionalPadAdapter.h:104
float emissionBrightness_
Emission indirect brightness.
Definition: GlobalIllumination.h:81
Definition: AutoExposurePass.h:36
PackageUpload()
Construct with defaults.
Definition: Connection.cpp:66
FiniteTimeAction * GetFirstAction() const
Get first action.
Definition: Sequence.h:50
Vector2 anchorMin_
Anchor minimum position.
Definition: UIElement.h:900
static const IntVector3 RIGHT_FORWARD_UP
(0, 2, 1) coordinate system.
Definition: RaycastVehicle.h:139
float minPitch_
Pitch range.
Definition: FreeFlyController.h:131
void SetSRGB(bool enable)
Definition: Texture.cpp:144
Per-thread occlusion buffer data.
Definition: OcclusionBuffer.h:55
ObjectReflection * AddReflection(ea::string_view category="")
Add new object reflection with or without object creation factory and assign it to the category.
Definition: ObjectReflection.h:142
Frustum query for point light forward lit geometries and shadow casters.
Definition: LightProcessorQuery.h:44
void NodeTagRemoved(Node *node, const ea::string &tag)
Cache node by tag if tag not zero.
Definition: Scene.cpp:966
virtual bool WaitForCompleteFile(unsigned timeoutMs) const
Definition: Plugin.h:62
void OnNodeSet(Node *previousNode, Node *currentNode) override
Handle node being assigned.
Definition: CollisionShape.cpp:895
void HandleFileDoubleClicked(StringHash eventType, VariantMap &eventData)
Handle file doubleclicked from the list (enter directory / OK the file selection).
Definition: FileSelector.cpp:419
float GetRollingFriction() const
Definition: RigidBody.cpp:639
void ResetWheels()
Sets node initial positions.
Definition: RaycastVehicle.cpp:539
void AddFace(const Vector3 &v0, const Vector3 &v1, const Vector3 &v2)
Add a triangle face.
Definition: Polyhedron.cpp:71
void SetAreaID(unsigned newAreaID)
Definition: OffMeshConnection.cpp:102
void SetBounceFactor(float value)
Set BounceFactor.
Definition: Bounce.cpp:75
void SetLightmapIndex(unsigned idx)
Set lightmap index.
Definition: TerrainPatch.h:115
bool WriteStringHash(const StringHash &value)
Write a 32-bit StringHash.
Definition: Serializer.cpp:218
Definition: ParticleGraphPin.h:164
DebugHudModeFlags mode_
Current shown-element mode.
Definition: DebugHud.h:92
Stored log message from another thread.
Definition: Log.h:83
void SetMaxAgentRadius(float maxAgentRadius)
Definition: CrowdManager.cpp:263
void Clear()
Remove all buffered audio data.
Definition: BufferedSoundStream.cpp:102
XRActionGroup * GetCurrentActionSet() const
Returns the currently bound action set, null if no action set.
Definition: VirtualReality.h:267
float GetVertexDistance() const
Definition: RibbonTrail.h:151
Three-dimensional vector with integer values.
Definition: Vector3.h:34
void SetOwner(Terrain *terrain)
Set owner terrain.
Definition: TerrainPatch.cpp:236
Random(Context *context)
Construct.
Definition: Random.cpp:53
Tetrahedral mesh.
Definition: TetrahedralMesh.h:300
Reference to a pin buffer in a particle graph.
Definition: ParticleGraphPin.h:52
ea::vector< ea::vector< GlyphLocation > > pageGlyphLocations_
Glyph locations per each texture in the font.
Definition: Text.h:294
bool WriteMatrix3x4(const Matrix3x4 &value)
Write a Matrix3x4.
Definition: Serializer.cpp:166
float GetFontSubpixelThreshold() const
Definition: UI.h:254
void AddDrawable(Drawable *drawable)
Add a drawable object to this octant.
Definition: Octree.h:61
bool Commit()
Prepare layer for execution. Returns false if graph is invalid. See output logs for errors.
Definition: ParticleGraphLayer.cpp:293
void SetViewport(unsigned index, Viewport *viewport)
Definition: RenderSurface.cpp:54
void SetEmitterSize(const Vector3 &size)
Definition: ParticleEffect.cpp:485
unsigned geometryIndex_
Index of object geometry within the object.
Definition: LightmapGeometryBuffer.h:43
const ResourceToFileNameMap & GetSavedResources() const
Return saved resources and their absolute names.
Definition: GLTFImporter.cpp:3984
void SetDrawNavAreas(bool enable)
Definition: NavigationMesh.h:306
Rect(const Vector2 &min, const Vector2 &max) noexcept
Construct from minimum and maximum vectors.
Definition: Rect.h:43
unsigned Write(const void *data, unsigned size) override
Write bytes to the pipe. Return number of bytes actually written.
Definition: NamedPipe.cpp:325
SharedPtr< Texture > texture_
Texture.
Definition: Sprite.h:135
void CalculateFixedScreenSize(const FrameInfo &frame)
Recalculate camera facing and fixed screen size.
Definition: Text3D.cpp:784
HeightfieldData(Terrain *terrain, unsigned lodLevel)
Construct from a terrain.
Definition: CollisionShape.cpp:323
bool CreateDir(const ea::string &pathName)
Create a directory.
Definition: FileSystem.cpp:551
ea::unordered_map< Texture2D *, ea::unordered_map< int, SharedPtr< Material > > > cachedMaterials_
Cached materials.
Definition: Renderer2D.h:130
SystemUI widget used to edit 2D texture.
Definition: Texture2DInspectorWidget.h:34
Definition: IKLimbSolver.h:12
int GetPositionAttr() const
Return sound position attribute.
Definition: SoundSource.cpp:555
Quaternion GetQuaternion()
Return random quaternion (normalized).
Definition: RandomEngine.cpp:170
static void RegisterObject(Context *context)
Definition: StaticModel.cpp:55
bool TryCreateInplace()
Definition: PrefabReference.cpp:174
IntVector2 WorldToScreenPoint(const Vector3 &worldPos) const
Convert a world space point to normalized screen coordinates.
Definition: Viewport.cpp:216
Quaternion(const Quaternion &quat) noexcept
Copy-construct from another quaternion.
Definition: Quaternion.h:53
JSON document resource.
Definition: JSONFile.h:34
Variant defaultValue_
Default value for network replication.
Definition: Attribute.h:168
Definition: IKSpineSolver.h:82
unsigned GetNumVertices() const
Definition: DecalSet.h:163
FileTime GetLastModifiedTime(const ea::string &fileName, bool creationIsModification=false) const
Returns the file's last modified time as seconds since 1.1.1970, or 0 if can not be accessed.
Definition: FileSystem.cpp:837
void SetAmbientGradient(bool enable)
Definition: Zone.cpp:187
ea::vector< Bone > bones_
Bones.
Definition: Skeleton.h:160
SharedPtr< IndexBuffer > indexBuffer_
Index buffer.
Definition: BillboardSet.h:216
VertexLightVSVariation
Per-vertex light vertex shader variations.
Definition: Renderer.h:78
Material's shader parameter definition.
Definition: Material.h:74
ParticleGraphSpan scalarIndices_
Indices.
Definition: ParticleGraphLayer.h:61
CustomVariantValue(const std::type_info &typeInfo)
Construct from type info.
Definition: Variant.h:225
void Update(float timeStep) override
Update node position.
Definition: ShakeComponent.cpp:97
Vector3 FindNearestPoint(const Vector3 &point, int queryFilterType, dtPolyRef *nearestRef=nullptr)
Find the nearest point on the navigation mesh to a given point using the crowd initialized query exte...
Definition: CrowdManager.cpp:401
ea::unordered_map< ea::string, PackageEntry > entries_
File entries.
Definition: PackageFile.h:119
VariantBuffer * GetBufferPtr()
Return a pointer to a modifiable buffer or null on type mismatch.
Definition: Variant.h:1595
int recommendedMultiSample_
MSAA level recommended by API.
Definition: VirtualReality.h:284
Definition: TimeStepInstance.h:34
Rectangular area allocator.
Definition: AreaAllocator.h:31
Quaternion otherRotation_
Constraint other body axis.
Definition: Constraint.h:215
unsigned occlusionLodLevel_
Occlusion LOD level.
Definition: StaticModel.h:157
Sprite sheet.
Definition: SpriteSheet2D.h:37
SphericalHarmonicsColor9 & operator*=(float rhs)
Scale spherical harmonics (inplace).
Definition: SphericalHarmonics.h:148
unsigned size_
Stream size.
Definition: Deserializer.h:160
const ea::string soundResource_
Sound resource.
Definition: RmlEventListeners.h:91
ea::string shaderPath_
Base directory for shaders.
Definition: Graphics.h:314
Helper to declare non-copyable and non-movable class.
Definition: NonCopyable.h:29
void UpdateMasterGain()
Update the effective master gain. Called internally and by Audio when the master gain changes.
Definition: SoundSource.cpp:512
~XMLElement()
Destruct.
Definition: XMLElement.cpp:75
bool BeginLoadFromPListFile(Deserializer &source)
Begin load from PList file.
Definition: SpriteSheet2D.cpp:182
ea::vector< SharedPtr< ShaderVariation > > & GetPixelShaders()
Return pixel shaders.
Definition: Technique.h:188
~FontFaceFreeType() override
Destruct.
Definition: FontFaceFreeType.cpp:86
void CopySelectedItemsToClipboard() const
Copy selected items to system clipboard. Currently only applicable to Text items.
Definition: ListView.cpp:920
void SetTranslation(Vector3 value)
Set Translation.
Definition: Circle.cpp:80
ea::string_view GetName() const final
Return name of the archive if applicable.
Definition: BinaryArchive.cpp:81
~CollisionChain2D() override
Destruct.
void OnSceneSet(Scene *scene) override
Handle scene being assigned.
Definition: Drawable2D.cpp:105
bool IsInstanceOf() const
Check current instance is type of specified class.
Definition: Object.h:131
float Distance(const Vector3 &point) const
Return distance of a point to the surface, or 0 if inside.
Definition: Sphere.h:218
ea::string windowTitle_
Window title.
Definition: Graphics.h:297
static void FillSortKeys(ea::vector< T > &sortedBatches, const U &... pipelineBatches)
Prepare vector of sorted batches w/o actual sorting.
Definition: BatchCompositor.h:249
ea::unordered_map< unsigned, ea::shared_ptr< const BakedLightmap > > lightmapCache_
Baked lightmaps.
Definition: BakedLightCache.h:105
const T & Get(const IntVector2 &index) const
Return constant element by index.
Definition: Array2D.h:197
Tweaks that should be applied before graphics initialization.
Definition: OpenXR.h:63
Vector3 ToVector3() const
Return Vector3 vector.
Definition: Vector3.h:586
unsigned GetLodLevel() const
Return current LOD level.
Definition: TerrainPatch.h:108
int GetMaxFontTextureSize() const
Definition: UI.h:226
void HandleFileListKey(StringHash eventType, VariantMap &eventData)
Handle file list key pressed.
Definition: FileSelector.cpp:428
Resource * GetExistingResource(StringHash type, const ea::string &name)
Return an already loaded resource of specific type & name, or null if not found. Will not load if doe...
Definition: ResourceCache.cpp:431
Quaternion rotation_
Offset rotation.
Definition: CollisionShape.h:326
ea::unordered_map< unsigned, ea::shared_ptr< const LightmapChartBakedDirect > > directLightCache_
Direct light cache.
Definition: BakedLightCache.h:103
const Color & GetEffectColor() const
Definition: Text.h:196
bool BeginLoad(Deserializer &source) override
Definition: Resource.cpp:256
bool otherBodyNodeIDDirty_
Other body node ID dirty flag.
Definition: Constraint2D.h:112
int GetTextureAnisotropy() const
Definition: Renderer.h:241
Slider(Context *context)
Construct.
Definition: Slider.cpp:43
Sample curve operator.
Definition: Curve.h:36
void Update(float timeStep) override
Update sound source.
Definition: SoundSource3D.cpp:96
static void RegisterObject(Context *context)
Definition: XMLFile.cpp:74
static ea::string Encode(ea::string_view string)
Definition: URL.cpp:123
ea::vector< Component * > delayedDirtyComponents_
Delayed dirty notification queue for components.
Definition: Scene.h:337
unsigned b_
Blue channel mask. If zero, blue channel is set to 0.
Definition: Color.h:44
WeakPtr< const XMLFile > file_
XML file.
Definition: XMLElement.h:327
Movement HandleKeyboard(float timeStep) const
Handle keyboard input.
Definition: FreeFlyController.cpp:351
virtual bool Define(RenderSurface *renderTarget, Viewport *viewport)=0
Called in the beginning of the update to check if pipeline should be executed.
void SendEvent(StringHash eventType, const Args &... args)
Send event with variadic parameter pairs to all subscribers. The parameters are (paramID,...
Definition: Object.h:164
ParticleGraphAttributeLayout attributes_
Attributes memory layout.
Definition: ParticleGraphLayer.h:156
~OggVorbisSoundStream() override
Destruct.
Definition: OggVorbisSoundStream.cpp:50
void SerializeInBlock(Archive &archive) override
Serialize content from/to archive. May throw ArchiveException.
Definition: Ease.cpp:104
Text * GetTitleText() const
Definition: FileSelector.h:96
const Vector2 & GetOwnerBodyAnchor() const
Definition: ConstraintRope2D.h:56
void UpdateOctreeSize()
Update octree size.
Definition: Octree.h:287
void SetRadiusThickness(float value)
Set Radius Thickness.
Definition: Cone.cpp:79
WorkFunction workLambda_
Work function. Called without any parameters.
Definition: WorkQueue.h:111
ConfigFlavorVector & GetVariablesPerFlavor()
Definition: ConfigFile.h:105
PipelineStateSubscription(PipelineStateSubscription &&other)
Move-construct.
Definition: PipelineStateTracker.h:51
unsigned shadowViewMask_
View mask for shadow casters.
Definition: Camera.h:377
SharedPtr< ActionState > StartAction(Object *target) override
Create new action state from the action.
Definition: Move.cpp:510
unsigned ToHash() const
Return hash value of the vertex element.
Definition: GraphicsDefs.h:112
BlendMode blendMode_
Blend mode flag.
Definition: Sprite.h:139
float startScale_
Scale for start of trails.
Definition: RibbonTrail.h:260
AttributeScopeHint GetEffectiveScopeHint() const
Definition: PackedSceneData.h:53
void OnAttributeAnimationRemoved() override
Handle attribute animation removed.
Definition: UIElement.cpp:1930
static bool supported
High-resolution timer support flag.
Definition: Timer.h:74
void SetParticleEffectAttr(const ResourceRef &value)
Set particle model attr.
Definition: ParticleEmitter2D.cpp:143
void SetPlaceholderText(const ea::string &text)
Definition: DropDownList.cpp:186
float indirectBrightness_
Indirect brightness.
Definition: BakedLight.h:67
bool useScreenKeyboard_
Flag for showing the on-screen keyboard on focusing a LineEdit.
Definition: UI.h:449
unsigned Read(void *dest, unsigned size) override
Read bytes from the file. Return number of bytes actually read.
Definition: File.cpp:161
const Vector3 & GetConstantForce() const
Definition: ParticleEffect.h:326
void(* workFunction_)(const WorkItem *, unsigned)
Work function. Called with the work item and thread index (0 = main thread) as parameters.
Definition: WorkQueue.h:99
void ProcessOccluders(const ea::vector< Drawable * > &occluders, float sizeThreshold)
Process occluders. UpdateBatches for occluders may be called twice, but never reentrantly.
Definition: DrawableProcessor.cpp:240
SharedPtr< UIElement > rootElement_
UI root element.
Definition: UI.h:399
void LoadPlugin()
Load plugin into the context and the engine subsystems.
Definition: PluginApplication.cpp:66
SimpleNavBuildData()
Constructor.
Definition: NavBuildData.cpp:52
void SetQuiet(bool quiet)
Definition: Log.cpp:418
float GetMorphWeight(unsigned index) const
Return vertex morph weight by index.
Definition: AnimatedModel.cpp:595
void SetLinearDamping(float linearDamping)
Definition: RigidBody2D.cpp:174
void AddPolygon(const Vector3 &v1, const Vector3 &v2, const Vector3 &v3, const Vector3 &v4, const Color &color, bool depthTest=true)
Add a solid quadrangular polygon.
Definition: DebugRenderer.cpp:138
bool IsStopped() const
Check whether is stopped.
Definition: StopToken.h:46
float Get(float x, float y, float z, int repeat=NumPer) const
Return noise value as float.
Definition: PerlinNoise.h:43
Definition: OctreeQuery.h:114
float edgeOffset_
Offset to fix texture edge bleeding.
Definition: Sprite2D.h:120
unsigned color_
Color.
Definition: Drawable2D.h:42
SharedPtr< Node > cameraNode_
Camera scene node.
Definition: View3D.h:103
2D pulley constraint component.
Definition: ConstraintPulley2D.h:31
void SetGroupIndex(int groupIndex)
Definition: CollisionShape2D.cpp:114
Vector3 cachedWorldScale_
Cached world scale for determining if the collision shape needs update.
Definition: CollisionShape.h:330
void Update(float timeStep) override
Definition: RmlUIComponent.cpp:79
Matrix4 lightShapeMatrix_
Matrix for light shape (aka light cookie).
Definition: LightProcessor.h:59
const int * Data() const
Return integer data.
Definition: Rect.h:456
Variant GetVariantValue(VariantType type, Context *context=nullptr) const
Return a variant attribute with static type. Context must be provided for loading SharedPtr<Serializa...
Definition: XMLElement.cpp:907
Sprite2D * GetSprite() const
Definition: TileMapDefs2D.cpp:168
Definition: IKIdentitySolver.h:12
int maxTiles_
Maximum number of tiles.
Definition: NavigationMesh.h:358
ea::vector< ea::string > interpreters_
List of command interpreters.
Definition: Console.h:109
WeakPtr< SoundSource > soundPlayer_
Sound player.
Definition: RmlEventListeners.h:98
void RemoveDrawable(Drawable *drawable, Octant *octant)
Remove drawable from octree. For internal use only.
Definition: Octree.cpp:623
void SetTime(float time)
Definition: AnimationState.cpp:204
Vector2 GetRandomSize() const
Return random size.
Definition: ParticleEffect.cpp:796
int GetHeight() const
Definition: Image.h:150
ParticleGraphSpan()
Construct.
Definition: ParticleGraphMemory.cpp:32
IntVector2 GetSize() const
Return size.
Definition: Texture.h:119
void AddPolyhedron(const Polyhedron &poly, const Color &color, bool depthTest=true)
Add a polyhedron.
Definition: DebugRenderer.cpp:282
Vector4 ClipEdge(const Vector4 &v0, const Vector4 &v1, float d0, float d1) const
Clip an edge.
Definition: OcclusionBuffer.cpp:556
bool ownScene_
Own scene.
Definition: View3D.h:105
bool GetEnableMotor() const
Definition: ConstraintRevolute2D.h:84
CustomVariantValueImpl< T > ClassName
This class name.
Definition: Variant.h:363
ea::vector< unsigned char > GetVerticesAttr() const
Return vertices attribute.
Definition: CollisionPolygon2D.cpp:92
void CheckTextureBudget(StringHash type)
Check whether texture memory budget has been exceeded. Free unused materials in that case to release ...
Definition: Texture.cpp:309
ByteVector & GetBuffer()
Return the buffer.
Definition: VectorBuffer.h:74
const TmxTileLayer2D * tileLayer_
Tile layer.
Definition: TileMapLayer2D.h:127
void SetUpperTranslation(float upperTranslation)
Definition: ConstraintPrismatic2D.cpp:106
bool SetName(const ea::string &name)
Set pin name and hash.
Definition: ParticleGraphPin.cpp:84
bool GetDrawCenterOfMass() const
Definition: PhysicsWorld2D.h:198
void OnSetEnabled() override
Handle enabled/disabled state change.
Definition: KinematicCharacterController.cpp:110
float maxSideSlipSpeed_
Side slip speed threshold.
Definition: RaycastVehicle.h:169
Matrix4 ReadMatrix4()
Read a Matrix4.
Definition: Deserializer.cpp:229
ResourceRef GetMaterialAttr() const
Return material attribute.
Definition: DecalSet.cpp:593
const Color & GetStartColor() const
Return start color.
Definition: ParticleEffect2D.h:177
virtual void OnSetAttribute(const AttributeInfo &attr, const Variant &src)
Handle attribute write access. Default implementation writes to the variable at offset,...
Definition: Serializable.cpp:75
unsigned vertexStart_
First used vertex.
Definition: Geometry.h:163
void SetMassCenter(const Vector2 ¢er)
Definition: RigidBody2D.cpp:146
ea::string soundType_
SoundSource type, determines the master gain group.
Definition: SoundSource.h:166
b2JointDef * GetJointDef() override
Return joint def.
Definition: ConstraintMotor2D.cpp:122
bool GetWordwrap() const
Definition: Text.h:164
JSONValue(int value)
Construct with a integer.
Definition: JSONValue.h:92
const ea::unordered_map< ea::string, SharedPtr< Sprite2D > > & GetSpriteMapping() const
Return sprite mapping.
Definition: SpriteSheet2D.h:74
Container of resources with specific type.
Definition: ResourceCache.h:48
const ea::string scheme_
Expected file locator scheme.
Definition: MountedDirectory.h:77
bool IsOrthographic() const
Definition: Camera.h:195
float edgeOffset_
Texture edge offset.
Definition: TmxFile2D.h:231
One particle in the particle system.
Definition: ParticleEmitter.h:33
bool SetValueType(VariantType valueType)
Set pin value type.
Definition: ParticleGraphPin.cpp:99
GraphPinRef< GraphInPin > GetOrAddInput(const ea::string_view name)
Get or add input pin.
Definition: GraphNode.cpp:140
unsigned Seek(unsigned position) override
Set position from the beginning of the file.
Definition: File.cpp:276
const Matrix3x4 & GetVolumeTransform(const Camera *camera)
Return light volume model transform.
Definition: Light.cpp:488
static VariantType GetTypeFromName(const ea::string &typeName)
Return variant type from type name.
Definition: Variant.cpp:1261
void EnableMassUpdate()
Re-enable mass update and recalculate the mass/inertia by calling UpdateMass(). Call when collision s...
Definition: RigidBody.cpp:559
const Vector3 GetLinearVelocity() const
Return linear velocity.
Definition: KinematicCharacterController.cpp:617
static void RegisterObject(Context *context)
Register object factory.
Definition: GraphNode.cpp:106
ea::string ToString() const
Return as string.
Definition: BoundingBox.cpp:328
const VRRigDesc & GetRig() const
Returns currently connected rig.
Definition: VirtualReality.h:207
BlendMode GetBlendMode() const
Return blend mode.
Definition: ParticleEffect2D.h:228
void fixInnerIterator()
Fix inner iterator when it reaches end.
Definition: MultiVector.h:125
SphericalHarmonicsColor9(const Vector3 &dir, const Color &color)
Construct SH9 coefficients from given normalized direction and color.
Definition: SphericalHarmonics.h:116
void UpdateTimelineKeys()
Update timeline keys.
Definition: SpriterInstance2D.cpp:201
Value animation class.
Definition: ValueAnimation.h:70
Definition: ThreadSafeCache.h:39
void SetFileName(const ea::string_view fileName)
Set source file name.
Definition: Scene.h:201
unsigned padding_
Padding between individual objects on the chart.
Definition: LightBakingSettings.h:41
void CloneTo(void *dest) const override
Clone object over destination.
Definition: Variant.h:407
bool Equals(const Color &rhs, float eps=M_EPSILON) const
Test for equality with another color with epsilon.
Definition: Color.h:248
static float ConvertLinearToGamma(float value)
Convert single component of the color from linear to gamma space.
Definition: Color.h:207
int zIndex_
Run time data.
Definition: SpriterData2D.h:314
bool GetInterpolation() const
Definition: PhysicsWorld.h:262
void SetTransportCustom(const CreateServerCallback &createServer, const CreateConnectionCallback &createConnection)
Use a user defined transport.
Definition: Network.cpp:395
Font * font_
Parent font.
Definition: FontFace.h:107
SharedPtr< FiniteTimeAction > Reverse() const override
Create reversed action.
Definition: Ease.cpp:381
Set particle attribute value.
Definition: Attribute.h:105
bool SetVector4(const ea::string &name, const Vector4 &value)
Set a Vector4 attribute.
Definition: XMLElement.cpp:587
Reference to reflection probe affecting geometry.
Definition: ReflectionProbeData.h:50
void HandleCancelPressed(StringHash eventType, VariantMap &eventData)
Handle cancel button pressed.
Definition: FileSelector.cpp:477
static void RegisterObject(Context *context)
Definition: Constraint.cpp:80
void * start_
Data start pointer.
Definition: WorkQueue.h:101
ea::vector< Object * > receivers_
Receivers. May contain holes during sending.
Definition: Context.h:60
void SetRendering(bool enable)
Enable or disable this UI subsystem. When disabled, no inputs will be processed and nothing will be r...
Definition: RmlUI.h:94
unsigned EvaluateInstanceSize() const override
Evaluate size required to place new node instance.
Definition: Attribute.h:133
float fogStart_
Fog start distance.
Definition: Zone.h:223
ResourceRef GetTextureAttr() const
Return texture attribute.
Definition: Sprite.cpp:295
LightProcessor * pixelLightForPipelineState_
Definition: BatchCompositor.h:94
static void RegisterObject(ParticleGraphSystem *context)
Register particle node factory.
Definition: Constant.cpp:53
bool returnFailedResources_
Return failed resources flag.
Definition: ResourceCache.h:249
T * Reserve(Args &&... args)
Reserve and default-construct an object.
Definition: Allocator.h:90
void Define(float min, float max)
Define from minimum and maximum floats (all dimensions same).
Definition: BoundingBox.h:165
CurveType
Curve type.
Definition: SpriterData2D.h:218
ShadowMapRegion shadowMap_
Accumulative shadow map region containing all the splits.
Definition: LightProcessor.h:172
ParticleGraphNodeInstance * CreateInstanceAt(void *ptr, ParticleGraphLayerInstance *layer) override
Place new instance at the provided address.
Definition: Attribute.h:92
bool framesDirty_
Coordinate frames dirty flag.
Definition: Constraint.h:233
ea::string apiName_
Graphics API name.
Definition: Graphics.h:326
void SetPeriod(float period)
Set period.
Definition: Ease.h:74
void SetStartColorVariance(const Color &startColorVariance)
Set start color variance.
Definition: ParticleEffect2D.cpp:371
void Reset()
Definition: ParticleGraphEmitter.cpp:71
virtual void InterpolateState(float replicaTimeStep, float inputTimeStep, const NetworkTime &replicaTime, const NetworkTime &inputTime)
Interpolate replicated state.
Definition: NetworkCallbacks.h:111
void SetOwnerBodyAnchor(const Vector2 &anchor)
Definition: ConstraintDistance2D.cpp:58
ParticleGraphSpan indices_
Indices.
Definition: ParticleGraphLayer.h:59
unsigned areaId_
Area id to be used for this off mesh connection's internal poly.
Definition: OffMeshConnection.h:101
bool updateInvisible_
Update when invisible flag.
Definition: ParticleEffect.h:446
Aggregate network-related callbacks used by NetworkObject and NetworkBehavior.
Definition: NetworkCallbacks.h:125
void SetInterpolationMethod(InterpMethod method)
Definition: ValueAnimation.cpp:257
void * owner_
Owner.
Definition: ValueAnimation.h:160
Enum to/from string.
Definition: ArchiveSerializationBasic.h:118
unsigned numLights_
Total number of lights processed.
Definition: RenderPipelineDefs.h:260
bool IsMouseVisible() const
Definition: StateManager.h:71
float dragBeginInterval_
Seconds from mouse button down to begin a drag if there has been no movement exceeding pixel threshol...
Definition: UI.h:427
SharedPtr< Material > customMaterial_
Custom material.
Definition: StaticSprite2D.h:197
Definition: BakedSceneCollector.h:48
void CreateJoint()
Create joint.
Definition: Constraint2D.cpp:80
ea::shared_ptr< const BakedLightmap > LoadLightmap(unsigned lightmapIndex) override
Load baked lightmap.
Definition: BakedLightCache.cpp:61
bool LoadOverrides(const ea::string &fileName)
Load variable overrides from file.
Definition: ConfigFile.cpp:165
Selected nodes and components in the Scene.
Definition: SceneSelection.h:52
Particle graph effect definition.
Definition: ParticleGraphSystem.h:32
Base class for UI elements.
Definition: UIElement.h:122
void SetNumGeometries(unsigned num)
Set number of geometries.
Definition: StaticModel.cpp:363
Utility class to write prefab data to Archive.
Definition: PrefabWriter.h:83
void RestoreFocus()
If current focus is invalid, focus on the first valid navigable element.
Definition: RmlUIComponent.cpp:186
float GetCellSize() const
Definition: NavigationMesh.h:220
void BeginBlock(const char *name, unsigned &sizeHint, bool safe, ArchiveBlockType type) final
Definition: JSONArchive.cpp:111
Network(Context *context)
Construct.
Definition: Network.cpp:61
BoundingBox boundingBox_
Bounding box relative to the navigation mesh root node.
Definition: NavigationUtils.h:27
unsigned GetNumParticles() const
Definition: ParticleEffect.h:282
@ OT_ELLIPSE
Ellipse.
Definition: TileMapDefs2D.h:96
void DelayedMarkedDirty(Component *component)
Add a component to the delayed dirty notify queue. Is thread-safe.
Definition: Scene.cpp:878
Renderer(Context *context)
Construct.
Definition: Renderer.cpp:275
ShaderParameterFromTo(Context *context)
Construct.
Definition: ShaderParameter.cpp:141
Quaternion(float x, float y, float z) noexcept
Construct from Euler angles (in degrees). Equivalent to Y*X*Z.
Definition: Quaternion.h:108
Vector3 operator*(const Vector3 &rhs) const
Multiply a Vector3 which is assumed to represent position.
Definition: Matrix4.h:258
void UpdateTextMaterials(bool forceUpdate=false)
Create materials for text rendering. May only be called from the main thread. Text UI batches must be...
Definition: Text3D.cpp:674
unsigned Size() const
Definition: XMLElement.cpp:1149
StringHash GetTargetState() const
Get target application state.
Definition: StateManager.cpp:544
void SetWakeThreshold(unsigned value)
Definition: Microphone.h:82
bool Load() override
Definition: ScriptBundlePlugin.cpp:46
unsigned ToHash() const
Return hash value for HashSet & HashMap.
Definition: Rect.h:245
~ConstraintMotor2D() override
Destruct.
bool SaveGraph(Graph &graph)
Save graph.
Definition: ParticleGraph.cpp:74
const Vector2 & GetLinearOffset() const
Definition: ConstraintMotor2D.h:62
void AllocateView()
Allocate the view structure. Called by Renderer.
Definition: Viewport.cpp:265
void ApplyAttributes() override
Apply attribute changes that can not be applied immediately.
Definition: Text3D.cpp:112
Vector3 positionOffset_
Offset used for smooth Node position adjustment.
Definition: KinematicCharacterController.h:196
void SetMinVelocity(float velocity)
Definition: ParticleEffect.cpp:550
ea::vector< ea::string > FindUnused(const ea::string &code) const
Find defines unused in source code.
Definition: ShaderDefs.h:89
void PreloadResourcesXML(const XMLElement &element)
Preload resources from an XML scene or object prefab file.
Definition: Scene.cpp:1245
IntRect border_
The border, represented by the number of pixels from each side.
Definition: StretchableSprite2D.h:53
static void RegisterObject(Context *context)
Definition: StretchableSprite2D.cpp:125
IntRect GetRect() const
Return array dimensions as IntRect.
Definition: Array2D.h:50
bool GetCastShadows() const
Definition: Drawable.h:326
unsigned GetNumPrimitives() const
Definition: ModelView.cpp:636
void WriteUnreliableFeedback(NetworkFrame frame, Serializer &dest) override
Write unreliable feedback from client.
Definition: BehaviorNetworkObject.cpp:384
const IntVector2 & GetUICustomSize() const
Definition: StateManager.h:91
void SubscribeWithSender(Receiver *receiver, Priority priority, Callback handler)
Subscribe to event. Callback receives sender and signal arguments.
Definition: Signal.h:290
Window(Context *context)
Construct.
Definition: Window.cpp:39
int GetFinishBackgroundResourcesMs() const
Definition: ResourceCache.h:188
Definition: ScriptBundlePlugin.h:30
static float ConvertGammaToLinear(float value)
Convert single component of the color from gamma to linear space.
Definition: Color.h:196
Definition: Archive.h:102
const ea::vector< SharedPtr< Image > > & GetImages() const
Return face images.
Definition: ImageCube.h:58
~RaycastVehicleWheel() override
Destruct.
Definition: RaycastVehicleWheel.cpp:42
void SetModalShadeColor(const Color &color)
Definition: Window.cpp:298
@ AM_FILE
Attribute used for file serialization.
Definition: Attribute.h:41
bool IsInsideCircumsphere(unsigned tetIndex, const Vector3 &position)
Tests if point is inside circumsphere of tetrahedron.
Definition: TetrahedralMesh.h:376
32-bit hash value for a string.
Definition: StringHash.h:37
void Cook()
Cook light if necessary.
Definition: LightAccumulator.h:162
unsigned GetLightmapIndex() const
Return lightmap index.
Definition: TerrainPatch.h:117
void Configure(const GraphicsSettings &settings)
Configure before initial setup.
Definition: Graphics.cpp:131
void Update(float time, Variant &var) override
Called every frame with it's delta time and attribute value.
Definition: AttributeActionState.cpp:85
bool HasAnimation(const ea::string &animationName) const
Check has animation.
Definition: AnimationSet2D.cpp:181
int GetHeight() const
Definition: Text3D.cpp:493
unsigned GetData(signed char *dest, unsigned numBytes) override
Produce sound data into destination. Return number of bytes produced. Called by SoundSource from the ...
Definition: BufferedSoundStream.cpp:39
Scene * GetScene() const
Definition: View3D.cpp:129
Operating system mutual exclusion primitive.
Definition: Mutex.h:101
void RemoveFromOctree()
Remove from octree.
Definition: Drawable.cpp:402
ea::string name_
Bone name.
Definition: Skeleton.h:69
virtual void ProcessRayQuery(const RayOctreeQuery &query, ea::vector< RayQueryResult > &results)
Process octree raycast. May be called from a worker thread.
Definition: Drawable.cpp:140
const Vector2 & GetAnchor() const
Definition: ConstraintRevolute2D.h:68
bool IsCustomType() const
Return true if specified custom type is stored in the variant.
Definition: Variant.h:1560
ParticleGraphPin * LoadOutputPin(ParticleGraphReader &reader, GraphOutPin &pin) override
Load output pin.
Definition: Helpers.cpp:149
@ O_STAGGERED
Staggered.
Definition: TileMapDefs2D.h:43
ea::string ToString(const Context *context) const
Convert resource reference to string.
Definition: Variant.cpp:335
IntVector2 ElementToScreen(const IntVector2 &position) override
Convert element coordinates to screen coordinates.
Definition: Sprite.cpp:102
bool searchPackagesFirst_
Search priority flag.
Definition: ResourceCache.h:251
void OnNodeSet(Node *previousNode, Node *currentNode) override
Handle node being assigned.
Definition: CrowdAgent.cpp:612
bool readSyncNeeded_
Synchronization needed before read -flag.
Definition: File.h:156
ParticleGraphEffect(Context *context)
Construct.
Definition: ParticleGraphEffect.cpp:40
Settings of default render pipeline.
Definition: RenderPipelineDefs.h:666
void Render(const SharedRenderPassState &sharedState) override
Execute render commands.
Definition: FullScreenShaderPass.cpp:110
Group of batches to be rendered.
Definition: PipelineBatchSortKey.h:159
bool IsInCrowd() const
Definition: CrowdAgent.cpp:504
@ InProgress
Baking in progress.
RawTexture * GetTexture() const override
Definition: RenderBuffer.cpp:214
constexpr bool IsEmpty() const
Return true if nonempty hash value.
Definition: StringHash.h:103
float GetLength() const
Definition: ConstraintDistance2D.h:78
void SphereCast(PhysicsRaycastResult &result, const Ray &ray, float radius, float maxDistance, unsigned collisionMask=M_MAX_UNSIGNED)
Perform a physics world swept sphere test and return the closest hit.
Definition: PhysicsWorld.cpp:553
DirectionalPadAdapterFlags subscriptionFlags_
Active subscriptions bitmask.
Definition: DirectionalPadAdapter.h:138
Quaternion GetRotation() const
Get Rotation.
Definition: Box.cpp:82
ea::shared_array< int > dataWithSafety_
Full buffer data with safety padding.
Definition: OcclusionBuffer.h:58
void SetSpriteSheet(SpriteSheet2D *spriteSheet)
Set sprite sheet.
Definition: Sprite2D.cpp:138
Message box dialog. Manages its lifetime automatically, so the application does not need to hold a re...
Definition: MessageBox.h:38
static const unsigned MaxAutoProbes
Auto placement limit: max total number of probes generated.
Definition: LightProbeGroup.h:134
void SetResizable(bool enable)
Definition: Window.cpp:255
bool CreateDirsRecursive(const ea::string &directoryIn)
Create specified subdirectory and any parent directory if it does not exist.
Definition: FileSystem.cpp:1410
static void RegisterObject(ParticleGraphSystem *context)
Register particle node factory.
Definition: Move.cpp:38
Definition: ShakeComponent.h:37
bool IsNaN() const
Return whether any element is NaN.
Definition: Matrix4.h:651
void SetLinearVelocity(const Vector3 &velocity)
Definition: RigidBody.cpp:287
Action that does nothing but waits.
Definition: Misc.h:125
constexpr Integer & AsInteger()
Return underlying integer (non-constant).
Definition: FlagSet.h:255
void SetFocusElement(UIElement *element, bool byKey=false)
Set focused UI element.
Definition: UI.cpp:183
ea::vector< JSONValue > JSONArray
JSON array type.
Definition: JSONValue.h:357
void SetTransform(const Vector3 &position, const Quaternion &rotation)
Set rigid body position and rotation in world space as an atomic operation.
Definition: RigidBody.cpp:265
void MarkAnimationStateTracksDirty() override
Definition: AnimationController.cpp:1015
Variant(const Matrix4 &value)
Construct from a Matrix4.
Definition: Variant.h:674
static size_t Read(SDL_RWops *context, void *ptr, size_t size, size_t maxNum)
Read from the object. Return number of "packets" read.
Definition: RWOpsWrapper.h:101
float regionMinSize_
Region minimum size.
Definition: NavigationMesh.h:376
int z_
Z coordinate.
Definition: Vector3.h:180
AnimationSet2D * GetAnimationSet() const
Definition: AnimatedSprite2D.cpp:193
Vector2 ownerBodyAnchor_
Owner body anchor.
Definition: ConstraintRope2D.h:73
bool Connect(const URL &url) override
Address may be a full URL and port may be set to 0. Otherwise, port is appended to address.
Definition: DataChannelConnection.cpp:50
void SetShadowBias(const BiasParameters ¶meters)
Definition: Light.cpp:356
StringVariantMap GetStringVariantMap() const
Return a string variant map.
Definition: JSONValue.cpp:719
void OnIndentSet() override
React to indent change.
Definition: Text.cpp:247
const Color & GetAmbientEndColor()
Definition: Zone.cpp:229
unsigned GetEffectiveIndexCount() const
Return index or vertex count depending on whether the index buffer is used.
Definition: Geometry.h:118
~CameraOperator() override
Destruct.
void DrawDebugGeometry(DebugRenderer *debug, bool depthTest) override
Draw the Debug Geometry.
Definition: SplinePath.cpp:115
void OnUpdate() override
Definition: RmlNavigable.cpp:130
const Vector3 & GetPosition() const
Definition: Constraint.h:135
bool GetFullscreen() const
Definition: Graphics.h:188
static void RegisterObject(Context *context)
Definition: DecalSet.cpp:180
unsigned lightmapSize_
Lightmap size.
Definition: LightmapStitcher.h:41
void SendLoggedMessage(NetworkMessageId messageId, const unsigned char *data, unsigned numBytes, PacketTypeFlags packetType=PacketType::ReliableOrdered, ea::string_view debugInfo={})
Definition: AbstractConnection.h:69
WeakPtr< Node > node_
Scene node.
Definition: Skeleton.h:91
Variant(unsigned long long value)
Construct from unsigned integer.
Definition: Variant.h:512
unsigned GetMaxLength() const
Definition: LineEdit.h:112
SharedPtr< BorderImage > knob_
ProgressBar knob.
Definition: ProgressBar.h:104
Vector2 positions_[2]
Edge on lightmap UV.
Definition: LightmapGeometryBuffer.h:55
bool BeginLoadFromJSONFile(Deserializer &source)
Begin load from JSON file.
Definition: SpriteSheet2D.cpp:372
Node * GetInstanceNode(unsigned index) const
Definition: StaticModelGroup.cpp:315
Derivative of a quaternion is angular velocity vector.
Definition: NetworkValue.h:273
ea::shared_array< unsigned > indexData_
Index data.
Definition: CollisionShape.h:122
ea::unordered_map< StringHash, AnimationTrack > tracks_
Animation tracks.
Definition: Animation.h:170
bool SetData(CubeMapFace face, unsigned level, int x, int y, int width, int height, const void *data)
Set data either partially or fully on a face's mip level. Return true if successful.
Definition: TextureCube.cpp:137
void Invalidate()
Definition: ParticleGraphLayer.cpp:252
unsigned RecalculatePipelineStateHash() const override
Recalculate hash. Shall be save to call from multiple threads as long as the object is not changing.
Definition: Geometry.cpp:353
static void RegisterObject(Context *context)
Definition: ListView.cpp:199
void RegisterStaticPlugins()
Register all statically linked plugins.
ea::unordered_map< RigidBody2D *, DelayedWorldTransform2D > delayedWorldTransforms_
Delayed (parented) world transform assignments.
Definition: PhysicsWorld2D.h:273
unsigned EvaluateInstanceSize() const override
Evaluate size required to place new node instance.
Definition: Box.cpp:59
Navigation build data.
Definition: NavBuildData.h:55
Vector3 ToHSV() const
Return HSV color-space representation as a Vector3; the RGB values are clipped before conversion but ...
Definition: Color.cpp:66
ea::vector< UIBatch > uiBatches_
Text UI batches.
Definition: Text3D.h:256
RigidBody2D * GetRigidBody(const Vector2 &point, unsigned collisionMask=M_MAX_UNSIGNED)
Return rigid body at point.
Definition: PhysicsWorld2D.cpp:615
bool IsEnabled() const
Definition: Microphone.h:72
void AdjustToSupported(Context *context)
Adjust to closest settings suported by the platform.
Definition: RenderPipelineDefs.cpp:72
TraversalMode GetTraversalMode() const
Definition: UIElement.h:754
Definition: StaticPipelineStateCache.h:34
static const VariantMap emptyVariantMap
Empty variant map.
Definition: Variant.h:1657
unsigned GetLevels() const
Definition: Texture.h:108
ValueSpan GetClosestRaw(NetworkFrame frame) const
Return closest valid raw value, if possible. Prior values take precedence.
Definition: NetworkValue.h:706
const Vector2 & GetCenter() const
Definition: CollisionCircle2D.h:59
void OnSetEnabled() override
Definition: RmlUIComponent.cpp:205
float mass_
Mass.
Definition: RigidBody.h:329
const Matrix3x4 & GetInverseWorldTransform() const
Definition: Zone.cpp:207
MountPoint * MountAliasRoot()
Mount alias root as alias:// scheme. Alias root will be mounted automatically if alias is created.
Definition: VirtualFileSystem.cpp:31
unsigned GetIndex() const
Return pass index. This is used for optimal render-time pass queries that avoid map lookups.
Definition: Technique.h:128
bool GetReverseCulling() const
Return whether to reverse culling; affected by vertical flipping and reflection.
Definition: Camera.h:271
bool operator==(const UIBatchStateKey &rhs) const
Definition: BatchStateCache.h:162
void UpdateBatches(const FrameInfo &frame) override
Definition: RenderMeshInstance.cpp:46
void SetMaxTorque(float maxTorque)
Definition: ConstraintMotor2D.cpp:96
void DrawDebugGeometry(DebugRenderer *debug, bool depthTest) override
Visualize the component as debug geometry.
Definition: IKHeadSolver.cpp:47
unsigned GetAuxViewFrameNumber() const
Return last auxiliary view rendered frame number.
Definition: Material.h:303
float Ease(float time) const override
Apply easing function to the time argument.
Definition: Ease.h:119
ea::string GetResourceFileName(const ea::string &name) const
Return full absolute file name of resource if possible, or empty if not found.
Definition: ResourceCache.cpp:654
float GetDuration() const override
Get action duration.
Definition: ActionInstant.cpp:49
void SerializeInBlock(Archive &archive) override
Serialize content from/to archive. May throw ArchiveException.
Definition: ActionInstant.cpp:42
Scene * GetScene() const
Definition: SceneRendererToTexture.h:85
BlendMode blendMode_
Blend mode.
Definition: StaticSprite2D.h:175
ParticleGraphPin & GetPin(unsigned index) override
Get pin by index.
Definition: TemplateNode.h:117
Print(Context *context)
Construct.
Definition: Print.cpp:62
void MountExistingPackages(const StringVector &prefixPaths, const StringVector &relativePaths)
Mount all existing packages for each combination of prefix path and relative path.
Definition: VirtualFileSystem.cpp:143
Definition: RenderPipelineDefs.h:427
Color GetColor(unsigned i=0) const
Return color from given channel.
Definition: ModelView.h:88
ParticleGraphSpan span_
Location at emitter attribute buffer.
Definition: ParticleGraphMemory.h:131
Mutex mountMutex_
Mutex for thread-safe access to the mount points.
Definition: VirtualFileSystem.h:96
float positionSigma_
Position weight. The lesser value is, the more color details are preserved on position edges.
Definition: LightBakingSettings.h:141
float particleLifespanVariance_
Particle lifespan variance.
Definition: ParticleEffect2D.h:271
Character map.
Definition: SpriterData2D.h:121
int GetNumShadowSplits() const
Definition: Light.cpp:470
Vector2 otherBodyGroundAnchor_
Other body ground anchor.
Definition: ConstraintPulley2D.h:90
void GetVector2MinMax(const XMLElement &element, Vector2 &minValue, Vector2 &maxValue)
Read a Vector2 range from an XML element.
Definition: ParticleEffect.cpp:836
Vector2 position_
Position.
Definition: TileMapDefs2D.h:235
void MixMonoToMonoIP(Sound *sound, int dest[], unsigned samples, int mixRate, float effectiveFrequency, int channel=0, int channelCount=1)
Mix mono sample to mono buffer interpolated.
Definition: SoundSource.cpp:816
void Clip(bool clipAlpha=false)
Clip to [0, 1.0] range.
Definition: Color.cpp:221
bool Read()
Load graph.
Definition: ParticleGraph.cpp:216
ea::vector< TetrahedralMeshSurfaceTriangle > faces_
Faces.
Definition: TetrahedralMesh.h:218
bool LoadXML(const ea::string_view xml)
Load graph from xml. Return true if successful.
Definition: Graph.cpp:141
void UpdateTransformOnServer() override
Called when world transform or parent of the object is updated in Server mode.
Definition: BehaviorNetworkObject.cpp:232
VariantType EvaluateOutputPinType(ParticleGraphPin &pin) override
Evaluate runtime output pin type.
Definition: Curve.cpp:97
bool EndLoad() override
Finish resource loading. Always called from the main thread. Return true if successful.
Definition: AnimationSet2D.cpp:143
bool override_
Override mode flag.
Definition: Zone.h:203
const IntVector2 & GetIntVector2() const
Return an IntVector2 or empty on type mismatch.
Definition: Variant.h:1492
IntVector2 doubleClickFirstPos_
Screen position of first mouse click for double click distance checking.
Definition: UI.h:469
void OnNodeSet(Node *previousNode, Node *currentNode) override
Handle node being assigned.
Definition: AnimationController.cpp:995
Definition: Resource.h:85
DropDownList * GetFilterList() const
Definition: FileSelector.h:112
unsigned EvaluateInstanceSize() const override
Evaluate size required to place new node instance.
Definition: LimitVelocity.cpp:56
WrapMode GetShaderParameterAnimationWrapMode(const ea::string &name) const
Return shader parameter animation wrap mode.
Definition: Material.cpp:953
unsigned color_
Color.
Definition: CustomGeometry.h:39
EventHandler * eventHandler_
Active event handler. Not stored in a stack for performance reasons; is needed only in esoteric cases...
Definition: Context.h:192
void ConnectionPointFromTransform()
Update connection point and rotation.
Definition: RaycastVehicleWheel.cpp:147
unsigned GetShaderParameterHash() const
Return shader parameter hash value. Used as an optimization to avoid setting shader parameters unnece...
Definition: Material.h:317
void SetLooped(bool looped)
Definition: AnimationState.cpp:180
ShadowMapRegion AllocateShadowMap(const IntVector2 &size)
Allocate shadow map of given size. It is better to allocate from bigger to smaller sizes.
Definition: ShadowMapAllocator.cpp:111
Constraint(Context *context)
Construct.
Definition: Constraint.cpp:53
bool bufferDirty_
Vertex buffer needs rewrite / resizing flag.
Definition: DecalSet.h:258
const Color & GetColor(Corner corner) const
Definition: UIElement.h:552
void AddTrauma(float value)
Increase trauma value.
Definition: ShakeComponent.cpp:59
float delay_
Delay in seconds for notifying changes.
Definition: FileWatcher.h:108
Ray Transformed(const Matrix3x4 &transform) const
Return transformed by a 3x4 matrix. This may result in a non-normalized direction.
Definition: Ray.cpp:515
bool IsArray() const
Definition: JSONValue.h:211
unsigned GetViewMask() const
Definition: Terrain.h:214
Class for software model animation (morphing and skinning).
Definition: SoftwareModelAnimator.h:49
bool IsSorted() const
Definition: ParticleEffect.h:298
void SetLowFrequency(bool state)
Definition: SoundSource.cpp:300
Vector3 linearVelocity_
Optional: linear velocity of the pose.
Definition: VirtualReality.h:153
BodyType2D GetBodyType() const
Definition: RigidBody2D.h:141
void Suspend(Archive &output) override
Called on SuspendApplication().
Definition: SceneViewerApplication.cpp:98
unsigned numIndices_
Indices in the current decals.
Definition: DecalSet.h:248
Definition: ShadowSplitProcessor.h:46
unsigned GetNumTextureFrames() const
Definition: ParticleEffect.h:411
WrappedScalarRange< T > UpdateClamped(T delta, bool returnOutOfBounds=false)
Add delta to the scalar, clamping value at the boundaries. Return the range of the change....
Definition: WrappedScalar.h:181
RmlContext(const ea::string &name)
Construct.
Definition: RmlUI.h:208
Skeleton skeleton_
Skeleton.
Definition: AnimatedModel.h:208
std::atomic_bool updateQueued_
Update queued flag.
Definition: RenderSurface.h:159
SharedPtr< Texture2D > texture_
Texture that UIElement will be rendered into.
Definition: UIComponent.h:71
void SetRenderPassEnabled(const ea::string &passName, bool enabled)
Update render pass enabled state.
Definition: RenderPipeline.cpp:229
Quaternion(float w, float x, float y, float z) noexcept
Construct from values.
Definition: Quaternion.h:68
SharedPtr< Technique > original_
Original technique, in case the material adds shader compilation defines. The modified clones are req...
Definition: Material.h:98
Texture * GetRampTexture() const
Definition: Light.h:386
void SetOccluder(bool enable)
Definition: Drawable.cpp:228
Matrix3x4 GetEffectiveWorldTransform() const
Definition: Camera.cpp:621
bool WriteShort(short value)
Write a 16-bit integer.
Definition: Serializer.cpp:53
ea::string path_
A path of current loaded module.
Definition: DynamicModule.h:72
void SetIsWorldspace(bool value)
Set Is Worldspace.
Definition: RenderMesh.cpp:77
void HandleBeginFrame(StringHash eventType, VariantMap &eventData)
Handle begin frame event. The finalization of background loaded resources are processed here.
Definition: ResourceCache.cpp:863
unsigned EvaluateInstanceSize() const override
Evaluate size required to place new node instance.
Definition: RenderMesh.cpp:56
Vector3 normal_
Normal.
Definition: CustomGeometry.h:37
void ReplaceAnimations(ea::span< const AnimationParameters > newAnimations, float elapsedTime, float fadeTime)
Smoothly replace existing animations with animations from external source.
Definition: AnimationController.cpp:556
bool IsInitialized() const
Definition: Engine.h:132
void ThreadFunction() override
Directory watching loop.
Definition: FileWatcher.cpp:241
bool StartWatching(const ea::string &pathName, bool watchSubDirs)
Start watching a directory. Return true if successful.
Definition: FileWatcher.cpp:79
ea::unique_ptr< VariantMap > instanceDefaultValues_
Attribute default value at each instance level.
Definition: Serializable.h:136
void SetDuration(float duration)
Set effect duration in seconds.
Definition: ParticleGraphLayer.cpp:241
Vector3 previousOffset_
Previous offset to camera for determining whether sorting is necessary.
Definition: RibbonTrail.h:274
unsigned numChannels_
Number of texture channels.
Definition: LightmapStitcher.h:43
void ToggleAll()
Toggle all elements.
Definition: DebugHud.cpp:104
Definition: EmitterScale.h:37
void SetClipChildren(bool enable)
Definition: UIElement.cpp:897
UIBatchStateCreateContext batchStateCreateContext_
Definition: RmlRenderer.h:86
ea::vector< uint8_t > temp_
Definition: ParticleGraphLayerInstance.h:146
virtual Material * GetMaterial() const
Definition: StaticModel.h:94
unsigned GetNumIncomplete() const
Return number of incomplete tasks.
Definition: WorkQueue.cpp:552
bool IsInitialized() const
Definition: Audio.h:105
void SetRadius(float newRadius)
Definition: Obstacle.cpp:78
float temperature_
Light temperature.
Definition: Light.h:475
Definition: ImGuiDiligentRendererEx.h:18
ea::vector< VertexElement > elements_
Vertex elements.
Definition: VertexBuffer.h:141
void Setup(unsigned maxExtrapolation, float smoothingConstant, float snapThreshold)
Update sampler settings.
Definition: NetworkValue.h:545
float maxHeight_
Maximum height.
Definition: CollisionShape.h:142
ea::vector< ea::pair< Animation *, const AnimationTriggerPoint * > > pendingTriggers_
Triggers to be fired. Processed all at once due to possible side effects.
Definition: AnimationController.h:273
void SetTiled(bool enable)
Definition: BorderImage.cpp:136
Color GetColor(const ea::string &name) const
Return a color attribute, or default if missing.
Definition: XMLElement.cpp:841
void SetHeight(float height)
Scale UI to the specified height in pixels.
Definition: UI.cpp:691
StringHash GetNameHash() const
Return name hash.
Definition: Resource.h:127
static void BulkTranspose(float dest[], const float src[], unsigned count)
Bulk transpose matrices.
Definition: Matrix4.h:704
bool GetBool(bool defaultValue=false) const
Return boolean value.
Definition: JSONValue.h:217
void SetMaterial(Material *material)
Definition: ParticleEffect.cpp:440
Timer repeatTimer_
Paging minimum repeat timer.
Definition: Slider.h:128
ea::optional< unsigned > Matches(const ApplicationFlavorPattern &pattern) const
Returns distance (smaller is better) if flavor matches the pattern. Returns none if doesn't match.
Definition: ApplicationFlavor.cpp:125
bool GetFixedHeightResizing() const
Definition: Window.h:125
float GetMass() const
Definition: RigidBody2D.cpp:478
void PostStep(float timeStep)
Trigger update after each physics simulation step.
Definition: PhysicsWorld.cpp:917
ea::vector< unsigned char > GetNavigationDataAttr() const override
Return navigation data attribute.
Definition: DynamicNavigationMesh.cpp:475
bool IsEmpty()
Return true if there are no drawable objects in this octant and child octants.
Definition: Octree.h:101
void MarkRevisionUpdated()
Mark object as changed.
Definition: ObjectRevisionTracker.h:42
const Vector2 & GetOtherBodyAnchor() const
Definition: ConstraintRope2D.h:60
float maxRadiusVariance_
Max radius variance.
Definition: ParticleEffect2D.h:311
NetworkObjectRelevance
Definition: NetworkId.h:38
Post-processing pass that renders outline from color buffer.
Definition: OutlineRenderPass.h:15
void DrawSegment(const b2Vec2 &p1, const b2Vec2 &p2, const b2Color &color) override
Draw a line segment.
Definition: PhysicsWorld2D.cpp:257
Vector3 HalfSize() const
Definition: BoundingBox.h:309
void ApplyStyleRecursive(UIElement *element)
Recursively apply style to a child element hierarchy when adding to an element.
Definition: UIElement.cpp:2112
Definition: PluginManager.h:86
const ea::string name_
Identifier of this action set.
Definition: VirtualReality.h:179
void SetEffect(ParticleEffect *effect)
Definition: ParticleEmitter.cpp:262
UpdateGeometryType
Geometry update type.
Definition: Drawable.h:74
ea::string targetPin_
Target pin name.
Definition: GraphPin.h:166
bool IsController() const
Definition: Input.h:94
static void RegisterObject(Context *context)
Definition: PhysicsWorld2D.cpp:72
TextureCube * GetBlackCubeMap() const
Return completely black 1x1x1 cubemap.
Definition: Renderer.h:294
Matrix3 GetMatrix3(const ea::string &name) const
Return a Matrix3 attribute, or zero matrix if missing.
Definition: XMLElement.cpp:1073
void ApplyAttributes() override
Apply attribute changes that can not be applied immediately. Called after scene load or a network upd...
Definition: OffMeshConnection.cpp:64
FaceCameraMode faceCameraMode_
Text rotation mode in relation to the camera.
Definition: Text3D.h:262
void SetVerticalAlignment(VerticalAlignment align)
Definition: UIElement.cpp:737
void OnObjectAnimationAdded(ObjectAnimation *objectAnimation)
Handle object animation added.
Definition: Animatable.cpp:477
bool IsConnected() const
Get true if pin is connected.
Definition: GraphPin.h:156
void SetBoundingBox(const BoundingBox &box)
Definition: Model.cpp:493
AbstractFilePtr OpenFile(const FileIdentifier &fileName, FileMode mode) override
Open package file. Returns null if file not found.
Definition: PackageFile.cpp:209
bool Save(Serializer &dest) const override
Save resource. Return true if successful.
Definition: ParticleEffect.cpp:320
virtual void DrawDebugGeometry()
Draw debug geometry.
Definition: KinematicCharacterController.cpp:622
void SetTriangleMesh(Model *model, unsigned lodLevel=0, const Vector3 &scale=Vector3::ONE, const Vector3 &position=Vector3::ZERO, const Quaternion &rotation=Quaternion::IDENTITY)
Set as a triangle mesh from Model. If you update a model's geometry and want to reapply the shape,...
Definition: CollisionShape.cpp:670
ea::string formatPattern_
Log format pattern.
Definition: Log.h:191
const IncrementalLightBakerStatus & GetStatus() const
Return current status. Thread-safe.
Definition: IncrementalLightBaker.cpp:547
ea::vector< UIElement * > GetItems() const
Return all items.
Definition: DropDownList.cpp:206
Container for vertex buffer animation data.
Definition: SoftwareModelAnimator.h:34
ea::vector< unsigned > morphRangeStarts_
Vertex buffer morph range start.
Definition: Model.h:251
void DefineSprite(const ea::string &name, const IntRect &rectangle, const Vector2 &hotSpot=Vector2(0.5f, 0.5f), const IntVector2 &offset=IntVector2::ZERO)
Define sprite.
Definition: SpriteSheet2D.cpp:151
static const IntVector3 ONE
(1,1,1) vector.
Definition: Vector3.h:197
void GetKeyFrames(float time, float duration, bool isLooped, unsigned &frameIndex, unsigned &nextFrameIndex, float &blendFactor) const
Return keyframes for interpolation.
Definition: KeyFrameSet.h:70
float Determinant() const
Return determinant.
Definition: Matrix3x4.cpp:59
std::atomic_uint32_t auxViewFrameNumber_
Last auxiliary view rendered frame number.
Definition: Material.h:370
void CompileLightProbes()
Compile all enabled light probe groups in the scene.
Definition: GlobalIllumination.cpp:86
void UpdateEventSubscription()
Subscribe/unsubscribe to update events based on current enabled state and update event mask.
Definition: LogicComponent.cpp:116
void Transform(const Matrix3 &transform)
Transform with a 3x3 matrix.
Definition: Plane.cpp:37
void SetAttributeAnimationWrapMode(const ea::string &name, WrapMode wrapMode)
Set attribute animation wrap mode.
Definition: Animatable.cpp:388
void SetMaterial(Material *material)
Set material.
Definition: TerrainPatch.cpp:249
short texWidth_
Width in texture.
Definition: FontFace.h:47
void HandleItemFocusChanged(StringHash eventType, VariantMap &eventData)
Handle global focus change to check whether an invisible item was focused.
Definition: ListView.cpp:1139
void MarkNeighborsDirty()
Mark neighbors dirty.
Definition: Terrain.h:310
bool initialized_
Initialized flag.
Definition: Renderer.h:377
PluginApplication * GetApplication() const
Return plugin application, if available.
Definition: Plugin.h:47
static const IntVector3 UP
(0,1,0) vector.
Definition: Vector3.h:189
int width_
Width.
Definition: TileMapDefs2D.h:55
bool compressed_
Compressed flag.
Definition: PackageFile.h:131
void OnSetEnabled() override
Handle enabled/disabled state change.
Definition: Drawable.cpp:113
void HandleExitRequested(StringHash eventType, VariantMap &eventData)
Set flag indicating that exit request has to be handled.
Definition: Engine.cpp:1331
Variant(unsigned value)
Construct from unsigned integer.
Definition: Variant.h:506
SharedPtr< ActionState > StartAction(BaseAction *action, Object *target) const
Call StartAction on an action.
Definition: ActionState.cpp:46
unsigned GetRevision() const
Return revision of loaded plugins.
Definition: PluginManager.h:120
void RequestUpdateBatchesDelayed(const FrameInfo &frame)
Request UpdateBatchesDelayed call from main thread.
Definition: Drawable.cpp:417
static const IntVector3 DOWN
(0,-1,0) vector.
Definition: Vector3.h:191
void SetUseReflection(bool enable)
Definition: Camera.cpp:226
Matrix2 Inverse() const
Return inverse.
Definition: Matrix2.cpp:40
void SetFaceCameraMode(FaceCameraMode mode)
Definition: ParticleEffect.cpp:653
void AddColorTime(const Color &color, float time)
Add a color frame sorted in the correct position based on time.
Definition: ParticleEffect.cpp:591
ea::string postData_
POST data.
Definition: HttpRequest.h:102
void ProcessCustomRayQuery(const RayOctreeQuery &query, const BoundingBox &worldBoundingBox, ea::vector< RayQueryResult > &results)
Process raycast with custom transform.
Definition: Drawable.cpp:123
Vector2 ToVector2() const
Return Vector2 vector (z, w components are ignored).
Definition: Vector4.h:222
static const Color BLUE
Opaque blue color.
Definition: Color.h:285
void SetAnimationLodBias(float bias)
Definition: BillboardSet.cpp:364
void Update(UpdateContext &context) override
Update particles.
Definition: TemplateNode.h:78
IntRect(int left, int top, int right, int bottom) noexcept
Construct from coordinates.
Definition: Rect.h:310
virtual void OnDragCancel(const IntVector2 &position, const IntVector2 &screenPosition, MouseButtonFlags dragButtons, MouseButtonFlags cancelButtons, Cursor *cursor)
React to a mouse drag cancel event (ie, when an extra button is pressed).
Definition: UIElement.cpp:473
ea::unordered_map< ea::pair< WeakPtr< RigidBody >, WeakPtr< RigidBody > >, ManifoldPair > previousCollisions_
Collision pairs on the previous frame. Used to check if a collision is "new." Manifolds are not guara...
Definition: PhysicsWorld.h:367
const ea::vector< RaytracerGeometry > & GetGeometries() const
Return geometries.
Definition: RaytracerScene.h:164
void Stop() override
Called on StopApplication().
Definition: SceneViewerApplication.cpp:88
unsigned agressiveTimeToLive_
Number of seconds to keep cached LightProcessor if cache size is out of the budget.
Definition: RenderPipelineDefs.h:324
float fogHeightScale_
Fog height cale.
Definition: Zone.h:229
Definition: AnimationTrack.h:38
unsigned batchUpdatedFrameNumber_
Batch updated frame number.
Definition: Renderer2D.h:56
bool RefreshMode()
Re-initialize sound output with same parameters.
Definition: Audio.cpp:212
static const ea::vector< JSONValue > emptyArray
Empty JSON array.
Definition: JSONValue.h:300
float sizeMul_
Particle size multiplicative parameter.
Definition: ParticleEffect.h:500
void SetCheckedOffset(const IntVector2 &offset)
Definition: CheckBox.cpp:104
bool boolValue_
Definition: JSONValue.h:326
void SetEventType(ea::string_view eventType)
Set event name.
Definition: CallFunc.h:123
static void RegisterObject(Context *context)
Definition: Technique.cpp:254
bool IsRelative() const
Definition: BillboardSet.h:133
bool GetUseHotSpot() const
Definition: StaticSprite2D.h:129
CachedDrawableZone cachedZone_
Current zone.
Definition: Drawable.h:463
const Variant & GetGlobalVar(StringHash key) const
Definition: Object.cpp:342
BoundingBox Padded(const Vector3 &padding) const
Return this bounding box expanded by given value, same for min and max.
Definition: BoundingBox.h:291
int GetMultiSample() const
Returns the currently chosen MSAA level.
Definition: VirtualReality.h:223
void AddItem(UIElement *item)
Add item to the end of the list.
Definition: ListView.cpp:353
float neutral_
Neutral value.
Definition: AxisAdapter.h:78
void NormalizeLight()
Normalize collected light.
Definition: LightTracer.h:102
bool AcceptsScheme(const ea::string &scheme) const override
Definition: MountedAliasRoot.cpp:62
void RemoveEventSender(Object *sender)
Remove an event sender from all receivers. Called on its destruction.
Definition: Context.cpp:315
PatternMatchingNode(Context *context, const ea::vector< NodePattern > &patterns)
Construct.
Definition: Helpers.cpp:112
ea::string ToString() const
Return as string.
Definition: Vector3.cpp:59
Vector3 normal_
Normal of the plane containing the circle.
Definition: Sphere.h:46
Definition: RmlNavigationManager.h:76
~ParticleEmitter2D() override
Destruct.
ea::vector< SharedPtr< Geometry > > geometries_
Geometries.
Definition: Text3D.h:250
bool Load(Deserializer &source) override
Load from binary data. Removes all existing child nodes and components first. Return true if successf...
Definition: Scene.cpp:182
void ResetLights()
Reset lights.
Definition: LightAccumulator.h:122
~CollisionPolygon2D() override
Destruct.
Definition: OutlineRenderPass.h:38
bool CreatePipelineState(GraphicsPipelineStateDesc &desc, PipelineStateBuilder *builder, const BatchStateCreateKey &key, const BatchStateCreateContext &ctx) override
Callback for pipeline state initialization.
Definition: OutlineScenePass.cpp:103
ArchiveBlock(Archive &archive, unsigned sizeHint=0)
Construct valid.
Definition: Archive.h:71
Color color_
Color.
Definition: Light.h:473
EventHandler * GetEventHandler() const
Return active event handler. Null outside event handling.
Definition: Object.cpp:367
CrowdManager(Context *context)
Construct.
Definition: CrowdManager.cpp:79
bool resizable_
Resizable flag.
Definition: Window.h:164
IntRect() noexcept
Construct a zero rect.
Definition: Rect.h:292
Vector3 Column(unsigned j) const
Return matrix column.
Definition: Matrix3.h:284
int upscale_
Upscale factor for offsets.
Definition: LightBakingSettings.h:135
WeakPtr< Object > _originalTarget
Original target reference. To track target references in ActionManager.
Definition: ActionState.h:77
unsigned capacity_
Maximal number of particles.
Definition: ParticleGraphMemory.h:99
bool GetAutoResolve() const
Return multisampling autoresolve mode.
Definition: RenderSurface.cpp:109
ea::string_view GetName() const override
Return name of the archive if applicable.
Definition: ArchiveBase.h:43
static unsigned GetTimeSinceEpoch()
Get system time as seconds since 1.1.1970.
Definition: Timer.cpp:165
virtual void SetPitch(float pitch)
Set pitch angle in degrees.
Definition: MoveAndOrbitComponent.cpp:50
IntVector2 eyeTextureSize_
Effective texture size.
Definition: VirtualReality.h:291
unsigned zoneMask_
Zone mask.
Definition: Terrain.h:387
ModuleType moduleType_
A type of current loaded module.
Definition: DynamicModule.h:76
void getWorldTransform(btTransform &worldTrans) const override
Definition: RigidBody.cpp:142
ea::unordered_map< StringHash, Variant > VariantMap
Map of variants.
Definition: Variant.h:102
void SetClipboardText(const Rml::String &text) override
Definition: RmlSystem.cpp:94
virtual PluginApplication * CreatePluginApplication(void *assembly)=0
Looks for class inheriting from PluginApplication and creates an instance of it.
Low-resolution operating system timer.
Definition: Timer.h:33
Definition: BreakInstance.h:64
int GetAsyncLoadingMs() const
Definition: Scene.h:250
bool GetTileFlipX() const
Definition: TileMapDefs2D.h:209
Texture2D * GetTexture() const
Definition: UIComponent.cpp:214
T & Get(const IntVector2 &index)
Return element by index.
Definition: Array2D.h:189
BlendMode blendMode_
Blend mode.
Definition: ParticleEmitter2D.h:158
unsigned long long primaryKey_
Primary sorting value.
Definition: PipelineBatchSortKey.h:93
const Matrix3x4 & GetView() const
Definition: Camera.cpp:632
ea::vector< Drawable2D * > drawables_
Drawables.
Definition: Renderer2D.h:120
T ToDegrees(const T radians)
Convert radians to degrees.
Definition: MathDefs.h:113
Lightweight mount point that provides read-only access to the externally managed memory.
Definition: MountedExternalMemory.h:35
@ LINEAR_CURVE
Linear interpolation.
Definition: Spline.h:43
float GetEffectDepthBias() const
Definition: Text3D.cpp:483
float lifetime_
Lifetime.
Definition: RibbonTrail.h:266
Vector2 otherBodyAnchor_
Other body anchor.
Definition: ConstraintPulley2D.h:94
Vector3 previousPosition_
Previous position of tail.
Definition: RibbonTrail.h:248
ea::vector< SharedPtr< TileMapObject2D > > GetTileCollisionShapes(unsigned gid) const
Return tile collision shapes for a given gid.
Definition: TmxFile2D.cpp:564
bool EndLoad() override
Finish resource loading. Always called from the main thread. Return true if successful.
Definition: SceneResource.cpp:166
Vector4 Row(unsigned i) const
Return matrix row.
Definition: Matrix4.h:645
void SetNodeIDsAttr(const VariantVector &value)
Set node IDs attribute.
Definition: StaticModelGroup.cpp:320
void SetKinematic(bool enable)
Definition: RigidBody.cpp:431
float GetDelay() const
Return the delay in seconds for notifying file changes.
Definition: FileWatcher.h:88
float GetLodDistance() const
Return LOD scaled distance from camera.
Definition: Drawable.h:381
DrawableFlags GetDrawableFlags() const
Return drawable flags.
Definition: Drawable.h:294
void SetFadeOutDuration(float durationInSeconds)
Set fade out animation duration;.
Definition: StateManager.cpp:572
Definition: MoveAndOrbitController.h:33
SkinningMode skinningMode_
Skinning mode.
Definition: Renderer.h:383
Rml::ElementPtr InstanceElement(Rml::Element *parent, const Rml::String &tag, const Rml::XMLAttributes &attributes) override
Definition: RmlNavigable.cpp:281
ParticleGraphEffect * GetEffect() const
Return particle effect.
Definition: ParticleGraphEmitter.cpp:135
static void RegisterObject(Context *context)
Definition: DropDownList.cpp:69
const ea::vector< SoundSource * > & GetSoundSources() const
Return all sound sources.
Definition: Audio.h:119
float GetAgentHeight() const
Definition: NavigationMesh.h:234
int GetMaxHeight() const
Definition: UIElement.h:496
Definition: WorldToLocal.h:37
RigidBody2D(Context *context)
Construct.
Definition: RigidBody2D.cpp:49
2D Physics raycast hit.
Definition: PhysicsWorld2D.h:38
void OnSetEnabled() override
Handle enabled/disabled state change.
Definition: CrowdAgent.cpp:152
unsigned ToHash() const
Return hash value for HashSet & HashMap.
Definition: Quaternion.h:485
virtual void UpdateDrawableAttributes()
Handle drawable attribute change.
Definition: ParticleGraphNodeInstance.cpp:51
const TextureFrame * GetTextureFrame(unsigned index) const
Return a texture animation frame, or null if outside range.
Definition: ParticleEffect.cpp:785
const ea::string & GetProperty(const ea::string &name) const
Return property value (use for script).
Definition: TmxFile2D.cpp:62
const ea::vector< SharedPtr< VertexBuffer > > & GetVertexBuffers() const
Return all vertex buffers.
Definition: Geometry.h:79
SharedPtr< ActionState > StartAction(Object *target) override
Create new action state from the action.
Definition: CallFunc.cpp:68
static void RegisterObject(Context *context)
Definition: Cursor.cpp:100
Value track applied to the specific attribute or sub-attribute.
Definition: AnimationState.h:130
ActionBuilder & ElasticOut(float period=0.3f)
Combine with ElasticOut action.
Definition: ActionBuilder.cpp:403
LightType lightType_
Light type.
Definition: Light.h:467
bool HasProperty(const ea::string &name) const
Return has property.
Definition: TileMapDefs2D.cpp:149
unsigned GetNumRows() const
Definition: Text.h:204
Definition: OctreeQuery.h:92
ea::string ToString() const
Return as string.
Definition: Matrix2.cpp:53
HandlerFunctionPtr function_
Class-specific pointer to handler function.
Definition: CallFunc.h:87
const ea::string & GetEventType() const
Get event name.
Definition: CallFunc.h:121
static void RegisterPluginApplication(const ea::string &name, PluginApplicationFactory factory)
Register plugin application class to be visible in all future instances of PluginManager.
Definition: PluginManager.cpp:232
bool GetData(CubeMapFace face, unsigned level, void *dest)
Get data from a face's mip level. The destination buffer must be big enough. Return true if successfu...
Definition: TextureCube.cpp:166
ValueAnimation * GetAnimation() const
Return animation.
Definition: ValueAnimationInfo.h:66
Pipeline state cache for RenderPipeline batches.
Definition: BatchStateCache.h:121
FileIdentifier GetIdentifierFromAbsoluteName(const ea::string &absoluteFileName) const
Works even if the file does not exist.
Definition: VirtualFileSystem.cpp:308
SharedPtr< FiniteTimeAction > Reverse() const override
Create reversed action.
Definition: Ease.cpp:306
Definition: NodePrefab.h:40
double GetDouble() const
Return double or zero on type mismatch. Ints and floats are converted.
Definition: Variant.h:1400
static const Color YELLOW
Opaque yellow color.
Definition: Color.h:291
Vector2 layoutFlexScale_
Layout flex scale.
Definition: UIElement.h:835
bool drawObstacles_
Debug draw Obstacles.
Definition: DynamicNavigationMesh.h:159
unsigned maxIndices_
Maximum indices.
Definition: DecalSet.h:252
void SetPadding(const Rect &padding)
Set padding in world space units.
Definition: CameraOperator.cpp:139
float lastScaledTime_
Last scaled time.
Definition: ValueAnimationInfo.h:96
RigidBody(Context *context)
Construct.
Definition: RigidBody.cpp:61
AllocatorNode * free_
First free node.
Definition: Allocator.h:47
Material * GetMaterial() const
Definition: BorderImage.cpp:245
const ea::vector< SharedPtr< VertexBuffer > > & GetMorphVertexBuffers() const
Return all morph vertex buffers.
Definition: AnimatedModel.cpp:589
unsigned GetZoneMask() const
Return zone mask.
Definition: ParticleGraphEmitter.h:96
void SetTextureAttr(const ResourceRef &value)
Set texture attribute.
Definition: BorderImage.cpp:218
bool FromString(const ea::string &source)
Deserialize from a string. Return true if successful.
Definition: XMLFile.cpp:197
static void RegisterObject(Context *context)
Definition: Light.cpp:114
int GetRowWidth(unsigned index) const
Definition: Text3D.cpp:513
~Geometry() override
Destruct.
ParticleGraphEmitter * GetEmitter() const
Get emitter.
Definition: ParticleGraphLayerInstance.h:99
void OnWindowResized()
Window was resized through user interaction. Called by Input subsystem.
Definition: Graphics.cpp:628
bool LoadXML(const XMLElement &source) override
Load from XML data. Return true if successful.
Definition: UnknownComponent.cpp:54
void SetMinParticleSize(const Vector2 &size)
Definition: ParticleEffect.cpp:530
const ea::string & GetSource() const
Return source.
Definition: TmxFile2D.h:142
void ResetScene()
Reset scene.
Definition: View3D.cpp:154
const Octant * GetRootOctant() const
Return root octant.
Definition: Octree.h:261
float GetAttenuation() const
Definition: SoundSource.h:119
Group of selected drawables.
Definition: OutlineGroup.h:36
const Color & GetStartColorVariance() const
Return start color variance.
Definition: ParticleEffect2D.h:180
Scene * GetScene() const
Definition: ClientReplica.h:59
static void RegisterObject(ParticleGraphSystem *context)
Register particle node factory.
Definition: Normalized.cpp:38
Definition: Multiply.h:35
ShaderProgramDesc shaderProgramDesc_
Definition: OutlineScenePass.h:71
void SetLinearRestThreshold(float threshold)
Definition: RigidBody.cpp:305
void SetCastShadows(bool enable)
Definition: Drawable.cpp:223
IntVector2 Max() const
Return right-bottom corner position.
Definition: Rect.h:468
void SetConstantForce(const Vector3 &force)
Definition: ParticleEffect.cpp:500
CubeMapLayout
Cubemap single image layout modes.
Definition: GraphicsDefs.h:164
Skeleton & GetSkeleton()
Definition: Model.h:163
ActionBuilder & SineIn()
Combine with SineIn action.
Definition: ActionBuilder.cpp:348
void setSpatialInfo(const Spriter::SpatialInfo &spatialInfo)
Set root spatial info.
Definition: SpriterInstance2D.cpp:115
unsigned GetViewMask() const
Definition: Camera.h:174
BakedSceneChunk CreateBakedSceneChunk(Context *context, BakedSceneCollector &collector, const IntVector3 &chunk, const LightBakingSettings &settings)
Create baked scene chunk.
Definition: BakedSceneChunk.cpp:210
bool smoothing_
Smoothing enable flag.
Definition: Terrain.h:371
void SetNavigated(bool navigated, NavigableEventMode eventMode)
Definition: RmlNavigable.cpp:232
SoftwareModelAnimator(Context *context)
Construct.
Definition: SoftwareModelAnimator.cpp:53
Vector3 shiftRange_
Shift range.
Definition: ShakeComponent.h:102
unsigned queryFilterType_
Agent's query filter type, it is an index to the query filter buffer configured in Detour crowd manag...
Definition: CrowdAgent.h:275
ea::unique_ptr< Impl > impl_
Implementation details.
Definition: IncrementalLightBaker.h:80
float lastTimeStep_
Last scene timestep.
Definition: ParticleEmitter.h:153
b2RopeJointDef jointDef_
Box2D joint def.
Definition: ConstraintRope2D.h:71
void Notify(StringHash eventType)
Notify subscribers about transition state updates.
Definition: StateManager.cpp:501
void HandleUpdate(StringHash eventType, VariantMap &eventData)
Handle the logic update event.
Definition: StateManager.cpp:306
void ApplyForce(const Vector2 &force, const Vector2 &point, bool wake)
Apply force.
Definition: RigidBody2D.cpp:298
void SetColumns(int value)
Set Columns.
Definition: RenderBillboard.cpp:86
ea::unordered_set< ea::string > loadedResources_
A set of loaded files. Used to trigger UI reloads when resource cache reloads a modified file.
Definition: RmlFile.h:68
int dragElementsCount_
Number of elements in dragElements_.
Definition: UI.h:477
unsigned attributeBufferSize_
Required attribute buffer size.
Definition: ParticleGraphLayer.h:49
Matrix3 ToMatrix3() const
Return the combined rotation and scaling matrix.
Definition: Matrix4.h:520
Definition: IKLegSolver.h:134
~Zone() override
Destruct.
void SetHoverColor(const Color &color)
Definition: UISelectable.cpp:62
Time and frame counter subsystem.
Definition: Timer.h:80
void SetTextSelectable(bool enable)
Definition: LineEdit.cpp:525
InterpolationMode GetInterpolationMode() const
Definition: SplinePath.h:82
Crowd manager scene component. Should be added only to the root scene node.
Definition: CrowdManager.h:66
Definition: TextureCubeInspectorWidget.h:39
Utility class that watches all files in ResourceCache.
Definition: FileSystemReflection.h:90
void ApplyNodeWorldScale() override
Apply node world scale.
Definition: CollisionEdge2D.cpp:81
Node * GetControlledNode() const
Definition: SplinePath.h:97
const Vector2 & GetVertex(unsigned index) const
Return vertex.
Definition: CollisionChain2D.h:65
ParticleGraphNodeInstance * CreateInstanceAt(void *ptr, ParticleGraphLayerInstance *layer) override
Place new instance at the provided address.
Definition: Circle.cpp:65
Default implementation of render pipeline instance.
Definition: DefaultRenderPipeline.h:42
void SetSerializeParticles(bool enable)
Definition: ParticleEmitter.cpp:304
DebugRenderer(Context *context)
Construct.
Definition: DebugRenderer.cpp:55
void OnDragMove(const IntVector2 &position, const IntVector2 &screenPosition, const IntVector2 &deltaPos, MouseButtonFlags buttons, QualifierFlags qualifiers, Cursor *cursor) override
React to mouse drag motion.
Definition: Slider.cpp:123
void OnCreateGPU() override
Definition: Texture.cpp:266
float rotationSpeed_
Rotation speed.
Definition: ParticleEmitter.h:46
SharedPtr< VRRig > defaultRig_
Default rig to use.
Definition: VirtualReality.h:306
void Normalize()
All equivalent views should be literally equal after normalization.
Definition: ModelView.cpp:1373
float GetFinishParticleSize() const
Return finish particle size.
Definition: ParticleEffect2D.h:198
float normalPower_
Normal weight. The higher value is, the more color details are preserved on normal edges.
Definition: LightBakingSettings.h:139
BlendMode blendMode_
Blend mode.
Definition: Technique.h:212
bool WriteBoundingBox(const BoundingBox &value)
Write a bounding box.
Definition: Serializer.cpp:181
void GetBatches(ea::vector< UIBatch > &batches, ea::vector< float > &vertexData, const IntRect ¤tScissor) override
Return UI rendering batches.
Definition: CheckBox.cpp:57
static void SetRuntimeApi(ScriptRuntimeApi *impl)
Should be called from managed code and provide implementation of ScriptRuntimeApi.
Definition: Script.h:89
float doubleClickInterval_
Seconds between clicks to register a double click.
Definition: UI.h:425
void BeginContact(b2Contact *contact) override
Called when two fixtures begin to touch.
Definition: PhysicsWorld2D.cpp:106
Abstract graph data flow node pin. Has pin type.
Definition: GraphPin.h:62
Render pass that applied shader to the entire output area.
Definition: FullScreenShaderPass.h:15
WrapMode GetAttributeAnimationWrapMode(const ea::string &name) const
Return attribute animation wrap mode.
Definition: Animatable.cpp:430
void Render() override
Called for updated pipelines in appropriate order.
Definition: DefaultRenderPipeline.cpp:325
void UpdatePatchLod(TerrainPatch *patch)
Update patch based on LOD and neighbor LOD.
Definition: Terrain.cpp:745
void UpdateParameters(const RenderPipelineSettings &settings, const StringVariantMap ¶ms) override
Definition: OutlineRenderPass.cpp:46
ea::string thighBoneName_
Definition: IKLegSolver.h:102
constexpr FlagSet & operator^=(const Enum value)
Bitwise XOR against Enum value.
Definition: FlagSet.h:104
ParticleGraphPin & GetPin(unsigned index) override
Get pin by index.
Definition: Random.h:62
bool fontDataLost_
Font texture data lost flag.
Definition: Text3D.h:278
static void RegisterObject(ParticleGraphSystem *context)
Register particle node factory.
Definition: Expire.cpp:38
Property list (plist).
Definition: PListFile.h:176
void SetNumBillboards(unsigned num)
Definition: BillboardSet.cpp:282
bool operator!=(const WeakPtr< U1, U2 > &rhs) const noexcept
Test for inequality with another weak pointer.
Definition: Ptr.h:505
virtual void OnSetEditable()
React to editable status change.
Definition: UIElement.h:200
unsigned totalSize_
Package file total size.
Definition: PackageFile.h:125
float GetTraumaPower() const
Get trauma power value.
Definition: ShakeComponent.h:65
void Reset()
Hard reset of state manager. Current state will be set to nullptr and the queue is purged.
Definition: StateManager.cpp:371
virtual void Dispose(RefCounted *instance)=0
Invokes managed instance.Dispose() method.
GraphPinRef< GraphOutPin > GetSourcePin(unsigned connected_node, unsigned get_connected_pin_index)
Get source pin reference.
Definition: ParticleGraph.cpp:133
void SetFontHintLevel(FontHintLevel level)
Definition: UI.cpp:649
bool linear_
Whether the texture data is in linear color space (instead of gamma space).
Definition: Texture.h:231
bool SaveResources()
Save generated resources.
Definition: GLTFImporter.cpp:3967
unsigned GetFreeComponentID()
Get free component ID.
Definition: Scene.cpp:899
const XPathResultSet * GetXPathResultSet() const
Return XPath query result set.
Definition: XMLElement.h:310
void SetWidth(float width)
Definition: RibbonTrail.cpp:877
CheckBox(Context *context)
Construct.
Definition: CheckBox.cpp:35
ea::string SanitateResourceName(const ea::string &name) const
Remove unsupported constructs from the resource name to prevent ambiguity, and normalize absolute fil...
Definition: ResourceCache.cpp:665
void SendDoubleClickEvent(UIElement *beginElement, UIElement *endElement, const IntVector2 &firstPos, const IntVector2 &secondPos, MouseButton button, MouseButtonFlags buttons, QualifierFlags qualifiers)
Send a UI double click event.
Definition: UI.cpp:1644
void Restore(Diligent::ITextureView *view)
Internal. Restore GPU resource.
Definition: RenderSurface.h:47
3D model resource.
Definition: Model.h:109
ea::unordered_map< Object *, ea::unordered_map< StringHash, SharedPtr< EventReceiverGroup > > > specificEventReceivers_
Event receivers for specific senders' events.
Definition: Context.h:186
bool LoadJSON(const JSONValue &source)
Load from JSON data. Return true if successful.
Definition: ObjectAnimation.cpp:133
void ApplyAttributes() override
Apply attribute changes that can not be applied immediately. Called after scene load or a network upd...
Definition: RaycastVehicleWheel.cpp:117
Operation on attribute.
Definition: Print.h:37
static constexpr unsigned Calculate(const char *str)
Calculate hash value from a C string.
Definition: StringHash.h:135
ea::shared_array< unsigned char > rawIndexData_
Raw index data override.
Definition: Geometry.h:173
void QueryDynamicProbes(const BoundingBox &worldBoundingBox, ea::span< ReflectionProbeReference, 2 > probes) const
Query two most important reflection probes.
Definition: ReflectionProbe.cpp:483
unsigned components_
Number of color components.
Definition: Image.h:221
void SetBidirectional(bool enabled)
Definition: OffMeshConnection.cpp:92
bool InitializeNodes(IKNodeCache &nodeCache) override
Definition: IKStickTargets.cpp:54
SharedPtr< UIElement > separatorLayout_
Separator layout.
Definition: FileSelector.h:196
unsigned deviceID_
SDL audio device ID.
Definition: Audio.h:158
b2GearJointDef jointDef_
Box2D joint def.
Definition: ConstraintGear2D.h:71
int oversampling_
Oversampling level.
Definition: FontFaceFreeType.h:67
void FromHCM(float h, float c, float m)
Calculate and set RGB values. Convenience function used by FromHSV and FromHSL to avoid code duplicat...
Definition: Color.cpp:305
constexpr FlagSet operator&(const Enum value) const
Bitwise AND against Enum value.
Definition: FlagSet.h:118
IntVector2 currentSize_
Definition: RenderBuffer.h:108
2D distance constraint component.
Definition: ConstraintDistance2D.h:31
bool SetSize(unsigned indexCount, bool largeIndices, bool dynamic=false)
Set size and vertex elements and dynamic mode. Previous data will be lost.
Definition: IndexBuffer.cpp:48
unsigned Read(void *dest, unsigned size) override
Read bytes from the memory area. Return number of bytes actually read.
Definition: MemoryBuffer.cpp:84
float lodBias_
LOD bias.
Definition: Terrain.h:393
const Vector3 & GetSurfaceLight(const IntVector2 &location) const
Return surface light for location.
Definition: LightTracer.h:66
void SetLayoutFlexScale(const Vector2 &scale)
Definition: UIElement.cpp:1100
void SetDampingRatio(float dampingRatio)
Definition: ConstraintWeld2D.cpp:77
WrappedScalarRange< T > UpdateWrapped(T delta)
Add delta to the scalar, wrapping value at the boundaries. Return the range of the change.
Definition: WrappedScalar.h:143
void StaticCast(const SharedPtr< U1, U2 > &rhs) noexcept
Perform a static cast from a shared pointer of another type.
Definition: Ptr.h:288
Definition: ReflectionProbe.h:136
bool WriteVLE(unsigned value)
Write a variable-length encoded unsigned integer.
Definition: Serializer.cpp:409
Material * GetMaterial(unsigned index=0) const
Definition: CustomGeometry.cpp:435
Material of raytracing geometry.
Definition: RaytracerScene.h:46
virtual BakedSceneBackgroundArrayPtr GetBackgrounds()=0
Return all scene backgrounds. [0] is expected to be pitch-black background.
void Commit()
Mark for bounding box and vertex buffer update. Call after modifying the billboards.
Definition: BillboardSet.cpp:369
bool zonesDirty_
Whether zones are dirty.
Definition: Octree.h:210
unsigned GetNumMorphs() const
Definition: Model.h:206
static const VariantVector emptyVariantVector
Empty variant vector.
Definition: Variant.h:1659
virtual bool Seek(unsigned sample_number)
Seek to sample number. Return true on success. Need not be implemented by all streams.
Definition: SoundStream.cpp:40
const auto & GetGeometries() const
Definition: DrawableProcessor.h:201
ByteVector VariantBuffer
Definition: Variant.h:110
void UpdateWheelTransform(int wheel, bool interpolated)
Update transform for particular wheel.
Definition: RaycastVehicle.cpp:488
LoopMode2D loopMode_
Loop mode.
Definition: AnimatedSprite2D.h:147
void SetUISize(IntVector2 size)
Set size of texture UI will be rendered into.
Definition: RmlCanvasComponent.cpp:91
bool ignoreSceneTimeScale_
Ignore scene time scale and play sound even if scene is paused.
Definition: SoundSource.h:249
SharedPtr< PipelineState > pipelineState_
Whether the PipelineState is invalidated and should be recreated.
Definition: BatchStateCache.h:192
void DrawCircle(const b2Vec2 ¢er, float32 radius, const b2Color &color) override
Draw a circle.
Definition: PhysicsWorld2D.cpp:211
void ResetOctree()
Reset octree pointer recursively. Called when the whole octree is being destroyed.
Definition: Octree.cpp:191
void SetSearchPackagesFirst(bool value)
Definition: ResourceCache.h:122
void RemoveManualDrawable(Drawable *drawable)
Remove a manually added drawable.
Definition: Octree.cpp:579
void UpdateBatchesDelayed(const FrameInfo &frame) override
Batch update from main thread. Called on demand only if RequestUpdateBatchesDelayed() is called from ...
Definition: Renderer2D.cpp:132
bool unloading_
Flag indicating that plugin should unload on the end of the frame.
Definition: Plugin.h:71
void SetZone(Zone *zone)
Set current zone.
Definition: Camera.h:301
StringVariantMap GetChangedVariables(const ApplicationFlavor &flavor) const
Evaluate variables that are changed compared to flavor and global defaults.
Definition: ConfigFile.cpp:256
void DrawDebugGeometry(DebugRenderer *debug, bool depthTest) override
Visualize the component as debug geometry.
Definition: IKStickTargets.cpp:50
bool recursive_
Recursive flag.
Definition: Navigable.h:54
rcPolyMesh * polyMesh_
Recast poly mesh.
Definition: NavBuildData.h:98
void AddAlias(const ea::string &path, const ea::string &scheme, MountPoint *mountPoint)
Add alias to another mount point.
Definition: MountedAliasRoot.cpp:37
Helper class to check if tuple contains type.
Definition: TupleUtils.h:47
bool roundStroke_
Text effect stroke rounding flag.
Definition: Text.h:278
void OnSceneSet(Scene *scene) override
Handle node being assigned.
Definition: RibbonTrail.cpp:424
virtual void OnMarkedDirty(Node *node)
Handle scene node transform dirtied.
Definition: Component.cpp:157
SharedPtr< VertexBuffer > debugVertexBuffer_
UI debug geometry vertex buffer.
Definition: UI.h:419
static void RegisterObject(Context *context)
Definition: BillboardSet.cpp:114
float fadeOutDuration_
Fade out duration in seconds.
Definition: StateManager.h:278
void SetMaxForce(float maxForce)
Definition: ConstraintMotor2D.cpp:83
ea::unique_ptr< btDispatcher > collisionDispatcher_
Bullet collision dispatcher.
Definition: PhysicsWorld.h:349
@ AM_NODEIDVECTOR
Attribute is a node ID vector where first element is the amount of nodes.
Definition: Attribute.h:49
virtual void OnSceneSet(Scene *scene)
Handle scene being assigned. This may happen several times during the component's lifetime....
Definition: Component.cpp:153
void SetEmitting(bool enable)
Definition: ParticleEmitter.cpp:291
bool enableAnchor_
Use min/max anchor & min/max offset for position & size instead of setting explicitly.
Definition: UIElement.h:896
PListValueType type_
Type.
Definition: PListFile.h:162
Noise3D(Context *context)
Construct Noise3D.
Definition: Noise3D.cpp:44
bool nodeIDsDirty_
Whether nodes have been manipulated by the API and node ID attribute should be refreshed.
Definition: StaticModelGroup.h:99
ResourceRef GetSoundAttr() const
Return sound attribute.
Definition: SoundSource.cpp:550
static ResourceRef SaveToResourceRef(Sprite2D *sprite)
Save sprite to ResourceRef.
Definition: Sprite2D.cpp:190
VariantMap identity_
Identity map.
Definition: Connection.h:220
bool Merge(const UIBatch &batch)
Merge with another batch.
Definition: UIBatch.cpp:403
Spatial timeline key.
Definition: SpriterData2D.h:265
Definition: TickSynchronizer.h:43
unsigned GetNumOccluders() const
Definition: Renderer.cpp:407
VRHand GetHand() const
Returns the hand this action is bound to.
Definition: VirtualReality.h:93
void SetPositiveSensitivity(float value)
Set positive sensitivity value. 0.0 represent linear input mapping.
Definition: AxisAdapter.cpp:41
TerrainPatch * GetEastPatch() const
Return east neighbor patch.
Definition: TerrainPatch.h:99
bool NotNull() const
Definition: XMLElement.cpp:622
Vector3 GetTranslation() const
Get Translation.
Definition: Hemisphere.cpp:83
BoundingBox boundingBox_
Bounding box.
Definition: Model.h:235
bool worldBoundingBoxDirty_
Bounding box dirty flag.
Definition: Drawable.h:447
void PreloadResourcesJSON(const JSONValue &value)
Preload resources from a JSON scene or object prefab file.
Definition: Scene.cpp:1325
rcHeightfield * heightField_
Recast heightfield.
Definition: NavBuildData.h:81
Animate attribute between current and provided value.
Definition: Attribute.h:66
unsigned geometryIndex_
Geometry index.
Definition: RaytracerScene.h:94
bool IsSoundTypePaused(const ea::string &type) const
Return whether specific sound type has been paused.
Definition: Audio.cpp:322
WorkQueueVector< PipelineBatchDesc > delayedDeferredBatches_
Definition: BatchCompositor.h:207
bool SaveObjectCallback(const ea::function< void(Archive &)> serializeValue)
Definition: XMLFile.cpp:145
Timer timer_
Timer used to filter out repeated events when file is being written.
Definition: FileWatcher.h:96
void OnSetEnabled() override
Handle enabled/disabled state change.
Definition: Constraint2D.cpp:72
void SetScene(Scene *scene)
Definition: Material.cpp:811
const ConfigVariableDefinition * GetVariableDefinition(const ea::string &name) const
Return variable definition (if present).
Definition: ConfigFile.cpp:111
unsigned char * GetModifiableData()
Return non-const data.
Definition: VectorBuffer.h:69
void OnWorldBoundingBoxUpdate() override
Recalculate the world-space bounding box.
Definition: TerrainPatch.cpp:295
float operator[](unsigned index) const
Return const value by index.
Definition: Vector4.h:174
T Ceil(T x)
Definition: MathDefs.h:285
~LogicComponent() override
Destruct.
bool IsEnabled() const
Definition: UIElement.h:595
UIElement * GetMovementUIElement() const
Get UI element to filter touch events for movement.
Definition: MoveAndOrbitController.h:91
void SetMovementUIElement(UIElement *element)
Definition: MoveAndOrbitController.cpp:90
ea::string GetDisplayString() const override
Format string to display while dragging.
Definition: DragDropPayload.h:103
ea::span< ParticleGraphNodeInstance * > initNodeInstances_
Node instances for initialization graph.
Definition: ParticleGraphLayerInstance.h:150
Wrapper that automatically deletes OpenXR object when all references are lost.
Definition: OpenXR.h:26
IntVector2 GetTotalGlyphOffset(float pointSize) const
Return the total effective offset for a point size.
Definition: Font.cpp:181
static JSONNumberType GetNumberTypeFromName(const ea::string &typeName)
Return a number type from name; NaN if unrecognized.
Definition: JSONValue.cpp:787
ScenePass(RenderPipelineInterface *renderPipeline, DrawableProcessor *drawableProcessor, BatchStateCacheCallback *callback, DrawableProcessorPassFlags flags, const ea::string &deferredPass, const ea::string &unlitBasePass, const ea::string &litBasePass, const ea::string &lightPass)
Construct pass with forward lighting.
Definition: ScenePass.cpp:39
bool sixteenBit_
Sixteen bit flag.
Definition: SoundStream.h:74
SharedPtr< FiniteTimeAction > Reverse() const override
Create reversed action.
Definition: Ease.cpp:170
EnumArray< SharedPtr< OpenXRBinding >, VRHand > handGrips_
Cached grip pose bindings to avoid constant queries.
Definition: OpenXR.h:318
bool BeginFrame()
Begin frame rendering. Return true if device available and can render.
Definition: Graphics.cpp:218
virtual void Setup()
Setup before engine initialization. This is a chance to eg. modify the engine parameters....
Definition: Application.h:50
Map instruction.
Definition: SpriterData2D.h:135
float ascender_
Ascender.
Definition: FontFaceFreeType.h:69
Pass * unlitBasePass_
Unlit base pass (no per-pixel lighting, optional ambient lighting).
Definition: DrawableProcessor.h:100
const Vector2 & GetLowLimit() const
Definition: Constraint.h:159
Matrix3(float v00, float v01, float v02, float v10, float v11, float v12, float v20, float v21, float v22) noexcept
Construct from values.
Definition: Matrix3.h:52
Definition: IKLegSolver.h:12
ArchiveBlock OpenSequentialBlock(const char *name)
Open Sequential block. Will be automatically closed when returned object is destroyed.
Definition: Archive.h:183
ea::string lastShaderName_
Last used shader name in shader variation query.
Definition: Graphics.h:324
void ApplyVertexBufferSkinning(VertexBuffer *clonedBuffer, const VertexBufferAnimationData &animationData, ea::span< const Matrix3x4 > worldTransforms) const
Apply skinning for given vertex buffer.
Definition: SoftwareModelAnimator.cpp:132
void draw3dText(const btVector3 &location, const char *textString) override
Draw physics debug 3D text. Not implemented.
Definition: PhysicsWorld.cpp:310
void SetPixelInt(int x, int y, unsigned uintColor)
Set a 2D pixel with an integer color. R component is in the 8 lowest bits.
Definition: Image.cpp:728
Helper class to smoothly adjust NetworkTime on client.
Definition: NetworkTime.h:109
float GetMaxNetworkAngularVelocity() const
Return maximum angular velocity for network replication.
Definition: PhysicsWorld.h:277
ResourceRef GetModel() const
Get Model.
Definition: RenderMesh.cpp:71
~IncrementalLightBaker()
Destruct.
Definition: IncrementalLightBaker.cpp:514
const ea::string & GetPackageCacheDir() const
Definition: Network.h:133
Ogg Vorbis sound stream.
Definition: OggVorbisSoundStream.h:35
void SetInnerAction(FiniteTimeAction *action)
Set inner action.
Definition: Repeat.cpp:106
ea::unordered_map< unsigned, Node * > replicatedNodes_
Replicated scene nodes by ID.
Definition: Scene.h:323
void SetAbsoluteFileName(const ea::string &fileName)
Set absolute file name.
Definition: Resource.h:120
ea::pair< unsigned, unsigned char * > AddIndices(unsigned count)
Allocate indices. Returns index of first index and writeable buffer of sufficient size.
Definition: IndexBuffer.h:120
bool operator!=(const SourceBatch &other) const
Inequality comparison operator.
Definition: Drawable.h:196
void RemoveKeyFrame(unsigned index)
Remove a keyframe at index.
Definition: KeyFrameSet.h:57
float Ease(float time) const override
Apply easing function to the time argument.
Definition: Ease.h:219
float GetAxisPosition(unsigned index) const
Definition: Input.h:118
bool SetWindowModes(const WindowSettings &primarySettings, const WindowSettings &secondarySettings)
Definition: Graphics.cpp:276
CustomVariantValueImpl(T &&value)
Move-construct from value.
Definition: Variant.h:374
Vector2 center_
Center.
Definition: CollisionCircle2D.h:72
float GetMargin() const
Definition: CollisionShape.h:252
void SetShadowViewMask(unsigned mask)
Set view mask for shadow casters.
Definition: Camera.h:104
float GetRadius() const
Definition: CrowdAgent.h:192
virtual void UpdateParameters(const RenderPipelineSettings &settings, const StringVariantMap ¶ms)
Definition: RenderPass.h:46
Definition: DirectionalPadAdapter.h:48
unsigned rawVertexSize_
Raw vertex data override size.
Definition: Geometry.h:175
float distance_
Current distance to camera.
Definition: Drawable.h:477
void RemoveChild(UIElement *element, unsigned index=0)
Remove a child element. Starting search at specified index if provided.
Definition: UIElement.cpp:1372
Vector3 GetDirectionVector3()
Return random 3D direction (normalized).
Definition: RandomEngine.cpp:162
RawTexture * GetTexture() const override
Definition: RenderBuffer.cpp:150
const Color & GetSelectionColor() const
Definition: UISelectable.h:57
unsigned char adaptiveRings
adaptive
Definition: CrowdManager.h:61
bool Open(const ea::string &name, bool isServer)
Open the pipe in either server or client mode. If already open, the existing pipe is closed....
Definition: NamedPipe.cpp:241
2D particle emitter component.
Definition: ParticleEmitter2D.h:76
static void RegisterObject(Context *context)
Definition: ProgressBar.cpp:58
LightBakingQuality
Light baking quality settings.
Definition: LightBaker.h:39
void SetModalFrameColor(const Color &color)
Definition: Window.cpp:303
ResourceRefList(StringHash type)
Construct with type only.
Definition: Variant.h:179
void HandleScreenMode(StringHash eventType, VariantMap &eventData)
Handle screen mode event.
Definition: RmlUI.cpp:512
bool needReadWriteColorBuffer_
Whether it's required to read from and write to color buffer at the same time.
Definition: RenderPass.h:22
IntVector3 chunkGridDimension_
Dimensions of chunk grid.
Definition: BakedSceneCollector.h:135
void SetFlipY(bool flipY)
Definition: StaticSprite2D.cpp:141
virtual const ea::string & GetName() const
Return name of the stream.
Definition: Serializer.cpp:38
bool ProcessMessage(NetworkMessageId messageId, MemoryBuffer &messageData)
Process messages for this client.
Definition: ServerReplicator.cpp:339
const float * Data() const
Return float data.
Definition: Rect.h:236
unsigned GetLightMask() const
Definition: Drawable.h:314
void SetTimeStepSmoothing(int frames)
Definition: Engine.cpp:821
void Reset()
Reset array to empty.
Definition: Array2D.h:141
void Tick(float timeStep)
Manually update emitter.
Definition: ParticleGraphEmitter.cpp:221
bool IsValid() const
Return whether the circle is valid.
Definition: Sphere.h:39
float tangentialAcceleration_
Tangential acceleration.
Definition: ParticleEmitter2D.h:62
unsigned lightmapSize_
Size of lightmap chart.
Definition: LightmapGeometryBuffer.h:110
Light probe group.
Definition: LightProbeGroup.h:126
float rotatePerSecondVariance_
Rotate per second variance.
Definition: ParticleEffect2D.h:319
WeakPtr< NavigationMesh > navigationMesh_
NavigationMesh for which the crowd was created.
Definition: CrowdManager.h:217
static const IntVector2 LEFT
(-1,0) vector.
Definition: Vector2.h:185
void AddTrackedComponent(TrackedComponentBase *component)
Definition: TrackedComponent.cpp:53
Convex hull geometry data.
Definition: CollisionShape.h:107
Base class for component registry that keeps components derived from TrackedComponentBase.
Definition: TrackedComponent.h:63
void SetValue(const Variant &value) const
Set value for attribute. Reference must be valid.
Definition: AnimationState.cpp:84
ea::string copyBuffer_
Temporary variable for accumulating selection in order to copy it to clipboard.
Definition: Console.h:145
void SetOtherAxis(const Vector3 &axis)
Definition: Constraint.cpp:230
void DrawDebugGeometry(DebugRenderer *debug, bool depthTest) override
Render debug information.
Definition: Obstacle.cpp:146
virtual void Resume(Archive *input, bool differentVersion)
Called on ResumeApplication().
Definition: PluginApplication.h:98
Matrix3x4 transform_
Transform relative to the navigation mesh root node.
Definition: NavigationUtils.h:25
void SetShadowDistance(float distance)
Definition: Terrain.cpp:378
ea::vector< Component * > geometries_
Unique geometries.
Definition: BakedSceneCollector.h:121
TileMap2D(Context *context)
Construct.
Definition: TileMap2D.cpp:41
void SetUpdateFps(unsigned fps)
Definition: Network.cpp:299
Variant(RefCounted *value)
Construct from a RefCounted pointer. The object will be stored internally in a WeakPtr so that its ex...
Definition: Variant.h:656
void SetMinAngle(float angle)
Definition: BillboardSet.cpp:359
RenderSurfaceUpdateMode updateMode_
Update mode for viewports.
Definition: RenderSurface.h:157
SphericalHarmonicsDot9(SphericalHarmonicsColor9 sh)
Construct from spherical harmonics.
Definition: SphericalHarmonics.h:188
void SetMovable(bool enable)
Definition: Window.cpp:250
UI rendering draw call.
Definition: UIBatch.h:42
ea::string renderPathName_
Baking render path.
Definition: LightBakingSettings.h:56
float compressedLength_
Compressed sound length.
Definition: Sound.h:145
Quaternion Rotation() const
Return the rotation part.
Definition: Matrix4.h:558
unsigned char blendIndices_[4]
Blend indices.
Definition: DecalSet.h:73
static void RegisterObject(Context *context)
Definition: Image.cpp:132
Vector2 GetVector2(const ea::string &name) const
Return a Vector2 attribute, or zero vector if missing.
Definition: XMLElement.cpp:1048
void ClearBones()
Clear bones.
Definition: Skeleton.cpp:133
void PostTaskForMainThread(TaskFunction &&task, TaskPriority priority=TaskPriority::Medium)
Post the task for main thread.
Definition: WorkQueue.cpp:450
Base class for intrusively reference-counted objects. These are noncopyable and non-assignable.
Definition: RefCounted.h:62
@ IM_SPLINE
Cardinal spline interpolation, default tension value is 0.5f. For more information please refer to ht...
Definition: ValueAnimation.h:46
Definition: TimeStepScale.h:35
Vector3 normal_
Normal.
Definition: DecalSet.h:65
Definition: BloomPass.h:42
unsigned GetNumPins() const override
Get number of pins.
Definition: Print.h:59
float GetBackgroundBrightness() const
Return background brightness.
Definition: Zone.h:107
bool UpdateFromImage(unsigned arraySlice, Image *image)
Set texture data from image.
Definition: Texture.cpp:381
bool logShaderSources_
Whether to log all compiled shaders.
Definition: Graphics.h:72
Finite time action state.
Definition: ActionInstantState.h:37
Vector2 center_
Center.
Definition: CollisionBox2D.h:81
void SetRange(float range)
Definition: Light.cpp:323
unsigned GetMaxIndices() const
Definition: DecalSet.h:175
static void RegisterObject(Context *context)
Definition: RigidBody.cpp:91
auto Sample(const Container &container, const Vector3 &position, unsigned &tetIndexHint) const
Sample value at given position from the arbitrary container of per-vertex data.
Definition: TetrahedralMesh.h:326
Rect uv_
UV coordinates.
Definition: ParticleEffect.h:110
TileMapObject2D * GetObject(unsigned index) const
Return tile map object (for object group only).
Definition: TileMapLayer2D.cpp:311
BoundingBox bounds_
Area bounding box.
Definition: NavBuildData.h:49
void OnSceneSet(Scene *scene) override
Handle scene being assigned.
Definition: PhysicsWorld2D.cpp:714
BoxOctreeQuery(ea::vector< Drawable * > &result, const BoundingBox &box, DrawableFlags drawableFlags=DRAWABLE_ANY, unsigned viewMask=DEFAULT_VIEWMASK)
Construct with bounding box and query parameters.
Definition: OctreeQuery.h:118
SharedPtr< XMLFile > parametersXml_
Parameter file.
Definition: ImageCube.h:92
ActionBuilder & BounceInOut()
Combine with BounceInOut action.
Definition: ActionBuilder.cpp:330
void SetBrakingForce(float brakingForce)
Set rotational momentum preventing (dampening) wheels rotation.
Definition: RaycastVehicle.h:78
XMLElement SelectSingle(const ea::string &query, pugi::xpath_variable_set *variables=nullptr) const
Select an element/attribute using XPath query.
Definition: XMLElement.cpp:240
virtual SharedPtr< PipelineState > CreateBatchPipelineState(const BatchStateCreateKey &key, const BatchStateCreateContext &ctx, const PipelineStateOutputDesc &outputDesc)=0
Vector3 Project(const Vector3 &point) const
Project a point on the ray.
Definition: Ray.h:76
void UpdateGeometry(const FrameInfo &frame) override
Prepare geometry for rendering. Called from a worker thread if possible (no GPU update).
Definition: BillboardSet.cpp:250
State and parameters of playing Animation.
Definition: AnimationController.h:43
Variant LinearInterpolation(const ea::vector< Variant > &knots, float t) const
Perform linear interpolation on the spline.
Definition: Spline.cpp:231
SphericalHarmonicsDot9(const Color &color)
Construct from color in linear color space.
Definition: SphericalHarmonics.h:185
void SetSoundType(const ea::string &type)
Definition: SoundSource.cpp:265
EaseSineIn(Context *context)
Construct.
Definition: Ease.cpp:318
float GetDuration() const
Return duration.
Definition: ParticleEffect2D.h:204
void CleanupGeometryCache()
Clean up the geometry cache.
Definition: PhysicsWorld.cpp:845
Vector3 Scale() const
Return the scaling part.
Definition: Matrix4.h:561
ea::vector< float > blendWeights_
Blend weights. Size is number of bones used times number of vertices.
Definition: SoftwareModelAnimator.h:43
void GetDrawablesOnlyInternal(RayOctreeQuery &query, ea::vector< Drawable * > &drawables) const
Return drawable objects only for a threaded ray query, called internally.
Definition: Octree.cpp:286
ActionBuilder & Blink(float duration, unsigned numOfBlinks, ea::string_view attributeName=Actions::ISENABLED_ATTRIBUTE)
Continue with AttributeBlink action.
Definition: ActionBuilder.cpp:214
IntVector2 dragBeginCursor_
Mouse position at drag begin.
Definition: Window.h:174
void WriteVector2(XMLElement &element, const ea::string &name, const Vector2 &value) const
Write Vector2.
Definition: ParticleEffect2D.cpp:565
ea::vector< float > uiVertexData_
Text vertex data.
Definition: Text3D.h:258
const Vector2 & GetPosition() const
Definition: RmlNavigable.h:105
bool Empty() const
Return whether the collection is empty.
Definition: LightProbeGroup.h:61
Viewport(Context *context)
Construct with defaults.
Definition: Viewport.cpp:42
void SetLightmapIndex(unsigned idx)
Set lightmap index.
Definition: Terrain.h:276
Definition: ModelView.h:284
SharedPtr< Node > rootNode_
Root node for tile map layer.
Definition: TileMap2D.h:88
Sprite2D * GetTileSprite() const
Definition: TileMapDefs2D.cpp:203
XPathQuery()
Construct empty.
ea::map< ea::string, JSONValue > JSONObject
JSON object type.
Definition: JSONValue.h:359
float GetAngle() const
Get Angle.
Definition: Cone.cpp:85
Tile map object.
Definition: TileMapDefs2D.h:173
void CompleteAll()
Definition: WorkQueue.cpp:510
unsigned color_
Color.
Definition: DebugRenderer.h:88
void UpdateCollisions()
Refresh collisions only without updating dynamics.
Definition: PhysicsWorld.cpp:390
bool BeginLoad(Deserializer &source) override
Load resource from stream. May be called from a worker thread. Return true if successful.
Definition: Image.cpp:137
void OnSceneLoadFailed()
Handle scene load failure on the server or client.
Definition: Connection.cpp:894
WeakPtr< Node > endPoint_
Endpoint node.
Definition: OffMeshConnection.h:89
void UpdateAgentPosition(CrowdAgent *agent, float timeStep, Vector3 &position) const
Update agent Y position using height callback.
Definition: CrowdManager.cpp:198
bool InitializeNodes(IKNodeCache &nodeCache) override
Definition: IKSpineSolver.cpp:70
float indirectPadding_
Additional space around chunk to collect indirect lighting.
Definition: LightBakingSettings.h:172
UI element which renders a 3D scene.
Definition: View3D.h:37
float defaultFontSize_
Default font size.
Definition: TextRenderer3D.h:161
bool checked_
Current checked state.
Definition: CheckBox.h:73
Spriter::Animation * GetAnimation() const
Return current animation.
Definition: SpriterInstance2D.h:72
bool SetAttribute(unsigned index, const Variant &value)
Definition: Serializable.cpp:423
TerrainPatch * GetNeighborPatch(int x, int z) const
Return patch by patch coordinates including neighbor terrains.
Definition: Terrain.cpp:502
bool IsStarted() const
Return whether the application is started.
Definition: PluginApplication.h:78
void OnMarkedDirty(Node *node) override
Handle node transform being dirtied.
Definition: Drawable2D.cpp:123
unsigned colorIndex_
Current color animation index.
Definition: ParticleEmitter.h:48
unsigned GetZoneMask() const
Return zone mask.
Definition: Camera.h:183
~DynamicNavigationMesh() override
Destructor.
Definition: DynamicNavigationMesh.cpp:224
virtual ~BakedSceneCollector()
Destruct.
Vector3 rotationRange_
Rotation range (Pitch, Yaw, Roll).
Definition: ShakeComponent.h:104
void RemoveDrawable(Drawable2D *drawable)
Remove Drawable2D.
Definition: Renderer2D.cpp:236
void SetRepeatInterval(float intervalInSeconds)
Set repeat interval in seconds.
Definition: DirectionalPadAdapter.cpp:149
bool subscribed_
Is subscribed to update.
Definition: FreeFlyController.h:136
const XrActionPtr action_
Action itself, possibly shared in the case of sub-path handed actions.
Definition: OpenXR.h:113
Definition: RenderPass.h:70
WeakPtr< Terrain > east_
East neighbor terrain.
Definition: Terrain.h:345
Variant value_
Property value.
Definition: GraphNode.h:38
void SetHorizontalAlignment(HorizontalAlignment align)
Definition: UIElement.cpp:704
void ReadUnreliableDelta(NetworkFrame frame, Deserializer &src) override
Read unreliable delta update.
Definition: ReplicatedAnimation.cpp:240
void SetSerializedLightProbes(const ea::string &data)
Set serialized light probes.
Definition: LightProbeGroup.cpp:265
void PrecalculateLevels()
Precalculate the mip levels. Used by asynchronous texture loading.
Definition: Image.cpp:2069
int indent_
Horizontal indentation.
Definition: UIElement.h:843
dtCrowd * GetCrowd() const
Get the internal detour crowd component.
Definition: CrowdManager.h:200
Definition: IKLimbSolver.h:84
ea::string shaderExtension_
File extension for shaders.
Definition: Graphics.h:320
bool SaveBMP(const ea::string &fileName) const
Save in BMP format. Return true if successful.
Definition: Image.cpp:1076
virtual ~ParticleGraph()
Destruct.
SharedPtr< IndexBuffer > indexBuffer_
Index buffer.
Definition: DecalSet.h:238
void SetAsyncLoadState(AsyncLoadState newState)
Set the asynchronous loading state. Called by ResourceCache. Resources in the middle of asynchronous ...
Definition: Resource.cpp:183
Definition: RenderPipelineDefs.h:317
T Clamp(T value, T min, T max)
Definition: MathDefs.h:132
void SetAngularRestThreshold(float threshold)
Definition: RigidBody.cpp:339
const Vector2 & GetMinParticleSize() const
Definition: ParticleEffect.h:350
bool IsRendering() const
Return true if this subsystem is rendering. When disabled, it is still possible to manually render by...
Definition: RmlUI.h:96
bool SetFontSize(float size)
Definition: Text3D.cpp:223
void LoadInputMap(const ea::string &name)
Load input map from config file or resource.
Definition: MoveAndOrbitController.cpp:65
ea::string lastUsedFilter_
Filter used to get the file list.
Definition: FileSelector.h:206
Definition: RenderPipelineDebugger.h:70
bool IsInContact() const
Is in contact.
void SetMaxLength(unsigned length)
Definition: LineEdit.cpp:509
int SystemSpawn(const ea::string &fileName, const ea::vector< ea::string > &arguments)
Run a specific program, do not block until it exits. Will fail if any allowed paths are defined.
Definition: FileSystem.cpp:635
Settings for geometry buffer preprocessing.
Definition: LightBakingSettings.h:68
bool ShouldSave() const
Return whether the attribute should be saved.
Definition: Attribute.h:136
unsigned ToHash() const
Hash function for containers.
Definition: Variant.cpp:1340
void SetCameraAngles(Vector3 eulerAngles)
Update camera rotation.
Definition: FreeFlyController.cpp:147
SharedPtr< ActionState > StartAction(Object *target) override
Create new action state from the action.
Definition: Repeat.cpp:207
SharedPtr< Texture2D > defaultLightRamp_
Default range attenuation texture.
Definition: Renderer.h:354
bool IsMultithreaded() const
Return whether the queue is actually using multithreading.
Definition: WorkQueue.h:167
Vector2 size_
Size.
Definition: Text.h:52
float GetFallSpeed() const
Return fall speed (terminal velocity).
Definition: KinematicCharacterController.h:116
bool GetFlipY() const
Definition: StaticSprite2D.h:113
E Enum
Enum type.
Definition: FlagSet.h:50
Animate shader parameter from one value to another.
Definition: ShaderParameter.h:81
TileMapInfo2D info_
Tile map information.
Definition: TileMap2D.h:86
const Vector2 & GetAnchor() const
Definition: ConstraintWeld2D.h:56
float Ease(float time) const override
Apply easing function to the time argument.
Definition: Ease.h:139
void ReleaseFaces()
Release font faces and recreate them next time when requested. Called when font textures lost or glob...
Definition: Font.cpp:187
JSONValue(JSONValue &&value)
Move-construct from another JSON value.
Definition: JSONValue.h:146
void operator()(Sender *sender, InvokeArgs &&... args)
Invoke signal.
Definition: Signal.h:123
void SetVertexData(VertexBuffer *dest, const ea::vector< float > &vertexData)
Upload UI geometry into a vertex buffer.
Definition: UI.cpp:912
AttributeAnimationInfo * GetAttributeAnimationInfo(const ea::string &name) const
Return attribute animation info.
Definition: Animatable.cpp:530
void Stop()
Stop discovery service.
Definition: LANDiscoveryManager.cpp:207
SharedPtr< MountedAliasRoot > aliasMountPoint_
Alias mount point.
Definition: VirtualFileSystem.h:100
unsigned offset_
Offset from the beginning.
Definition: PackageFile.h:35
void SetProjectionOffset(const Vector2 &offset)
Definition: Camera.cpp:219
Definition: ReplicatedAnimation.h:117
void SetBoundingBox(const BoundingBox &box)
Set local-space bounding box.
Definition: TerrainPatch.cpp:254
Definition: Normalized.h:35
Matrix3 Transpose() const
Return transposed.
Definition: Matrix3.h:222
ea::vector< bool > removed_
Whether the tetrahedron is removed.
Definition: TetrahedralMesh.h:374
const Vector2 & GetAnchor() const
Definition: ConstraintPrismatic2D.h:71
Matrix3 RotationMatrix() const
Return the rotation matrix with scaling removed.
Definition: Matrix3x4.h:623
TileMapInfo2D info_
Tile map information.
Definition: TmxFile2D.h:221
ea::vector< Variant > VariantVector
Vector of variants.
Definition: Variant.h:96
bool GetDrawAabb() const
Definition: PhysicsWorld2D.h:190
~SoftwareModelAnimator() override
Destruct.
Definition: SoftwareModelAnimator.cpp:55
unsigned GetNumBones() const
Definition: Skeleton.h:132
ParticleGraphNodeInstance * CreateInstanceAt(void *ptr, ParticleGraphLayerInstance *layer) override
Place new instance at the provided address.
Definition: Attribute.h:136
float GetFloat()
Return random float in range [0, 1] with uniform distribution.
Definition: RandomEngine.h:97
FontType GetFontType() const
Definition: Font.h:78
void SetOwnerConstraint(Constraint2D *constraint)
Definition: ConstraintGear2D.cpp:51
void PostUpdate(float timeStep) override
Perform variable step post-update.
Definition: RaycastVehicle.cpp:392
Base class for 2D visible components.
Definition: Drawable2D.h:98
bool OnDragDropFinish(UIElement *source) override
React to drag and drop finish. Return true to signal that the drop was accepted.
Definition: LineEdit.cpp:176
void UpdateLength()
Update cached length.
Definition: InverseKinematics.cpp:142
Utility class to remap and resolve prefab IDs. Similar to SceneResolver.
Definition: NodePrefab.h:164
Object animation class, an object animation include one or more attribute animations and theirs wrap ...
Definition: ObjectAnimation.h:39
void CommitChanges()
Commit prefab changes to the resource.
Definition: PrefabReference.cpp:394
void HandleEndAllViewsRender(StringHash eventType, VariantMap &eventData)
Handle rendering to a texture.
Definition: UI.cpp:2010
Sprite(Context *context)
Construct.
Definition: Sprite.cpp:39
bool sorted_
Tails sorted flag.
Definition: RibbonTrail.h:215
void Initialize(const BoundingBox &box)
Initialize bounding box.
Definition: Octree.cpp:223
Animation * GetAnimationByName(const ea::string &name) const
Deprecated. Get animation by resource name.
Definition: AnimationController.cpp:1107
VariantValue()
Construct uninitialized.
Definition: Variant.h:471
IntVector2 dragBeginSize_
Original size at drag begin.
Definition: Window.h:178
PipelineBatchByState(const PipelineBatch *batch)
Construct from batch.
Definition: PipelineBatchSortKey.h:103
DirectLightTracingSettings(unsigned maxSamples)
Construct for given max samples.
Definition: LightBakingSettings.h:91
void SetDrawDebugGeometry(bool enable)
Set whether to draw the debug geometry when rendering the scene from this camera.
Definition: Camera.h:142
Vertex element description for arbitrary vertex declarations.
Definition: GraphicsDefs.h:83
void Init(const ea::string &name, SDL_AudioDeviceID id, int bufferSize, unsigned frequency, unsigned which)
Initializes the SDL audio device.
Definition: Microphone.cpp:74
CustomVariantValue()=default
Construct empty.
Octant rootOctant_
Root octant.
Definition: Octree.h:290
Subtract(Context *context)
Construct Subtract.
Definition: Subtract.cpp:78
void NodeRemoved(Node *node)
Node removed. Remove from ID map.
Definition: Scene.cpp:971
float GetDampingForce() const
Definition: ParticleEffect.h:330
int GetDragBeginDistance() const
Definition: UI.h:218
void SetTraversalMode(TraversalMode traversalMode)
Definition: UIElement.cpp:1485
Hide target. The Target should have "Is Enabled" attribute.
Definition: Misc.h:87
StringHash nameHash_
Name hash.
Definition: Attribute.h:162
LocalToWorld(Context *context)
Construct LocalToWorld.
Definition: LocalToWorld.cpp:44
static void RegisterObject(Context *context)
Definition: ConstraintMotor2D.cpp:44
void SetOffset(const Vector3 &offset)
Set character collider offset.
Definition: KinematicCharacterController.cpp:517
void OnSetEnabled() override
Handle enabled/disabled state change.
Definition: CollisionShape.cpp:509
virtual ea::string ReadText()
Reads a text file, ensuring data from file is 0 terminated.
Definition: File.h:117
Vector4 ToVector4() const
Return as a vector.
Definition: Plane.h:126
bool operator!=(const Vertex2D &other) const
Inequality comparison operator.
Definition: Drawable2D.h:55
VariantMap physicsCollisionData_
Cached event data for physics collision.
Definition: KinematicCharacterController.h:207
Helper class to get index of type in tuple.
Definition: TupleUtils.h:34
JSON value class.
Definition: JSONValue.h:69
StringVector ReadStringVector()
Read a string vector.
Definition: Deserializer.cpp:445
@ TM_DEPTH_FIRST
Traverse through each child and its children immediately after in sequence.
Definition: UIElement.h:101
void Clip(const Rect &rect)
Clip with another rect.
Definition: Rect.cpp:88
void Remove(Object *object)
Remove receiver. Leave holes during send, which requires later cleanup.
Definition: Context.cpp:89
void SetText(const ea::string &text)
Definition: Text3D.cpp:234
unsigned GetSelection() const
Definition: DropDownList.cpp:211
void SetRotationDelta(const Quaternion &delta)
Set rotation delta.
Definition: Move.cpp:738
void SetSideSlipSpeed(float sideSlipSpeed)
Set side slip speed.
void SetAmbientBrightness(float brightness)
Set ambient brightness.
Definition: Zone.cpp:116
bool textSelectable_
Text selectable flag.
Definition: LineEdit.h:173
void SetOtherBodyGroundAnchor(const Vector2 &groundAnchor)
Definition: ConstraintPulley2D.cpp:72
void OnNodeSet(Node *previousNode, Node *currentNode) override
Handle scene node being assigned at creation.
Definition: IKSolverComponent.cpp:52
NetworkObjectMode GetNetworkMode() const
Definition: NetworkObject.h:98
unsigned GetNumVertexBuffers() const
Definition: Geometry.h:83
float GetMass() const
Definition: CollisionShape2D.cpp:241
const ea::string & GetSourceCode() const
Return either vertex or pixel shader source code.
Definition: Shader.h:62
VertexElementSemantic semantic_
Semantic of element.
Definition: GraphicsDefs.h:126
ActionInstant(Context *context)
Construct.
Definition: ActionInstant.cpp:36
void StoreLightmap(unsigned lightmapIndex, BakedLightmap bakedLightmap) override
Store baked lightmap.
Definition: BakedLightCache.cpp:56
Color(float r, float g, float b) noexcept
Construct from RGB values and set alpha fully opaque.
Definition: Color.h:77
unsigned SerializeVersion(unsigned version) final
Serialize version number. 0 is invalid version.
Definition: ArchiveBase.h:51
FillMode fillMode_
Fill mode.
Definition: Camera.h:385
bool Load(const ea::string &path)
Load a specified dynamic library and return true on success.
Definition: DynamicModule.cpp:152
const TmxImageLayer2D * imageLayer_
Image layer.
Definition: TileMapLayer2D.h:131
void SetClipPlaneAttr(const Vector4 &value)
Set clipping plane attribute.
Definition: Camera.cpp:682
float GetRadius() const
Get wheel radius.
void RouteResourceName(FileIdentifier &name) const
Pass name through resource routers and return final resource name.
Definition: ResourceCache.cpp:963
void * aux_
Auxiliary data pointer.
Definition: WorkQueue.h:105
const Vector2 & GetScaledGlyphOffset() const
Definition: Font.h:89
void OnMarkedDirty(Node *node) override
Handle scene node transform dirtied.
Definition: ReflectionProbe.cpp:791
static constexpr unsigned MaxRange()
Return random generator range (2147483646).
Definition: RandomEngine.h:63
ea::vector< unsigned char > GetGeometryDataAttr() const
Return geometry data attribute.
Definition: CustomGeometry.cpp:488
void SetRenderTargetsRect(const IntRect &viewportRect, RenderBuffer *depthStencilBuffer, ea::span< RenderBuffer *const > colorBuffers, bool readOnlyDepth=false, CubeMapFace face=FACE_POSITIVE_X)
Definition: RenderBufferManager.cpp:208
ea::unordered_map< Camera *, ViewBatchInfo2D > viewBatchInfos_
View batch info.
Definition: Renderer2D.h:124
bool operator!=(const TextureFrame &rhs) const
Inequality operator.
Definition: ParticleEffect.h:104
Scene * GetScene() const
Definition: Viewport.cpp:127
bool compressed_
Compressed flag.
Definition: Sound.h:143
unsigned GetNumOfBlinks() const
Get number of blinks.
Definition: Misc.h:109
virtual void Serialize(Archive &, const char *)
Serialize to Archive.
Definition: Variant.h:261
const IntRect & GetImageRect() const
Definition: Sprite.h:112
ea::vector< SharedPtr< Image > > loadImages_
Layer image files acquired during BeginLoad.
Definition: Texture2DArray.h:76
Color finishColor_
Finish color.
Definition: ParticleEffect2D.h:291
unsigned Read(void *dest, unsigned size) override
Definition: HttpRequest.cpp:281
void SetPositionAttr(int value)
Set sound position attribute.
Definition: SoundSource.cpp:544
void SetSoundAttr(const ResourceRef &value)
Set sound attribute.
Definition: SoundSource.cpp:518
void RemoveSuperMeshVertices()
Remove super-mesh vertices.
Definition: TetrahedralMesh.cpp:1006
float speedVariance_
Speed variance.
Definition: ParticleEffect2D.h:267
unsigned Size() const
Return size.
Definition: ShaderDefs.h:86
ParticleGraphNodeInstance * CreateInstanceAt(void *ptr, ParticleGraphLayerInstance *layer) override
Place new instance at the provided address.
Definition: CurlNoise3D.cpp:60
bool heightFog_
Height fog mode flag.
Definition: Zone.h:201
virtual void StartWatching()=0
Start file watcher.
RayOctreeQuery(ea::vector< RayQueryResult > &result, const Ray &ray, RayQueryLevel level=RAY_TRIANGLE, float maxDistance=M_INFINITY, DrawableFlags drawableFlags=DRAWABLE_ANY, unsigned viewMask=DEFAULT_VIEWMASK)
Construct with ray and query parameters.
Definition: OctreeQuery.h:228
Definition: NetworkSettingsConsts.h:31
bool IsVisible() const
Return whether is visible.
Definition: Console.cpp:100
~Audio() override
Destruct. Terminate the audio thread and free the audio buffer.
Definition: Audio.cpp:105
Vector3 position_
Position in world space.
Definition: TextRenderer3D.h:139
bool scaled_
Scale affects billboard scale flag.
Definition: BillboardSet.h:185
Definition: RmlEventListeners.h:61
unsigned EvaluateInstanceSize() const override
Evaluate size required to place new node instance.
Definition: EmitterScale.cpp:53
virtual void WriteSnapshot(NetworkFrame frame, Serializer &dest)
Write full snapshot.
Definition: NetworkCallbacks.h:85
IntVector3(const int data[]) noexcept
Construct from an int array.
Definition: Vector3.h:54
float negSensitivity_
Negative sensitivity value.
Definition: AxisAdapter.h:76
bool enabled_
Whether to active capture data or not (data still comes in, but is ignored not copied).
Definition: Microphone.h:118
virtual void OnAttributeAnimationRemoved()=0
Handle attribute animation removed.
void SetZoneMask(unsigned mask)
Definition: Drawable.cpp:215
unsigned GetCapacity() const
Return total number of elements.
Definition: Array2D.h:52
unsigned numElements_
Number of elements in block.
Definition: JSONArchive.h:73
void OnNodeSet(Node *previousNode, Node *currentNode) override
Handle node being assigned.
Definition: CollisionShape2D.cpp:274
Scene * GetScene() const
Get scene.
Definition: TemplateNode.h:137
bool GetInstancingSupport() const
Definition: Graphics.h:223
ShadowMapRegion AllocateRegion(const IntVector2 &size)
Allocate shadow map.
Definition: ShadowMapAllocator.cpp:163
ea::vector< unsigned char > GetDecalsAttr() const
Return decals attribute.
Definition: DecalSet.cpp:598
unsigned gid_
Gid.
Definition: TileMapDefs2D.h:165
DirectionAggregator(Context *context)
Construct.
Definition: DirectionAggregator.cpp:38
virtual void OnDrawOrderChanged()=0
Handle draw order changed.
bool IsValid() const
Return animation is valid.
Definition: ValueAnimation.cpp:336
void SetDocument(Rml::ElementDocument *document)
Set currently active document and link it to the component.
Definition: RmlUIComponent.cpp:414
const XMLFile * xmlFile_
XML file.
Definition: XMLArchive.h:59
ea::string PrintMemoryUsage() const
Returns a formatted string containing the memory actively used.
Definition: ResourceCache.cpp:703
unsigned historyRows_
Command history maximum rows.
Definition: Console.h:117
static Vector3 FromXZ(const Vector2 &vector, float y=0.0f)
Construct from 2D vector in X0Z plane.
Definition: Vector3.h:240
Variant(const VariantCurve &value)
Construct from a VariantCurve.
Definition: Variant.h:680
Actions::BaseAction * GetDefaultAction() const
Get action.
Definition: ActionSet.h:54
PackedSceneSelection Pack() const
Return packed selection.
Definition: SceneSelection.cpp:157
ConstraintPulley2D(Context *context)
Construct.
Definition: ConstraintPulley2D.cpp:35
unsigned frequency_
Default frequency.
Definition: SoundStream.h:70
void HandleMouseButtonUp(StringHash eventType, VariantMap &eventData)
Handle mouse button up event.
Definition: RmlUI.cpp:545
const PListValueMap & GetRoot() const
Return root.
Definition: PListFile.h:193
BaseIterator operator++(int)
Post-increment.
Definition: MultiVector.h:107
Definition: KeyFrameSet.h:36
bool IsTemporary() const
Definition: Serializable.h:132
void SetSpriteTextureEdgeOffset(float offset)
Definition: TmxFile2D.cpp:591
SharedPtr< IndexBuffer > indexBuffer_
Index buffer.
Definition: Renderer2D.h:116
virtual void Stop()
Definition: ActionState.cpp:42
void RecreateFixture()
Recreate fixture.
Definition: CollisionBox2D.cpp:106
CullMode shadowCullMode_
Culling mode for shadow rendering.
Definition: Material.h:362
ea::vector< int16_t > & GetData()
Gets direct access to the data.
Definition: Microphone.h:49
ea::vector< Tetrahedron > tetrahedrons_
Tetrahedrons.
Definition: TetrahedralMesh.h:419
bool AppendChild(XMLElement element, bool asCopy=false)
Append element. If asCopy is set to true then original element is copied and appended,...
Definition: XMLElement.cpp:142
const Variant & GetVar(const ea::string &key) const
Return a user variable.
Definition: UIElement.cpp:1736
void SetVertices(const Vector2 &vertex1, const Vector2 &vertex2)
Set vertices.
Definition: CollisionEdge2D.cpp:70
void OnWorldBoundingBoxUpdate() override
Recalculate the world-space bounding box.
Definition: StaticModelForLightmap.h:57
float GetOpacity() const
Definition: UIElement.h:560
LightDataForAccumulator(Light *light)
Construct from light.
Definition: LightAccumulator.h:51
WeakPtr< Scene > scene_
Extra weak pointer to scene to allow for cleanup in case the world is destroyed before other componen...
Definition: PhysicsWorld2D.h:258
Context * GetContext() const
Return execution context.
Definition: Object.h:172
Quaternion Normalized() const
Return normalized to unit length.
Definition: Quaternion.h:343
ea::fixed_vector< GraphInPin, 3 > inputPins_
Input pins. Define source pin for the data flow.
Definition: GraphNode.h:197
unsigned GetForwardLitHash() const
Definition: LightProcessor.h:107
Vector4 shadowCubeAdjust_
Definition: LightProcessor.h:69
static const IntVector3 FORWARD_UP_RIGHT
(2, 1, 0) coordinate system.
Definition: RaycastVehicle.h:147
unsigned totalNodes_
Total root-level nodes.
Definition: Scene.h:86
float offsetY_
Glyph Y offset from origin.
Definition: FontFace.h:57
BoneCollisionShapeFlags collisionMask_
Supported collision types.
Definition: Skeleton.h:85
IntRect(const int data[]) noexcept
Construct from an int array.
Definition: Rect.h:319
~Variant()
Destruct.
Definition: Variant.h:731
bool SetQuaternion(const ea::string &name, const Quaternion &value)
Set a quaternion attribute.
Definition: XMLElement.cpp:417
ea::vector< AttrSpan > attributes_
All known attributes.
Definition: ParticleGraphMemory.h:93
2D polygon collision component.
Definition: CollisionPolygon2D.h:31
void SetTechnique(unsigned index, Technique *tech, MaterialQuality qualityLevel=QUALITY_LOW, float lodDistance=0.0f)
Set technique.
Definition: Material.cpp:593
IntVector2 absoluteOffset_
Absolute position adjustment for glyphs.
Definition: Font.h:112
ConstraintType
Supported constraint types.
Definition: Constraint.h:36
constexpr unsigned ToHash() const
Return hash value for HashSet & HashMap.
Definition: StringHash.h:126
Vector2 GetCharPosition(unsigned index)
Definition: Text.cpp:418
~Graph() override
Destruct. Free all resources.
Definition: Graph.cpp:41
Signal subscription data without priority.
Definition: Signal.h:42
CursorShapeInfo()
Construct with defaults.
Definition: Cursor.h:58
bool GetIsWorldspace() const
Get Is Worldspace.
Definition: RenderMesh.cpp:79
unsigned GetVertexSize() const
Definition: VertexBuffer.h:63
float GetOpacity() const
Definition: Text3D.cpp:533
void QueueRender()
Queue ReflectionProbe to be re-rendered as soon as possible.
Definition: ReflectionProbe.cpp:581
int GetPacketsInPerSec() const
Definition: Connection.cpp:675
State
Definition: NetworkConnection.h:35
ea::vector< SharedPtr< TileMapObject2D > > objects_
Objects.
Definition: TmxFile2D.h:126
unsigned GetCapacity() const
Get maximum number of particles the layer can hold.
Definition: ParticleGraphLayer.h:81
int Left() const
Return left coordinate.
Definition: Rect.h:471
Parameters of indirect light tracing.
Definition: LightBakingSettings.h:103
Compressed image mip level.
Definition: Image.h:40
bool WriteVariantVector(const VariantVector &value)
Write a variant vector.
Definition: Serializer.cpp:367
void SetThighBoneName(const ea::string &name)
Definition: IKLegSolver.h:28
float fogHeight_
Fog height distance.
Definition: Zone.h:227
ea::shared_array< unsigned char > data_
Vertex data.
Definition: Model.h:77
VariantType GetType(unsigned attrIndex) const
Get type by attribute index.
Definition: ParticleGraphMemory.h:67
void SetLayers(unsigned layers)
Definition: Texture2DArray.cpp:133
Font * GetFont() const
Definition: Text.h:144
ea::vector< ModelAnimationStateTrack > modelTracks_
Definition: AnimationState.h:246
bool BeginLoad(Deserializer &source) override
Definition: SceneResource.cpp:122
ea::string GetAbsoluteNameFromIdentifier(const FileIdentifier &fileName) const override
Return absolute file name for existing identifier in this mount point, if supported.
Definition: MountedDirectory.cpp:156
LightType
Light types.
Definition: Light.h:47
virtual Matrix3x4 GetHeadTransform() const =0
Return the head transform in stage space (or local if no stage).
IntVector2 ToIntVector2() const
Return IntVector2 vector (z component is ignored).
Definition: Vector3.h:483
bool blockEvents_
Block object from sending and receiving any events.
Definition: Object.h:237
virtual bool BeginLoad(Deserializer &source)
Load resource from stream. May be called from a worker thread. Return true if successful.
Definition: Resource.cpp:135
Generates shader program descritpions for scene and light volume batches.
Definition: ShaderProgramCompositor.h:87
unsigned GetVertexCount() const
Definition: Geometry.h:111
int GetFrom() const
Get From.
Definition: Hemisphere.cpp:95
void SetOcclusion(bool enable)
Definition: Material.cpp:806
bool HasPass(unsigned passIndex) const
Return whether has a pass.
Definition: Technique.h:282
Entity * entity_
Current entity.
Definition: SpriterInstance2D.h:97
unsigned GetNumViewports() const
Definition: Renderer.h:228
float rotationMax_
Particle rotation angle maximum.
Definition: ParticleEffect.h:492
WeakPtr< RmlCanvasComponent > canvasComponent_
Definition: RmlUIComponent.h:201
ea::string source_
Source.
Definition: TmxFile2D.h:151
TextureAddressMode GetAddressMode(TextureCoordinate coord) const
Definition: Texture.h:133
const Color & GetColor() const
Definition: Light.h:295
ea::unordered_map< ea::pair< Model *, unsigned >, SharedPtr< CollisionGeometryData > > CollisionGeometryDataCache
Cache of collision geometry data.
Definition: CollisionShape.h:74
WrapMode GetAttributeAnimationWrapMode(const ea::string &name) const
Definition: ObjectAnimation.cpp:244
Logger GetOrCreateLogger(const ea::string &name)
Return new or existing logger for this Log instance.
Definition: Log.cpp:448
LightType GetLightType() const
Definition: Light.h:278
static const IntVector3 ZERO
Zero vector.
Definition: Vector3.h:183
ParticleGraphPinRef memory_
Reference to a memory block that corresponds to the pin value.
Definition: ParticleGraphPin.h:158
bool Equals(const Vector3 &rhs, float eps=M_EPSILON) const
Test for equality with another vector with epsilon.
Definition: Vector3.h:406
bool SetKeyFrame(float time, const Variant &value)
Set key frame.
Definition: ValueAnimation.cpp:276
void ApplyAngularImpulse(float impulse, bool wake)
Apply angular impulse.
Definition: RigidBody2D.cpp:328
unsigned GetUniformIndex(const StringHash &string_hash, VariantType variant)
Get uniform index. Creates new uniform slot on demand.
Definition: ParticleGraphLayerInstance.cpp:157
void SetInAirRPM(float rpm)
Definition: RaycastVehicle.cpp:523
ea::vector< float > data_
All complete accumulated samples.
Definition: Timer.h:164
void SetGravity(const Vector2 &gravity)
Definition: PhysicsWorld2D.cpp:417
void SetRadius(float radius)
Definition: CollisionCircle2D.cpp:57
UI subsystem. Manages the graphical user interface.
Definition: UI.h:61
void UpdateSourceBatches() override
Handle update vertices.
Definition: AnimatedSprite2D.cpp:230
void SetPixelShaderDefines(const ea::string &defines)
Definition: Material.cpp:619
bool IsUnloading() const
Returns whether the plugin is about to be unloaded.
Definition: Plugin.h:52
Sprite2D(Context *context)
Construct.
Definition: Sprite2D.cpp:38
void SetMotorSpeed(float motorSpeed)
Definition: ConstraintRevolute2D.cpp:120
Definition: IKHeadSolver.h:12
ea::vector< VertexElement > vertexElements_
Vertex declaration.
Definition: Model.h:73
void Remove(StringHash type)
Remove subsystem.
Definition: SubsystemCache.cpp:85
FiniteTimeAction * GetInnerAction() const
Get inner action.
Definition: Repeat.h:86
SharedPtr< TmxFile2D > tmxFile_
Tmx file.
Definition: TileMap2D.h:84
bool GetFixedWidthResizing() const
Definition: Window.h:121
bool GetSubStepping() const
Definition: PhysicsWorld2D.cpp:704
ActionBuilder & AttributeFromTo(float duration, ea::string_view attributeName, const Variant &from, const Variant &to)
Continue with AttributeFromTo action.
Definition: ActionBuilder.cpp:234
short x_
X position in texture.
Definition: FontFace.h:43
float GetFloat() const
Return float.
Definition: PListFile.cpp:202
void SetDrawRect(const Rect &rect)
Definition: StaticSprite2D.cpp:95
unsigned FindItem(UIElement *item) const
Return index of item, or M_MAX_UNSIGNED If not found.
Definition: ListView.cpp:854
float aspectRatio_
Aspect ratio.
Definition: Camera.h:369
bool HasEventHandlers() const
Return whether has subscribed to any event.
Definition: Object.h:194
ea::intrusive_list< EventHandler >::iterator FindSpecificEventHandler(Object *sender, StringHash eventType) const
Find the first event handler with specific sender and event type.
Definition: Object.h:227
ea::shared_array< signed char > data_
Sound data.
Definition: Sound.h:127
void OnAttributeAnimationAdded() override
Handle attribute animation added.
Definition: UIElement.cpp:1924
bool Allocate()
Allocate the navigation mesh without building any tiles. Return true if successful.
Definition: NavigationMesh.cpp:388
Vector4 Row(unsigned i) const
Return matrix row.
Definition: Matrix3x4.h:702
float Ease(float time) const override
Apply easing function to the time argument.
Definition: Ease.h:299
void SerializeInBlock(Archive &archive) override
Serialize content from/to archive. May throw ArchiveException.
Definition: GraphPin.cpp:70
void SetFileName(const ea::string &fileName)
Definition: FileSelector.cpp:213
T & mutex_
Mutex reference.
Definition: Mutex.h:159
T Lerp(T lhs, T rhs, U t)
Definition: MathDefs.h:80
void SetAngularDamping(float angularDamping)
Definition: RigidBody2D.cpp:187
unsigned geometryHash_
Definition: BatchStateCache.h:104
void SetMaxSlope(float maxSlope)
Set max slope angle in degrees.
Definition: KinematicCharacterController.cpp:568
ea::unordered_map< unsigned, SharedPtr< PipelineState > > placeholderCache_
Cached placeholder states.
Definition: BatchStateCache.h:146
void AddNode(unsigned oldID, Node *node)
Remember a created node.
Definition: SceneResolver.cpp:47
bool Save(Serializer &dest) const override
Save to binary data. Return true if successful.
Definition: Scene.cpp:214
bool animationDirty_
Definition: AnimatedModel.h:201
BoundingBox(const Vector3 &min, const Vector3 &max) noexcept
Construct from minimum and maximum vectors.
Definition: BoundingBox.h:69
Definition: ShadowMapAllocator.h:63
ea::unique_ptr< dtTileCacheMeshProcess > meshProcessor_
Mesh processor used by Detour, in this case a 'pass-through' processor.
Definition: DynamicNavigationMesh.h:153
NavigationMesh * GetNavigationMesh() const
Definition: CrowdManager.h:152
2D particle.
Definition: ParticleEmitter2D.h:34
void SetMaxForce(float maxForce)
Definition: ConstraintMouse2D.cpp:68
Vector3 MoveAlongSurface(const Vector3 &start, const Vector3 &end, int queryFilterType, int maxVisited=3)
Try to move along the surface from one point to another using the crowd initialized query extent (bas...
Definition: CrowdManager.cpp:409
bool IsOutOfDate() const override
Returns true if plugin was modified on the disk and should be reloaded.
Definition: ScriptBundlePlugin.h:41
void DrawPoint(const b2Vec2 &p, float32 size, const b2Color &color) override
Draw a point.
Definition: PhysicsWorld2D.cpp:232
Vector3 padding_
Bounding box padding.
Definition: NavigationMesh.h:388
pugi::xpath_node_set * GetXPathNodeSet() const
Return pugixml xpath_node_set.
Definition: XMLElement.h:367
const ea::string & GetAbsoluteName() const override
Return absolute file name in file system.
Definition: File.cpp:358
void SetEnabled(bool enabled)
Set enabled flag. The object subscribes for events when enabled.
Definition: DirectionAggregator.cpp:57
void SetShadowIntensity(float intensity)
Definition: Light.cpp:379
void UpdateSlider()
Update slider knob position & size.
Definition: Slider.cpp:225
UI(Context *context)
Construct.
Definition: UI.cpp:97
Camera * GetCamera() const
Definition: Viewport.cpp:132
unsigned ToHash() const
Return hash value for HashSet & HashMap.
Definition: Matrix3x4.h:735
void InsertItem(unsigned index, UIElement *item, UIElement *parentItem=nullptr)
Insert item at a specific index. In hierarchy mode, the optional parameter will be used to determine ...
Definition: ListView.cpp:358
void SetAllowSleeping(bool enable)
Definition: PhysicsWorld2D.cpp:397
PhysicsWorld(Context *context)
Construct.
Definition: PhysicsWorld.cpp:193
Definition: TemplateNode.h:67
void UpdateIgnoredVertices()
Update array of ignored vertices.
Definition: TetrahedralMesh.cpp:1028
MountedDirectory(Context *context, const ea::string &directory, ea::string scheme=EMPTY_STRING)
Construct and open.
Definition: MountedDirectory.cpp:35
void ReleaseShaders()
Reset shader pointers.
Definition: Technique.cpp:158
SharedPtr< VertexBuffer > vertexBuffer_
Vertex buffer.
Definition: DecalSet.h:236
void SendMessages()
Send messages to connection for current frame.
Definition: ServerReplicator.cpp:233
int GetWidth() const
Definition: Text3D.cpp:488
IntVector2 touchOrigin_
Origin of the touch.
Definition: DirectionAggregator.h:141
Variant value_
Value.
Definition: Material.h:79
Vector3 ReNormalized(float minLength, float maxLength, const Vector3 &defaultValue=Vector3::ZERO, float eps=M_LARGE_EPSILON) const
Return normalized vector with length in given range.
Definition: Vector3.h:454
TriggerAnimator(Context *context)
Construct.
Definition: TriggerAnimator.cpp:34
Rect Projected(const Matrix4 &projection) const
Return projected by a 4x4 projection matrix.
Definition: BoundingBox.cpp:170
float r_
Red value.
Definition: Color.h:266
bool LoadRaw(Deserializer &source)
Load raw sound data.
Definition: Sound.cpp:216
BoundingBox boneBoundingBox_
Bounding box calculated from bones.
Definition: AnimatedModel.h:226
Orientation GetOrientation() const
Definition: ProgressBar.h:68
ea::vector< FileSelectorEntry > fileEntries_
File entries.
Definition: FileSelector.h:204
UpdateEvent
Definition: LogicComponent.h:33
bool tracksDirty_
Whether the animation state tracks are dirty and should be updated.
Definition: AnimationState.h:231
const ea::string & GetName() const
Definition: TileMapDefs2D.h:184
Font resource.
Definition: Font.h:49
void SetRadius(float radius)
Definition: OffMeshConnection.cpp:87
void SetInputMap(InputMap *inputMap)
Set input map.
Definition: MoveAndOrbitController.cpp:70
bool occlusion_
Render occlusion flag.
Definition: Material.h:378
bool Seek(Rml::FileHandle file, long offset, int origin) override
Seeks to a point in a previously opened file.
Definition: RmlFile.cpp:66
virtual b2JointDef * GetJointDef()
Return joint def.
Definition: Constraint2D.h:91
virtual void ApplyNodeWorldScale()=0
Apply Node world scale.
bool InitializeNodes(IKNodeCache &nodeCache) override
Definition: IKLegSolver.cpp:106
bool Load(const XMLElement &element, const TileMapInfo2D &info)
Load from XML element.
Definition: TmxFile2D.cpp:97
SharedPtr< Image > nextSibling_
Next texture array or cube map image.
Definition: Image.h:237
unsigned subpassIndex_
Index of subpass. Exact meaning depends on actual type of owner pass.
Definition: BatchStateCache.h:116
Template implementation of the variant attribute accessor.
Definition: Serializable.h:147
ParticleGraphPin WithType(VariantType type) const
Get a copy of the pin setup but with a different value type.
Definition: ParticleGraphPin.cpp:61
~CollisionShape2D() override
Destruct.
Definition: CollisionShape2D.cpp:46
Depth bias parameters. Used both by lights (for shadow mapping) and materials.
Definition: Light.h:87
BoundingBox worldBoundingBox_
World-space bounding box.
Definition: Drawable.h:432
static Resource * LoadFromCache(Context *context, StringHash type, const ea::string &name)
Load resource by reference.
Definition: Resource.cpp:107
void CollectEdges(ea::vector< ea::pair< unsigned, unsigned >> &edges)
Collect all edges in the mesh, e.g. for debug rendering.
Definition: TetrahedralMesh.cpp:158
MountPoint * GetMountPoint(unsigned index) const
Get mount point by index.
Definition: VirtualFileSystem.cpp:214
float nearDistance_
Near distance.
Definition: SoundSource3D.h:93
bool lineAntiAlias_
Line antialiasing flag.
Definition: Material.h:376
virtual void Update(float timeStep)
Called on scene update, variable timestep.
Definition: LogicComponent.cpp:51
void SetNorthNeighbor(Terrain *north)
Definition: Terrain.cpp:257
virtual void DrawDebugGeometry(DebugRenderer *debug, bool depthTest)
Visualize the component as debug geometry.
Definition: Component.cpp:111
void SetMaxLayers(unsigned maxLayers)
Definition: DynamicNavigationMesh.cpp:503
SDL_Joystick * joystick_
SDL joystick.
Definition: Input.h:129
LightBakingQuality quality_
Quality.
Definition: LightBaker.h:101
unsigned GetUpdateFps() const
Definition: Network.h:94
unsigned numGeometries_
Total number of geometries in the frame (excluding shadow casters).
Definition: RenderPipelineDefs.h:264
void SetBullet(bool bullet)
Definition: RigidBody2D.cpp:232
void SetNormal(const Vector3 &normal)
Set normal from 3-vector.
Definition: ModelView.h:77
double data_[3]
Components.
Definition: TetrahedralMesh.h:110
bool Load(Deserializer &source)
Read from a stream. Return true if successful.
Definition: Skeleton.cpp:42
Vector3 position_
Constraint position.
Definition: Constraint.h:209
static const ApplicationFlavor Universal
Universal flavor matches any pattern.
Definition: ApplicationFlavor.h:52
b2ChainShape chainShape_
Chain shape.
Definition: CollisionChain2D.h:80
bool SetVariable(const ea::string &name, bool value)
Add/Set a bool variable. Return true if successful.
Definition: XMLElement.cpp:1174
ea::vector< SoundSource * > soundSources_
Sound sources.
Definition: Audio.h:178
bool IsInf(T value)
Check whether a floating point value is positive or negative infinity.
Definition: MathDefs.h:127
float d_
Plane constant.
Definition: Plane.h:133
const Vector2 & GetProjectionOffset() const
Definition: Camera.h:249
SharedPtr< FiniteTimeAction > Reverse() const override
Create reversed action.
Definition: Move.cpp:494
void Update(float timeStep)
Update follower clock within one tick of leader clock.
Definition: TickSynchronizer.cpp:96
b2BodyDef bodyDef_
Box2D body define.
Definition: RigidBody2D.h:204
static void RegisterObject(Context *context)
Definition: Animation.cpp:91
int orderInLayer_
Order in layer.
Definition: Drawable2D.h:148
void Resume(Archive *input, bool differentVersion) override
Called on ResumeApplication().
Definition: SceneViewerApplication.cpp:102
int width_
Width.
Definition: TmxFile2D.h:81
unsigned size_
File size.
Definition: PackageFile.h:37
constexpr FlagSet & operator&=(const Enum value)
Bitwise AND against Enum value.
Definition: FlagSet.h:76
Render pipeline frame statistics.
Definition: RenderPipelineDefs.h:257
Node * InstantiateReference(Node *parentNode, bool inplace=false)
Definition: PrefabResource.cpp:51
BakedLight(Light *light)
Construct valid.
Definition: BakedLight.h:41
Definition: FreeFlyController.h:32
float minAngle_
Minimal angle between billboard normal and look-at direction.
Definition: BillboardSet.h:193
unsigned timeStepSmoothing_
How many frames to average for the smoothed timestep.
Definition: Engine.h:182
~Animation() override
Destruct.
void SetFixedScreenSize(bool enable)
Definition: BillboardSet.cpp:329
float y_
Y coordinate.
Definition: Vector2.h:430
SharedPtr< JSONFile > loadJSONFile_
JSON file used while loading.
Definition: SpriteSheet2D.h:100
static const ea::map< ea::string, JSONValue > emptyObject
Empty JSON object.
Definition: JSONValue.h:302
unsigned loadedResources_
Loaded resources.
Definition: Scene.h:80
void SetShadowed(bool enable)
Definition: VertexBuffer.cpp:135
bool IsInside(const Vector3 &point) const
Check whether a point is inside.
Definition: Zone.cpp:240
BlendMode GetBlendMode() const
Definition: BorderImage.h:111
Parameters of rendered 3D text.
Definition: TextRenderer3D.h:37
Quaternion GetRotation() const
Get Rotation.
Definition: Cone.cpp:97
void InitializeView(RenderPipelineView *view) override
Initialize render pass before using it in view.
Definition: BloomPass.cpp:57
unsigned selectionStart_
Selection start.
Definition: Text.h:268
JSONValue & operator=(bool rhs)
Assign from a boolean.
Definition: JSONValue.cpp:60
void CalculateLocalBoundingBox()
Definition: AnimatedModel.cpp:773
Vector2 TileIndexToPosition(int x, int y) const
Convert tile index to position.
Definition: TileMap2D.cpp:166
const BiasParameters & GetShadowBias() const
Definition: Light.h:358
Constraint2D * GetOtherConstraint() const
Definition: ConstraintGear2D.h:60
float YawAngle() const
Definition: Quaternion.cpp:218
void SetBoundingBox(const BoundingBox &box)
Set local-space bounding box.
Definition: StaticModel.cpp:357
void SetEffectShadowOffset(const IntVector2 &offset)
Definition: Text.cpp:388
void SetRotation(const Matrix3 &rotation)
Set rotation elements from a 3x3 matrix.
Definition: Matrix4.h:490
Geometry * GetLodGeometry(unsigned batchIndex, unsigned level) override
Return the geometry for a specific LOD level.
Definition: CustomGeometry.cpp:139
void SetMaxSuspensionForce(float force)
Set max suspension force.
float GetRadius() const
Definition: OffMeshConnection.h:71
void ResetSuspension()
Reset all suspension.
Definition: RaycastVehicle.cpp:482
void SetDefaultColor()
Restore UI element's default color.
Definition: UIBatch.cpp:62
void AddSelection(unsigned index)
Add item to the selection, multiselect mode only.
Definition: ListView.cpp:596
void Update(DrawableProcessor *drawableProcessor, const LightProcessorCallback *callback)
Update light in worker thread.
Definition: LightProcessor.cpp:192
bool isDirty_
Cleanliness state of the data.
Definition: Microphone.h:122
ApplicationState * GetCachedState(StringHash type) const
Get cached state if present.
Definition: StateManager.cpp:429
unsigned oldPipelineStateHash_
Previous pipeline state hash.
Definition: DefaultRenderPipeline.h:92
void SetDeadZone(float deadZone)
Set dead zone to mitigate axis drift.
Definition: DirectionAggregator.cpp:84
TrailPoint()=default
Construct a zero-initialized TrailPoint.
static void RegisterObject(ParticleGraphSystem *context)
Register particle node factory.
Definition: BurstTimer.cpp:38
ea::vector< ea::string > GetAttributeNames() const
Return names of all attributes.
Definition: XMLElement.cpp:790
bool IsInsideLocal(const Vector3 &point) const
Determines if the given local space point is within the model geometry.
Definition: StaticModel.cpp:336
Component * GetComponent(StringHash type) const
Return component in the same scene node by type. If there are several, returns the first.
Definition: Component.cpp:177
void ApplyWorldTransform(const Vector3 &newWorldPosition, const Quaternion &newWorldRotation)
Apply new world transform after a simulation step. Called internally.
Definition: RigidBody.cpp:677
int Refs() const noexcept
Return the object's reference count, or 0 if null pointer or if object has expired.
Definition: Ptr.h:554
ea::string GetBase64() const
Return base64-encoded result.
Definition: Base64Archive.cpp:37
ActionBuilder & Repeat(unsigned times)
Repeat current action.
Definition: ActionBuilder.cpp:434
void SetRotation(Quaternion value)
Set Rotation.
Definition: Circle.cpp:84
void DrawDebugGeometry(DebugRenderer *debug, bool depthTest) override
Visualize the component as debug geometry.
Definition: SoundSource3D.cpp:71
Repeat inner action forever.
Definition: Repeat.h:72
WeakPtr< Node > containerNode_
Node that keeps actual Text3D components.
Definition: TextRenderer3D.h:163
float LengthSquared() const
Definition: Vector2.h:321
Vector2 axis_
Axis.
Definition: ConstraintWheel2D.h:103
void SetScale(const Vector3 &scale)
Set scaling elements.
Definition: Matrix3.h:186
bool IsInside(const Vector3 &point) const
Determines if the given world space point is within the model geometry.
Definition: StaticModel.cpp:327
int GetInt() const
Return int or zero on type mismatch. Floats and doubles are converted.
Definition: Variant.h:1306
Color effectColor_
Effect color.
Definition: Text.h:280
bool ContainsExclusive(const T &value) const
Return whether the range contains a value (excluding borders).
Definition: NumericRange.h:55
void SetLodDistance(float distance)
Definition: Geometry.cpp:168
SharedPtr< ParticleGraph > init_
Initialization graph.
Definition: ParticleGraphLayer.h:150
~CollisionCircle2D() override
Destruct.
Vector4 cubemapCenter_
Position of cubemap center. W component indicates whether it is initialized.
Definition: ReflectionProbeData.h:44
Reflection probe manager.
Definition: ReflectionProbe.h:74
void SetFaceCameraMode(int value)
Set Face Camera Mode.
Definition: RenderBillboard.cpp:90
void SetAnchor(const Vector2 &anchor)
Definition: ConstraintFriction2D.cpp:55
Variant(int value)
Construct from integer.
Definition: Variant.h:494
ParticleGraphEmitter(Context *context)
Construct.
Definition: ParticleGraphEmitter.cpp:37
Vector3 Column(unsigned j) const
Return matrix column.
Definition: Matrix3x4.h:705
Vector4 blendWeights_
Blend weights for skeletal animations. Must be in range [0, 1].
Definition: ModelView.h:68
Tag to disable population of hash reversal map.
Definition: StringHash.h:41
void HandleMessageAcknowledged(StringHash eventType, VariantMap &eventData)
Handle events that dismiss the message box.
Definition: MessageBox.cpp:136
void InitializeOnServer() override
Definition: StaticNetworkObject.cpp:66
signed char * GetRepeat() const
Return loop start.
Definition: Sound.h:80
float minObjectScale_
Definition: LightBakingSettings.h:47
void Unload() override
Called on UnloadPlugin().
Definition: SceneViewerApplication.cpp:52
void DrawDebugGeometry()
Add debug geometry to the debug renderer.
Definition: TileMap2D.cpp:102
float Update(float timeStep, const NetworkTime &targetTime)
Update time, result should be as close to target as possible.
Definition: NetworkTime.cpp:83
void SetTranslation(Vector3 value)
Set Translation.
Definition: Sphere.cpp:81
Matrix2 Transpose() const
Return transpose.
Definition: Matrix2.h:163
int height_
Height.
Definition: TmxFile2D.h:83
void SetFixedSize(const IntVector2 &size)
Set fixed size.
Definition: UIElement.cpp:675
Definition: AmbientOcclusionPass.h:39
unsigned GetMaxObstacles() const
Definition: DynamicNavigationMesh.h:92
static TaskFunction WrapTask(T &&task)
Definition: WorkQueue.h:351
void SetObstacleAvoidanceParams(unsigned obstacleAvoidanceType, const CrowdObstacleAvoidanceParams ¶ms)
Set the params for the specified obstacle avoidance type.
Definition: CrowdManager.cpp:391
static float SolveQuadratic(const Vector3 &abc)
Calculate most positive root of quadratic or linear equation a*x^2 + b*x + c = 0.
Definition: TetrahedralMesh.cpp:344
VariantVector knots_
Knots on the spline.
Definition: Spline.h:126
Definition: LimitVelocityInstance.h:34
Vector3 GetOffset() const
Get wheel node position relative to connection point.
Vector3 SignedScale(const Matrix3 &rotation) const
Return the scaling part with the sign. Reference rotation matrix is required to avoid ambiguity.
Definition: Matrix3.h:212
SharedPtr< Geometry > spotLightGeometry_
Spot light volume geometry.
Definition: Renderer.h:348
TileMapLayer2D(Context *context)
Construct.
Definition: TileMapLayer2D.cpp:39
unsigned char GetGeometryRenderFlags(unsigned drawableIndex) const
Definition: DrawableProcessor.h:215
float GetDoubleClickInterval() const
Definition: UI.h:206
~ArchiveBlock()
Destruct.
Definition: Archive.cpp:32
void Render(const SharedRenderPassState &sharedState) override
Execute render commands.
Definition: AutoExposurePass.cpp:95
float GetAttributeAnimationSpeed(const ea::string &name) const
Return attribute animation speed.
Definition: Animatable.cpp:436
virtual void PrepareToRemove()
This component is about to be removed by the authority of the server.
Definition: NetworkCallbacks.h:108
unsigned GetMorphRangeStart(unsigned bufferIndex) const
Return vertex buffer morph range start.
Definition: Model.cpp:771
SharedPtr< ActionState > StartAction(Object *target) override
Create new action state from the action.
Definition: Ease.cpp:314
const TmxLayer2D * GetTmxLayer() const
Return tmx layer.
Definition: TileMapLayer2D.h:73
IndexBuffer * GetIndexBuffer() const
Definition: Geometry.h:91
const StringVector & GetUpdateEvents() const
Return update events.
Definition: Scene.h:150
Quaternion(const Vector3 &xAxis, const Vector3 &yAxis, const Vector3 &zAxis) noexcept
Construct from orthonormal axes.
Definition: Quaternion.h:126
MaterialQuality qualityLevel_
Quality level.
Definition: Material.h:100
void RemoveAllInstanceNodes()
Remove all instance scene nodes.
Definition: StaticModelGroup.cpp:302
float GetDistanceToWall(const Vector3 &point, float radius, const Vector3 &extents=Vector3::ONE, const dtQueryFilter *filter=nullptr, Vector3 *hitPos=nullptr, Vector3 *hitNormal=nullptr)
Return distance to wall from a point. Maximum search radius must be specified.
Definition: NavigationMesh.cpp:763
InnerIterator inner_
Inner iterator (current).
Definition: MultiVector.h:147
Vector2 GetCharPosition(unsigned index)
Definition: Text3D.cpp:518
void Close()
Close the log file.
Definition: Log.cpp:395
Sphere(const Vector3 ¢er, float radius) noexcept
Construct from center and radius.
Definition: Sphere.h:67
bool InsideGeometry(const void *vertexData, unsigned vertexSize, unsigned vertexStart, unsigned vertexCount) const
Return whether ray is inside non-indexed geometry.
Definition: Ray.cpp:424
Localization subsystem. Stores all the strings in all languages.
Definition: Localization.h:32
void RemoveObstacle(Obstacle *obstacle, bool silent=false)
Used by Obstacle class to remove itself from the tile cache, if 'silent' an event will not be raised.
Definition: DynamicNavigationMesh.cpp:886
SharedPtr< FiniteTimeAction > Reverse() const override
Create reversed action.
Definition: Ease.cpp:285
void SetRadiusThickness(float value)
Set Radius Thickness.
Definition: Circle.cpp:76
Graphics(Context *context)
Construct.
Definition: Graphics.cpp:111
GraphPinRef< GraphExitPin > GetOrAddExit(const ea::string_view name)
Get or add exit pin.
Definition: GraphNode.cpp:212
File entry within the package file.
Definition: PackageFile.h:32
Definition: IKHeadSolver.h:91
bool SaveFile(const FileIdentifier &fileName) const override
Save the image to a file. Format of the image is determined by file extension. JPG is saved with maxi...
Definition: Image.cpp:656
GeometryIDToObjectMappingVector Initialize(unsigned objectIndex, StaticModel *sourceObject, Material *bakingMaterial, unsigned baseGeometryId, ea::span< const Vector2 > multiTapOffsets, const Vector2 &texelSize, const Vector4 &scaleOffset, const Vector2 &scaledAndConstBias)
Initialize. Return mapping for each batch.
Definition: StaticModelForLightmap.cpp:51
const VariantMap & GetGlobalVars() const
Return all global variables.
Definition: Context.h:110
Signal< void(const CommonFrameInfo &frameInfo)> OnUpdateBegin
Definition: RenderPipelineDefs.h:280
unsigned GetData(signed char *dest, unsigned numBytes) override
Produce sound data into destination. Return number of bytes produced. Called by SoundSource from the ...
Definition: OggVorbisSoundStream.cpp:72
ea::string animationName_
Animation name.
Definition: AnimatedSprite2D.h:145
void HandleTextInput(StringHash eventType, VariantMap &eventData)
Handle text input event.
Definition: UI.cpp:1940
InterpolationMode GetInterpolationMode() const
Definition: Spline.h:78
void SetView(Scene *scene, Camera *camera, bool ownScene=true)
Define the scene and camera to use in rendering. When ownScene is true the View3D will take ownership...
Definition: View3D.cpp:95
UIElement * GetElementAt(const IntVector2 &position, bool enabledOnly=true)
Definition: UI.cpp:725
unsigned bufferLengthMSec_
Clip buffer size in milliseconds.
Definition: Audio.h:164
BaseAction * GetAction() const
Gets the action.
Definition: ActionState.h:55
SharedPtr< DefaultUIBatchStateCache > batchStateCache_
Cached pipeline states.
Definition: UI.h:407
WeakPtr< Graphics > graphics_
Graphics subsystem.
Definition: Renderer.h:337
ea::list< ea::pair< ea::shared_array< signed char >, unsigned > > buffers_
Buffers and their sizes.
Definition: BufferedSoundStream.h:62
Vector2 anchor_
Anchor.
Definition: ConstraintFriction2D.h:73
float lastTimeStep_
Last scene timestep.
Definition: ParticleGraphEmitter.h:140
ea::vector< float > & GetLodErrors()
Return geometrical error array.
Definition: TerrainPatch.h:102
UIElement * GetChild(unsigned index) const
Definition: UIElement.cpp:1672
const VariantMap & GetGlobalVars() const
Definition: Object.cpp:347
float MaxRGB() const
Return the largest value of the RGB components.
Definition: Color.cpp:198
void SetSubStepping(bool enable)
Definition: PhysicsWorld2D.cpp:412
unsigned GetNumBackgroundLoadResources() const
Definition: ResourceCache.cpp:602
ea::hash_set< ea::string > allowedPaths_
Allowed directories.
Definition: FileSystem.h:142
void ApplyAttributes() override
Apply attribute changes that can not be applied immediately. Called after scene load or a network upd...
Definition: AnimationController.cpp:423
static const Vector2 LEFT
(-1,0) vector.
Definition: Vector2.h:435
Variant & GetOrAddProperty(const ea::string_view name)
Get or add node property.
Definition: GraphNode.cpp:108
Definition: DynamicNavigationMesh.h:43
BoundingBox CalculateWorldBoundingBox() const
Return world bounding box of the terrain. Calculations are not cached.
Definition: Terrain.cpp:830
bool GetUseSystemShapes() const
Definition: Cursor.h:129
RenderSurface * GetRenderSurface(unsigned index=0) const
Return render surface for given index.
Definition: Texture.h:162
bool InitializeSession(const VRSessionParameters ¶ms) override
Definition: OpenXR.cpp:1452
void SetFadeInDuration(float durationInSeconds)
Set fade in animation duration;.
Definition: StateManager.cpp:567
int width_
Cube width.
Definition: ImageCube.h:94
Vector3 velocity_
Velocity.
Definition: ParticleEmitter.h:36
unsigned GetNumCompressedLevels() const
Definition: Image.h:176
float startParticleSizeVariance_
Start particle size variance.
Definition: ParticleEffect2D.h:299
auto && operator*() const
Dereference.
Definition: MultiVector.h:67
VariantType requestedValueType_
Value type (float, vector3, etc).
Definition: ParticleGraphPin.h:152
WeakPtr< Object > target_
Target object.
Definition: ValueAnimationInfo.h:86
const Vector3 & GetVector3() const
Return Vector3 or zero on type mismatch.
Definition: Variant.h:1418
SharedPtr< ParticleEffect2D > effect_
Particle effect.
Definition: ParticleEmitter2D.h:154
Technique * GetTechnique(unsigned index) const
Definition: Material.cpp:891
@ LM_FREE
No layout operations will be performed.
Definition: UIElement.h:88
void ScheduleFocusById(const ea::string &elementId)
Schedule element focus by ID on next update. This is useful when focus-ability is not updated yet.
Definition: RmlUIComponent.cpp:200
SharedPtr< Geometry > occlusionGeometry_
Geometry that is used for occlusion.
Definition: TerrainPatch.h:138
void SetMaxRotationSpeed(float speed)
Definition: ParticleEffect.cpp:575
virtual void SerializeInBlock(Archive &archive)
Serialize content from/to archive. May throw ArchiveException.
Definition: Object.cpp:95
void RemoveDrawable(Drawable *drawable, bool resetOctant=true)
Remove a drawable object from this octant.
Definition: Octree.h:69
static void RegisterObject(ParticleGraphSystem *context)
Register particle node factory.
Definition: LimitVelocity.cpp:38
void SerializeInBlock(Archive &archive) override
Definition: RenderPath.cpp:83
float timeToLive_
Maximum time to live in seconds (0 = infinite).
Definition: DecalSet.h:94
bool IsSRGB() const
Definition: Image.h:126
void Raise() const
Raises window if it was minimized.
Definition: Graphics.cpp:503
bool dragSlider_
Internal flag of whether the slider is being dragged.
Definition: Slider.h:120
Definition: DataChannelConnection.h:44
ea::shared_array< unsigned char > rawVertexData_
Raw vertex data override.
Definition: Geometry.h:171
ea::array< XrCompositionLayerProjectionView, static_cast< size_t >(VREye ::Count) > base_type
Base array type.
Definition: FlagSet.h:275
ea::vector< UIBatch > batches_
UI rendering batches.
Definition: UI.h:409
ApplyForce(Context *context)
Construct ApplyForce.
Definition: ApplyForce.cpp:43
void BeginNetworkFrame(NetworkFrame currentFrame, float overtime)
Begin network frame. Overtime indicates how much time has passed since actual frame start time.
Definition: ServerReplicator.cpp:220
void HandleEffectReloadFinished(StringHash eventType, VariantMap &eventData)
Handle live reload of the particle effect.
Definition: ParticleEmitter.cpp:610
const FocusParameters & GetShadowFocus() const
Definition: Light.h:366
const ea::string & GetBakeLabel() const
Return baking status.
Definition: LightBaker.cpp:274
void Define(float fov, float aspectRatio, float zoom, float nearZ, float farZ, const Matrix3x4 &transform=Matrix3x4::IDENTITY)
Define with projection parameters and a transform matrix.
Definition: Frustum.cpp:75
void SetLodLevel(unsigned lodLevel)
Definition: CollisionShape.cpp:801
ApplicationState(Context *context)
Construct.
Definition: StateManager.cpp:23
bool IsStarted() const
Return whether thread exists.
Definition: Thread.h:59
void Reset(InterfaceType *ptr=nullptr) noexcept
Reset with another pointer.
Definition: Ptr.h:521
BoundingBox GetWorldBoundingBox() const
Return bounding box in world space.
Definition: LightProbeGroup.cpp:102
ParticleGraphNodeInstance * CreateInstanceAt(void *ptr, ParticleGraphLayerInstance *layer) override
Place new instance at the provided address.
Definition: EmitterScale.cpp:59
IKTrigonometricChain legChain_
Definition: IKLegSolver.h:126
b2PolygonShape polygonShape_
Polygon shape.
Definition: CollisionPolygon2D.h:74
void SetQueryFilterTypesAttr(const VariantVector &value)
Set all the query filter types configured in the crowd based on the corresponding attribute.
Definition: CrowdManager.cpp:295
bool networkUpdate_
Network update queued flag.
Definition: Component.h:143
float GetMaxDistance() const
Return max distance between two points.
Definition: RaytracerScene.h:168
NetworkTime GetServerTime() const
Return prediced exact server time.
Definition: ClientReplica.h:73
bool isEntered_
Last known state: true in entered.
Definition: TriggerAnimator.h:94
void SetFirstBoneName(const ea::string &name)
Definition: IKLimbSolver.h:26
void DecodeToUnicode()
UTF8 to Unicode.
Definition: Text.cpp:285
void SetEchoCharacter(unsigned c)
Definition: LineEdit.cpp:514
ParticleGraphNode * node_
Static assert to simplify compile type error description.
Definition: TemplateNode.h:107
bool connectToComponentCalled_
Is ConnectToComponent already called for the current node.
Definition: MoveAndOrbitController.h:128
LoopMode2D GetLoopMode() const
Definition: AnimatedSprite2D.h:99
Vector-like collection that can be safely filled from different WorkQueue threads simultaneously.
Definition: WorkQueue.h:75
Sprite2D * GetSprite() const
Return sprite.
Definition: ParticleEffect2D.h:138
Debug utility that takes snapshot of current frame.
Definition: RenderPipelineDebugger.h:93
FontFace * GetFace(float pointSize)
Return font face. Pack and render to a texture if not rendered yet. Return null on error.
Definition: Font.cpp:139
void SetNumViewports(unsigned num)
Definition: RenderSurface.cpp:49
Vector4 Bb_
Dot product with (Nx*Ny, Ny*Nz, Nz*Nz, Nz*Nx), blue channel.
Definition: SphericalHarmonics.h:297
bool IsOutOfDate() const override
Returns true if plugin was modified on the disk and should be reloaded.
Definition: ModulePlugin.cpp:218
~ShaderParameterAnimationInfo() override
Destruct.
~ConstraintDistance2D() override
Destruct.
void PauseSoundType(const ea::string &type)
Pause playback of specific sound type. This allows to suspend e.g. sound effects or voice when the ga...
Definition: Audio.cpp:276
float elapsedTime_
Amount of time that has elapsed while moving.
Definition: SplinePath.h:140
IntVector2 position_
Window position.
Definition: Graphics.h:306
WorkQueue * workQueue_
Definition: BatchCompositor.h:286
unsigned long long GetUInt64(const ea::string &name) const
Return an unsigned long long integer attribute, or zero if missing.
Definition: XMLElement.cpp:866
Variant(double value)
Construct from a double.
Definition: Variant.h:536
Component that drives an AnimatedModel's animations.
Definition: AnimationController.h:140
constexpr bool operator==(const StringHash &rhs) const
Test for equality with another hash.
Definition: StringHash.h:91
void * GetOwner() const
Return owner.
Definition: ValueAnimation.h:117
pugi::xml_node_struct * node_
Pugixml node.
Definition: XMLElement.h:329
float posSensitivity_
Positive sensitivity value.
Definition: AxisAdapter.h:74
const float volume_
Volume of the sound.
Definition: RmlEventListeners.h:93
Particle emitter component.
Definition: ParticleEmitter.h:54
void SetShadowFocus(const FocusParameters ¶meters)
Definition: Light.cpp:368
bool remapMousePos_
Flag indicating that this component remaps mouse position on to a sibling StaticModel if present.
Definition: RmlCanvasComponent.h:79
float detailSampleDistance_
Detail sampling distance.
Definition: NavigationMesh.h:384
ea::string name_
Bone or scene node name.
Definition: AnimationTrack.h:57
void MarkPipelineStateHashDirty()
Mark pipeline state hash as dirty.
Definition: PipelineStateTracker.cpp:78
void UpdateSourceBatches() override
Update source batches.
Definition: ParticleEmitter2D.cpp:200
VectorBuffer contacts_
Temporary buffer with contact data.
Definition: PhysicsWorld2D.h:311
dtTileCache * tileCache_
Detour tile cache instance that works with the nav mesh.
Definition: DynamicNavigationMesh.h:147
void TestDrawables(Drawable **start, Drawable **end, bool inside) override
Intersection test for drawables.
Definition: LightProcessorQuery.cpp:62
static void RegisterObject(Context *context)
Definition: ConstraintMouse2D.cpp:43
Vector2 ReNormalized(float minLength, float maxLength, const Vector2 &defaultValue=Vector2::ZERO, float eps=M_LARGE_EPSILON) const
Return normalized vector with length in given range.
Definition: Vector2.h:382
ea::hash_set< ea::string > loggersHidden_
Set of loggers to be omitted from rendering.
Definition: Console.h:129
SharedPtr< UIElement > rootModalElement_
UI root modal element.
Definition: UI.h:401
@ FM_RESETFOCUS
Resets focus when clicked.
Definition: UIElement.h:77
void SetStartScale(float startScale)
Definition: RibbonTrail.cpp:333
@ FM_FOCUSABLE
Is focusable.
Definition: UIElement.h:79
ea::vector< LightProbeGroup * > GetUniqueLightProbeGroups(const IntVector3 &chunkIndex) override
Return unique light probe groups within chunk. Order of groups must stay the same for each call.
Definition: BakedSceneCollector.cpp:233
Variant(const Vector4 &value)
Construct from a Vector4.
Definition: Variant.h:554
Geometry(Context *context)
Construct with one empty vertex buffer.
Definition: Geometry.cpp:40
float GetRowHeight() const
Return row height.
Definition: FontFace.h:94
unsigned checksum_
File checksum.
Definition: PackageFile.h:39
const TileMapInfo2D & GetInfo() const
Definition: TileMap2D.h:63
void SetSpeedVariance(float speedVariance)
Set speed variance.
Definition: ParticleEffect2D.cpp:316
~Localization() override
Destruct. Free all resources.
void HandleMouseButtonDown(StringHash eventType, VariantMap &eventData)
Handle mouse button down event.
Definition: RmlUI.cpp:522
void SetNonThreadedWorkMs(int ms)
Set how many milliseconds maximum per frame to spend on low-priority work, when there are no worker t...
Definition: WorkQueue.h:160
void AddKeyFrame(const KeyFrame &keyFrame)
Append keyframe preserving container order.
Definition: KeyFrameSet.h:48
Scene for ray tracing.
Definition: RaytracerScene.h:122
void SetOccludee(bool enable)
Definition: Drawable.cpp:233
bool SetMatrix4(const ea::string &name, const Matrix4 &value)
Set a Matrix4 attribute.
Definition: XMLElement.cpp:612
void SetFontAttr(const ResourceRef &value)
Set font attribute.
Definition: Text3D.cpp:574
Definition: ReplicationManager.h:93
bool IsUnorderedAccessSupportedInCurrentBlock() const final
Definition: ArchiveBase.h:193
void Insert(unsigned pos, JSONValue value)
Insert an JSON value at position.
Definition: JSONValue.cpp:290
float GetSizeAdd() const
Definition: ParticleEffect.h:390
ea::string loadingPercentStyle_
ProgressBar text style.
Definition: ProgressBar.h:110
void QueueViewport(RenderSurface *renderTarget, Viewport *viewport)
Queue a viewport for rendering. Null surface means backbuffer.
Definition: Renderer.cpp:531
float GetFloat(float defaultValue=0.0f) const
Return float value.
Definition: JSONValue.h:223
unsigned zoneMask_
Zone mask of light probe group.
Definition: LightProbeGroup.h:212
void RenderFrame(StringHash eventType, VariantMap &eventData)
Render message box ui.
Definition: SystemMessageBox.cpp:79
unsigned position_
Size of required attribute buffer.
Definition: ParticleGraphMemory.h:96
void WriteColor(XMLElement &element, const ea::string &name, const Color &color) const
Write Color.
Definition: ParticleEffect2D.cpp:556
float GetEdgeMaxError() const
Definition: NavigationMesh.h:262
ea::vector< RigidBody * > rigidBodies_
Rigid bodies in the world.
Definition: PhysicsWorld.h:359
Array2D(int width, int height, const T &value)
Construct with given size and initial value.
Definition: Array2D.h:135
Variant(const VariantBuffer &value)
Construct from a buffer.
Definition: Variant.h:584
TextureCube * reflectionMap_
Reflection map, should never be null.
Definition: ReflectionProbeData.h:39
bool clearSelectionOnDefocus_
Clear selection on defocus flag.
Definition: ListView.h:202
Displays rendering stats and profiling information.
Definition: DebugHud.h:46
Timer elapsedTime_
Elapsed time since program start.
Definition: Timer.h:129
Material * GetCustomMaterial() const
Definition: StaticSprite2D.cpp:230
bool resizePopup_
Resize popup flag.
Definition: DropDownList.h:122
unsigned ToHash() const
Return hash value for HashSet & HashMap.
Definition: Matrix3.h:314
Quaternion GetWheelRotation(int wheel) const
Get wheel rotation relative to RigidBody.
Definition: RaycastVehicle.cpp:502
Vector3 position_
Position.
Definition: CustomGeometry.h:35
void RenderUi(StringHash eventType, VariantMap &eventData)
Render system ui.
Definition: Console.cpp:356
Serializable * GetValue() const
Get resource value.
Definition: SerializableResource.cpp:58
Quaternion GetFaceCameraRotation(const Vector3 &position, const Quaternion &rotation, FaceCameraMode mode, float minAngle=0.0f)
Return a world rotation for facing a camera on certain axes based on the existing world rotation.
Definition: Camera.cpp:568
auto operator->() const
Dereference.
Definition: MultiVector.h:70
ea::string name_
Name.
Definition: GraphNode.h:179
static const Color GREEN
Opaque green color.
Definition: Color.h:283
Mutex bufferMutex_
Mutex for buffer data.
Definition: BufferedSoundStream.h:66
Plugin that is loaded from a native or managed dynamic library.
Definition: ModulePlugin.h:32
LogLevel GetLevel() const
Definition: Log.h:168
void SetTextEffect(TextEffect textEffect)
Definition: Text3D.cpp:286
const ea::string & GetProperty(const ea::string &name) const
Return property.
Definition: TileMapDefs2D.cpp:180
FocusMode GetFocusMode() const
Definition: UIElement.h:631
bool OnDragDropTest(UIElement *source) override
React to drag and drop test. Return true to signal that the drop is acceptable.
Definition: LineEdit.cpp:163
void SetAngle(float angle)
Definition: CollisionBox2D.cpp:91
Node * SpawnExact(Scene *scene) const
Spawn exact node in the scene. May fail.
Definition: PackedSceneData.cpp:52
IntVector2 dragBeginSumPos
Drag start position.
Definition: UI.h:300
void SetEnabled(bool enabled)
Definition: RenderPass.h:54
ea::vector< QueuedTextElement > queuedTextNodes_
Text elements added during current frame.
Definition: TextRenderer3D.h:165
Vector3 Project(const Vector3 &point) const
Project a point on the plane.
Definition: Plane.h:100
Definition: RenderMeshInstance.h:52
bool IsInf() const
Return whether any element is Inf.
Definition: Quaternion.h:432
void SetFarDistance(float distance)
Definition: SoundSource3D.cpp:115
void Load() override
Definition: SceneViewerApplication.cpp:48
double GetDouble(double x, double y, double z, int repeat=NumPer) const
Return noise value as double.
Definition: PerlinNoise.cpp:39
bool IsRendered() const
Returns true if thus UI is already rendered in this frame.
Definition: UI.h:284
Scene * GetScene() const
Return the scene the node belongs to.
Definition: Component.cpp:144
bool Load(const unsigned char *fontData, unsigned fontDataSize, float pointSize) override
Load font face.
Definition: FontFaceFreeType.cpp:95
Vector2 GetVector2(const Vector2 &min, const Vector2 &max)
Return random 2D vector in 2D volume.
Definition: RandomEngine.cpp:177
IntVector2 position_
Position.
Definition: UIElement.h:847
bool enabled_
Enabled flag.
Definition: BillboardSet.h:54
Placeholder that represents any empty object as default value in SerializeOptionalValue.
Definition: ArchiveSerializationBasic.h:210
b2JointDef * GetJointDef() override
Return joint def.
Definition: ConstraintPrismatic2D.cpp:158
bool looped_
Definition: AnimationState.h:237
const StringVector & GetLinkedPlugins()
Return names of all linked plugins.
virtual Variant GetInstanceDefault(const ea::string &name) const
(Internal use) Get instance-level default value.
Definition: Serializable.cpp:664
void RemoveAllKeyFrames()
Remove all keyframes.
Definition: KeyFrameSet.h:60
float rotationDelta_
Rotation delta.
Definition: ParticleEmitter2D.h:48
SharedPtr< PipelineState > CreateBatchPipelineState(const BatchStateCreateKey &key, const BatchStateCreateContext &ctx, const PipelineStateOutputDesc &outputDesc) override
Definition: PipelineStateBuilder.cpp:89
unsigned ToHash() const
Return hash value for HashSet & HashMap.
Definition: Vector2.h:418
ea::vector< Bone > & GetModifiableBones()
Return modifiable bones.
Definition: Skeleton.h:128
bool FlipVertical()
Flip image vertically. Return true if successful.
Definition: Image.cpp:908
float GetCcdMotionThreshold() const
Definition: RigidBody.cpp:659
bool logStatistics_
Show statistics flag.
Definition: Connection.h:299
Color modalFrameColor_
Modal frame color, used when modal flag is set.
Definition: Window.h:186
void SetValueType(VariantType valueType)
Definition: ValueAnimation.cpp:228
Vector3 GetNormal(const Vector3 &worldPosition) const
Return normal at world coordinates.
Definition: Terrain.cpp:550
Definition: RenderPipelineDefs.h:385
Definition: NetworkTime.h:42
Render pass traits that are important for render pipeline configuration.
Definition: RenderPass.h:19
unsigned EvaluateInstanceSize() const override
Evaluate size required to place new node instance.
Definition: EffectTime.cpp:53
Rotation represented as a four-dimensional normalized vector.
Definition: Quaternion.h:35
bool HasAttribute(const ea::string &name) const
Return whether has an attribute.
Definition: XMLElement.cpp:720
XMLElement GetNext(const ea::string &name=EMPTY_STRING) const
Return next sibling element.
Definition: XMLElement.cpp:676
void OnNodeSetEnabled(Node *node) override
Handle scene node enabled status changing.
Definition: StaticModelGroup.cpp:362
BoundingBox GetLocalBoundingBox() const
Return bounding box in local space.
Definition: LightProbeGroup.h:156
void ProcessCustomRayQuery(const RayOctreeQuery &query, const BoundingBox &worldBoundingBox, const Matrix3x4 &worldTransform, ea::span< const Matrix3x4 > boneWorldTransforms, ea::vector< RayQueryResult > &results)
Process raycast with custom transform.
Definition: AnimatedModel.cpp:113
AbstractFilePtr OpenFile(const FileIdentifier &fileName, FileMode mode) override
Definition: MountedRoot.cpp:53
ea::vector< SharedPtr< Connection > > GetClientConnections() const
Definition: Network.cpp:410
constexpr bool operator!() const
Boolean negation.
Definition: FlagSet.h:160
void SetEffectDepthBias(float bias)
Set text effect Z bias. Zero by default, adjusted only in 3D mode.
Definition: Text.cpp:408
unsigned fontDataSize_
Size of font data.
Definition: Font.h:110
float Ease(float time) const override
Apply easing function to the time argument.
Definition: Ease.h:279
bool GetUseFixtureMass() const
Definition: RigidBody2D.h:155
Memory layout for attributes.
Definition: ParticleGraphMemory.h:54
bool AllocateMesh(unsigned maxTiles) override
Definition: DynamicNavigationMesh.cpp:239
float radius_
Sphere radius.
Definition: Sphere.h:227
bool InitializeNodes(IKNodeCache &nodeCache) override
Definition: IKRotateTo.cpp:52
void ToScene(Scene *scene, PrefabLoadFlags loadFlags=PrefabLoadFlag::None) const
Load into scene.
Definition: PackedSceneData.cpp:168
void GetRigidBodies(ea::vector< RigidBody * > &result, const Sphere &sphere, unsigned collisionMask=M_MAX_UNSIGNED)
Return rigid bodies by a sphere query.
Definition: PhysicsWorld.cpp:690
Vector3 ScreenToWorldPoint(int x, int y, float depth) const
Convert screen coordinates and depth to a world space point.
Definition: Viewport.cpp:241
@ DD_TARGET
Drag and drop target flag.
Definition: UIElement.h:111
ea::vector< ea::string > headers_
Headers.
Definition: HttpRequest.h:100
static const ChannelMask RGB
Mask for 0xRRGGBB layout.
Definition: Color.h:53
~Texture2DArray() override
Destruct.
Definition: Texture2DArray.cpp:51
High-resolution operating system timer used in profiling.
Definition: Timer.h:50
Definition: NodePrefab.h:127
void SetCullMode(CullMode mode)
Definition: Material.cpp:765
Array of shader defines: pairs of name and value.
Definition: ShaderDefs.h:59
A class managing lifetime of dynamically loaded library module.
Definition: DynamicModule.h:44
static void RegisterObject(Context *context)
Register object factory. Drawable must be registered first.
Definition: StaticModelForLightmap.cpp:46
IntVector2 GetSize() const
Return array size as int vector.
Definition: Array2D.h:48
ObjectReflection * GetReflection(StringHash typeNameHash)
Return existing reflection for given type.
Definition: ObjectReflection.cpp:229
FiniteTimeAction * GetOrDefault(FiniteTimeAction *action) const
Get action from argument or empty action.
Definition: FiniteTimeAction.cpp:67
bool DrawOcclusion(OcclusionBuffer *buffer) override
Draw to occlusion buffer. Return true if did not run out of triangles.
Definition: TerrainPatch.cpp:181
ea::unordered_map< ea::string, ea::string > nameToValueMapping_
Property name to property value mapping.
Definition: TileMapDefs2D.h:123
void SetInputEnabled(bool enabled)
Definition: RmlNavigationManager.cpp:365
void ConnectToAnimatedModel()
Connect to AnimatedModel if possible.
Definition: AnimationController.cpp:1292
void SetUpdateInvisible(bool enable)
Definition: RibbonTrail.cpp:888
float GetRestitution() const
Definition: RigidBody.cpp:644
PrimitiveType GetPrimitiveType() const
Definition: Geometry.h:95
SharedPtr< ActionState > StartAction(Object *target) override
Create new action state from the action.
Definition: Attribute.cpp:129
virtual bool LoadLegacyXML(const XMLElement &source)
Try to load legacy XML format, whatever it is.
Definition: Resource.h:191
XPathResultSet & operator=(const XPathResultSet &rhs)
Assignment operator.
Definition: XMLElement.cpp:1127
bool IsWithinScissor(const IntRect ¤tScissor) override
Return whether is visible and inside a scissor rectangle and should be rendered.
Definition: Sprite.cpp:82
ea::hash_set< ea::string > usedNames_
Set of used names for checking.
Definition: XMLArchive.h:98
ViewOverrideFlags viewOverrideFlags_
View override flags.
Definition: Camera.h:383
void UpdateOffsets()
Update offsets of vertex elements.
Definition: VertexBuffer.cpp:166
bool GetBool(float pressThreshold) const
Definition: VirtualReality.h:97
static void RegisterObject(ParticleGraphSystem *context)
Register particle node factory.
Definition: Circle.cpp:38
void Reset(int width, int height, int maxWidth=0, int maxHeight=0, bool fastMode=true)
Reset to given width and height and remove all previous allocations.
Definition: AreaAllocator.cpp:47
void SetFogEnd(float end)
Definition: Zone.cpp:147
void Inline(PrefabInlineFlags flags)
Make all prefab nodes not temporary and remove component.
Definition: PrefabReference.cpp:339
void PopulateDefaultParameters()
Populate default parameter values.
Definition: Engine.cpp:1251
ArchiveBlock OpenUnorderedBlock(const char *name)
Open Unordered block. Will be automatically closed when returned object is destroyed.
Definition: Archive.h:185
ea::string GetAttributeLower(const ea::string &name) const
Return attribute in lowercase, or empty if missing.
Definition: XMLElement.cpp:770
Definition: PointerAdapter.h:42
2D renderer component.
Definition: Renderer2D.h:70
void SetSelection(unsigned start, unsigned length=M_MAX_UNSIGNED)
Set selection. When length is not provided, select until the text ends.
Definition: Text.cpp:370
void Initialize()
Initialize object state. Should be called immediately after constructor.
Definition: Connection.cpp:93
ColorFrame()
Construct with default values.
Definition: ParticleEffect.h:48
float fadeStart_
The point relative to the total shadow range where shadow fade begins (0.0 - 1.0).
Definition: Light.h:145
bool SetVertexBuffer(unsigned index, VertexBuffer *buffer)
Set a vertex buffer by index.
Definition: Geometry.cpp:75
void SetEnabledRecursive(bool enable)
Set enabled state on self and child elements. Unlike SetDeepEnabled this does not remember the elemen...
Definition: UIElement.cpp:937
Allocator template class. Allocates objects of a specific class.
Definition: Allocator.h:71
static void RegisterObject(Context *context)
Definition: NavigationMesh.cpp:159
void DrawDebugGeometry(DebugRenderer *debug, bool depthTest) override
Visualize the component as debug geometry.
Definition: IKLegSolver.cpp:61
bool FilterImplicitAttributes(XMLElement &dest) const override
Filter implicit attributes in serialization process.
Definition: DropDownList.cpp:234
void SetCamera(Camera *camera)
Definition: Viewport.cpp:107
void SetRotation(Quaternion point)
Set wheel node rotation relative to connection point.
ConstIterator End() const
Return end iterator (const).
Definition: MultiVector.h:231
bool operator!=(const BaseIterator &rhs) const
Compare not equal.
Definition: MultiVector.h:121
IntVector2 GetEffectiveRootElementSize(bool applyScale=true) const
Return effective size of the root element, according to UI scale and resolution / custom size.
Definition: UI.cpp:2135
unsigned normalTimeToLive_
Number of seconds to keep cached LightProcessor if cache size is within the budget.
Definition: RenderPipelineDefs.h:322
bool IsValidLocation(const IntVector2 &location) const
Returns whether the location is valid.
Definition: LightmapGeometryBuffer.h:153
Definition: StopToken.h:36
void GetBatches(ea::vector< UIBatch > &batches, ea::vector< float > &vertexData, const IntRect ¤tScissor) override
Return UI rendering batches.
Definition: Cursor.cpp:110
unsigned readBufferSize_
Bytes in the current read buffer.
Definition: File.h:148
void StaticCast(const WeakPtr< U1, U2 > &rhs) noexcept
Perform a static cast from a weak pointer of another type.
Definition: Ptr.h:529
SharedPtr< ActionState > StartAction(Object *target) override
Create new action state from the action.
Definition: Ease.cpp:198
Description of VR rig that links VR subsystem to the scene.
Definition: VirtualReality.h:30
void CalculateAttenuation()
Calculate attenuation and panning based on current position and listener position.
Definition: SoundSource3D.cpp:140
void SetInterval(float value)
Set Interval.
Definition: BurstTimer.cpp:74
VariantType GetValueType() const
Value type of the pin evaluated at the runtime.
Definition: ParticleGraphPin.h:96
BoundingBox projectionBox_
World-space bounding box used for cubemap box projection.
Definition: ReflectionProbeData.h:46
float GetIPDCorrection() const
IPD correction factor in millimeters.
Definition: VirtualReality.h:210
Ray(const Vector3 &origin, const Vector3 &direction) noexcept
Construct from origin and direction. The direction will be normalized.
Definition: Ray.h:51
virtual SharedPtr< FiniteTimeAction > Reverse() const
Create reversed action.
Definition: FiniteTimeAction.cpp:86
ActionBuilder & MoveByQuadratic(float duration, const Vector3 &controlOffset, const Vector3 &targetOffset, ea::string_view attributeName=Actions::POSITION_ATTRIBUTE)
Continue with MoveBy action with quad .
Definition: ActionBuilder.cpp:111
float LengthSquared() const
Return squared length.
Definition: Quaternion.h:388
Tile map component.
Definition: TileMapLayer2D.h:44
void SetUpdateEnabled(bool enable)
Definition: PhysicsWorld.cpp:416
Button * GetCloseButton() const
Return close button.
Definition: FileSelector.h:123
Resource file descriptor.
Definition: DragDropPayload.h:58
void SetAttributeAnimationSpeed(const ea::string &name, float speed)
Set attribute animation speed.
Definition: Animatable.cpp:395
void reportErrorWarning(const char *warningString) override
Log warning from the physics engine.
Definition: PhysicsWorld.cpp:300
void SetNumHistoryRows(unsigned rows)
Set command history maximum size, 0 disables history.
Definition: Console.cpp:88
void PreSolve(b2Contact *contact, const b2Manifold *oldManifold) override
Called when contact is updated.
Definition: PhysicsWorld2D.cpp:133
bool IsOpen() const override
Definition: NamedPipe.cpp:375
void Commit()
Mark for bounding box and vertex buffer update. Call after modifying the trails.
Definition: RibbonTrail.cpp:893
void SetAutoClearForces(bool enable)
Definition: PhysicsWorld2D.cpp:424
ea::vector< TrailPoint * > sortedPoints_
Trail pointers for sorting.
Definition: RibbonTrail.h:276
bool MergeFile(const ea::string &fileName, const ea::string &assetName)
Definition: GLTFImporter.cpp:3917
Object that manages lifetime of gc handle.
Definition: Script.h:97
float fov_
Spotlight field of view.
Definition: Light.h:503
void UpdateElements()
Update elements to layout properly. Call this after manually adjusting the sub-elements.
Definition: FileSelector.cpp:249
pugi::xml_document * GetDocument() const
Return the pugixml document.
Definition: XMLFile.h:84
void ReleaseJoint()
Release joint.
Definition: Constraint2D.cpp:99
bool updateEnabled_
Update enabled flag.
Definition: Scene.h:353
bool WriteColor(const Color &value)
Write a color.
Definition: Serializer.cpp:176
ea::string GetAnimation(unsigned index) const
Return animation name.
Definition: AnimationSet2D.cpp:166
bool LoadColorLUT(Deserializer &source)
Load as color LUT. Return true if successful.
Definition: Image.cpp:777
void SetLength(float length)
Definition: Light.cpp:298
Reference to SourceBatch of Drawable geometry, with resolved material passes.
Definition: DrawableProcessor.h:69
void InvalidateDynamicWheelParameters(unsigned wheelIndex)
Mark wheel dynamic data as dirty and update it before simulation.
Definition: RaycastVehicle.cpp:559
void SetIgnoreSceneTimeScale(bool ignoreSceneTimeScale)
Enable or disable ignore scene time scale mode.
Definition: SoundSource.cpp:325
float innerAngle_
Inner angle for directional attenuation.
Definition: SoundSource3D.h:97
void SetCustomTriangleMesh(CustomGeometry *custom, const Vector3 &scale=Vector3::ONE, const Vector3 &position=Vector3::ZERO, const Quaternion &rotation=Quaternion::IDENTITY)
Set as a triangle mesh from CustomGeometry.
Definition: CollisionShape.cpp:676
void SetMouseCursor(const Rml::String &cursor_name) override
Definition: RmlSystem.cpp:89
unsigned GetTotalDataSize() const
Definition: PackageFile.h:78
SharedPtr< Microphone > CreateMicrophone(const ea::string &name, bool forSpeechRecog, unsigned wantedFreq, unsigned silenceLevelLimit=0)
Constructs a microphone from a pretty-name (found via EnumerateMicrophones()).
Definition: Audio.cpp:484
SharedPtr< Viewport > viewport_
Viewport.
Definition: View3D.h:99
Timer fpsTimer_
FPS timer.
Definition: DebugHud.h:94
void SetAnimationLodBias(float bias)
Definition: RibbonTrail.cpp:883
Transform ConvertTransform(const Transform &sourceTransform) const
Convert GLTF transform to the engine format.
Definition: GLTFImporter.cpp:3996
float w_
W coordinate.
Definition: Quaternion.h:497
Definition: IKArmSolver.h:90
void MarkMorphsDirty()
Mark morphs to require an update.
Definition: AnimatedModel.cpp:962
LineEdit(Context *context)
Construct.
Definition: LineEdit.cpp:41
void SetDampingRatio(float dampingRatio)
Definition: ConstraintDistance2D.cpp:91
void SetMaterialAttr(const ResourceRef &value)
Set material attribute.
Definition: Terrain.cpp:773
bool SetBool(const ea::string &name, bool value)
Set a bool attribute.
Definition: XMLElement.cpp:335
VertexMaskFlags elementMask_
Element mask used so far.
Definition: CustomGeometry.h:149
const FrameInfo & GetFrameInfo() const override
Return frame info with all members filled.
Definition: DefaultRenderPipeline.cpp:71
void FromHSV(float h, float s, float v, float a=1.0f)
Set RGBA values from specified HSV values and alpha.
Definition: Color.cpp:110
bool SetHeightMapInternal(Image *image, bool recreateNow)
Set heightmap image and optionally recreate the geometry immediately. Return true if successful.
Definition: Terrain.cpp:1427
Matrix4 GetProjection(VREye eye, float nearDist, float farDist) const override
Return the projection matrix for an eye.
Definition: OpenXR.cpp:2084
unsigned SystemCommandAsync(const ea::string &commandLine)
Run a program using the command interpreter asynchronously. Return a request ID or M_MAX_UNSIGNED if ...
Definition: FileSystem.cpp:647
unsigned AddVertices(unsigned count, const void *data)
Store vertices. Returns index of first vertex.
Definition: VertexBuffer.h:178
FontHintLevel GetFontHintLevel() const
Definition: UI.h:250
Logger defaultLogger_
Default logger used to log messages from Urho3D library.
Definition: Log.h:207
Material's technique list entry.
Definition: Material.h:85
ea::conditional_t< HasPriority, ea::vector_multiset< Subscription >, ea::vector< Subscription > > SubscriptionVector
Subscription collection type.
Definition: Signal.h:106
Vector3 GetGravity() const
Definition: PhysicsWorld.cpp:772
WeakPtr< RenderPipeline > renderPipeline_
Render pipeline component from scene_.
Definition: Viewport.h:138
const ea::string & GetName() const
Return shader parameter name.
Definition: Material.h:118
void SetPixelShaderDefines(const ea::string &defines)
Definition: Technique.cpp:122
unsigned GetNumTriggers() const
Definition: Animation.h:140
bool IsVariableDirty(const ea::string &variableName)
Definition: RmlUIComponent.h:91
void UpdateSplineTangents() const
Update spline tangents.
Definition: ValueAnimation.cpp:491
void DrawDebugGeometry(DebugRenderer *debug, bool depthTest) override
Visualize the component as debug geometry.
Definition: IKLimbSolver.cpp:47
float Angle(const Vector3 &rhs) const
Returns the angle between this vector and another vector in degrees, from 0 to 180.
Definition: Vector3.h:412
void SetOrthoSize(float orthoSize)
Definition: Camera.cpp:141
void SetFov(float fov)
Definition: Camera.cpp:133
unsigned otherBodyNodeID_
Other body node ID for serialization.
Definition: Constraint2D.h:108
void SetObstacleAvoidanceTypesAttr(const VariantVector &value)
Set all the obstacle avoidance types configured in the crowd based on the corresponding attribute.
Definition: CrowdManager.cpp:361
void SetArmBoneName(const ea::string &name)
Definition: IKArmSolver.h:26
Context * context_
Context.
Definition: LightmapStitcher.h:39
Definition: SubtractInstance.h:31
void SetPivot(const Vector3 &pivot)
Set rotation pivot.
Definition: Move.cpp:741
void SetGravityOverride(const Vector3 &gravity)
Definition: RigidBody.cpp:422
CompressedLevel GetCompressedLevel(unsigned index) const
Return a compressed mip level.
Definition: Image.cpp:1819
bool IsDataLost() const
Return true when one of the texture has a data loss.
Definition: FontFace.cpp:87
ea::unordered_map< unsigned, VertexBufferMorph > buffers_
Morph data per vertex buffer.
Definition: Model.h:64
static const Vector2 DOWN
(0,-1) vector.
Definition: Vector2.h:441
float speed_
The Speed of movement along the Spline.
Definition: SplinePath.h:138
@ JSONNT_NAN
Not a number.
Definition: JSONValue.h:59
ParticleGraphNodeInstance * CreateInstanceAt(void *ptr, ParticleGraphLayerInstance *layer) override
Place new instance at the provided address.
Definition: Expire.cpp:60
void Step(float dt) override
Called every frame with it's delta time.
Definition: FiniteTimeActionState.cpp:43
void SetRegionMinSize(float size)
Definition: NavigationMesh.cpp:311
HighPrecisionSphere GetTetrahedronCircumsphere(unsigned tetIndex) const
Calculate circumsphere of given tetrahedron.
Definition: TetrahedralMesh.cpp:188
OggVorbisSoundStream(const Sound *sound)
Construct from an Ogg Vorbis compressed sound.
Definition: OggVorbisSoundStream.cpp:35
Vector2 velocity_
Velocity.
Definition: ParticleEmitter2D.h:58
WeakPtr< NetworkObject > parentNetworkObject_
Definition: NetworkObject.h:130
bool requestedSRGB_
Whether sRGB sampling and writing is requested.
Definition: Texture.h:227
@ CA_STATE_OFFMESH
The agent is traversing an off-mesh connection.
Definition: CrowdAgent.h:55
void OnSceneSet(Scene *scene) override
Handle scene being assigned.
Definition: Drawable.cpp:361
ea::vector< Drawable * > drawableUpdates_
Drawable objects that require update.
Definition: Octree.h:292
Parameters of direct light tracing.
Definition: LightBakingSettings.h:86
LightProbeCollectionForBaking lightProbesCollection_
Light probes collection.
Definition: BakedSceneChunk.h:63
void LoadConfigFiles()
Load and merge config files.
Definition: Engine.cpp:1232
void RegisterObject()
Register an object that would be automatically unregistered on unload.
Definition: PluginApplication.h:154
bool EndLoadFromXMLFile()
End load from XML file.
Definition: SpriteSheet2D.cpp:326
ea::vector< WeakPtr< Microphone > > microphones_
List of microphones being tracked.
Definition: Audio.h:182
void * GetUserData() const
Return userdata.
Definition: CallFunc.h:54
Variant GetVariant() const
Return a variant.
Definition: JSONValue.cpp:451
void SetClockBufferSize(unsigned size)
Set number of clock synchronization samples used.
Definition: Network.cpp:328
WrappedScalar< T > MinMaxClamped(T minValue, T maxValue) const
Clamp boundaries.
Definition: WrappedScalar.h:189
Node * viewReferenceNode_
Node to be used as a point-of-view reference, typically the camera's node.
Definition: Drawable.h:120
Definition: Attribute.h:108
virtual bool PrepareReliableDelta(NetworkFrame frame)
Prepare for reliable delta update and return update mask. If mask is zero, reliable delta update is s...
Definition: NetworkCallbacks.h:88
int GetIndent() const
Definition: UIElement.h:730
Quaternion initialRotation_
Reset rotation.
Definition: Skeleton.h:77
bool PositionToTileIndex(int &x, int &y, const Vector2 &position) const
Convert position to tile index, if out of map return false.
Definition: TileMap2D.cpp:171
void ThreadFunction() override
Resource background loading loop.
BoundingBox(const Sphere &sphere)
Construct from a sphere.
Definition: BoundingBox.h:116
void SetDampingForce(float force)
Definition: ParticleEffect.cpp:505
float timeStep_
Timestep in seconds.
Definition: Timer.h:133
void SetHotSpot(const IntVector2 &hotSpot)
Definition: Sprite.cpp:151
CollisionGeometryDataCache & GetTriMeshCache()
Return trimesh collision geometry cache.
Definition: PhysicsWorld.h:307
float GetRange() const
Definition: ProgressBar.h:72
bool reverseCulling_
Culling reverse flag.
Definition: OcclusionBuffer.h:205
static void RegisterObject(Context *context)
Definition: UnknownComponent.cpp:43
MountPoint * MountRoot()
Mount file system root as file:// scheme.
Definition: VirtualFileSystem.cpp:48
void Reload()
Reload all dynamic modules.
Definition: PluginManager.cpp:276
int exitCode_
Application exit code.
Definition: Application.h:79
bool GetAnimationEnabled() const
Definition: Animatable.h:112
Physics collision shape component.
Definition: CollisionShape.h:146
float currentTime_
Current time.
Definition: SpriterInstance2D.h:105
bool QueueSceneResourcesAsync(const ea::string &fileName)
Background load all resources referenced by a scene.
Definition: SplashScreen.cpp:247
Rml::ElementDocument * GetDocument() const
Return currently open document, may be null.
Definition: RmlUIComponent.h:73
SharedPtr< Image > ConvertToRGBA() const
Return image converted to 4-component (RGBA) to circumvent modern rendering API's not supporting e....
Definition: Image.cpp:1749
void Reset()
Reset the timer.
Definition: Timer.cpp:218
ea::array< StringHash, NumCachedSubsystems > cachedSubsystemTypes_
Cached subsystem types.
Definition: SubsystemCache.h:126
void UpdateAnimation(float timeStep)
Update animation.
Definition: AnimatedSprite2D.cpp:249
static void RegisterObject(Context *context)
Definition: FileSelector.cpp:141
HorizontalAlignment horizontalAlignment_
Horizontal alignment.
Definition: TextRenderer3D.h:52
float backgroundBrightness_
Background brightness.
Definition: Zone.h:213
const ea::vector< SharedPtr< IndexBuffer > > & GetIndexBuffers() const
Return index buffers.
Definition: Model.h:172
Vector3 GetPosition() const
Definition: RigidBody.cpp:568
SharedPtr(InterfaceType *ptr, RefCounted *refCounted) noexcept
Construct with explicit reference counter.
Definition: Ptr.h:158
SharedPtr< Text > titleText_
Window title text.
Definition: FileSelector.h:174
const float * Data() const
Return float data.
Definition: Vector4.h:231
void SetAwake(bool awake)
Definition: RigidBody2D.cpp:258
Quaternion rotation_
Constraint rotation.
Definition: Constraint.h:211
FileWatcher(Context *context)
Construct.
Definition: FileWatcher.cpp:54
Default callback for value serialization: use SerializeValue.
Definition: ArchiveSerializationBasic.h:79
void FindTouchStates(const IntRect &movementRect, const IntRect &rotationRect, TouchState *&movementTouch, TouchState *&rotationTouch)
Find touch states for movement and rotation.
Definition: MoveAndOrbitController.cpp:277
FillMode fillMode_
Polygon fill mode.
Definition: Material.h:364
float luminanceSigma_
Color weight. The lesser value is, the more color details are preserved on flat surface.
Definition: LightBakingSettings.h:137
unsigned GetPingIntervalMs() const
Return interval of pings by server.
Definition: Network.h:96
ea::vector< SharedPtr< XRBinding > > bindings_
Contained action bindings.
Definition: VirtualReality.h:184
void Define(const Rect &rect)
Define from another rect.
Definition: Rect.h:139
static const IntVector3 FORWARD_RIGHT_UP
(2, 0, 1) coordinate system.
Definition: RaycastVehicle.h:145
ea::string GetAbsoluteNameFromIdentifier(const FileIdentifier &fileName) const override
Return absolute file name for existing identifier in this mount point, if supported.
Definition: MountedRoot.cpp:93
CrowdAgentTargetState GetTargetState() const
Definition: CrowdAgent.cpp:489
2x2 matrix for rotation and scaling.
Definition: Matrix2.h:31
PipelineStateTracker * subscriber_
Owner.
Definition: PipelineStateTracker.h:82
void SetLightmapScaleOffset(const Vector4 &scaleOffset)
Set lightmap scale and offset.
Definition: Terrain.h:280
~Constraint() override
Destruct.
Definition: Constraint.cpp:72
ea::vector< SharedPtr< RenderSurface > > renderSurfaces_
Render surface(s).
Definition: Texture.h:239
float GetTrauma() const
Get trauma value.
Definition: ShakeComponent.h:60
void RemoveRootBone()
Remove (old) skeleton root bone.
Definition: AnimatedModel.cpp:946
float z_
Z coordinate.
Definition: Vector3.h:502
TextRenderer3D(Context *context)
Construct new.
Definition: TextRenderer3D.cpp:36
RefCount * RefCountPtr() const noexcept
Return pointer to the RefCount structure.
Definition: Ptr.h:569
ea::string stringId_
Localization string id storage. Used when autoLocalizable flag is set.
Definition: Text.h:300
void Pop()
Remove the last JSON value.
Definition: JSONValue.cpp:282
Matrix3x4 GetHandAimTransform(VRHand hand) const override
Transform matrix of the hand aim base position.
Definition: OpenXR.cpp:1943
SharedPtr< FiniteTimeAction > Reverse() const override
Create reversed action.
Definition: Move.cpp:407
~NamedPipe() override
Destruct and close.
Definition: NamedPipe.cpp:70
bool GetAllowSleeping() const
Definition: PhysicsWorld2D.cpp:689
Definition: NetworkValue.h:282
Object * GetSubsystem(StringHash type) const
Return subsystem by type.
Definition: Context.cpp:262
void SetTangentialAccelVariance(float tangentialAccelVariance)
Set tangential acceleration variance.
Definition: ParticleEffect2D.cpp:361
bool IsAimPose() const
Return true if this action is hand aim pose.
Definition: VirtualReality.h:125
virtual bool PrepareUnreliableDelta(NetworkFrame frame)
Prepare for unreliable delta update and return update mask. If mask is zero, unreliable delta update ...
Definition: NetworkCallbacks.h:92
IndirectLightTracingSettings(unsigned maxSamples, unsigned maxBounces)
Construct for given max samples and bounces.
Definition: LightBakingSettings.h:111
StringMap map_
Hash to string map.
Definition: StringHashRegister.h:62
ImageCube(Context *context)
Construct.
Definition: ImageCube.cpp:56
const IntRect & GetRectangle() const
Definition: Sprite2D.h:76
RefCount * RefCountPtr() const noexcept
Return pointer to the RefCount structure.
Definition: Ptr.h:311
Vector3 center_
World bounding box center.
Definition: Octree.h:155
bool IsChecked() const
Definition: CheckBox.h:63
IntVector3 GetIntVector3() const
Return IntVector3, for string type.
Definition: PListFile.cpp:232
TrailType GetTrailType() const
Definition: RibbonTrail.h:187
SharedPtr< FiniteTimeAction > Reverse() const override
Create reversed action.
Definition: Move.cpp:536
bool IsCompressed() const
Definition: Image.h:168
void SetMaxLodLevels(unsigned levels)
Definition: Terrain.cpp:207
const ea::string & GetName() const
Definition: VirtualReality.h:173
float GetExponent(float sensitivity) const
Convert sensitivity to exponent.
Definition: AxisAdapter.cpp:104
void SetName(const ea::string_view name)
Definition: GraphNode.h:50
void SetAutoPlacementEnabled(bool enabled)
Definition: LightProbeGroup.cpp:233
float GetMaxJumpHeight() const
Return max jump height.
Definition: KinematicCharacterController.h:112
void Blit(Image *dest, int x, int y, int width, int height, Image *source, int sourceX, int sourceY, int components)
Blit.
Definition: FontFaceBitmap.cpp:375
File selector's list entry (file or directory).
Definition: FileSelector.h:42
const Vector3 & GetTargetVelocity() const
Definition: CrowdAgent.h:162
void Update(const FrameInfo &frame)
Update and reinsert drawable objects.
Definition: Octree.cpp:456
ResourceRef GetBakedDataFileRef() const
Return reference on file with baked data.
Definition: LightProbeGroup.cpp:290
NumericRange< T > & operator&=(const NumericRange &rhs)
Trim range.
Definition: NumericRange.h:74
const StringVariantMap & GetVars() const
Return all user variables.
Definition: UIElement.h:692
Node * node_
Scene node.
Definition: Component.h:139
void SetGravity(const Vector3 &gravity)
Definition: PhysicsWorld.cpp:400
bool Initialize(const LightBakingSettings &settings, Scene *scene, BakedSceneCollector *collector, BakedLightCache *cache)
Initialize light baker. Relatively lightweigh.
Definition: IncrementalLightBaker.cpp:518
virtual void TransitionStarted()
Transition out of the state started. Executed by StateManager.
Definition: StateManager.cpp:89
float GetLength() const
Get Length.
Definition: Cone.cpp:89
unsigned GetNumActions() const
Set number of actions.
Definition: Parallel.h:45
@ USE_UPDATE
Bitmask for using the scene update event.
Definition: LogicComponent.h:38
static void RegisterObject(ParticleGraphSystem *context)
Register particle node factory.
Definition: Bounce.cpp:38
Vector3 GetPosition() const
Definition: CrowdAgent.cpp:465
void SetClipboardText(const ea::string &text)
Definition: UI.cpp:572
IntVector2 minSize_
Minimum size.
Definition: UIElement.h:884
Pipeline state cache callback used to create actual pipeline state for UI batches.
Definition: RenderPipelineDefs.h:246
void SetCollisionLayerAndMask(unsigned layer, unsigned mask)
Set collision group and mask.
Definition: RigidBody.cpp:467
void SetFrequencyHz(float frequencyHz)
Definition: ConstraintDistance2D.cpp:78
ObjectAnimation(Context *context)
Construct.
Definition: ObjectAnimation.cpp:48
WeakPtr< Terrain > owner_
Parent terrain.
Definition: TerrainPatch.h:142
void CalculateLodLevels()
Choose LOD levels based on distance.
Definition: StaticModel.cpp:425
Plane(const Vector4 &plane) noexcept
Construct from a 4-dimensional vector, where the w coordinate is the plane parameter.
Definition: Plane.h:59
Default converter: any type to/from any type.
Definition: ArchiveSerializationBasic.h:87
void SetTextureInternal(ea::string_view name, Texture *texture)
Set texture without event resubscription.
Definition: Material.cpp:718
float GetDuration() const override
Get action duration.
Definition: Parallel.cpp:131
bool EndLoadSpriter()
Finish load scml.
Definition: AnimationSet2D.cpp:347
const ea::vector< SharedPtr< PackageFile > > & GetRequiredPackageFiles() const
Definition: Scene.h:254
void CreateFixture()
Create fixture.
Definition: CollisionShape2D.cpp:190
void ProcessRayQuery(const RayOctreeQuery &query, ea::vector< RayQueryResult > &results) override
Process octree raycast. May be called from a worker thread.
Definition: Renderer2D.cpp:105
TextureFormat GetHiresShadowMapFormat() const
Return 24-bit shadow map depth texture format, or 0 if not supported.
Definition: Graphics.h:219
VariantMap * GetVariantMapPtr()
Return a pointer to a modifiable variant map or null on type mismatch.
Definition: Variant.h:1607
UI element which allows sub-pixel positioning and size, as well as rotation. Only other Sprites shoul...
Definition: Sprite.h:32
void RemoveAllParticles()
Remove all current particles.
Definition: ParticleEmitter.cpp:320
void Release()
Release the mutex.
Definition: Mutex.h:88
bool Save(Serializer &dest) const override
Save resource with default indentation (one tab). Return true if successful.
Definition: XMLFile.cpp:133
ea::vector< Object * > eventSenders_
Event sender stack.
Definition: Context.h:188
void AddSphereSector(const Sphere &sphere, const Quaternion &rotation, float angle, bool drawLines, const Color &color, bool depthTest=true)
Add a sphere sector. Angle ranges from 0 to 360. Identity Quaternion yields the filled portion of the...
Definition: DebugRenderer.cpp:318
FileTime GetTimeStamp() const
Return the latest timestamp of the shader code and its includes.
Definition: Shader.h:64
IntVector2 WorldToHeightMap(const Vector3 &worldPosition) const
Convert world position to heightmap pixel position. Note that the internal height data representation...
Definition: Terrain.cpp:583
bool GetSmoothing() const
Definition: Terrain.h:155
void UpdateBoneOrder()
Recalculate order of bones in hierarchy, from parents to children.
Definition: Skeleton.cpp:139
DrawableFlags drawableFlags_
Drawable flags to include.
Definition: OctreeQuery.h:63
Vector3 GetRawPosition() const
Return character position in world space without interpolation.
Definition: KinematicCharacterController.cpp:443
int GetMonitor() const
Return the current monitor index. Effective on in fullscreen.
Definition: Graphics.h:206
auto End() const
Return array end (const).
Definition: Array2D.h:224
void * userData_
Userdata.
Definition: CallFunc.h:60
const InternalType & GetRawUnchecked(NetworkFrame frame) const
Return raw valid value at given frame.
Definition: NetworkValue.h:477
void RemoveAliases(MountPoint *mountPoint)
Remove all aliases to the mount point.
Definition: MountedAliasRoot.cpp:42
Base class for a value animation instance, which includes animation runtime information and updates t...
Definition: ValueAnimationInfo.h:39
bool GetBool() const
Return bool or false on type mismatch.
Definition: Variant.h:1369
float GetDetailSampleMaxError() const
Definition: NavigationMesh.h:270
Material * GetMaterial() const
Definition: ParticleEffect.h:278
void SetShadowCascade(const CascadeParameters ¶meters)
Definition: Light.cpp:362
void UpdateVertexBuffer(const FrameInfo &frame)
Rewrite billboard vertex buffer.
Definition: BillboardSet.cpp:753
void SetEnableLimit(bool enableLimit)
Definition: ConstraintPrismatic2D.cpp:80
static void RegisterObject(ParticleGraphSystem *context)
Register particle node factory.
Definition: Slerp.cpp:38
void SetSpeed(float speed)
Set speed.
Definition: ParticleEffect2D.cpp:311
@ JSON_NUMBER
JSON number type.
Definition: JSONValue.h:46
~TriggerAnimator() override
Destruct.
Definition: TriggerAnimator.cpp:39
int GetAgentCrowdId() const
Return the agent id.
Definition: CrowdAgent.h:180
UIElement * GetParent() const
Definition: UIElement.h:680
SphericalHarmonicsColor9()=default
Construct default.
static Matrix3x4 FromRotation(const Quaternion &rotation)
Construct from rotation as quaternion.
Definition: Matrix3x4.h:186
float GetShadowMaxExtrusion() const
Definition: Light.h:382
void HandleMouseMove(StringHash eventType, VariantMap &eventData)
Handle mouse move event.
Definition: UI.cpp:1714
const Vector2 & GetOwnerBodyAnchor() const
Definition: ConstraintPulley2D.h:70
SparseSpan< T > GetAttributeValues(unsigned attributeIndex)
Get attribute values.
Definition: ParticleGraphLayerInstance.h:191
unsigned CalculateNumMorphs() const
Calculate number of morphs in the model.
Definition: ModelView.cpp:833
void SetAnimationTime(float time)
Set time position of all attribute animations or an object animation manually. Automatic update shoul...
Definition: Animatable.cpp:279
void AddManualDrawable(Drawable *drawable)
Add a drawable manually.
Definition: Octree.cpp:571
float y_
Y coordinate.
Definition: Vector4.h:251
float GetAspectRatio() const
Definition: Light.h:346
Definition: LightProcessor.h:40
void Render()
Render after frame update.
Definition: Engine.cpp:982
void CalculateLayout(ea::vector< int > &positions, ea::vector< int > &sizes, const ea::vector< int > &minSizes, const ea::vector< int > &maxSizes, const ea::vector< float > &flexScales, int targetSize, int begin, int end, int spacing)
Calculate child widths/positions in the layout.
Definition: UIElement.cpp:2141
VariantMap GetVariantMap() const
Return a variant map.
Definition: JSONValue.cpp:692
float edgeMaxLength_
Edge max length.
Definition: NavigationMesh.h:380
ParticleGraphNodeInstance * CreateInstanceAt(void *ptr, ParticleGraphLayerInstance *layer) override
Place new instance at the provided address.
Definition: Helpers.cpp:124
Definition: NodePrefab.h:86
ResourceRef GetEffectAttr() const
Set particles effect attribute.
Definition: ParticleEmitter.cpp:361
Vector3 Axis() const
Definition: Quaternion.cpp:233
bool Exists(const FileIdentifier &fileName) const override
Definition: MountedExternalMemory.cpp:88
static PackedNodeComponentData FromComponents(Iter begin, Iter end)
Pack components.
Definition: PackedSceneData.h:112
AbstractFilePtr GetFile(const ea::string &name, bool sendEventOnFailure=true)
Open and return a file from the resource load paths or from inside a package file....
Definition: ResourceCache.cpp:404
bool SetIntVector2(const ea::string &name, const IntVector2 &value)
Set an IntVector2 attribute.
Definition: XMLElement.cpp:402
int height_
Buffer height.
Definition: OcclusionBuffer.h:195
static void RegisterObject(Context *context)
Definition: Sound.cpp:79
virtual Zone * GetLightProbeGroupZone(const IntVector3 &chunkIndex, LightProbeGroup *lightProbeGroup)=0
Return zone that corresponds to light probe group within chunk.
@ Connecting
Connection is initiated, but has not completed yet.
Definition: FilteredByDistance.h:35
const ea::unordered_map< StringHash, VariantAnimationTrack > & GetVariantTracks() const
Definition: Animation.h:128
SharedPtr< FiniteTimeAction > Reverse() const override
Create reversed action.
Definition: Ease.cpp:360
bool GetTileSwapXY() const
Definition: TileMapDefs2D.h:215
void SetOverride(bool enable)
Definition: Zone.cpp:182
VariantType GetType() const
Definition: Variant.h:1570
CollisionGeometryDataCache & GetGImpactTrimeshCache()
Return GImpact trimesh collision geometry cache.
Definition: PhysicsWorld.h:313
unsigned vbRef_
Vertex buffer ref.
Definition: Model.h:99
void SetStringVariantMap(const StringVariantMap &variantMap, Context *context=nullptr)
Set string variant map, context must provide for resource ref.
Definition: JSONValue.cpp:712
void SetSprite(Sprite2D *sprite)
Set sprite.
Definition: ParticleEffect2D.cpp:301
Vector4 color_[MaxColors]
Colors.
Definition: ModelView.h:70
bool loop_
Loop effect.
Definition: ParticleGraphLayer.h:146
Crowd agent component, requires a CrowdManager component in the scene. When not set explicitly,...
Definition: CrowdAgent.h:74
ea::string name_
Shader parameter name.
Definition: Material.h:126
Vector4 GetClipPlaneAttr() const
Return clipping plane attribute.
Definition: Camera.cpp:692
static void RegisterObject(Context *context)
Definition: Skybox.cpp:49
void SetCollisionMask(unsigned mask)
Definition: RigidBody.cpp:458
SharedPtr< Texture2D > LoadFaceTexture(const SharedPtr< Image > &image)
Load font face texture from image resource.
Definition: FontFace.cpp:108
Circle in three-dimensional space.
Definition: Sphere.h:35
ArchiveBlock OpenArrayBlock(const char *name, unsigned sizeHint=0)
Open Array block. Will be automatically closed when returned object is destroyed.
Definition: Archive.h:187
static const Matrix2 ZERO
Zero matrix.
Definition: Matrix2.h:253
VertexElementType type_
Data type of element.
Definition: GraphicsDefs.h:124
IntVector2 screenPosition_
Screen position.
Definition: UIElement.h:849
void DefineColor(const Color &color)
Define a vertex color.
Definition: CustomGeometry.cpp:273
bool BeginLoad(Deserializer &source) override
Load resource from stream. May be called from a worker thread. Return true if successful.
Definition: Sound.cpp:84
void UnregisterAllRemoteEvents()
Unregister all remote events.
Definition: Network.cpp:354
int AddRef()
Definition: RefCounted.cpp:88
Packed component data.
Definition: PackedSceneData.h:65
void OnSceneSet(Scene *scene) override
Handle scene being assigned. This may happen several times during the component's lifetime....
Definition: ReplicationManager.cpp:188
Fixed-size array indexed by enum.
Definition: FlagSet.h:267
BorderImage * GetKnob() const
Definition: Slider.h:97
CompareMode GetDepthTestMode() const
Definition: Technique.h:140
int height_
Array height.
Definition: Array2D.h:105
ConstraintMouse2D(Context *context)
Construct.
Definition: ConstraintMouse2D.cpp:35
XMLElement GetChild(const ea::string &name=EMPTY_STRING) const
Return child element, or null if missing.
Definition: XMLElement.cpp:659
void SetDefaultToolTipDelay(float delay)
Definition: UI.cpp:599
IntRect GetIntRect() const
Return IntRect, for string type.
Definition: PListFile.cpp:212
static const ea::string LightmapDensityKey
Metadata key for lightmap density.
Definition: LightmapUVGenerator.h:40
const VertexElement * GetElement(VertexElementSemantic semantic, unsigned char index=0) const
Return vertex element, or null if does not exist.
Definition: VertexBuffer.cpp:195
void SetSprite(Sprite2D *sprite)
Definition: ParticleEmitter2D.cpp:105
int GetRowStartPosition(unsigned rowIndex) const
Return row start X position.
Definition: Text.cpp:762
void SetViewMask(unsigned mask)
Set view mask. Is and'ed with camera's view mask to see if the object should be rendered.
Definition: ParticleGraphEmitter.cpp:146
UpdateGeometryType GetUpdateGeometryType() override
Return whether a geometry update is necessary, and if it can happen in a worker thread.
Definition: DecalSet.cpp:243
void Reset()
Reset movement along the path.
Definition: SplinePath.cpp:235
bool HasNeighbor(unsigned neighborTetIndex) const
Return whether the tetrahedron has given neighbour.
Definition: TetrahedralMesh.h:293
Definition: BatchStateCache.h:151
AreaAllocator()
Default construct with empty size.
Definition: AreaAllocator.cpp:32
void SetColor(const Color &color, bool overrideAlpha=false)
Set new color for the batch. Overrides gradient.
Definition: UIBatch.cpp:52
void SetName(const ea::string_view name)
Definition: GraphPin.h:52
Engine(Context *context)
Construct.
Definition: Engine.cpp:221
AnimationSet2D(Context *context)
Construct.
Definition: AnimationSet2D.cpp:103
const Vector2 & GetVector2() const
Return Vector2 or zero on type mismatch.
Definition: Variant.h:1415
void SetCameraRotation(Quaternion quaternion)
Set camera rotation.
Definition: FreeFlyController.cpp:138
std::condition_variable event_
Event variable.
Definition: Condition.h:83
void Clear()
Reset to zero size.
Definition: VectorBuffer.cpp:127
SharedPtr< Material > material_
Material used for custom rendering.
Definition: BorderImage.h:152
unsigned totalFragments_
Total number of fragments.
Definition: Connection.h:90
Definition: MakeInstance.h:31
Vector2 Min() const
Return left-top corner position.
Definition: Rect.h:251
unsigned GetSize() const
Definition: Deserializer.h:71
int GetFaceCameraMode() const
Get Face Camera Mode.
Definition: RenderBillboard.cpp:92
void SetTexture(Texture2D *texture)
Set texture canvas will render into.
Definition: RmlCanvasComponent.cpp:238
void BeginPass(ea::string_view name)
Definition: RenderPipelineDebugger.cpp:217
ea::unique_ptr< dtTileCacheAlloc > allocator_
Used by dtTileCache to allocate blocks of memory.
Definition: DynamicNavigationMesh.h:149
void ResetAnimation()
Reset morph and/or skeletal animation. Safe to call from worker thread.
Definition: SoftwareModelAnimator.cpp:71
void ApplyHeightMap()
Apply changes from the heightmap image.
Definition: Terrain.cpp:473
const Vector2 & GetSourcePositionVariance() const
Return source position variance.
Definition: ParticleEffect2D.h:141
void InitializeOnServer() override
Perform initialization. Called once.
Definition: ReplicatedAnimation.cpp:60
void SetRadius(float radius)
Definition: CrowdAgent.cpp:397
virtual void EndBlock() noexcept=0
End archive block. May postpone ArchiveException until later.
3D text rendered in previous frame and already cached.
Definition: TextRenderer3D.h:148
bool IsDynamic() const
Definition: CustomGeometry.h:114
const Vector2 GetRelativeMouseMove() const
Return relative mouse movement value.
Definition: SystemUI.cpp:263
Node * GetNode() const
Get scene node.
Definition: TemplateNode.h:125
ea::vector< WeakPtr< TileMapLayer2D > > layers_
Tile map layers.
Definition: TileMap2D.h:90
void SetMaxInactiveFps(int fps)
Definition: Engine.cpp:836
const ea::vector< ea::vector< SharedPtr< Geometry > > > & GetGeometries() const
Return geometry pointers.
Definition: Model.h:183
Light probes from multiple light probe groups.
Definition: LightProbeGroup.h:85
b2MassData massData_
Box2D mass data.
Definition: RigidBody2D.h:206
unsigned GetNumTriangles() const
Return number of rendered triangles.
Definition: OcclusionBuffer.h:145
float GetSideSlipSpeed() const
Get side slip speed.
Queue item for background loading of a resource.
Definition: BackgroundLoader.h:40
WeakPtr< RigidBody > rigidBody_
Rigid body.
Definition: CollisionShape.h:314
bool IsExiting() const
Definition: Engine.h:136
void Merge(const Rect &rect)
Merge a rect.
Definition: Rect.h:172
void SetBakeLightmap(bool bakeLightmap)
Set whether the lightmap is baked for this object.
Definition: StaticModel.h:118
Definition: Renderer.h:184
void SetCollisionLayerAndMask(unsigned layer, unsigned mask)
Set collision group and mask.
Definition: KinematicCharacterController.cpp:412
float GetLodBias() const
Definition: Drawable.h:306
void GetClipboardText(Rml::String &text) override
Definition: RmlSystem.cpp:99
bool GetPauseMinimized() const
Definition: Engine.h:124
Holds subscription from one PipelineStateTracker to another. Neither checks nor affects objects lifet...
Definition: PipelineStateTracker.h:38
const VariantVector & GetKnots() const
Return the knots of the spline.
Definition: Spline.h:81
@ LM_HORIZONTAL
Layout child elements horizontally and resize them to fit. Resize element if necessary.
Definition: UIElement.h:90
void PreprocessShadowCasters(ea::vector< Drawable * > &shadowCasters, const ea::vector< Drawable * > &candidates, const FloatRange &frustumSubRange, Light *light, Camera *shadowCamera)
Internal. Pre-process shadow caster candidates. Safe to call from worker thread.
Definition: DrawableProcessor.cpp:702
void MarkInView(const FrameInfo &frame)
Mark in view. Also clear the light list.
Definition: Drawable.cpp:334
Cube texture resource.
Definition: TextureCube.h:38
void SetAxle(Vector3 direction)
Set wheel axle vector.
unsigned GetBufferLengthMS() const
Definition: Audio.h:89
bool Save(Serializer &dest) const override
Save resource. Return true if successful.
Definition: ActionSet.cpp:63
bool optimizeBufferSize_
Optimize buffer sizes flag.
Definition: DecalSet.h:254
virtual void Update(float replicaTimeStep, float inputTimeStep)
Process generic network update.
Definition: NetworkCallbacks.h:131
IKNode * AddSolverNode(IKNodeCache &nodeCache, const ea::string &name)
Add node to cache by name. Return null if the node is not found.
Definition: IKSolverComponent.cpp:113
void SetHeight(float height)
Set character height.
Definition: KinematicCharacterController.cpp:494
ea::vector< SharedPtr< Geometry > > geometries_
Geometries.
Definition: Renderer2D.h:66
unsigned GetNumProcessingThreads() const
Return total number of threads processing tasks, including main thread.
Definition: WorkQueue.h:165
void SetOtherBodyAnchor(const Vector2 &anchor)
Definition: ConstraintPulley2D.cpp:92
const Vector3 & GetOtherPosition() const
Definition: Constraint.h:143
bool GetUseReflection() const
Definition: Camera.h:253
~FreeFlyController() override
Destruct.
ea::vector< WeakPtr< Node > > trackedNodes_
Instance nodes.
Definition: CameraOperator.h:99
void SetMaterialAttr(const ResourceRef &value)
Set material attribute.
Definition: BorderImage.cpp:229
void HandleUpdate(StringHash eventType, VariantMap &eventData)
Handle scene update event.
Definition: FreeFlyController.cpp:114
Sphere(const Polyhedron &poly) noexcept
Construct from a polyhedron.
Definition: Sphere.h:92
virtual void * RecreateGCHandle(void *handle, bool strong)=0
Creates a new gc handle pointing to same object as specified gc handle. Specified gc handle will be f...
ea::string name_
Object name.
Definition: Variant.h:160
void Connect(GraphPinRef< GraphExitPin > pin, GraphPinRef< GraphEnterPin > target)
Connect exit pin to enter pin.
Definition: Graph.cpp:56
Definition: RenderBillboard.h:37
float ipdCorrection_
External IPD adjustment.
Definition: VirtualReality.h:294
void SetAnimation(const ea::string &name, LoopMode2D loopMode=LM_DEFAULT)
Set animation by name and loop mode.
Definition: AnimatedSprite2D.cpp:167
Drag&drop payload containing reference to a resource or directory.
Definition: DragDropPayload.h:90
Memory layout for intermediate values.
Definition: ParticleGraphMemory.h:103
void Swap(ThisType &rhs) noexcept
Swap with another WeakPtr.
Definition: Ptr.h:514
bool isOpen_
Is console window open.
Definition: Console.h:119
Utility class to read prefab data from NodePrefab.
Definition: PrefabReader.h:55
~ParticleGraphLayerInstance()
Destruct.
Definition: ParticleGraphLayerInstance.cpp:41
bool relative_
Billboards relative flag.
Definition: ParticleEffect.h:448
bool Exists(const ea::string &fileName) const
Check if a file exists within the package file. This will be case-insensitive on Windows and case-sen...
Definition: PackageFile.cpp:125
float GetSkidInfoCumulative() const
Get skid info cumulative.
void TrackNode(Node *node)
Add scene node to track.
Definition: CameraOperator.cpp:160
bool sorted_
Billboards sorted flag.
Definition: ParticleEffect.h:452
bool FilterImplicitAttributes(XMLElement &dest) const override
Filter implicit attributes in serialization process.
Definition: LineEdit.cpp:535
float GetInterval() const
Get Interval.
Definition: BurstTimer.cpp:76
CrowdAgentState
Definition: CrowdAgent.h:51
Texture * texture_
Texture.
Definition: UIBatch.h:83
int touchID_
Touch (finger) ID.
Definition: Input.h:70
void SetTextureFrames(const ea::vector< TextureFrame > &textureFrames)
Set particle texture animation.
Definition: ParticleEffect.cpp:709
RefCounted * GetPtr() const
Return a RefCounted pointer or null on type mismatch. Will return null if holding a void pointer,...
Definition: Variant.h:1504
void SetAnchor(const Vector2 &anchor)
Definition: ConstraintRevolute2D.cpp:58
void OnMarkedDirty(Node *node) override
Handle node transform being dirtied.
Definition: RaycastVehicle.cpp:305
unsigned GetElementOffset(VertexElementType type, VertexElementSemantic semantic, unsigned char index=0) const
Return offset of a element with specific type within vertex, or M_MAX_UNSIGNED if element does not ex...
Definition: VertexBuffer.h:85
~Skybox() override
Destruct.
bool IsSceneLoaded() const
Definition: Connection.h:174
const Matrix3x4 & GetView() const
Return the view transform.
Definition: DebugRenderer.h:170
int FloorToInt(T x)
Definition: MathDefs.h:240
Base class for sound streams.
Definition: SoundStream.h:31
WeakPtr< RigidBody > ownBody_
Own rigid body.
Definition: Constraint.h:201
void SetVertexShaderDefines(const ea::string &defines)
Definition: Technique.cpp:115
static void RegisterObject(ParticleGraphSystem *context)
Register particle node factory.
Definition: LocalToWorld.cpp:38
void DrawDebugGeometry(DebugRenderer *debug, bool depthTest) override
Visualize the component as debug geometry.
Definition: Zone.cpp:98
bool useReflection_
Reflection mode enabled flag.
Definition: Camera.h:399
static void Move(T &dest, T &src)
Move value.
Definition: Variant.h:281
bool IsAutoVisibleOnError() const
Return true when console is set to automatically visible when receiving an error log message.
Definition: Console.h:62
Vector4(float x, float y, float z, float w) noexcept
Construct from coordinates.
Definition: Vector4.h:65
float x_
X coordinate.
Definition: Vector3.h:498
bool IsSDFFont() const
Is signed distance field font.
Definition: Font.h:81
Variant Sample(float time, float duration, bool isLooped, unsigned &frameIndex) const
Sample value at given time.
Definition: VariantCurve.cpp:189
void UpdateCharLocations()
Update cached character locations after text update, or when text alignment or indent has changed.
Definition: Text.cpp:678
Definition: Exception.h:38
float GetDampen() const
Get Dampen.
Definition: Bounce.cpp:73
bool IsNumber() const
Definition: JSONValue.h:205
ActionEase(Context *context)
Construct.
Definition: Ease.cpp:67
~ConstraintGear2D() override
Destruct.
ea::optional< FileTime > GetLastModifiedTime(const FileIdentifier &fileName, bool creationIsModification) const override
Definition: MountedDirectory.cpp:145
JSON output archive.
Definition: JSONArchive.h:77
FrustumPlane
Frustum planes.
Definition: Frustum.h:37
bool SetHeightMap(Image *image)
Definition: Terrain.cpp:240
ea::vector< LightProbeGroup * > GetLightProbeGroupsInBoundingBox(const IntVector3 &chunkIndex, const BoundingBox &boundingBox) override
Return light probe groups intersecting given volume.
Definition: BakedSceneCollector.cpp:293
UpdateEventFlags currentEventMask_
Current event subscription mask.
Definition: LogicComponent.h:117
bool Equals(const Matrix3 &rhs, float eps=M_EPSILON) const
Test for equality with another matrix with epsilon.
Definition: Matrix3.h:254
void SetParticleLifeSpan(float particleLifeSpan)
Set particle lifespan.
Definition: ParticleEffect2D.cpp:321
StretchableSprite2D(Context *context)
Construct.
Definition: StretchableSprite2D.cpp:120
ProgressBar(Context *context)
Construct.
Definition: ProgressBar.cpp:36
bool resetSkeleton_
Whether skeleton is reset on every frame.
Definition: AnimationStateSource.h:35
Hide(Context *context)
Construct.
Definition: Misc.cpp:79
bool ambientGradient_
Ambient gradient mode flag.
Definition: Zone.h:205
Resource for generic binary file.
Definition: BinaryFile.h:38
Utility class that handles cubemap rendering from scene.
Definition: CubemapRenderer.h:98
bool GetLoggerVisible(const ea::string &loggerName) const
Get visibility of certain loggers in the console.
Definition: Console.cpp:431
Texture2D * GetLightmapTexture(unsigned index) const
Return lightmap texture.
Definition: Scene.cpp:303
void SetMaxDoubleClickDistance(float distPixels)
Definition: UI.cpp:584
void OnSetEnabled() override
Handle component being enabled or disabled.
Definition: RmlCanvasComponent.cpp:83
const T & GetClamped(const IntVector2 &index) const
Return constant element by clamped index.
Definition: Array2D.h:203
void SendBuffer(PacketTypeFlags type)
Send out buffered messages by their type.
Definition: Connection.cpp:274
float radius_
Agent's radius, if 0 the navigation mesh's setting will be used.
Definition: CrowdAgent.h:271
void SetNearDistance(float distance)
Definition: SoundSource3D.cpp:120
void ClearAppStats()
Clear all application-specific stats.
Definition: DebugHud.cpp:124
void HandleReflectionRemoved(ObjectReflection *reflection)
Handle object reflection removed.
Definition: ResourceCache.cpp:997
float angle_
Light angle (for directional light).
Definition: BakedLight.h:77
void SetMaxNetworkAngularVelocity(float velocity)
Set maximum angular velocity for network replication.
Definition: PhysicsWorld.cpp:436
ShaderParameterAnimationInfo * GetShaderParameterAnimationInfo(const ea::string &name) const
Return shader parameter animation info.
Definition: Material.cpp:1052
ea::string lightProbeGroupNameFormat_
Definition: LightBakingSettings.h:185
void DrawDebugGeometry(DebugRenderer *debug, bool depthTest) override
Visualize the component as debug geometry.
Definition: IKArmSolver.cpp:47
unsigned checksum_
Package file checksum.
Definition: PackageFile.h:129
const void * vertexData_
Vertex data pointer.
Definition: OcclusionBuffer.h:71
bool operator<(const PipelineBatchBackToFront &rhs) const
Compare sorted batches.
Definition: PipelineBatchSortKey.h:149
void CollectParameters(StringVariantMap ¶ms) const override
Definition: BloomPass.cpp:48
Implementation of XRActionGroup for OpenXR.
Definition: OpenXR.h:126
ea::vector< unsigned > printToText_
Mapping of printed form back to original char indices.
Definition: Text.h:290
SharedPtr< ValueAnimation > animation_
Attribute animation.
Definition: ValueAnimationInfo.h:88
static const Color MAGENTA
Opaque magenta color.
Definition: Color.h:289
IntVector2 newSize_
Current size of canvas.
Definition: RmlUI.h:50
void SetAreaID(unsigned newID)
Definition: NavArea.cpp:57
Base class for serializable resource that uses Archive serialization.
Definition: RenderPath.h:17
WrapMode
Animation wrap mode.
Definition: AnimationDefs.h:31
void SetBorder(const IntRect &border)
Definition: StretchableSprite2D.cpp:133
bool BeginLoad(Deserializer &source) override
Load resource from stream. May be called from a worker thread. Return true if successful.
Definition: XMLFile.cpp:79
unsigned RecalculatePipelineStateHash() const override
Recalculate hash. Shall be save to call from multiple threads as long as the object is not changing.
Definition: Drawable.cpp:310
void OnNodeSet(Node *previousNode, Node *currentNode) override
Handle node being assigned.
Definition: Camera.cpp:697
VariantVector GetAnimationsAttr() const
Return animation parameters attribute.
Definition: AnimationController.cpp:977
AnimationTriggerPoint * GetTrigger(unsigned index)
Return a trigger point by index.
Definition: Animation.cpp:621
unsigned memoryUse_
Memory use in bytes.
Definition: Resource.h:153
float GetMotorSpeed() const
Definition: ConstraintPrismatic2D.h:99
void GetCollidingBodies(ea::vector< RigidBody * > &result, const RigidBody *body)
Return rigid bodies that have been in collision with the specified body on the last simulation step....
Definition: PhysicsWorld.cpp:750
Definition: EmitterScaleInstance.h:35
void SetMaterial(Material *material)
Definition: BorderImage.cpp:240
void SetOptimizeBufferSize(bool enable)
Definition: DecalSet.cpp:288
const IntVector2 & GetMinSize() const
Definition: UIElement.h:476
void SetSteeringFactor(float factor)
Set steering factor. Steering value is multiplied by the factor.
Definition: ClampInstance.h:31
Stored occlusion render job.
Definition: OcclusionBuffer.h:66
void Clear()
Clear the buffer.
Definition: OcclusionBuffer.cpp:151
static void RegisterObject(Context *context)
Register object factory.
Definition: StateManager.cpp:34
void OnSetAnimation(Animation *animation, LoopMode loopMode=Default)
Handle set animation.
Definition: SpriterInstance2D.cpp:181
void StartClient(AbstractConnection *connectionToServer)
Start new client from specified connection. Removes all existing objects.
Definition: ReplicationManager.cpp:308
Index Buffer of dynamic size. Resize policy is similar to standard vector.
Definition: IndexBuffer.h:106
Rml::FileHandle Open(const Rml::String &path) override
Opens a file.
Definition: RmlFile.cpp:44
void SetScale(Vector3 value)
Set Scale.
Definition: Circle.cpp:88
MemoryBuffer(void *data, unsigned size)
Construct with a pointer and size.
Definition: MemoryBuffer.cpp:31
bool AddTriangles(const Matrix3x4 &model, const void *vertexData, unsigned vertexSize, unsigned vertexStart, unsigned vertexCount)
Submit a triangle mesh to the buffer using non-indexed geometry. Return true if did not overflow the ...
Definition: OcclusionBuffer.cpp:163
volatile signed char * position_
Playback position.
Definition: SoundSource.h:239
Definition: DrawableProcessor.h:60
SharedPtr< XMLFile > loadXMLFile_
XML file used while loading.
Definition: Material.h:386
void DrawDebugGeometry(DebugRenderer *debug, bool depthTest) override
Visualize the component as debug geometry.
Definition: GlobalIllumination.cpp:53
unsigned zoneMask_
Zone mask.
Definition: Drawable.h:473
const SubsystemCache & GetSubsystems() const
Return all subsystems.
Definition: Context.h:116
bool interpolation_
Mixing interpolation flag.
Definition: Audio.h:168
Plane planes_[NUM_FRUSTUM_PLANES]
Frustum planes.
Definition: Frustum.h:182
ValueAnimation * GetAttributeAnimation(const ea::string &name) const
Definition: ObjectAnimation.cpp:238
void DrawDebugGeometry(bool depthTest)
Add debug geometry to the debug renderer.
Definition: Renderer.cpp:506
Vector3 SampleAverageAmbient(const Vector3 &position, unsigned &hint) const
Sample average ambient lighting.
Definition: GlobalIllumination.cpp:128
Texture2D * GetDefaultLightSpot() const
Definition: Renderer.h:291
@ O_HEXAGONAL
Hexagonal.
Definition: TileMapDefs2D.h:45
bool GetMultiselect() const
Definition: ListView.h:160
void AddVertex(const DecalVertex &vertex)
Add a vertex.
Definition: DecalSet.cpp:128
void ApplyAttributes() override
Apply attribute changes that can not be applied immediately. Called after scene load or a network upd...
Definition: OutlineGroup.cpp:90
void HandlePostUpdate(StringHash eventType, VariantMap &eventData)
Handle logic post-update event.
Definition: RmlUI.cpp:642
const IntVector2 & GetCustomSize() const
Definition: UI.h:276
void SetUICustomSize(const IntVector2 &size)
Definition: StateManager.cpp:174
ea::vector< ea::pair< WeakPtr< RenderSurface >, WeakPtr< Viewport > > > queuedViewports_
Render surface viewports queued for update.
Definition: Renderer.h:361
void ChangeValue(float delta)
Change value by a delta.
Definition: ProgressBar.cpp:108
static const Vector2 UP
(0,1) vector.
Definition: Vector2.h:439
Graph * GetGraph() const
Definition: GraphNode.h:85
T * GetChildDynamicCast(unsigned index) const
Template version of returning child element by index using dynamic cast. May return 0 when casting fa...
Definition: UIElement.h:953
void ComponentAdded(Component *component)
Component added. Add to ID map.
Definition: Scene.cpp:998
unsigned GetFreeParticle() const
Return a free particle index.
Definition: ParticleEmitter.cpp:547
float DistanceToPlane(const Vector3 &origin, const Vector3 &normal) const
Calculate distance to the plane with given origin and normal.
Definition: Vector3.h:384
ea::unordered_map< unsigned, SharedPtr< Sprite2D > > gidToSpriteMapping_
Gid to tile sprite mapping.
Definition: TmxFile2D.h:223
virtual bool LoadFile(const ea::string &resourceName)
Load from resource of automatically detected type.
Definition: Serializable.cpp:383
void SetVerticesAttr(const ea::vector< unsigned char > &value)
Set vertices attribute.
Definition: CollisionChain2D.cpp:90
Vector3 GetDirection() const
Get wheel direction vector.
SharedPtr< ActionState > StartAction(Object *target) override
Create new action state from the action.
Definition: ActionInstant.cpp:58
void * GetExternalWindow() const
Return OS-specific external window handle. Null if not in use.
Definition: Graphics.h:147
unsigned GetLightmapIndex() const
Return lightmap index.
Definition: StaticModel.h:130
bool HasProperty(const ea::string &name) const
Return has property.
Definition: TileMapDefs2D.cpp:208
ea::vector< Vector3 > positions_
Definition: LightmapGeometryBuffer.h:114
WeakPtr< SoundListener > listener_
Sound listener.
Definition: Audio.h:180
bool LoadXML(const XMLElement &source) override
Load from XML data. Return true if successful.
Definition: UIElement.cpp:174
Vector3 GetTranslation() const
Get Translation.
Definition: Circle.cpp:82
bool Remove()
Remove element from its parent.
Definition: XMLElement.cpp:157
unsigned GetConnectedNodeIndex() const
Get connected node index.
Definition: ParticleGraphPin.h:116
void Discard()
Discard existing content of the buffer.
Definition: VertexBuffer.cpp:466
2D texture array resource.
Definition: Texture2DArray.h:36
Zone * GetZone() const
Return current zone.
Definition: Camera.h:303
void ComponentRemoved(Component *component)
Component removed. Remove from ID map.
Definition: Scene.cpp:1027
void InvalidateBehaviors()
Internal. Mark NetworkObject as invalid and disable all behaviors.
Definition: BehaviorNetworkObject.cpp:126
ParticleGraphSpan span_
Location at emitter attribute buffer.
Definition: ParticleGraphMemory.h:89
MoveByQuadratic(Context *context)
Construct.
Definition: Move.cpp:441
SharedPtr< Animation > enterAnimation_
Enter animation.
Definition: TriggerAnimator.h:88
void HandleAttributeAnimationUpdate(StringHash eventType, VariantMap &eventData)
Update shader parameter animations.
Definition: Material.cpp:1080
ParticleGraphContainerType container_
Container type of attribute.
Definition: ParticleGraphMemory.h:127
void SetTarget(const Vector2 &target)
Definition: ConstraintMouse2D.cpp:55
static const Matrix3 IDENTITY
Identity matrix.
Definition: Matrix3.h:355
bool DrawOcclusion(OcclusionBuffer *buffer) override
Draw to occlusion buffer. Return true if did not run out of triangles.
Definition: StaticModelGroup.cpp:225
void SetAutoAspectRatio(bool enable)
Definition: Camera.cpp:214
ZoneLookupIndex zones_
Zones.
Definition: Octree.h:308
ValueAnimation * GetAttributeAnimation(const ea::string &name) const
Return attribute animation.
Definition: Animatable.cpp:424
void SetRegionMergeSize(float size)
Definition: NavigationMesh.cpp:316
void CalculateInnerMatrix(const ea::vector< Vector3 > &vertices)
Calculate matrix for valid inner tetrahedron.
Definition: TetrahedralMesh.h:252
Global illumination manager.
Definition: GlobalIllumination.h:39
unsigned GetSelectionStart() const
Definition: Text.h:172
bool PrepareReliableDelta(NetworkFrame frame) override
Prepare for reliable delta update and return update mask. If mask is zero, reliable delta update is s...
Definition: StaticNetworkObject.cpp:82
void OnClientConnected(Connection *connection)
Definition: Network.cpp:81
SharedPtr< ActionState > StartAction(Object *target) override
Create new action state from the action.
Definition: Ease.cpp:368
bool fixedScreenSize_
Fixed screen size flag.
Definition: Text3D.h:266
int depth_
Depth.
Definition: Image.h:54
ea::vector< WeakPtr< RenderPipelineView > > renderPipelineViews_
Render pipeline views that have been processed this frame.
Definition: Renderer.h:363
void DrawTriangle2D(const Vector3 *vertices, bool clockwise, unsigned threadIndex)
Draw a clipped triangle.
Definition: OcclusionBuffer.cpp:808
void SerializeInBlock(Archive &archive) override
Serialize content from/to archive. May throw ArchiveException.
Definition: ShaderParameter.cpp:161
int GetHatPosition(unsigned index) const
Definition: Input.h:126
float projNearClip_
Cached actual near clip distance.
Definition: Camera.h:334
int lastPatchSize_
Patch size at the time of last update.
Definition: Terrain.h:363
Definition: RmlEventListeners.h:101
bool WriteUInt(unsigned value)
Write a 32-bit unsigned integer.
Definition: Serializer.cpp:68
float GetFogHeightScale() const
Definition: Zone.h:146
bool operator==(const SourceBatch2D &other) const
Equality comparison operator.
Definition: Drawable2D.h:79
Mutex changesMutex_
Mutex for the change buffer.
Definition: FileWatcher.h:106
SharedPtr< Geometry > pointLightGeometry_
Point light volume geometry.
Definition: Renderer.h:350
virtual void Update(float timeStep)
Perform UI element update.
Definition: UIElement.cpp:367
static const Vector3 DOWN
(0,-1,0) vector.
Definition: Vector3.h:513
unsigned viewMask_
View mask.
Definition: Terrain.h:381
void Invalidate()
Internal. Invalidate GPU resource.
Definition: RenderSurface.h:49
Definition: ShaderProgramCompositor.h:48
const ea::string & GetName() const
Definition: Resource.h:124
bool GetTextureRectangle(Rect &rect, bool flipX=false, bool flipY=false) const
Return texture rectangle.
Definition: Sprite2D.cpp:167
int CalculateLayoutParentSize(const ea::vector< int > &sizes, int begin, int end, int spacing)
Calculate layout width for resizing the parent element.
Definition: UIElement.cpp:2124
void SetMinEmissionRate(float rate)
Definition: ParticleEffect.cpp:520
ea::string spriteSheetFilePath_
Sprite sheet file path.
Definition: AnimationSet2D.h:117
void SetAxis(const Vector2 &axis)
Definition: ConstraintPrismatic2D.cpp:70
bool hovering_
Hovering flag.
Definition: UIElement.h:821
ParticleGraphPin pins_[1]
Pins.
Definition: Constant.h:83
void DumpProfiler()
Dump profiling information to the log.
Definition: Engine.cpp:879
BaseIterator & operator+=(unsigned diff)
Advance by N.
Definition: MultiVector.h:73
XMLOutputArchive(Context *context, XMLElement element, XMLFile *xmlFile=nullptr, bool serializeRootName=false)
Construct from element.
Definition: XMLArchive.h:106
@ OT_TILE
Tile.
Definition: TileMapDefs2D.h:102
void ProcessSource(ea::string &code, FileTime &timeStamp, Deserializer &source)
Process source code and include files. Return true if successful.
Definition: Shader.cpp:225
ea::vector< WeakPtr< TerrainPatch > > patches_
Terrain patches.
Definition: Terrain.h:335
ParticleGraphPin pins_[2]
Pins.
Definition: Uniform.h:146
void SetFixedScreenSize(bool enable)
Definition: ParticleEffect.cpp:470
Signal< void(const RmlCanvasResizedArgs &)> canvasResizedEvent_
Emitted when underlying UI canvas is resized.
Definition: RmlUI.h:113
const IntVector2 & GetEffectShadowOffset() const
Definition: Text3D.cpp:463
int drawOrder_
Draw order.
Definition: TileMapLayer2D.h:133
void ProcessRayQuery(const RayOctreeQuery &query, ea::vector< RayQueryResult > &results) override
Process octree raycast. May be called from a worker thread.
Definition: Light.cpp:163
bool HasNodes() const
Definition: PackedSceneData.h:125
bool BeginLoadFromXMLFile(Deserializer &source)
Begin load from XML file.
Definition: SpriteSheet2D.cpp:298
void MixStereoToMultiIP(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:1702
void SetLightMode(LightMode mode)
Set light mode.
Definition: Light.cpp:278
void Update(float timeStep)
Step the simulation forward.
Definition: PhysicsWorld.cpp:314
auto End()
Return array end.
Definition: Array2D.h:220
~AnimatedModel() override
Destruct.
Definition: AnimatedModel.cpp:69
Image * GetImage(CubeMapFace face) const
Return image data from a face's zero mip level.
Definition: ImageCube.h:62
float rotationMin_
Particle rotation angle minimum.
Definition: ParticleEffect.h:490
ParticleGraphNodeInstance * CreateInstanceAt(void *ptr, ParticleGraphLayerInstance *layer) override
Place new instance at the provided address.
Definition: Move.cpp:61
ParticleEffect2D(Context *context)
Construct.
Definition: ParticleEffect2D.cpp:70
ea::unordered_map< WeakPtr< UIElement >, DragData * >::iterator DragElementErase(ea::unordered_map< WeakPtr< UIElement >, DragData * >::iterator i)
Remove drag data and return next iterator.
Definition: UI.cpp:2029
unsigned RecalculatePipelineStateHash() const override
Recalculate hash of pipeline state configuration.
Definition: Material.cpp:1133
Vector3 targetVelocity_
Requested target velocity.
Definition: CrowdAgent.h:261
void ResetMorphWeights()
Reset all vertex morphs to zero.
Definition: AnimatedModel.cpp:562
void OnMarkedDirty(Node *node) override
Handle node transform being dirtied.
Definition: RigidBody.cpp:831
unsigned lightmapSize_
Lightmap chart size.
Definition: LightmapCharter.h:91
bool ReadToImage(unsigned arraySlice, unsigned level, Image *image)
Read texture data to image.
Definition: Texture.cpp:435
void SerializeInBlock(Archive &archive) override
Serialize persistent variable configuration. Current values are not serialized.
Definition: ConfigFile.cpp:127
BaseIterator & operator++()
Pre-increment.
Definition: MultiVector.h:98
MouseButtonFlags GetDragButtonCombo() const
Definition: UIElement.h:709
Vector2 anchorMax_
Anchor maximum position.
Definition: UIElement.h:902
void OnSceneSet(Scene *scene) override
Subscribe to events when assigned to a scene.
Definition: DynamicNavigationMesh.cpp:833
unsigned ToHash() const
Return hash value for HashSet & HashMap.
Definition: Vector3.h:170
Shader(Context *context)
Construct.
Definition: Shader.cpp:118
VariantType type_
Attribute type.
Definition: Attribute.h:158
btPersistentManifold * manifold_
Manifold without the body pointers flipped.
Definition: PhysicsWorld.h:123
bool WriteVector3(const Vector3 &value)
Write a Vector3.
Definition: Serializer.cpp:123
void SetUpdateEvents(const StringVector &events)
Set update events.
Definition: Scene.cpp:308
BoundingBox Merged(const T &other) const
Return this bounding box merged with another shape.
Definition: BoundingBox.h:259
CustomGeometryVertex * GetVertex(unsigned geometryIndex, unsigned vertexNum)
Return a vertex in a geometry for editing, or null if out of bounds. After the edits are finished,...
Definition: CustomGeometry.cpp:440
Orientation2D orientation_
Orientation.
Definition: TileMapDefs2D.h:53
void ApplyAttributes() override
Apply attribute changes that can not be applied immediately. Called after scene load or a network upd...
Definition: CrowdAgent.cpp:122
void ReleaseBody()
Remove the rigid body.
Definition: RigidBody.cpp:815
Component * component_
Component.
Definition: NavigationUtils.h:21
void SerializeInBlock(Archive &archive)
Serialize content from/to archive. May throw ArchiveException.
Definition: InputMap.cpp:350
void Clear(ClearTargetFlags flags, const Color &color=Color::TRANSPARENT_BLACK, float depth=1.0f, unsigned stencil=0)
Clear any or all of rendertarget, depth buffer and stencil buffer.
Definition: Graphics.cpp:548
@ OT_RECTANGLE
Rectangle.
Definition: TileMapDefs2D.h:94
float cursorBlinkRate_
Cursor blink rate.
Definition: LineEdit.h:163
RaycastVehicleWheel(Urho3D::Context *context)
Construct.
Definition: RaycastVehicleWheel.cpp:37
float shadowIntensity_
Light intensity in shadow.
Definition: Light.h:511
ea::vector< ea::pair< TaskPriority, TaskFunction > > fallbackTaskQueue_
Definition: WorkQueue.h:251
void ApplyTorque(float torque, bool wake)
Apply Torque.
Definition: RigidBody2D.cpp:310
Placeholder for allowing unregistered components to be loaded & saved along with scenes.
Definition: UnknownComponent.h:31
ea::vector< ColorFrame > colorFrames_
Particle color animation frames.
Definition: ParticleEffect.h:502
Model * GetModel() const
Definition: StaticModel.h:86
void BakeAsync()
Bake light in worker thread.
Definition: LightBaker.cpp:158
T Get() const
Get attribute value or default value.
Definition: AttributeActionState.h:52
constexpr StringHash(const ea::string_view &str, NoReverse) noexcept
Construct from a string (no side effects).
Definition: StringHash.h:70
const float * Data() const
Return float data.
Definition: Matrix4.h:639
Button * GetOKButton() const
Definition: FileSelector.h:116
void SetFormat(TextureFormat format)
Definition: View3D.cpp:108
int Run()
Initialize the engine and run the main loop, then return the application exit code....
Definition: Application.cpp:74
void EnableInternalLayoutUpdate()
Enable automatic layout update for internal elements.
Definition: ListView.cpp:346
bool GetSpecular() const
Return whether should render specular.
Definition: Material.h:310
static constexpr int NavigationDataVersion
Version of compiled navigation data. Navigation data should be discarded and rebuilt on mismatch.
Definition: NavigationMesh.h:82
BoundingBox box_
Bounding box.
Definition: OctreeQuery.h:131
static const Rect FULL
Rect in the range (-1, -1) - (1, 1).
Definition: Rect.h:278
TextEffect GetTextEffect() const
Definition: Text.h:180
const Variant & GetValue() const
Serialize from/to archive. Return true if successful.
Definition: Constant.cpp:38
WeakPtr(const ThisType &rhs) noexcept
Copy-construct from another weak pointer.
Definition: Ptr.h:349
SharedPtr< Text > loadingText_
ProgressBar text.
Definition: ProgressBar.h:106
DirectionAggregatorFlags enabledSubscriptions_
Enabled subscriptions.
Definition: DirectionAggregator.h:123
virtual void SerializeAuxiliaryData(Archive &archive)
Serialize auxiliary data from/to the current block of the archive. May throw ArchiveException.
Definition: Component.h:83
static bool IsProcessingThread()
Return whether current thread is one of processing threads.
Definition: WorkQueue.cpp:581
void WriteUnreliableDelta(NetworkFrame frame, Serializer &dest) override
Write unreliable delta update.
Definition: ReplicatedAnimation.cpp:235
const Matrix4 & GetProjection() const
Return projection matrix.
Definition: OcclusionBuffer.h:136
ObjectReflection * AddFactoryReflection()
Register a factory for an object type that would be automatically unregistered on unload.
Definition: PluginApplication.h:136
IndirectLightTracingSettings indirectChartTracing_
Settings for indirect light tracing for charts.
Definition: LightBakingSettings.h:205
static ThreadID GetCurrentThreadID()
Definition: Thread.cpp:199
void SetLayout(LayoutMode mode, int spacing=0, const IntRect &border=IntRect::ZERO)
Set layout parameters.
Definition: UIElement.cpp:1072
virtual void OnNodeSetEnabled(Node *node)
Handle scene node enabled status changing.
Definition: Component.cpp:161
void SetMinAnchor(const Vector2 &anchor)
Definition: UIElement.cpp:797
void Update(const SharedRenderPassState &sharedState)
Perform update that does not invoke any rendering commands.
Definition: RenderPath.cpp:65
T Pow(T x, T y)
Definition: MathDefs.h:201
void AddResourceRouter(ResourceRouter *router, bool addAsFirst=false)
Add a resource router object. By default there is none, so the routing process is skipped.
Definition: ResourceCache.cpp:377
ea::vector< VertexBufferAnimationData > vertexBuffersData_
Animation data for vertex buffers.
Definition: SoftwareModelAnimator.h:111
ea::string GetValue() const
Definition: XMLElement.cpp:738
Definition: NetworkValue.h:431
bool IsUpdateQueued() const
Return whether manual update queued. Called internally.
Definition: RenderSurface.h:107
static const IntRect ZERO
Zero-sized rect.
Definition: Rect.h:495
unsigned numTasks_
Number of tasks to spawn.
Definition: LightBakingSettings.h:82
Component * SpawnCopy(Node *node) const
Spawn similar component at the node. May fail only if component type is unknown.
Definition: PackedSceneData.cpp:138
bool array_
Texture array status if DDS.
Definition: Image.h:227
virtual const ea::string & GetAttributeName() const
Get action duration.
Definition: AttributeAction.cpp:55
bool Equals(const Quaternion &rhs, float eps=M_EPSILON) const
Test for equality with another quaternion with epsilon.
Definition: Quaternion.h:417
SharedPtr< BorderImage > cursor_
Cursor element.
Definition: LineEdit.h:151
Default implementation of UIBatchStateCache.
Definition: BatchStateCache.h:230
void ProcessRayQuery(const RayOctreeQuery &query, ea::vector< RayQueryResult > &results) override
Process octree raycast. May be called from a worker thread.
Definition: Skybox.cpp:57
static void RegisterObject(Context *context)
Definition: CheckBox.cpp:46
void DrawIKNode(DebugRenderer *debug, const IKNode &node, bool oriented) const
Draw IK node in DebugRenderer.
Definition: IKSolverComponent.cpp:180
const Frustum & GetFrustum() const
Return the view frustum.
Definition: DebugRenderer.h:176
Model * GetModel() const
Definition: CollisionShape.h:256
Variant(VariantType type, const ea::string &value)
Construct from type and value.
Definition: Variant.h:698
void DisconnectSuperMeshTetrahedrons(ea::vector< bool > &removed)
Mark super-mesh tetrahedrons in the to-be-removed array and disconnect all related adjacency.
Definition: TetrahedralMesh.cpp:805
void Set()
Set the condition. Will be automatically reset once a waiting thread wakes up.
Definition: Condition.h:54
void Define(const Sphere &sphere)
Define from another sphere.
Definition: Sphere.h:107
static unsigned shadowPassIndex
Index for shadow pass. Initialized once GetPassIndex() has been called for the first time.
Definition: Technique.h:324
PipelineState * GetOrCreatePlaceholderPipelineState(unsigned vertexStride, BatchStateCacheCallback *callback)
Definition: BatchStateCache.cpp:95
~BufferedSoundStream() override
Destruct.
ea::vector< WeakPtr< Text3D > > unusedCachedTextNodes_
Unused disabled Text3D elements.
Definition: TextRenderer3D.h:170
bool operator==(const SourceBatch &other) const
Equality comparison operator.
Definition: Drawable.h:186
Drawable2D(Context *context)
Construct.
Definition: Drawable2D.cpp:46
Definition: BreakInstance.h:33
ea::fixed_vector< GraphOutPin, 1 > outputPins_
Output pins. Define data flow.
Definition: GraphNode.h:199
float rotationEndVariance_
Rotation end variance.
Definition: ParticleEffect2D.h:329
~RigidBody2D() override
Destruct.
Definition: RigidBody2D.cpp:60
void HandleComponentAdded(StringHash eventType, VariantMap &eventData)
Handle component added in the scene to check for late addition of the navmesh.
Definition: CrowdManager.cpp:744
void SetPatchNeighbors(TerrainPatch *patch)
Set neighbors for a patch.
Definition: Terrain.cpp:1417
LightProbeVector lightProbes_
Light probes.
Definition: LightProbeGroup.h:205
bool useDrawRect_
Use draw rectangle flag.
Definition: StaticSprite2D.h:187
void SetScaleInLightmap(float scale)
Set scale in lightmap.
Definition: Terrain.h:272
LayoutMode GetLayoutMode() const
Definition: UIElement.h:645
const ea::string & GetPixelShaderDefines() const
Definition: Material.h:259
void SetStartParticleSize(float startParticleSize)
Set start particle size.
Definition: ParticleEffect2D.cpp:391
virtual void OnBatchesReady()
Called when batches are ready.
Definition: BatchCompositor.h:172
Curve of Variant values sampled by scalar values.
Definition: VariantCurve.h:62
const LightProbeVector & GetLightProbes() const
Return light probes.
Definition: LightProbeGroup.h:180
void SetTimes(unsigned times)
Set number of repetitions.
Definition: Repeat.cpp:113
bool PositionToTileIndex(int &x, int &y, const Vector2 &position) const
Convert position to tile index, if out of map return false.
Definition: TileMapDefs2D.cpp:96
const ea::vector< TextureFrame > & GetTextureFrames() const
Return all texture animation frames.
Definition: ParticleEffect.h:407
ea::string GetDisplayString() const override
Format string to display while dragging.
Definition: DragDropPayload.cpp:101
const XrPath subPath_
Indicates handed-ness for the OXR query.
Definition: OpenXR.h:115
virtual void SerializeInBlock(Archive &archive)
Serialize content from/to archive. May throw ArchiveException.
Definition: GraphPin.cpp:37
void UpdateCameraAngles()
Detect camera angles if camera has changed.
Definition: FreeFlyController.cpp:157
virtual bool IsEof() const
Definition: Deserializer.h:59
void SetIndexInArray(unsigned index)
Definition: TrackedComponent.h:48
Part of ReplicationManager used by both client and server, and referenced by components.
Definition: ReplicationManager.h:48
unsigned char areaID_
Area id to assign to the marked area.
Definition: NavArea.h:71
float farClip_
Far clip distance.
Definition: OcclusionBuffer.h:217
ea::string name_
Name of the pin for visual editor.
Definition: ParticleGraphPin.h:138
void Reset(PipelineStateTracker *sender, PipelineStateTracker *subscriber)
Reset and update dependency.
Definition: PipelineStateTracker.cpp:30
bool IsUpdateNow() const
Return whether the network is updated on this frame.
Definition: Network.h:115
RotateBy(Context *context)
Construct.
Definition: Move.cpp:598
VariantType GetValueType() const
Definition: ValueAnimation.h:129
bool BeginLoad(Deserializer &source) override
Load resource from stream. May be called from a worker thread. Return true if successful.
Definition: TextureCube.cpp:76
Cursor(Context *context)
Construct.
Definition: Cursor.cpp:74
EventHandler * GetEventHandler() const
Return active event handler. Set by Object. Null outside event handling.
Definition: Context.h:122
Definition: ApplyForce.h:37
Definition: VariantCurve.h:49
void WriteSnapshot(NetworkFrame frame, Serializer &dest) override
Write full snapshot.
Definition: BehaviorNetworkObject.cpp:168
SharedPtr< XMLFile > loadXMLFile_
XML file used during loading.
Definition: TmxFile2D.h:217
float GetFrequency() const
Definition: Sound.h:98
FileChange change_
File change information.
Definition: FileWatcher.h:94
void SetFlip(bool flipX, bool flipY, bool swapXY=false)
Set flip.
Definition: StaticSprite2D.cpp:125
~ValueAnimation() override
Destruct.
float maxDoubleClickDist_
Max screen distance the first click in a double click can be from the second click in a double click.
Definition: UI.h:471
static void PackVertexData(const Vector4 source[], unsigned sourceStride, void *dest, unsigned destStride, const VertexElement &element, unsigned start, unsigned count)
Pack given element data from Vector4 into vertex buffer. Stride is measured in bytes.
Definition: VertexBuffer.cpp:364
WeakPtr< Context > context_
Execution context.
Definition: Object.h:211
File change information.
Definition: FileWatcher.h:48
RmlNavigationManager & GetNavigationManager() const
Return navigation manager.
Definition: RmlUIComponent.h:75
float GetGravityScale() const
Definition: RigidBody2D.h:179
PointerAdapter(Context *context)
Construct.
Definition: PointerAdapter.cpp:35
InterfaceType & operator*() const noexcept
Dereference the object.
Definition: Ptr.h:495
const ea::vector< VAnimKeyFrame > & GetKeyFrames() const
Return all key frames.
Definition: ValueAnimation.h:141
void AppendPath(ea::string_view path)
Definition: FileIdentifier.cpp:99
void SetNavigationDataAttr(const ea::vector< unsigned char > &value) override
Set navigation data attribute.
Definition: DynamicNavigationMesh.cpp:417
float maxCursorSpeed_
Max cursor velocity.
Definition: PointerAdapter.h:120
SubsystemCache()
Construct.
Definition: SubsystemCache.cpp:62
virtual bool IsMain() const
Return whether the plugin can act as main entry point.
Definition: PluginApplication.h:51
float RollAngleoffFactor() const
Definition: SoundSource3D.h:89
void SendRemoteEvent(StringHash eventType, bool inOrder, const VariantMap &eventData=Variant::emptyVariantMap)
Send a remote event.
Definition: Connection.cpp:122
unsigned GetViewMask() const
Definition: Drawable.h:310
virtual bool CanLeaveState() const
Return true if state is ready to be deactivated. Executed by StateManager.
Definition: StateManager.cpp:93
void FindPath(ea::vector< Vector3 > &dest, const Vector3 &start, const Vector3 &end, const Vector3 &extents=Vector3::ONE, const dtQueryFilter *filter=nullptr)
Find a path between world space points. Return non-empty list of points if successful....
Definition: NavigationMesh.cpp:634
float GetMinAngle() const
Definition: BillboardSet.h:153
void ProcessForwardLighting()
Process forward lighting for all lights.
Definition: DrawableProcessor.cpp:684
uintptr_t handle_
A platform-specific handle to current loaded module.
Definition: DynamicModule.h:74
void TransformVertices(Decal &decal, const Matrix3x4 &transform)
Transform decal's vertices from the target geometry to the decal set local space.
Definition: DecalSet.cpp:971
WeakPtr< PhysicsWorld2D > physicsWorld_
Physics world.
Definition: RigidBody2D.h:202
bool keepInterResults_
Keep internal build resources for debug draw modes.
Definition: NavigationMesh.h:392
void SetFixedHeightResizing(bool enable)
Definition: Window.cpp:265
float deadZone_
Joystick dead zone half-width.
Definition: AxisAdapter.h:72
bool IsHeadless() const
Definition: Engine.h:140
virtual bool OnDragDropFinish(UIElement *source)
React to drag and drop finish. Return true to signal that the drop was accepted.
Definition: UIElement.cpp:485
void SetAngularFactor(const Vector3 &factor)
Definition: RigidBody.cpp:331
const Color & GetColor(Corner corner) const
Definition: Text3D.cpp:528
void Clear()
Clear data.
Definition: BinaryFile.cpp:103
void PostTaskForThread(TaskFunction &&task, TaskPriority priority, unsigned threadIndex)
Post the task for specified processing thread.
Definition: WorkQueue.cpp:412
void SetEdgeMaxError(float error)
Definition: NavigationMesh.cpp:326
unsigned GetBufferNumBytes() const
Return amount of buffered (unplayed) sound data in bytes.
Definition: BufferedSoundStream.cpp:110
float GetCFM() const
Definition: Constraint.h:167
void SetBringToBack(bool enable)
Definition: UIElement.cpp:892
const ea::string & GetTitle() const
Return title text. Return empty string if there is no title text element.
Definition: SystemMessageBox.cpp:69
unsigned GetNumDrawables() const
Return number of drawables.
Definition: Octree.h:98
@ JSON_ARRAY
JSON array type.
Definition: JSONValue.h:50
bool SetNumGeometryLodLevels(unsigned index, unsigned num)
Definition: Model.cpp:563
bool HasAlphaChannel() const
Definition: Image.cpp:2136
ea::vector< unsigned > unusedIndices_
Unused indices.
Definition: IndexAllocator.h:111
unsigned GetShadowMask() const
Definition: Terrain.h:222
SharedPtr< ActionState > StartAction(Object *target) override
Create new action state from the action.
Definition: Ease.cpp:142
IntVector2 GetUIPointerPosition() const
Get last known pointer position in UI space.
Definition: PointerAdapter.cpp:324
Vector4 position_
Position.
Definition: ModelView.h:58
static void RegisterObject(ParticleGraphSystem *context)
Register particle node factory.
Definition: Random.cpp:59
const ea::string & GetClipboardText() const
Definition: UI.cpp:839
ea::hash_set< StringHash > allowedRemoteEvents_
Allowed remote events.
Definition: Network.h:175
virtual bool IsWheelHandler() const
Return whether the element could handle wheel input.
Definition: UIElement.h:211
Vector3 ReadVector3()
Read a Vector3.
Definition: Deserializer.cpp:176
void SetStartColor(const Color &color)
Definition: RibbonTrail.cpp:837
const Matrix4 & GetProjection() const
Return the projection transform.
Definition: DebugRenderer.h:173
void SetMode(DebugHudModeFlags mode)
Definition: DebugHud.cpp:74
Vector4 Br_
Dot product with (Nx*Ny, Ny*Nz, Nz*Nz, Nz*Nx), red channel.
Definition: SphericalHarmonics.h:293
bool stencilBuffer_
Whether the depth-stencil buffer is required to have stencil.
Definition: RenderPipelineDefs.h:175
float GetEngineFactor() const
Get engine factor.
SharedPtr< ActionState > StartAction(Object *target) override
Create new action state from the action.
Definition: ShaderParameter.cpp:134
b2MotorJointDef jointDef_
Box2D joint def.
Definition: ConstraintMotor2D.h:85
LightBaker(Context *context)
Construct.
Definition: LightBaker.cpp:79
unsigned revision_
Revision that tracks substantial updates of animation state.
Definition: AnimationController.h:275
void AddCross(const Vector3 ¢er, float size, const Color &color, bool depthTest=true)
Add a cross.
Definition: DebugRenderer.cpp:514
ea::unordered_map< ea::pair< WeakPtr< RigidBody >, WeakPtr< RigidBody > >, ManifoldPair > currentCollisions_
Collision pairs on this frame.
Definition: PhysicsWorld.h:365
void SetBillboardsAttr(const VariantVector &value)
Set billboards attribute.
Definition: BillboardSet.cpp:390
~Light() override
Destruct.
void SetBlockEvents(bool block)
Block object from sending and receiving events.
Definition: Object.h:205
Definition: ExpireInstance.h:34
static void RegisterObject(Context *context)
Definition: TileMap2D.cpp:48
float GetMaxTimeToLive() const
Definition: ParticleEffect.h:362
Definition: ParticleGraphLayer.h:36
HighPrecisionVector3 center_
Center.
Definition: TetrahedralMesh.h:117
ea::list< StoredLogMessage > threadMessages_
Log messages from other threads.
Definition: Log.h:195
bool lineAntiAlias_
Line antialiasing flag.
Definition: DebugRenderer.h:208
bool operator<(const IntVector3 &rhs) const
Lexicographic comparison for sorting.
Definition: Vector3.h:74
PipelineBatchBackToFront()=default
Construct default.
float GetEffectiveSpecularIntensity() const
Definition: Light.h:334
void Clear()
Clear collection, considering number of threads in WorkQueue.
Definition: WorkQueue.h:326
unsigned GetNumSoftwareSkinningBones() const
Return number of bones used for software skinning.
Definition: Renderer.h:258
bool removed_
Internal flags for easier algorithms. Never stored between API calls.
Definition: AnimationController.h:110
Sequence of actions.
Definition: Sequence.h:35
ea::unordered_map< WeakPtr< UIElement >, MouseButtonFlags > touchDragElements_
UI elements that are being touched with touch input.
Definition: UI.h:481
const RenderPipelineSettings & GetSettings() const
Definition: RenderPipeline.h:101
ea::vector< bool > buttonPress_
Button pressed on this frame.
Definition: Input.h:143
Static model per-geometry extra data.
Definition: StaticModel.h:33
ea::vector< float > lastTimeSteps_
Previous timesteps for smoothing.
Definition: Engine.h:178
FrameInfo frameInfo_
Definition: DrawableProcessor.h:278
void ClearDrawablesZone()
Internal. Clear zone reference from drawables inside the bounding box.
Definition: Zone.cpp:361
float GetScaleInLightmap() const
Return scale in lightmap.
Definition: StaticModel.h:126
const FrameInfo & GetFrameInfo() const
Return the frame update parameters.
Definition: Renderer.h:297
void SendEvent(StringHash eventType)
Send event to all subscribers.
Definition: Object.cpp:248
Sprite2D * GetSprite() const
Return sprite.
Definition: TmxFile2D.cpp:371
Rarely-changing settings of render buffer manager.
Definition: RenderPipelineDefs.h:164
bool RemoveDir(const ea::string &directoryIn, bool recursive)
Remove files in a directory, or remove entire directory recursively.
Definition: FileSystem.cpp:1464
bool operator!=(const SharedPtr< U1, U2 > &rhs) const noexcept
Test for inequality with another shared pointer.
Definition: Ptr.h:247
EnumArray< SharedPtr< OpenXRBinding >, VRHand > handHaptics_
Cached haptic outputs to avoid constant queries.
Definition: OpenXR.h:322
int * data_
Buffer data.
Definition: OcclusionBuffer.h:60
float time_
Time since emitter start.
Definition: UpdateContext.h:38
IntRect rectTexels_
Lightmap rectangle on the chart (in texels).
Definition: LightmapCharter.h:69
SharedPtr< Serializable > Clone(bool resetToDefault=true) const
Clone this serializable.
Definition: Serializable.cpp:645
float GetMaxSlope() const
Return max slope angle in degrees.
Definition: KinematicCharacterController.h:124
unsigned GetCollisionLayer() const
Return collision layer.
Definition: KinematicCharacterController.h:64
void DrawDebugTileGeometry(DebugRenderer *debug, bool depthTest, int tileIndex)
Draw debug geometry for single tile.
Definition: NavigationMesh.cpp:193
float GetEdgeMaxLength() const
Definition: NavigationMesh.h:258
float GetDefaultToolTipDelay() const
Definition: UI.h:222
void FinalizeForwardLighting()
Should be called after all forward lighting is processed.
Definition: DrawableProcessor.cpp:669
File selector dialog.
Definition: FileSelector.h:51
~Animatable() override
Destruct.
Vector3 position_
Position.
Definition: DecalSet.h:63
TileMapObject2D * GetObject(unsigned index) const
Return tile map object at index.
Definition: TmxFile2D.cpp:327
SharedPtr< Texture2D > texture_
Texture.
Definition: Sprite2D.h:108
ShapeType shapeType_
Collision shape type.
Definition: CollisionShape.h:322
MainlineKey * mainlineKey_
Current mainline key.
Definition: SpriterInstance2D.h:107
ea::vector< unsigned > selections_
Current selection.
Definition: ListView.h:190
float DotProduct(const Quaternion &rhs) const
Calculate dot product.
Definition: Quaternion.h:402
const Color & GetEffectiveFogColor() const
Return effective fog color considering current zone.
Definition: Camera.cpp:773
RefCount()=default
Construct.
static void RegisterObject(Context *context)
Definition: SoundSource3D.cpp:56
void ChangeSelection(int delta, bool additive=false)
Move selection by a delta and clamp at list ends. If additive (multiselect only), will add to the exi...
Definition: ListView.cpp:663
SharedPtr< Sound > sound_
Sound that is being played.
Definition: SoundSource.h:235
unsigned rootBoneIndex_
Root bone index.
Definition: Skeleton.h:164
int GetWidth() const
Definition: TileMapLayer2D.cpp:274
void PrepareInstancingBuffer(BatchRenderer *batchRenderer) override
Prepare instancing buffer for scene pass.
Definition: OutlineScenePass.cpp:162
float axisSensitivity_
Axis sensitivity.
Definition: FreeFlyController.h:129
bool CompareRaytracerGeometryByObject(const RaytracerGeometry &lhs, const RaytracerGeometry &rhs)
Compare Embree geometries by objects (less).
Definition: RaytracerScene.h:110
void SetVariantMap(const VariantMap &variantMap, Context *context=nullptr)
Set variant map, context must provide for resource ref.
Definition: JSONValue.cpp:685
unsigned vertexLightsHash_
Hash of vertex lights. Non-zero.
Definition: LightAccumulator.h:213
Vector3 GetAngularVelocity() const
Definition: RigidBody.cpp:609
virtual bool EndLoad()
Finish resource loading. Always called from the main thread. Return true if successful.
Definition: Resource.cpp:141
const Vector3 & GetBaseVelocity() const
Definition: RibbonTrail.h:191
ea::vector< GeometryLODView > lods_
LODs.
Definition: ModelView.h:209
bool enabled_
Enabled flag.
Definition: Component.h:145
void SetHoverOffset(const IntVector2 &offset)
Definition: BorderImage.cpp:111
Constraint2D * GetOwnerConstraint() const
Definition: ConstraintGear2D.h:56
bool GetBakeLightmapEffective() const
Return whether the lightmap is baked for this object. Return false for objects with zero scale in lig...
Definition: StaticModel.h:122
void SerializeInBlock(Archive &archive) override
Serialize content from/to archive. May throw ArchiveException.
Definition: Move.cpp:416
bool FilterUIStyleAttributes(XMLElement &dest, const XMLElement &styleElem) const
Filter UI-style attributes in serialization process.
Definition: UIElement.cpp:2016
void SetDepthTestMode(CompareMode mode)
Definition: Technique.cpp:77
bool positionDirty_
Screen position dirty flag.
Definition: UIElement.h:851
void OnSetEnabled() override
Handle enabled/disabled state change.
Definition: ParticleEmitter.cpp:86
Definition: TypeTrait.h:45
ea::vector< Vector3 > vertices_
Vertices.
Definition: TetrahedralMesh.h:417
void SetFixedScreenSize(bool enable)
Definition: Text3D.cpp:370
void MarkPositionsDirty()
Mark vertex buffer to need an update.
Definition: RibbonTrail.cpp:898
@ AM_DEFAULT
Default mode, same as AM_FILE and AM_PREFAB.
Definition: Attribute.h:58
void SetPosition(const IntVector2 &position)
Definition: UIElement.cpp:553
Base class for drag&drop payload.
Definition: DragDropPayload.h:42
bool HasTag(const ea::string &tag) const
Return whether element is tagged by a specific tag.
Definition: UIElement.cpp:1748
void SetJumpSpeed(float jumpSpeed)
Set jump speed.
Definition: KinematicCharacterController.cpp:559
void UpdateBatchesDelayed(const FrameInfo &frame) override
Batch update from main thread. Called on demand only if RequestUpdateBatchesDelayed() is called from ...
Definition: Text3D.cpp:146
Mutex sceneMutex_
Mutex for the delayed dirty notification queue.
Definition: Scene.h:339
void SetInertia(float inertia)
Definition: RigidBody2D.cpp:134
float GetMinTimeToLive() const
Definition: ParticleEffect.h:358
Vector4 Column(unsigned j) const
Return matrix column.
Definition: Matrix4.h:648
void SetUniformPadding(float padding)
Set uniform padding in every direction in world space units.
Definition: CameraOperator.cpp:144
Quaternion Nlerp(const Quaternion &rhs, float t, bool shortestPath=false) const
Normalized linear interpolation with another quaternion.
Definition: Quaternion.cpp:337
Rml::DataModelConstructor * ExpectDataModelConstructor() const
Get data model constructor. Logs error if the constructor is not available.
Definition: RmlUIComponent.cpp:158
void GetResources(ea::vector< Resource * > &result, StringHash type) const
Return all loaded resources of a specific type.
Definition: ResourceCache.cpp:611
bool ReadTiles(Deserializer &source, bool silent)
Read tiles data to the navigation mesh.
Definition: DynamicNavigationMesh.cpp:523
Definition: RenderBufferManager.h:42
bool operator==(const RenderPipelineSettings &rhs) const
Definition: RenderPipelineDefs.h:675
bool GetAmbientGradient() const
Definition: Zone.h:162
static void RegisterObject(Context *context)
Definition: Texture2D.cpp:51
void AddDelayedWorldTransform(const DelayedWorldTransform2D &transform)
Add a delayed world transform assignment. Called by RigidBody2D.
Definition: PhysicsWorld2D.cpp:460
void WriteTile(Serializer &dest, int x, int z, int layer) const
Write tiles data.
Definition: DynamicNavigationMesh.cpp:510
~RibbonTrail() override
Destruct.
void OnInputReceived(NetworkFrame inputFrame)
Notify statistics aggregator that user input has received for specified frame.
Definition: ServerReplicator.cpp:310
void Stop()
Stop playback.
Definition: SoundSource.cpp:250
bool CalculateAdjacency()
Calculate adjacency information. Surface must be closed.
Definition: TetrahedralMesh.cpp:85
SDL_JoystickID joystickID_
SDL joystick instance ID.
Definition: Input.h:133
Image resource.
Definition: Image.h:60
Internal helper class for invoking event handler functions.
Definition: Object.h:243
static unsigned maxBonesHWSkinned
Max number of bones which can be skinned on GPU. Zero means default value.
Definition: Graphics.h:333
float positionWeight_
Weight of the position channel.
Definition: AnimationTrack.h:63
IntVector3 GetCoordinateSystem() const
Definition: RaycastVehicle.h:134
bool IsInView() const
Definition: Drawable.cpp:273
void HandleItemClicked(StringHash eventType, VariantMap &eventData)
Handle listview item click event.
Definition: DropDownList.cpp:315
const BoundingBox & GetBoundingBox() const
Get tracked bounding box.
Definition: CameraOperator.h:60
unsigned GetNumKeyFrames() const
Definition: KeyFrameSet.h:67
static void RegisterObject(Context *context)
Definition: ObjectAnimation.cpp:55
Definition: EmitterPositionInstance.h:35
bool IsBool() const
Definition: JSONValue.h:202
bool PrepareForThreadedUpdate(Camera *camera, unsigned frameNumber)
Definition: AnimatedModel.cpp:191
float GetDampingRatio() const
Definition: ConstraintMouse2D.h:71
Matrix3x4(const Vector3 &translation, const Quaternion &rotation, float scale) noexcept
Construct from translation, rotation and uniform scale.
Definition: Matrix3x4.h:150
void Flush() final
Flush all pending events. Should be called at least once before destructor.
Definition: ArchiveBase.h:49
Material * GetMaterial() const
Definition: Terrain.cpp:484
float Ease(float time) const override
Apply easing function to the time argument.
Definition: Ease.h:179
VertexMaskFlags elementMask_
Vertex element legacy bitmask.
Definition: VertexBuffer.h:145
void SerializeInBlock(Archive &archive) override
Serialize content from/to archive. May throw ArchiveException.
Definition: Move.cpp:615
void ProcessEvent(Rml::Event &event) override
Definition: RmlEventListeners.cpp:310
Rect GetCrop() const
Get Crop.
Definition: RenderBillboard.cpp:104
ea::vector< int > hats_
POV hat bits.
Definition: Input.h:149
static const Vector3 RIGHT
(1,0,0) vector.
Definition: Vector3.h:509
const char * GetRuntimeName() const override
Return a string name for the runtime, spaces are not allowed as this will be passed along to shaders.
Definition: OpenXR.h:231
ea::vector< UIElement * > GetSelectedItems() const
Definition: ListView.cpp:906
void SetAgentRadius(float radius)
Definition: NavigationMesh.cpp:296
LightmapChartBakedIndirect()=default
Construct default.
@ LOAD_RESOURCES_ONLY
Preload resources used by a scene or object prefab file, but do not load any scene content.
Definition: Scene.h:52
bool compressed_
Compression flag.
Definition: File.h:154
void SetMaxSuspensionTravel(float length)
Set suspension max travel.
Variant(VariantType type, const char *value)
Construct from type and value.
Definition: Variant.h:710
bool IsPlaying() const
Definition: Audio.h:101
SharedPtr< Image > GetNextSibling() const
Return the next sibling image of an array or cubemap.
Definition: Image.h:181
void MarkOtherBodyNodeIDDirty()
Mark other body node ID dirty.
Definition: Constraint2D.h:97
Definition: EmitterRotation.h:37
DrawableFlags drawableFlags_
Drawable flags.
Definition: Drawable.h:441
IntVector2 childOffset_
Child elements' offset. Used internally.
Definition: UIElement.h:888
Variant MakeCustomValue(T &&value)
Make custom variant value.
Definition: Variant.h:1678
float GetGain() const
Definition: SoundSource.h:115
static void RegisterObject(Context *context)
Definition: Constraint2D.cpp:50
BoundingBox boundingBox_
Local bounding box.
Definition: Octree.h:196
Definition: ArchiveSerializationBasic.h:149
StringHash stateType_
Target state if set by type StringHash.
Definition: StateManager.h:173
StringVariantMap GetStringVariantMap() const
Return a string variant map attribute, or empty if missing.
Definition: XMLElement.cpp:1034
bool Exists(const FileIdentifier &fileName) const override
Definition: MountedRoot.cpp:44
UIElement * GetUIElement() const
Get UI element to filter touch events.
Definition: DirectionAggregator.h:98
void SetSelectOnClickEnd(bool enable)
Definition: ListView.cpp:773
float GetWeight() const
Definition: AnimationState.h:194
ea::tuple< MountPoint *, ea::string_view, ea::string_view > FindMountPoint(ea::string_view fileName) const
Definition: MountedAliasRoot.cpp:47
void CloseInternal()
Close a window document if it was open.
Definition: RmlUIComponent.cpp:265
void OnSceneSet(Scene *scene) override
Handle scene being assigned.
Definition: ParticleGraphEmitter.cpp:196
TerrainPatch * GetNorthPatch() const
Return north neighbor patch.
Definition: TerrainPatch.h:90
WeakPtr< RigidBody2D > otherBody_
Other body.
Definition: Constraint2D.h:106
void UpdateClientClocks(float timeStep, const ea::vector< MsgSceneClock > &pendingClockUpdates)
Definition: ClientReplica.cpp:67
Vector2 startPos_
Start position.
Definition: ParticleEmitter2D.h:56
Vector3 normal_
Hit normal in world space. Negation of ray direction if per-triangle data not available.
Definition: OctreeQuery.h:209
void OnDragEnd(const IntVector2 &position, const IntVector2 &screenPosition, MouseButtonFlags dragButtons, MouseButtonFlags releaseButtons, Cursor *cursor) override
React to mouse drag end.
Definition: Window.cpp:230
void CookDeltaUpdates(NetworkFrame currentFrame)
Cook all requested delta updates.
Definition: ServerReplicator.cpp:140
SetAttribute(Context *context)
Construct.
Definition: Attribute.cpp:87
void OnWorldBoundingBoxUpdate() override
Recalculate the world-space bounding box.
Definition: StaticModelGroup.cpp:367
void UnsubscribeFromAllEventsExcept(const ea::vector< StringHash > &exceptions)
Unsubscribe from all events except those listed.
Definition: Object.cpp:212
int numDragButtons
How many buttons initiated the drag.
Definition: UI.h:292
float GetDistance() const
Return distance from camera.
Definition: Drawable.h:378
CrowdAgentVelocityCallback velocityCallback_
Velocity callback.
Definition: CrowdAgent.h:253
Definition: Material.h:64
void SetMaterialAttr(const ResourceRef &value)
Set material attribute.
Definition: DecalSet.cpp:514
void ApplyAttributes() override
Apply attribute changes that can not be applied immediately. Called after scene load or a network upd...
Definition: PrefabReference.cpp:61
float AbsDotProduct(const Vector2 &rhs) const
Calculate absolute dot product.
Definition: Vector2.h:327
Definition: PatternMatchingNode.h:36
Color GetColorFromTemperature() const
Definition: Light.cpp:399
Two-dimensional bounding rectangle with integer values.
Definition: Rect.h:288
AttributeActionState(FiniteTimeAction *action, Object *target, AttributeInfo *attribute)
Construct.
Definition: AttributeActionState.cpp:35
void SetScene(Scene *scene)
Definition: Viewport.cpp:97
AllocatorBlock * allocator_
Allocator block.
Definition: Allocator.h:120
void ConstructBatch(UIBatch &pageBatch, const ea::vector< GlyphLocation > &pageGlyphLocation, float dx=0, float dy=0, Color *color=nullptr, float depthBias=0.0f)
Construct batch.
Definition: Text.cpp:788
ea::vector< WeakPtr< Constraint2D > > constraints_
Constraints.
Definition: RigidBody2D.h:214
unsigned GetSize() const override
Get size.
Definition: Variant.h:411
float rotationStartVariance_
Rotation start variance.
Definition: ParticleEffect2D.h:325
void SetShaderParameter(const ea::string &name, const Variant &value, bool isCustom=false)
Definition: Material.cpp:629
VariantMap ReadVariantMap()
Read a variant map.
Definition: Deserializer.cpp:453
~ValueAnimationInfo() override
Destruct.
void SetDebugRenderer(DebugRenderer *debug)
Set debug renderer to use. Called both by PhysicsWorld itself and physics components.
Definition: PhysicsWorld.cpp:830
void PostUpdate(float timeStep)
Send outgoing messages after frame logic. Called by HandleRenderUpdate.
Definition: Network.cpp:490
void ScanDir(ea::vector< ea::string > &result, const ea::string &pathName, const ea::string &filter, ScanFlags flags) const
Scan a directory for specified files.
Definition: FileSystem.cpp:945
void UpdateGeometry(const FrameInfo &frame) override
Prepare geometry for rendering. Called from a worker thread if possible (no GPU update).
Definition: RibbonTrail.cpp:405
Decal renderer component.
Definition: DecalSet.h:104
float tileWidth_
Tile width.
Definition: TileMapDefs2D.h:59
virtual bool Save(ParticleGraphWriter &writer, GraphNode &node)
Save node.
Definition: ParticleGraphNode.cpp:122
void InitializeSuperMesh(const BoundingBox &boundingBox)
Create super-mesh for Delaunay triangulation.
Definition: TetrahedralMesh.cpp:422
Vertex buffer morph data.
Definition: Model.h:42
float sortValue_
Current sort value.
Definition: Drawable.h:485
void SetLodBias(float bias)
Definition: Drawable.cpp:194
IntVector2 hotSpot_
Hotspot for positioning and rotation.
Definition: Sprite.h:129
void RemoveControlPoint(Node *point)
Remove a Node Control Point from the SplinePath.
Definition: SplinePath.cpp:153
rcPolyMeshDetail * polyMeshDetail_
Recast detail poly mesh.
Definition: NavBuildData.h:100
float GetRadiusThickness() const
Get Radius Thickness.
Definition: Cone.cpp:81
void RepairBoneWeights()
Normalize bone weights and cleanup invalid bones. Ignored if there's no bones.
Definition: ModelView.cpp:1493
Component * SpawnExact(Scene *scene) const
Spawn exact component in the scene. May fail.
Definition: PackedSceneData.cpp:109
void HandleTouchEnd(StringHash eventType, VariantMap &eventData)
Handle touch end event.
Definition: RmlUI.cpp:589
void SetMaxTriangles(unsigned triangles)
Set maximum triangles to render.
Definition: OcclusionBuffer.cpp:128
static const Vector3 BACK
(0,0,-1) vector.
Definition: Vector3.h:517
Intersection IsInsideFast(const BoundingBox &box) const
Test if a bounding box is (partially) inside or outside.
Definition: Frustum.h:144
Operation on attribute.
Definition: Random.h:37
void SetLowerTranslation(float lowerTranslation)
Definition: ConstraintPrismatic2D.cpp:93
bool bufferDirty_
Vertex buffer needs rewrite flag.
Definition: BillboardSet.h:222
bool multiselect_
Multiselect flag.
Definition: ListView.h:194
const Color & GetModalFrameColor() const
Definition: Window.h:141
const Quaternion & GetRotation() const
Definition: CollisionShape.h:248
const Vector3 GetAmbientLighting() const
Return zone's ambient light in linear space.
Definition: Zone.cpp:197
@ WM_CLAMP
Clamp mode.
Definition: AnimationDefs.h:38
bool dirty_
Whether the Control Point IDs are dirty.
Definition: SplinePath.h:146
static void RegisterObject(ParticleGraphSystem *context)
Register particle node factory.
Definition: NormalizedEffectTime.cpp:38
ImVec2 windowPosition_
Initial message box window position.
Definition: SystemMessageBox.h:68
void HandleSelectionChanged(StringHash eventType, VariantMap &eventData)
Handle the listview selection change. Set placeholder text hidden/visible as necessary.
Definition: DropDownList.cpp:338
unsigned GetAnisotropy() const
Definition: Texture.h:137
ea::string GetStringCopy(const StringHash &hash) const
Return string for given StringHash. Return empty string if not found.
Definition: StringHashRegister.cpp:76
void SetCenter(const Vector2 ¢er)
Definition: CollisionCircle2D.cpp:67
void DrawDebugGeometry(DebugRenderer *debug, bool depthTest) override
Visualize the component as debug geometry.
Definition: NavigationMesh.cpp:234
float blendFactor_
Blend factor.
Definition: LightBakingSettings.h:150
float g_
Green value.
Definition: Color.h:268
void SetFallSpeed(float fallSpeed)
Set fall speed (terminal velocity).
Definition: KinematicCharacterController.cpp:550
void HandlePostUpdate(StringHash eventType, VariantMap &eventData)
Handle logic post-update event.
Definition: UI.cpp:1957
bool Decompress(unsigned char *dest) const
Decompress to RGBA. The destination buffer required is width * height * 4 bytes. Return true if succe...
Definition: Image.cpp:87
void BroadcastMessage(NetworkMessageId msgID, const VectorBuffer &msg, PacketTypeFlags packetType=PacketType::ReliableOrdered)
Broadcast a message with content ID to all client connections.
Definition: Network.cpp:267
long long GetUSec(bool reset=false)
Return elapsed microseconds and optionally reset.
Definition: Timer.cpp:228
void GetDrawables(ea::vector< Drawable2D * > &drawables, Node *node)
Get all drawables in node.
Definition: Renderer2D.cpp:358
CollisionChain2D(Context *context)
Construct.
Definition: CollisionChain2D.cpp:36
IntVector2 maxSize_
Maximum size it allows to grow. It is zero when it is not allowed to grow.
Definition: AreaAllocator.h:66
Array2D(const ArrayDimensions2D &dim, const T &value)
Construct with dimensions and initial value.
Definition: Array2D.h:123
Tile define.
Definition: TileMapDefs2D.h:134
void SetLoop(bool loop)
Definition: CollisionChain2D.cpp:55
bool filteredColor_
Whether output color buffers are required to have at least bilinear filtering.
Definition: RenderPipelineDefs.h:173
bool hasSpriteSheet_
Has sprite sheet.
Definition: AnimationSet2D.h:115
float defaultToolTipDelay_
Tooltip default display delay in seconds.
Definition: UI.h:429
const ea::string & GetMessage() const
Definition: MessageBox.cpp:131
Definition: ProtocolMessages.h:60
float GetIntensityDivisor(float attenuation=1.0f) const
Return a divisor value based on intensity for calculating the sort value.
Definition: Light.h:421
Signal< void(RenderPath *renderPath)> OnRenderPathChanged
Invoked when render path changes.
Definition: RenderPipeline.h:90
ea::unordered_map< unsigned, WeakPtr< Component > > componentLookup_
Component by old Id.
Definition: SceneResolver.h:58
bool GetDirectoryMode() const
Definition: FileSelector.h:145
Variant value_
Value.
Definition: Constant.h:86
void CreateIndexData()
Create index data shared by all patches.
Definition: Terrain.cpp:1148
void OnMarkedDirty(Node *point) override
Listener to manage Control Point movement.
Definition: SplinePath.cpp:284
void BuildHullSurface(TetrahedralMeshSurface &hullSurface)
Build hull surface.
Definition: TetrahedralMesh.cpp:1045
volatile int fractPosition_
Playback fractional position.
Definition: SoundSource.h:241
void OnSetEnabled() override
Handle enabled/disabled state change.
Definition: AnimationController.cpp:428
bool FilterAttributes(XMLElement &dest) const
Filter attributes in serialization process.
Definition: UIElement.cpp:513
void UpdateTextBatches()
Update text UI batches.
Definition: Text3D.cpp:600
Scene processor for RenderPipeline.
Definition: SceneProcessor.h:48
void ProcessSceneLoaded(int msgID, MemoryBuffer &msg)
Process a SceneLoaded message from the client. Called by Network.
Definition: Connection.cpp:603
unsigned GetEchoCharacter() const
Definition: LineEdit.h:116
float GetMaxMotorTorque() const
Definition: ConstraintRevolute2D.h:92
void DrawDebugGeometry(DebugRenderer *debug, bool depthTest) override
Render debug geometry for the bounds.
Definition: NavArea.cpp:71
void Repair()
Repair missing vertex elements if possible.
Definition: ModelView.cpp:571
virtual const FrameInfo & GetFrameInfo() const override
Return frame info with all members filled.
Definition: StereoRenderPipeline.cpp:632
Common parameters for light accumulation.
Definition: LightAccumulator.h:99
const ea::string & GetName() const override
Return the file name.
Definition: AbstractFile.h:65
EmitterType GetEmitterType() const
Definition: ParticleEffect.h:310
virtual ~CustomVariantValue()=default
Destruct.
bool retryCreation_
Constraint creation retry flag if attributes initially set without scene.
Definition: Constraint.h:235
Timeline.
Definition: SpriterData2D.h:203
void GetChildrenWithTag(ea::vector< UIElement * > &dest, const ea::string &tag, bool recursive=false) const
Return child elements with a specific tag either recursively or non-recursively.
Definition: UIElement.cpp:1753
ea::string messageText_
Message text element.
Definition: SystemMessageBox.h:64
void SetRatio(float ratio)
Definition: ConstraintGear2D.cpp:84
ea::unordered_map< StringHash, SharedPtr< Object > > Container
Container for dynamic subsystems.
Definition: SubsystemCache.h:72
auto Tie() const
Definition: AutoExposurePass.h:45
void SetLoadingPercentStyle(const ea::string &style)
Sets the loading percent style.
Definition: ProgressBar.h:83
WeakPtr< Terrain > north_
North neighbor terrain.
Definition: Terrain.h:339
Animation * GetAnimation() const
Definition: AnimationController.h:73
Urho3D execution context. Provides access to subsystems, object factories and attributes,...
Definition: Context.h:70
const int * Data() const
Return integer data.
Definition: Vector2.h:154
IncrementalLightBakerSettings incremental_
Incremental light baker settings.
Definition: LightBakingSettings.h:221
void Update()
Periodical update.
Definition: SceneRendererToTexture.cpp:69
float biasAutoAdjust_
Automatic depth bias adjustment strength.
Definition: Light.h:147
IntRect GetIntRect(const ea::string &name) const
Return an IntRect attribute, or default if missing.
Definition: XMLElement.cpp:876
void SetMaterialAttr(const ResourceRef &value)
Set material attribute.
Definition: Text3D.cpp:568
b2CircleShape circleShape_
Circle shape.
Definition: CollisionCircle2D.h:68
ea::string fileName_
Source file name.
Definition: Scene.h:333
Intersection IsInside(const BoundingBox &box) const
Test if a bounding box is inside, outside or intersects.
Definition: Frustum.h:123
bool SaveJSON(JSONValue &dest) const
Save as JSON data. Return true if successful.
Definition: ObjectAnimation.cpp:171
void ReleasePackageResources(PackageFile *package, bool force=false)
Release resources loaded from a package file.
Definition: ResourceCache.cpp:792
Vector3 GetVector3(const ea::string &name) const
Return a Vector3 attribute, or zero vector if missing.
Definition: XMLElement.cpp:1053
void ConnectToAnimatedModel(AnimatedModel *model)
Connect to AnimatedModel.
Definition: AnimationState.cpp:117
Utility class that resolves node & component IDs after a scene or partial scene load.
Definition: SceneResolver.h:37
ea::vector< JSONValue > * arrayValue_
Definition: JSONValue.h:335
DebugTriangle()=default
Construct undefined.
ea::vector< unsigned > ignoredVertices_
Array of ignored vertices.
Definition: TetrahedralMesh.h:423
Quaternion Inverse() const
Return inverse.
Definition: Quaternion.h:368
ea::string name_
Pin name.
Definition: GraphPin.h:55
int GetFrom() const
Get From.
Definition: Box.cpp:90
Tmx objects layer.
Definition: TmxFile2D.h:107
ea::string GetTextAttr() const
Return text attribute.
Definition: Text.cpp:460
void AddFrame(const Matrix3x4 &worldTransform, float scale=1.0f, Color colorX=Color::RED, Color colorY=Color::GREEN, Color colorZ=Color::BLUE, bool depthTest=true)
Add an XYZ frame at the given worldTransform with optional uniform scale.
Definition: DebugRenderer.cpp:164
SoundSource(Context *context)
Construct.
Definition: SoundSource.cpp:111
float SignedAngle(const Vector3 &rhs, const Vector3 &axis) const
Definition: Vector3.h:418
~ConstraintWheel2D() override
Destruct.
ea::string appPreferencesDir_
App preference directory.
Definition: Engine.h:174
Lightweight mount point that provides read-only access to the externally managed memory.
Definition: MountedRoot.h:35
void SetMaxObstacles(unsigned maxObstacles)
Definition: DynamicNavigationMesh.h:85
ParticleGraphPin pins_[1]
Pins.
Definition: Attribute.h:101
bool LoadTileSet(const XMLElement &element)
Load tile set.
Definition: TmxFile2D.cpp:620
void Define(const Rect &rect)
Define from a Rect.
Definition: BoundingBox.h:152
int drawOrder_
Draw order.
Definition: Drawable2D.h:72
Decal()
Construct with defaults.
Definition: DecalSet.h:80
Object * GetTarget() const
Definition: ActionState.h:51
void Decompose(Vector3 &translation, Quaternion &rotation, Vector3 &scale) const
Return decomposition to translation, rotation and scale.
Definition: Matrix4.cpp:65
float GetFogEnd() const
Definition: Zone.h:138
float radialAccelVariance_
Radial acceleration variance.
Definition: ParticleEffect2D.h:283
void BeginSendEvent(Object *sender, StringHash eventType)
Begin event send.
Definition: Context.cpp:349
Texture2D * GetRenderTexture() const
Definition: View3D.cpp:139
void MarkForDeletion(unsigned particleIndex)
Mark a particle for deletion.
Definition: ParticleGraphLayerInstance.cpp:143
void UpdateLocalBoundingBox()
Update local bounding box.
Definition: LightProbeGroup.cpp:310
BoundingBox(const Rect &rect) noexcept
Construct from a rect, with the Z dimension left zero.
Definition: BoundingBox.h:62
Vector2 ToVector2() const
Return Vector2 vector (z component is ignored).
Definition: Vector3.h:486
VertexBuffer * GetVertexBuffer(unsigned index) const
Definition: Geometry.cpp:196
ea::list< Decal > decals_
Decals.
Definition: DecalSet.h:240
Sound source component with three-dimensional position.
Definition: SoundSource3D.h:33
bool GetVSync() const
Definition: Graphics.h:200
Vector3 Scale() const
Return the scaling part.
Definition: Matrix3x4.h:651
static constexpr unsigned NumVariants
Definition: AnimationController.h:115
Matrix4(const Matrix4 &matrix) noexcept
Copy-construct from another matrix.
Definition: Matrix4.h:71
bool WriteIntVector2(const IntVector2 &value)
Write an IntVector2.
Definition: Serializer.cpp:103
Packed node data.
Definition: PackedSceneData.h:37
ea::string Get(const ea::string &id, int index=-1)
Return a string in the current language. Returns EMPTY_STRING if id is empty. Returns id if translati...
Definition: Localization.cpp:130
Plane(const Vector3 &normal, const Vector3 &point) noexcept
Construct from a normal vector and a point on the plane.
Definition: Plane.h:53
Vector2 texCoord_
Texture coordinates.
Definition: CustomGeometry.h:41
void SetDragDropMode(DragAndDropModeFlags mode)
Definition: UIElement.cpp:1017
void UpdateMass()
Update mass and inertia to the Bullet rigid body. Readd body to world if necessary: if was in world a...
Definition: RigidBody.cpp:694
unsigned tetFace_
Face of underlying tetrahedron, from 0 to 3.
Definition: TetrahedralMesh.h:142
bool IsFixedRotation() const
Definition: RigidBody2D.h:171
void SetMinDirection(const Vector3 &direction)
Definition: ParticleEffect.cpp:490
Timer()
Construct. Get the starting clock value.
Definition: Timer.cpp:203
Description of an automatically serializable variable.
Definition: Attribute.h:92
Definition: IKStickTargets.h:12
btCollisionConfiguration * collisionConfiguration_
Bullet collision configuration.
Definition: PhysicsWorld.h:347
ByteVector buffer_
Dynamic data buffer.
Definition: VectorBuffer.h:78
void SetView(Camera *camera)
Set the camera viewpoint. Call before rendering, or before adding geometry if you want to use culling...
Definition: DebugRenderer.cpp:80
void ReadUnreliableDelta(NetworkFrame frame, Deserializer &src) override
Read unreliable delta update.
Definition: BehaviorNetworkObject.cpp:348
void SetGraph(ParticleGraph *graph, unsigned index)
Set graph reference. Called by ParticleGraph.
Definition: ParticleGraphNode.cpp:300
static ea::string ToString(const T &value)
Convert type to string.
Definition: Variant.h:313
unsigned animationLodFrameNumber_
The frame number animation LOD distance was last calculated on.
Definition: AnimatedModel.h:230
void SetAddressMode(TextureCoordinate coord, TextureAddressMode mode)
Definition: Texture.cpp:118
Vector3 position_
Hit position in world space.
Definition: OctreeQuery.h:207
ea::vector< unsigned > counts_
Number of light probes owned by corresponding group.
Definition: LightProbeGroup.h:93
~SoundStream() override
Destruct.
unsigned EvaluateInstanceSize() const override
Evaluate size required to place new node instance.
Definition: RenderBillboard.cpp:65
float nearClip_
Near clip distance.
Definition: Camera.h:361
UIElement * GetFocusableElement(UIElement *element)
Return the first element in hierarchy that can alter focus.
Definition: UI.cpp:1198
ea::string GetNumberTypeName() const
Definition: JSONValue.cpp:253
const ea::string localizedName_
Localized "friendly" name for the action, ie. "Trigger".
Definition: VirtualReality.h:131
void FixedUpdate(float timeStep) override
Perform fixed step pre-update.
Definition: RaycastVehicle.cpp:375
Quaternion GetQuaternion(const ea::string &name) const
Return a quaternion attribute, or default if missing.
Definition: XMLElement.cpp:891
const FrameStatistics & GetFrameStats() const
Return statistics of current frame.
Definition: Renderer.h:300
bool IsApplyingTransforms() const
Return whether node dirtying should be disregarded.
Definition: PhysicsWorld2D.h:235
const dtCrowdAgent * GetDetourCrowdAgent(int agent) const
Get the detour crowd agent.
Definition: CrowdManager.cpp:693
StringHash(const ea::string &str) noexcept
Construct from a string.
Definition: StringHash.h:82
void RemoveBodyFromWorld()
Remove the rigid body from the physics world.
Definition: RigidBody.cpp:957
void SetRenderOrder(unsigned char order)
Definition: Material.cpp:801
Base class for creating applications which initialize the Urho3D engine and run a main loop until exi...
Definition: Application.h:41
ea::pair< Vector3, float > GetDirectionToLight(const Vector3 &worldPos) const
Return normalized direction and inverted normalized distance to light for given point in world.
Definition: LightAccumulator.h:64
Matrix3 Scaled(const Vector3 &scale) const
Return scaled by a vector.
Definition: Matrix3.h:238
float GetMaxForce() const
Definition: ConstraintMouse2D.h:63
Light probe baked data.
Definition: LightProbeGroup.h:53
Vector2() noexcept
Construct a zero vector.
Definition: Vector2.h:201
bool OpenInternal(const ea::string &fileName, FileMode mode, bool fromPackage=false)
Open file internally using either C standard IO functions or SDL RWops for Android asset files....
Definition: File.cpp:444
const ea::vector< ModelMorph > & GetMorphs() const
Return all vertex morphs.
Definition: AnimatedModel.h:112
~DebugHud() override
Destruct.
Definition: DebugHud.cpp:69
void DefineTexCoord(const Vector2 &texCoord)
Define a vertex UV coordinate.
Definition: CustomGeometry.cpp:282
BaseIterator< typename OuterCollection::iterator, typename InnerCollection::iterator > Iterator
Mutable iterator.
Definition: MultiVector.h:153
void ApplyLimits()
Apply high and low constraint limits.
Definition: Constraint.cpp:523
VariantVector splineTangents_
Spline tangents.
Definition: ValueAnimation.h:176
Vector3 GetAngularFactor() const
Definition: RigidBody.cpp:614
virtual void DelayedStart()
Called before the first update. At this point all other components of the node should exist....
Definition: LogicComponent.h:66
ea::unordered_map< IntVector3, ea::shared_ptr< const BakedSceneChunk > > bakedChunkCache_
Baking contexts cache.
Definition: BakedLightCache.h:101
const Skeleton & GetSkeleton() const
Return skeleton.
Definition: Model.h:166
Vector3 emitterSize_
Emitter size.
Definition: ParticleEffect.h:460
const ea::string & GetName() const
Definition: ModelView.h:331
void RemoveCollisionShape2D(CollisionShape2D *collisionShape)
Remove collision shape.
Definition: RigidBody2D.cpp:449
void SetAxis(const Vector3 &axis)
Definition: Constraint.cpp:191
Registry of Object reflections.
Definition: ObjectReflection.h:127
ea::span< unsigned > indices_
All indices of the particle system.
Definition: ParticleGraphLayerInstance.h:154
bool IsBoundingBoxTrackingEnabled() const
Return whether bounding box tracking is enabled.
Definition: CameraOperator.h:65
ea::string appliedStyle_
Applied style.
Definition: UIElement.h:853
const IntVector2 & GetHoverOffset() const
Definition: BorderImage.h:103
Chunk data.
Definition: BakedSceneCollector.h:118
bool IsFocused() const override
Return whether the VR session accepts user input.
Definition: OpenXR.cpp:1532
int width_
Array width.
Definition: Array2D.h:103
unsigned GetNumNodes() const
Get number of nodes.
Definition: ParticleGraph.cpp:56
void SetRotationStart(float rotationStart)
Set rotation start.
Definition: ParticleEffect2D.cpp:456
void HandleTouchMove(StringHash eventType, VariantMap &eventData)
Handle touch move event.
Definition: UI.cpp:1850
static Matrix3x4 FromScale(const Vector3 &scale)
Constuct from vector scale.
Definition: Matrix3x4.h:202
void UpdateBatches(const FrameInfo &frame) override
Calculate distance and prepare batches for rendering. May be called from worker thread(s),...
Definition: TerrainPatch.cpp:119
Show target. The Target should have "Is Enabled" attribute.
Definition: Misc.h:74
bool FileExists(const ea::string &fileName) const
Check if a file exists.
Definition: FileSystem.cpp:857
void Clear()
Clear to undefined state.
Definition: Sphere.h:161
Common parameters of batch rendering.
Definition: BatchRenderer.h:42
bool SystemOpen(const ea::string &fileName, const ea::string &mode=EMPTY_STRING)
Open a file in an external program, with mode such as "edit" optionally specified....
Definition: FileSystem.cpp:689
void CalculateFixedScreenSize(const FrameInfo &frame)
Calculate billboard scale factors in fixed screen size mode.
Definition: BillboardSet.cpp:839
bool Play(const ea::string &name, unsigned char layer, bool looped, float fadeTime=0.0f)
Definition: AnimationController.cpp:864
static constexpr unsigned long long ReservedBits
Definition: PipelineBatchSortKey.h:72
void Commit()
Definition: PluginManager.cpp:281
bool RemoveChildXML(XMLElement &parent, const ea::string &name) const
Remove child XML element by matching attribute name.
Definition: UIElement.cpp:1991
Base class for component registry that keeps components derived from ReferencedComponentBase.
Definition: TrackedComponent.h:130
IDFamily()
Construct.
Definition: IndexAllocator.h:120
virtual void StopWatching()=0
Stop file watcher.
void EndBlock() noexcept override
End archive block. May postpone ArchiveException until later.
Definition: ArchiveBase.h:227
IntRect rect_
Viewport rectangle.
Definition: Viewport.h:131
FaceCameraMode faceCameraMode_
Billboard rotation mode in relation to the camera.
Definition: BillboardSet.h:191
Vector2 anchor_
Anchor.
Definition: ConstraintPrismatic2D.h:108
void CopyMorphVertices(void *destVertexData, const void *srcVertexData, unsigned vertexCount, VertexBuffer *destBuffer, VertexBuffer *srcBuffer) const
Copy morph vertices.
Definition: SoftwareModelAnimator.cpp:411
void SetShaderParameterAnimationSpeed(const ea::string &name, float speed)
Set shader parameter animation speed.
Definition: Material.cpp:705
Object * GetTarget() const
Return target object.
Definition: ValueAnimationInfo.cpp:119
float GetRadius() const
Definition: CollisionCircle2D.h:55
RayQueryLevel
Graphics raycast detail level.
Definition: OctreeQuery.h:176
bool IsResizable() const
Definition: Window.h:117
float height_
Height on screen.
Definition: FontFace.h:53
MouseButtonFlags lastMouseButtons_
Last mouse button pressed.
Definition: UI.h:435
ParticleGraphNodeInstance * CreateInstanceAt(void *ptr, ParticleGraphLayerInstance *layer) override
Place new instance at the provided address.
Definition: LocalToWorld.cpp:59
ea::vector< Component * > GetUniqueGeometries(const IntVector3 &chunkIndex) override
Return unique geometries within chunk.
Definition: BakedSceneCollector.cpp:221
void InitializeFromSnapshot(NetworkFrame frame, Deserializer &src, bool isOwned) override
Read full snapshot and initialize object. Called once.
Definition: StaticNetworkObject.cpp:95
void Flush()
Flush any buffered output to the file.
Definition: File.cpp:429
ea::shared_ptr< const LightmapChartBakedDirect > LoadDirectLight(unsigned lightmapIndex) override
Load direct light for the lightmap chart.
Definition: BakedLightCache.cpp:50
float GetSplineTension() const
Definition: ValueAnimation.h:125
void SetHeightCallback(const CrowdAgentHeightCallback &callback)
Set height callback.
Definition: CrowdManager.h:91
bool HasRequestedTarget() const
Definition: CrowdAgent.h:216
void Acquire()
Acquire the mutex. Block if already acquired.
Definition: Mutex.h:72
void SetCursorShape(CursorShape shape)
Set active cursor's shape.
Definition: UI.cpp:1247
SharedPtr< ImageCube > GetDecompressedImage() const
Return decompressed cube image.
Definition: ImageCube.cpp:257
IntVector3 ReadIntVector3()
Read an IntVector3.
Definition: Deserializer.cpp:155
Definition: ParticleEffect.h:88
bool HasProperty(const ea::string &name) const
Return has property (use for script).
Definition: TmxFile2D.cpp:55
bool isAlphaMask_
Whether the pass uses cutout transparency via ALPHAMASK.
Definition: Technique.h:226
void Raycast(RayOctreeQuery &query) const
Return drawable objects by a ray query.
Definition: Octree.cpp:670
void SetEmitterType(EmitterType2D emitterType)
Set emitter type.
Definition: ParticleEffect2D.cpp:416
void CycleMode()
Cycle through elements.
Definition: DebugHud.cpp:79
float GetFrictionSlip() const
Get friction slip.
int GetPatchSize() const
Definition: Terrain.h:131
SharedPtr(U *ptr) noexcept
Construct from a raw pointer.
Definition: Ptr.h:166
void ApplyFrames()
Apply constraint frames.
Definition: Constraint.cpp:347
void SetLinkedRenderTarget(RenderSurface *renderTarget)
Definition: RenderSurface.cpp:67
bool enabledPrev_
Last SetEnabled flag before any SetDeepEnabled.
Definition: UIElement.h:813
void SetLanguage(int index)
Set current language.
Definition: Localization.cpp:89
const ea::vector< UIElement * > & GetDragElements()
Return currently dragged elements.
Definition: UI.cpp:803
bool GetCollideConnected() const
Definition: Constraint2D.h:77
void ApplyNodeWorldScale() override
Apply node world scale.
Definition: CollisionChain2D.cpp:114
bool CheckAccess(const ea::string &pathName) const
Check if a path is allowed to be accessed. If no paths are registered, all are allowed.
Definition: FileSystem.cpp:814
Scale by 3D offset action. Target should have attribute "Scale" of type Vector3.
Definition: Move.h:119
int intervalCurrent_
Index in data_ pointing to last complete interval.
Definition: Timer.h:160
bool occluder_
Occluder flag.
Definition: Drawable.h:451
bool Process(const ea::string &outputPath, const ea::string &resourceNamePrefix, GLTFImporterCallback *callback)
Process loaded GLTF files and import resources. Injects resources into resource cache!
Definition: GLTFImporter.cpp:3944
void SetRowSpacing(float spacing)
Definition: Text.cpp:319
float edgeMaxError_
Edge max error.
Definition: NavigationMesh.h:382
float Ease(float time) const override
Apply easing function to the time argument.
Definition: Ease.h:99
bool IsInput() const
Returns true if this is an input method action.
Definition: VirtualReality.h:119
unsigned GetSizeHint() const
Get size hint.
Definition: Archive.h:87
unsigned GetShadowMask() const
Definition: Drawable.h:318
bool GetEffectRoundStroke() const
Definition: Text.h:192
bool SetValue(const ea::string &value)
Definition: XMLElement.cpp:280
void CalculateLodErrors(TerrainPatch *patch)
Calculate LOD errors for a patch.
Definition: Terrain.cpp:1376
float time_
Time.
Definition: ParticleEffect.h:112
static void RegisterObject(Context *)
Register factory.
Definition: Microphone.cpp:55
void RemoveSelection(unsigned index)
Remove item from the selection.
Definition: ListView.cpp:631
ea::string ToString() const
Return as string.
Definition: Quaternion.cpp:369
unsigned targetNode_
Target node.
Definition: GraphPin.h:163
float HalfToFloat(unsigned short value)
Convert half float to float. From https://gist.github.com/martinkallman/5049614.
Definition: MathDefs.h:387
bool GetSelectOnClickEnd() const
Definition: ListView.h:168
ea::vector< unsigned char > GetTileData(const IntVector2 &tileIndex) const override
Return tile data.
Definition: DynamicNavigationMesh.cpp:296
bool Empty() const
Return whether is empty.
Definition: Polyhedron.h:105
WeakPtr< RenderSurface > linkedDepthStencil_
Linked depth buffer.
Definition: RenderSurface.h:155
FocusParameters(bool focus, bool nonUniform, bool autoSize, float quantize, float minView)
Construct with initial values.
Definition: Light.h:158
void Clear()
Clear all resources from resource cache.
Definition: ResourceCache.cpp:978
static const unsigned NumCachedSubsystems
Number of cached subsystems.
Definition: SubsystemCache.h:111
constexpr FlagSet & operator=(const FlagSet &rhs)=default
Assignment operator from flagset.
void SetSelected(bool enable)
Definition: UIElement.cpp:980
TGetFunction getFunction_
Get functor.
Definition: Serializable.h:171
bool SetSize(unsigned layers, int width, int height, TextureFormat format, TextureFlags flags=TextureFlag::None)
Set layers, size, format and usage. Set layers to zero to leave them unchanged. Return true if succes...
Definition: Texture2DArray.cpp:138
static long long GetFrequency()
Return high-resolution timer frequency if supported.
Definition: Timer.h:67
virtual void OnUpdateBegin(const CommonFrameInfo &frameInfo)
Definition: DrawableProcessor.cpp:155
void SetFrequencyHz(float frequencyHz)
Definition: ConstraintWeld2D.cpp:64
virtual void OnCrowdPositionUpdate(dtCrowdAgent *ag, float *pos, float dt)
Handle crowd agent being updated. It is called by CrowdManager::Update() via callback.
Definition: CrowdAgent.cpp:524
void ProcessMove(const IntVector2 &windowCursorPos, const IntVector2 &cursorDeltaPos, MouseButtonFlags buttons, QualifierFlags qualifiers, Cursor *cursor, bool cursorVisible)
Handle mouse or touch move.
Definition: UI.cpp:1503
static void RegisterObject(Context *context)
Definition: Scene.cpp:100
float GetAttributeAnimationSpeed(const ea::string &name) const
Definition: ObjectAnimation.cpp:250
void ArrangeLightProbesInVolume()
Arrange light probes in scale.x*scale.y*scale.z volume around the node.
Definition: LightProbeGroup.cpp:189
IntVector2 viewSize_
Viewport size.
Definition: Drawable.h:107
bool CheckAlignment() const
Check whether alignment supports moving and resizing.
Definition: Window.cpp:417
Base class fro writable texture or texture region. Readability is not guaranteed.
Definition: RenderBuffer.h:43
void UpdateDrawables()
Update all drawable attributes.
Definition: ParticleGraphEmitter.cpp:182
unsigned index_
Pass index.
Definition: Technique.h:210
bool IsBullet() const
Definition: RigidBody2D.h:175
CullMode cullMode_
Culling mode.
Definition: Technique.h:214
void InitializePipelineStates()
Initialize pipeline states. Is expected to be called only once.
Definition: DebugRenderer.cpp:762
unsigned GetNumEnters() const
Get number of enter pins.
Definition: GraphNode.h:152
unsigned GetNumChars() const
Definition: Text.h:208
void RemoveAttributeAnimation(const ea::string &name)
Remove attribute animation, attribute name can in following format: "attribute" or "#0/#1/attribute" ...
Definition: ObjectAnimation.cpp:206
RenderPipelineColorSpace colorSpace_
Preferred color space of both output color buffers.
Definition: RenderPipelineDefs.h:171
Spherical harmonics scalar coefficients, 3 bands.
Definition: SphericalHarmonics.h:35
static void RegisterObject(Context *context)
Definition: Text3D.cpp:72
void TestDrawables(Drawable **start, Drawable **end, bool inside) override
Intersection test for drawables.
Definition: OctreeQuery.cpp:40
unsigned EvaluateInstanceSize() const override
Evaluate size required to place new node instance.
Definition: Move.cpp:55
void SetSelection(unsigned index)
Definition: DropDownList.cpp:181
ComponentReference NetworkId
ID used to identify unique NetworkObject within Scene.
Definition: NetworkId.h:33
void SetRolloffFactor(float factor)
Definition: SoundSource3D.cpp:135
bool HasTangent() const
Return whether the vertex has tangent.
Definition: ModelView.h:95
unsigned inSend_
"In send" recursion counter.
Definition: Context.h:64
CrowdAgentState GetAgentState() const
Definition: CrowdAgent.cpp:483
static void RegisterObject(Context *context)
Definition: Renderer2D.cpp:87
UIElement(Context *context)
Construct.
Definition: UIElement.cpp:98
DirectionAggregatorFlags subscriptionFlags_
Active subscriptions bitmask.
Definition: DirectionAggregator.h:125
unsigned priority_
Priority. Higher value = will be completed first.
Definition: WorkQueue.h:107
static void RegisterObject(Context *context)
Definition: DebugRenderer.cpp:68
IntVector2 maxOffset_
Maximum offset.
Definition: UIElement.h:894
void OnDoubleClick(const IntVector2 &position, const IntVector2 &screenPosition, MouseButton button, MouseButtonFlags buttons, QualifierFlags qualifiers, Cursor *cursor) override
React to mouse doubleclick.
Definition: LineEdit.cpp:130
void SubscribeToEvent(StringHash eventType, T handler)
Subscribe to an event that can be sent by any sender.
Definition: Object.h:348
const IntVector2 & GetNumVertices() const
Definition: Terrain.h:139
const StringVector & GetVertexTextureDefines() const
Return names of textures to be reported as defines in vertex shader code.
Definition: Technique.h:191
void ReloadData()
Reload GI data.
Definition: GlobalIllumination.cpp:159
virtual void Close()
Close the file.
Definition: AbstractFile.h:58
void AdjustScissor(IntRect ¤tScissor)
Adjust scissor for rendering.
Definition: UIElement.cpp:1861
const ea::string & GetTopCursorGroup() const
Definition: RmlNavigationManager.cpp:295
Reflection probe data. Reused by actual reflection probes and zones.
Definition: ReflectionProbeData.h:36
void UpdateGravity()
Update gravity parameters to the Bullet rigid body.
Definition: RigidBody.cpp:777
~DynamicNavBuildData() override
Destructor.
Definition: NavBuildData.cpp:80
bool exiting_
Whether the exiting is in progress.
Definition: Engine.h:200
void SetAxis(const Vector2 &axis)
Definition: ConstraintWheel2D.cpp:69
WeakPtr< RefCounted > receiver_
Signal receiver. Handler is not invoked if receiver is expired.
Definition: Signal.h:45
void SetSpriteAttr(const ResourceRef &value)
Set sprite attribute.
Definition: StaticSprite2D.cpp:235
static void RegisterObject(ParticleGraphSystem *context)
Register particle node factory.
Definition: Cast.cpp:38
int x_
X coordinate.
Definition: Vector3.h:176
int ReadInt(const XMLElement &element, const ea::string &name) const
Read integer.
Definition: ParticleEffect2D.cpp:522
static void RegisterObject(Context *context)
Definition: BorderImage.cpp:50
static void RegisterObject(Context *context)
Register object factory.
Definition: SerializableResource.cpp:21
void Initialize()
Initialize when screen mode initially set.
Definition: Renderer.cpp:615
const ea::string & GetGroup() const
Definition: RmlNavigable.h:97
void SetMinRadius(float minRadius)
Set min radius.
Definition: ParticleEffect2D.cpp:431
ProgressBar bar UI element.
Definition: ProgressBar.h:33
Color LinearToGamma() const
Convert color from linear to gamma space.
Definition: Color.h:223
void SetLightQueue(LightBatchQueue *queue)
Set light queue used for this light. Called by View.
Definition: Light.cpp:640
void AddData(void *data, unsigned numBytes)
Buffer sound data. Makes a copy of it.
Definition: BufferedSoundStream.cpp:70
RawTexture * GetTexture() const override
Definition: RenderBuffer.cpp:179
btPersistentManifold * flippedManifold_
Manifold with the body pointers flipped.
Definition: PhysicsWorld.h:125
bool IsMouseGrabbed() const
Definition: StateManager.h:74
float GetTimeScale() const
Definition: Scene.h:238
Definition: NetworkCallbacks.h:72
ValueAnimation(Context *context)
Construct.
Definition: ValueAnimation.cpp:51
void PreloadResources(AbstractFilePtr file, bool isSceneFile)
Preload resources from a binary scene or object prefab file.
Definition: Scene.cpp:1169
Deserializer & AsDeserializer()
Cast to Deserializer.
Definition: BinaryFile.h:83
unsigned vertexBufferUpdateFrameNumber_
Vertex buffer update frame number.
Definition: Renderer2D.h:48
void InitializeOnServer() override
Perform initialization. Called once.
Definition: BehaviorNetworkObject.cpp:158
void SetMaterial(Material *material)
Definition: Text3D.cpp:192
void SetAttributeAnimationTime(const ea::string &name, float time)
Set attribute animation time position manually. Automatic update should be disabled in this case.
Definition: Animatable.cpp:402
Definition: AmbientOcclusionPass.h:90
unsigned forwardLitBatchHash_
Definition: LightProcessor.h:178
ea::unique_ptr< Spriter::SpriterData > spriterData_
Spriter data.
Definition: AnimationSet2D.h:113
void HandleTouchEnd(StringHash eventType, VariantMap &eventData)
Handle touch end event.
Definition: UI.cpp:1821
unsigned textInputActivatedFrame_
Frame on which text input was activated. Used for managing input focus between multiple RmlUi context...
Definition: RmlSystem.h:78
unsigned indexCount_
Index count.
Definition: Renderer2D.h:50
void SetNextTimeStep(float seconds)
Override timestep of the next frame. Should be called in between RunFrame() calls.
Definition: Engine.cpp:855
UI widget to inspect contents of Serializable.
Definition: RmlSerializableInspector.h:34
~Constraint2D() override
Destruct.
Definition: Constraint2D.cpp:45
void GetTriangleFaceIndices(unsigned faceIndex, unsigned(&indices)[3]) const
Return indices of specified triangle face of the tetrahedron.
Definition: TetrahedralMesh.h:265
void RecreateFixture()
Recreate fixture.
Definition: CollisionCircle2D.cpp:87
bool emitting_
Currently emitting flag.
Definition: RibbonTrail.h:280
Used for mapping between geometry ID in geometry buffer and actual geometry.
Definition: LightmapGeometryBuffer.h:38
unsigned maxObstacles_
Maximum number of obstacle objects allowed.
Definition: DynamicNavigationMesh.h:155
ea::shared_ptr< const BakedSceneChunk > LoadBakedChunk(const IntVector3 &chunk) override
Load baked scene chunk.
Definition: BakedLightCache.cpp:39
Spherical harmonics, optimized for dot products.
Definition: SphericalHarmonics.h:171
Component * GetComponent(unsigned id) const
Return component from the whole scene by ID, or null if not found.
Definition: Scene.cpp:806
size_t Read(void *buffer, size_t size, Rml::FileHandle file) override
Reads data from a previously opened file.
Definition: RmlFile.cpp:61
GCHandleRef() noexcept=default
Construct.
Color clearColor_
Color to clear texture to.
Definition: RmlCanvasComponent.h:81
bool IsTrigger() const
Return whether this RigidBody is acting as a trigger.
Definition: KinematicCharacterController.cpp:437
Log(Context *context)
Construct.
Definition: Log.cpp:359
ea::string GetProgramDir() const
Definition: FileSystem.cpp:958
float emissionRateMin_
Particles per second minimum.
Definition: ParticleEffect.h:474
LoopMode2D
Loop mode.
Definition: AnimatedSprite2D.h:39
Geometry * GetQuadGeometry()
Return quad geometry used in postprocessing.
Definition: Renderer.cpp:559
static void RegisterObject(Context *context)
Register object with the engine.
Definition: Geometry.cpp:56
ea::vector< ea::string > GetPassNames() const
Definition: Technique.cpp:475
Sound source component with stereo position. A sound source needs to be created to a node to be consi...
Definition: SoundSource.h:39
void RemoveChildAtIndex(unsigned index)
Remove a child element at index.
Definition: UIElement.cpp:1400
unsigned GetNumAttributes() const
Definition: XMLElement.cpp:702
FileIdentifier GetIdentifierFromAbsoluteName(const ea::string &absoluteFileName) const override
Definition: MountedDirectory.cpp:164
void SerializeInBlock(Archive &archive) override
Serialize object. May throw ArchiveException.
Definition: Scene.cpp:173
unsigned GetChecksum() final
Return a checksum if applicable.
Definition: BinaryArchive.cpp:88
static unsigned GetThreadIndexCount()
Return number of threads used by WorkQueue, including main thread. Current thread index is always low...
Definition: WorkQueue.cpp:576
void RemoveAttributeAnimation(const ea::string &name)
Remove attribute animation. Same as calling SetAttributeAnimation with a null pointer.
Definition: Animatable.cpp:414
virtual void SetMaterial(Material *material)
Definition: StaticModel.cpp:283
Description of vertex buffer data for asynchronous loading.
Definition: Model.h:68
LightmapChart()=default
Construct default.
bool operator==(const BaseIterator &rhs) const
Compare equal.
Definition: MultiVector.h:115
Object(Context *context)
Construct.
Definition: Object.cpp:38
void FinishAsyncLoading()
Finish asynchronous loading.
Definition: Scene.cpp:1130
float GetFontSize() const
Definition: Text.h:148
Node * FindNode(const IKNode &node) const
Find Node corresponding to solver IKNode. Suboptimal, prefer to call it on initialization only!
Definition: IKSolverComponent.cpp:147
Variant(const IntVector3 &value)
Construct from an IntVector3.
Definition: Variant.h:650
~SoundSource() override
Destruct. Remove self from the audio subsystem.
Definition: SoundSource.cpp:133
InternalType SampleValid(const NetworkTime &time, float snapThreshold=M_LARGE_VALUE) const
Interpolate between two frames or return value of the closest valid frame.
Definition: NetworkValue.h:498
ResourceCache * owner_
Resource cache.
Definition: BackgroundLoader.h:81
EdgeStoppingGaussFilterParameters directFilter_
Direct light filtering settings.
Definition: LightBakingSettings.h:210
ShadowQuality
Shadow type.
Definition: GraphicsDefs.h:195
IntVector2 GetTileIndex(const Vector3 &position) const
Return index of the tile at the position.
Definition: NavigationMesh.cpp:538
ResourceRef GetResourceRef() const
Return a resource reference attribute, or empty if missing.
Definition: XMLElement.cpp:957
const PipelineBatch * pipelineBatch_
Batch to be sorted.
Definition: PipelineBatchSortKey.h:97
bool HasOccluders() const
Definition: DrawableProcessor.h:193
Slerp(Context *context)
Construct Slerp.
Definition: Slerp.cpp:44
void ResetAllShadowMaps()
Reset allocated shadow maps.
Definition: ShadowMapAllocator.cpp:102
WeakPtr< Scene > scene_
Scene pointer.
Definition: Viewport.h:123
static void ShuffleUnpackedVertexData(unsigned vertexCount, const Vector4 source[], const ea::vector< VertexElement > &sourceElements, Vector4 dest[], const ea::vector< VertexElement > &destElements, bool setMissingElementsToZero=true)
Shuffle unpacked vertex data according to another vertex format. Element types are ignored....
Definition: VertexBuffer.cpp:402
IntVector2 size_
Size.
Definition: UIElement.h:882
void SetPixel(int x, int y, const Color &color)
Set a 2D pixel.
Definition: Image.cpp:718
void SendCollisionEvents()
Send accumulated collision events.
Definition: PhysicsWorld.cpp:932
static void RegisterObject(Context *context)
Definition: Navigable.cpp:41
SharedPtr< FiniteTimeAction > Reverse() const override
Create reversed action.
Definition: Attribute.cpp:88
Actions::ActionState * AddAction(Actions::BaseAction *action, Object *target, bool paused=false)
Add action to the action manager.
Definition: ActionManager.cpp:289
AnimationParameters & Looped()
Definition: AnimationController.cpp:145
bool autoUpdate_
Render texture auto update mode.
Definition: View3D.h:109
bool systemDefined_
Whether the OS cursor is system defined.
Definition: Cursor.h:88
SharedPtr< FiniteTimeAction > Reverse() const override
Create reversed action.
Definition: Ease.cpp:342
ResourceRef GetTmxFileAttr() const
Return tile map file attribute.
Definition: TileMap2D.cpp:182
int height_
Height.
Definition: Image.h:52
unsigned GetLightMask() const
Return light mask.
Definition: ParticleGraphEmitter.h:92
Object * GetSubsystem(StringHash type) const
Return subsystem by type.
Definition: Object.cpp:357
unsigned endPointID_
Endpoint node ID.
Definition: OffMeshConnection.h:91
void SetSize(const Vector3 &size)
Definition: CollisionShape.cpp:735
unsigned lodLevel_
Current LOD level.
Definition: StaticModel.h:38
~ProgressBar() override
Destruct.
ThreadSafeCache< Frustum > cachedFrustum_
Cached world space frustum.
Definition: Camera.h:357
Manages light parameters, lit geometries, shadow splits and shadow casters.
Definition: LightProcessor.h:89
ea::vector< ea::vector< unsigned > > geometryBoneMappings_
Geometry bone mappings.
Definition: Model.h:245
unsigned GetNumPins() const override
Get number of pins.
Definition: Attribute.h:83
virtual void SetAttributeType(VariantType valueType)
Set attribute type.
Definition: Attribute.cpp:63
RmlCanvasComponent(Context *context)
Construct.
Definition: RmlCanvasComponent.cpp:52
UIElement * GetRotationUIElement() const
Get UI element to filter touch events for rotation.
Definition: MoveAndOrbitController.h:93
SharedPtr< Actions::BaseAction > defaultAction_
Root action.
Definition: ActionSet.h:60
bool SaveJSON(JSONValue &dest) const override
Save as JSON data. Return true if successful.
Definition: Component.cpp:97
int width_
Buffer width.
Definition: OcclusionBuffer.h:193
IntVector2 maxSize_
Maximum size.
Definition: UIElement.h:886
IntRect imageRect_
Image rectangle.
Definition: Sprite.h:137
unsigned numObstacleAvoidanceTypes_
Number of obstacle avoidance types configured in the crowd. Limit to DT_CROWD_MAX_OBSTAVOIDANCE_PARAM...
Definition: CrowdManager.h:229
Quaternion rotation_
Rotation in world space.
Definition: TextRenderer3D.h:141
IntRect GetCombinedScreenRect()
Definition: UIElement.cpp:1810
unsigned dataSize_
Index data size.
Definition: Model.h:88
StringHash type_
Type.
Definition: TypeInfo.h:58
float fadeDistance_
Fade start distance.
Definition: Light.h:507
float GetAngularDamping() const
Definition: RigidBody2D.h:163
T Asin(T x)
Definition: MathDefs.h:185
void SetWindowIcon(Image *windowIcon)
Definition: Graphics.cpp:256
float GetAgentRadius() const
Definition: NavigationMesh.h:238
unsigned GetUInt()
Return random unsigned integer number in range [0, MaxRange) with uniform distribution.
Definition: RandomEngine.h:66
float GetFogHeight() const
Definition: Zone.h:142
Tile2D * GetTile(int x, int y) const
Return tile (for tile layer only).
Definition: TileMapLayer2D.cpp:284
bool operator<(const TetrahedralMeshSurfaceEdge &rhs) const
Compare for sorting. Only edges themselves are compared.
Definition: TetrahedralMesh.h:206
Quaternion ReadPackedQuaternion()
Read a quaternion with each component packed in 16 bits.
Definition: Deserializer.cpp:206
bool SetEntity(int index)
Set current entity.
Definition: SpriterInstance2D.cpp:53
ThreadSafeCache< Matrix3x4 > cachedView_
Cached view matrix.
Definition: Camera.h:351
void SetClearSelectionOnDefocus(bool enable)
Definition: ListView.cpp:763
void FilterMeshSurface(ea::vector< bool > &removed)
Collect surface tetrahedrons and ensure that the surface doesn't have edge connections.
Definition: TetrahedralMesh.cpp:876
ea::string scheme_
URI-like scheme. May be empty if not specified.
Definition: FileIdentifier.h:64
Base class for collision shape geometry data.
Definition: CollisionShape.h:68
const Variant & GetData() const
Returns stored variant value.
Definition: VirtualReality.h:109
bool GetActivateTriggers() const
Get activate triggers flag.
Definition: KinematicCharacterController.h:100
Geometry * GetLodGeometry(unsigned batchIndex, unsigned level) override
Return the geometry for a specific LOD level.
Definition: StaticModel.cpp:166
LightmapChartGeometryBuffer()=default
Construct default.
bool dynamic_
Vertex buffer dynamic flag.
Definition: CustomGeometry.h:155
PrioritySignalSubscription()=default
Construct default.
Multiply(Context *context)
Construct Multiply.
Definition: Multiply.cpp:72
unsigned xpathResultIndex_
Current XPath query result index (used internally to advance to subsequent query result).
Definition: XMLElement.h:335
Mutex lock_
Lock object for thread safety, most operations on speech are going to want to be threaded.
Definition: Microphone.h:112
bool SaveFile(const FileIdentifier &fileName, InternalResourceFormat format) const
Save file with specified internal format.
Definition: Resource.cpp:249
int GetPositionIterations() const
Definition: PhysicsWorld2D.h:226
Vector3 spacing_
Vertex and height spacing.
Definition: Terrain.h:347
void OnWorldBoundingBoxUpdate() override
Recalculate the world-space bounding box.
Definition: AnimatedModel.cpp:831
~FontFaceBitmap() override
Destruct.
void Begin()
Begin buffer composition.
Definition: InstancingBuffer.cpp:47
void SetAbsoluteGlyphOffset(const IntVector2 &offset)
Definition: Font.cpp:129
static RefCount * Allocate()
Allocate RefCount using it's default allocator.
Definition: RefCounted.cpp:38
void SetAnimationsAttr(const VariantVector &value)
Set animation parameters attribute.
Definition: AnimationController.cpp:955
CLI::App & GetCommandLineParser()
Return command line for registering custom parameters.
bool IsInf() const
Return whether any element is Inf.
Definition: Matrix4.h:663
ReflectionMode GetReflectionMode() const
Return reflection mode.
Definition: Drawable.h:340
void SerializeBytes(const char *name, void *bytes, unsigned size) final
Serialize bytes. Size is not encoded and should be provided externally!
Definition: XMLArchive.cpp:98
float fogEnd_
Fog end distance.
Definition: Zone.h:225
unsigned indexSize_
Index size in bytes.
Definition: OcclusionBuffer.h:77
void ResetUseTimer()
Reset last used timer.
Definition: Resource.cpp:178
void ResetLod()
Reset to LOD level 0.
Definition: TerrainPatch.cpp:265
void CancelUpdate(Drawable *drawable)
Cancel drawable object's update.
Definition: Octree.cpp:748
unsigned GetTileGid() const
Definition: TileMapDefs2D.h:206
virtual void OnNodeSet(Node *previousNode, Node *currentNode)
Handle scene node being assigned at creation.
Definition: Component.cpp:149
int WeakRefs() const
Definition: RefCounted.cpp:137
void UpdateCachedData()
Internal. Update all cached variables.
Definition: Zone.cpp:391
const ea::string & GetAppPreferencesDir() const
Return preference directory name.
Definition: Engine.h:101
void SetPriority(int priority)
Definition: Zone.cpp:165
General octree query result. Used for Lua bindings only.
Definition: OctreeQuery.h:157
float MinRGB() const
Return the smallest value of the RGB components.
Definition: Color.cpp:206
void SetAsyncLoadingMs(int ms)
Definition: Scene.cpp:756
Ray ray_
Ray.
Definition: OctreeQuery.h:253
unsigned dataSize_
Sound data size in bytes.
Definition: Sound.h:133
unsigned GetSelectionLength() const
Definition: Text.h:176
bool GetKeyDown(Key key) const
Check if a key is held down by Key code. Only Up, Down, Left and Right keys are supported.
Definition: DirectionalPadAdapter.cpp:154
void OnNodeSet(Node *previousNode, Node *currentNode) override
Handle node being assigned.
Definition: Constraint2D.cpp:144
void SetEmitting(bool enable)
Definition: ParticleGraphEmitter.cpp:96
bool quiet_
Quiet mode flag.
Definition: Log.h:205
~Context() override
Destruct.
Definition: Context.cpp:142
Show(Context *context)
Construct.
Definition: Misc.cpp:91
float offsetX_
Glyph X offset from origin.
Definition: FontFace.h:55
const Vector2 & GetAxis() const
Definition: ConstraintWheel2D.h:72
PipelineStateTracker * sender_
Owned pointer.
Definition: PipelineStateTracker.h:80
ea::vector< WeakPtr< NavArea > > areas_
NavAreas for this NavMesh.
Definition: NavigationMesh.h:398
void ClearSelection()
Clear selection.
Definition: Text.cpp:377
ResourceRouter(Context *context)
Construct.
Definition: ResourceCache.h:72
float rolloffFactor_
Rolloff power factor.
Definition: SoundSource3D.h:101
static void AddOrMerge(const UIBatch &batch, ea::vector< UIBatch > &batches)
Add or merge a batch.
Definition: UIBatch.cpp:440
float timeToLiveMax_
Particle time to live maximum.
Definition: ParticleEffect.h:484
Vector3 center_
Center of the circle.
Definition: Sphere.h:44
SharedPtr< ParticleEffect > Clone(const ea::string &cloneName=EMPTY_STRING) const
Clone the particle effect.
Definition: ParticleEffect.cpp:736
Urho3D engine. Creates the other subsystems.
Definition: Engine.h:43
float emitRadiusDelta_
Emit radius delta.
Definition: ParticleEmitter2D.h:68
void GetBatches(ea::vector< UIBatch > &batches, ea::vector< float > &vertexData, const IntRect ¤tScissor) override
Return UI rendering batches.
Definition: Sprite.cpp:109
static const unsigned legacyVersion
Definition: Animation.h:155
Script runtime subsystem.
Definition: Script.h:78
EaseElasticOut(Context *context)
Construct.
Definition: Ease.cpp:205
bool IsConnected() const
Get true if pin is connected.
Definition: GraphPin.h:108
SharedPtr< Font > font_
Font.
Definition: Text.h:252
const Vector3 GetAngularVelocity() const
Return angular velocity.
Definition: KinematicCharacterController.cpp:607
Definition: ConstString.h:36
void SetString(const ea::string &value)
Set string.
Definition: PListFile.cpp:156
bool operator==(const LightProcessorCacheSettings &rhs) const
Definition: RenderPipelineDefs.h:328
IndirectLightTracingSettings indirectProbesTracing_
Settings for indirect light tracing for light probes.
Definition: LightBakingSettings.h:207
SharedPtr< ActionState > StartAction(Object *target) override
Create new action state from the action.
Definition: Repeat.cpp:137
ea::unordered_map< UIBatchStateKey, CachedUIBatchState > cache_
Cached states, possibly invalid.
Definition: BatchStateCache.h:226
float GetStandardNormalFloat()
Return random float with standard normal distribution.
Definition: RandomEngine.h:104
JSONNumberType GetNumberType() const
Definition: JSONValue.cpp:243
const ea::string & GetName() const
Definition: GraphNode.h:42
void ApplyMorph(VertexBuffer *buffer, const VertexBufferMorph &morph, float weight)
Apply a vertex buffer morph.
Definition: SoftwareModelAnimator.cpp:443
void SetReportedInputLoss(float loss)
Definition: ServerReplicator.h:183
const Container & GetContainer() const
Return all subsystems.
Definition: SubsystemCache.h:107
Ref.
Definition: SpriterData2D.h:181
bool updateNow_
Whether the network will be updated on this frame.
Definition: Network.h:181
bool GetUpdateInvisible() const
Definition: ParticleEffect.h:286
Wrapper to load and manage wand models.
Definition: OpenXR.h:143
Packed selected nodes and components.
Definition: SceneSelection.h:35
FaceCameraMode faceCamera_
Face camera mode.
Definition: TextRenderer3D.h:46
void Reset(U *ptr) noexcept
Reset with another pointer.
Definition: Ptr.h:260
bool changed_
The input has changed since the last update.
Definition: VirtualReality.h:144
int weakRefs_
Weak reference count.
Definition: RefCounted.h:58
bool BeginLoad(Deserializer &source) override
Load resource from stream. May be called from a worker thread. Return true if successful.
Definition: Sprite2D.cpp:54
void SetResource(const ResourceRef &resourceRef)
Definition: RmlUIComponent.cpp:217
void SetTextAttr(const ea::string &value)
Set text attribute.
Definition: Text3D.cpp:580
Intersection IsInside(const Sphere &sphere) const
Test if a sphere is inside, outside or intersects.
Definition: Frustum.h:95
void SetModal(bool modal)
Definition: Window.cpp:278
unsigned GetZoneMask() const
Definition: Terrain.h:226
void SetMousePosition(const Vector2 &pos)
Set current mouse position in normalized coordinates.
Definition: Camera.h:71
bool SaveObjectCallback(const ea::function< void(Archive &)> serializeValue)
Definition: BinaryFile.cpp:70
void SetData(const ByteVector &data)
Set data from another buffer.
Definition: VectorBuffer.cpp:96
ea::vector< unsigned > bonesOrder_
Indices of bones ordered from root to children.
Definition: Skeleton.h:162
RawTexture * GetDepthStencilTexture() const
Definition: RenderBufferManager.h:153
void SetIdentity(const VariantMap &identity)
Assign identity. Called by Network.
Definition: Connection.cpp:177
bool Exists(const ea::string &name) const
Return whether a file exists in the resource directories or package files. Does not check manually ad...
Definition: ResourceCache.cpp:623
Context * GetContext() const
Get engine context.
Definition: TemplateNode.h:131
float GetElapsed() const
Get action elapsed time.
Definition: FiniteTimeActionState.h:54
Intersection IsInside(const BoundingBox &box) const
Test if another bounding box is inside, outside or intersects.
Definition: BoundingBox.h:344
VRRigDesc rig_
Link to currently used rig.
Definition: VirtualReality.h:309
unsigned numLevels_
Subdivision level.
Definition: Octree.h:304
Definition: TypeInfo.h:34
bool IsSelected() const
Definition: UIElement.h:607
void ProcessLights(LightProcessorCallback *callback)
Process lights: collect lit geometries, query shadow casters, update shadow maps.
Definition: DrawableProcessor.cpp:600
TransitionState transitionState_
State transition state.
Definition: StateManager.h:284
FiniteTimeAction * GetSecondAction() const
Get second action.
Definition: Sequence.h:52
unsigned GetCollisionMask() const
Return collision mask.
Definition: KinematicCharacterController.h:68
virtual BinaryMagic GetBinaryMagic() const
Binary archive magic word. Should be 4 bytes.
Definition: Resource.h:185
T Round(T x)
Definition: MathDefs.h:244
StringHash GetStringHash() const
Return StringHash or zero on type mismatch.
Definition: Variant.h:1366
bool GetReturnFailedResources() const
Definition: ResourceCache.h:180
bool HasContent() const
Return whether has something to render.
Definition: DebugRenderer.cpp:734
ea::array< Matrix4, MAX_CASCADE_SPLITS > lightMatrices_
Definition: LightProcessor.h:64
void UpdateText()
Update displayed text.
Definition: LineEdit.cpp:563
JSONValue(const ea::vector< JSONValue > &value)
Construct with a JSON array.
Definition: JSONValue.h:128
OffMeshConnection(Context *context)
Construct.
Definition: OffMeshConnection.cpp:39
bool Equals(const Matrix3x4 &rhs, float eps=M_EPSILON) const
Test for equality with another matrix with epsilon.
Definition: Matrix3x4.h:672
void AddKnot(const Variant &knot)
Add a knot to the end of the spline.
Definition: Spline.cpp:118
float GetRandomTimeToLive() const
Return random timetolive.
Definition: ParticleEffect.cpp:806
void Clear()
Clear navigation mesh data.
Definition: NavigationMesh.cpp:383
Definition: Component.h:46
void ReleaseResource(StringHash type, const ea::string &name, bool force=false)
Release a resource by name.
Definition: ResourceCache.cpp:140
void SetFloat(float value)
Set float.
Definition: PListFile.cpp:146
bool operator==(const JSONValue &rhs) const
Value equality operator.
Definition: JSONValue.cpp:201
void ApplyLayoutVertexAndCommonDefinesForUserPass(ShaderProgramDesc &result, VertexBuffer *vertexBuffer) const
Definition: ShaderProgramCompositor.cpp:259
void SetMask(unsigned newMask)
Definition: OffMeshConnection.cpp:97
const VariantVector & GetVariantVector() const
Return a variant vector or empty on type mismatch.
Definition: Variant.h:1468
ea::vector< ea::string > languages_
Language names.
Definition: Localization.h:74
void UpdateBatchesLightmaps()
Update lightmaps in batches.
Definition: StaticModel.cpp:451
void Close()
Shutdown this audio device, likely because we've lost it.
Definition: Audio.cpp:217
FileIdentifier GetIdentifierFromAbsoluteName(const ea::string &absoluteFileName) const override
Definition: MountedAliasRoot.cpp:126
Definition: BatchStateCache.h:88
void OnSceneSet(Scene *scene) override
Handle scene being assigned.
Definition: MoveAndOrbitController.cpp:108
static void RegisterObject(ParticleGraphSystem *context)
Register particle node factory.
Definition: RenderMesh.cpp:38
void SetSize(const IntVector2 &size)
Definition: UIElement.cpp:576
virtual void Update(float timeStep)
Handle the logic update event.
Definition: StateManager.cpp:98
GraphPinRef< GraphEnterPin > GetOrAddEnter(const ea::string_view name)
Get or add enter pin.
Definition: GraphNode.cpp:217
Variant(void *value)
Construct from a pointer.
Definition: Variant.h:596
Resource cache subsystem. Loads resources on demand and stores them for later access.
Definition: ResourceCache.h:83
Queue item.
Definition: StateManager.h:168
unsigned color_
Current color. By default calculated from the element.
Definition: UIBatch.h:93
void SetScale(Vector3 value)
Set Scale.
Definition: Hemisphere.cpp:89
bool IsStereo() const
Returns true if this viewport has "eyes" for stereo.
Definition: Viewport.cpp:298
virtual bool DrawOcclusion(OcclusionBuffer *buffer)
Draw to occlusion buffer. Return true if did not run out of triangles.
Definition: Drawable.cpp:173
SharedPtr< Texture2D > pingTexture_
First texture for ping-pong.
Definition: LightmapStitcher.h:45
LightmapSeamVector seams_
Lightmap seams.
Definition: LightmapGeometryBuffer.h:87
Helper class to interpolate value spans.
Definition: NetworkValue.h:229
void RemoveTile(const IntVector2 &tileIndex) override
Remove tile from navigation mesh.
Definition: DynamicNavigationMesh.cpp:323
DependantVector subscribers_
Other pipeline state trackers depending on this tracker.
Definition: PipelineStateTracker.h:127
Base signal type.
Definition: Signal.h:86
unsigned GetZoneBackground(const IntVector3 &chunkIndex, Zone *zone) override
Return background index for zone within chunk.
Definition: BakedSceneCollector.cpp:246
constexpr FlagSet operator~() const
Bitwise negation.
Definition: FlagSet.h:154
HttpRequestState
HTTP connection state.
Definition: HttpRequest.h:40
unsigned short GetPort() const
Definition: Connection.cpp:985
void ConvexCast(PhysicsRaycastResult &result, CollisionShape *shape, const Vector3 &startPos, const Quaternion &startRot, const Vector3 &endPos, const Quaternion &endRot, unsigned collisionMask=M_MAX_UNSIGNED)
Perform a physics world swept convex test using a user-supplied collision shape and return the first ...
Definition: PhysicsWorld.cpp:589
bool GetLinear() const
Return whether the texture data are in linear space (instead of gamma space).
Definition: Texture.h:143
unsigned GetNumObjects() const
Definition: TileMapLayer2D.cpp:303
void OnDocumentUnload(Rml::ElementDocument *document)
Signal that document belonging to this subsystem was closed.
Definition: RmlUI.cpp:863
Vector2 highLimit_
High limit.
Definition: Constraint.h:219
OuterIterator outer_
Outer iterator (current).
Definition: MultiVector.h:143
ea::span< unsigned > naturalIndices_
All indices going in natural order (0, 1, ...).
Definition: ParticleGraphLayerInstance.h:158
unsigned GetDrawableIndex() const
Return index in octree.
Definition: Drawable.h:365
bool drawDebugGeometry_
Whether to draw debug geometry when rendering from this camera.
Definition: Camera.h:403
VariantMap physicsCollisionData_
Preallocated event data map for physics collision events.
Definition: PhysicsWorld.h:377
int GetColumns() const
Get Columns.
Definition: RenderBillboard.cpp:88
float constPositionBounceBias_
Constant position bias in direction of face normal after hit.
Definition: LightBakingSettings.h:126
void SetTmxFile(TmxFile2D *tmxFile)
Definition: TileMap2D.cpp:115
virtual void Update(float time)
Definition: ActionState.cpp:40
void CopyFrom(const Material *material)
Copy another material. This is useful for a pool of Material objects.
Definition: Material.cpp:854
void CheckDirtiness()
Audio calls this to check if the SDL thread has appended data to us.
Definition: Microphone.cpp:161
RenderSurface * GetRenderSurface(CubeMapFace face) const
Definition: TextureCube.h:72
~DecalSet() override
Destruct.
void SetMaxSpeed(float maxSpeed)
Definition: CrowdAgent.cpp:388
Stiching context.
Definition: LightmapStitcher.h:36
constexpr base_type::reference operator[](enum_type i)
Definition: FlagSet.h:312
SDL_Window * window_
SDL window.
Definition: Graphics.h:295
ea::vector< Vector3 > points_
Point cloud cache.
Definition: CameraOperator.h:115
VariantMap metadata_
Attribute metadata.
Definition: Attribute.h:172
Definition: DrawableProcessor.h:255
Trigonometric two-segment IK chain.
Definition: InverseKinematics.h:106
const Variant & GetGlobalVar(StringHash key) const
Return global variable based on key.
Definition: Context.cpp:267
XMLFile * GetDefaultStyle() const
Definition: FileSelector.cpp:254
void OnSceneSet(Scene *scene) override
Handle scene being assigned.
Definition: CameraOperator.cpp:229
Node * GetNode(unsigned id) const
Return node from the whole scene by ID, or null if not found.
Definition: Scene.cpp:787
WeakPtr< Constraint2D > ownerConstraint_
Owner body constraint.
Definition: ConstraintGear2D.h:73
float rotationSpeedMax_
Particle rotation speed maximum.
Definition: ParticleEffect.h:496
Component * GetFixedUpdateSource()
Return a component from the scene root that sends out fixed update events (either PhysicsWorld or Phy...
Definition: Component.cpp:199
Definition: Skeleton.h:96
StringVector EnumerateLoadedModules()
Enumerate already loaded dynamic modules and static plugins.
Definition: PluginManager.cpp:604
b2EdgeShape edgeShape_
Edge shape.
Definition: CollisionEdge2D.h:68
Vector3 direction_
Ray direction.
Definition: Ray.h:122
FileTime timeStamp_
Timestamp of source code file(s).
Definition: Shader.h:80
void RefreshShaderParameterHash()
Recalculate shader parameter hash.
Definition: Material.cpp:1024
void SetEffectColor(const Color &effectColor)
Definition: Text3D.cpp:309
TextureFormat GetShadowMapFormat() const
Return shadow map depth texture format, or 0 if not supported.
Definition: Graphics.h:216
const ea::vector< int16_t > & GetData() const
Gets direct access to the data.
Definition: Microphone.h:51
float GetRepeatRate() const
Definition: Slider.h:101
void SetEnabled(bool enabled)
Set enabled flag. The object subscribes for events when enabled.
Definition: PointerAdapter.cpp:54
Node * GetTrackedNode(unsigned index) const
Return tracked node by index.
Definition: CameraOperator.cpp:202
float radius_
Light radius (for spot and point lights).
Definition: BakedLight.h:75
bool HasMasterGain(const ea::string &type) const
Return whether the specified master gain has been defined.
Definition: Audio.h:122
float GetFrequencyHz() const
Definition: ConstraintDistance2D.h:70
WeakPtr(const SharedPtr< U1, U2 > &rhs) noexcept
Construct from a shared pointer.
Definition: Ptr.h:376
void SetStartParticleSizeVariance(float startParticleSizeVariance)
Set start particle size variance.
Definition: ParticleEffect2D.cpp:396
float GetValue() const
Definition: ProgressBar.h:76
WeakPtr< PhysicsWorld2D > physicsWorld_
Physics world.
Definition: Constraint2D.h:100
ParticleGraphNodeInstance * CreateInstanceAt(void *ptr, ParticleGraphLayerInstance *layer) override
Place new instance at the provided address.
Definition: Cone.cpp:68
IntVector2() noexcept
Construct a zero vector.
Definition: Vector2.h:43
void SetCollisionLayer(unsigned layer)
Definition: RigidBody.cpp:449
void MountExistingDirectoriesOrPackages(const StringVector &prefixPaths, const StringVector &relativePaths)
Definition: VirtualFileSystem.cpp:163
bool SetData(unsigned level, int x, int y, int width, int height, const void *data)
Set data either partially or fully on a mip level. Return true if successful.
Definition: Texture2D.cpp:117
void SetNegativeSensitivity(float value)
Set negative sensitivity value. 0.0 represent linear input mapping.
Definition: AxisAdapter.cpp:46
void SetActive(bool active)
Set whether to update texture every frame.
Definition: SceneRendererToTexture.cpp:62
void HandleEndFrame(StringHash eventType, VariantMap &eventData)
Do housekeeping tasks at the end of frame. Actually handles exit requested event. Auto-exit if enable...
Definition: Engine.cpp:1339
Navigable(Context *context)
Construct.
Definition: Navigable.cpp:33
Definition: SubsystemCache.h:68
void ProcessEvent(Rml::Event &event) override
Definition: RmlEventListeners.cpp:273
void OnNodeSet(Node *previousNode, Node *currentNode) override
Handle scene node being assigned at creation.
Definition: MoveAndOrbitController.cpp:100
ea::string name_
File name.
Definition: AbstractFile.h:70
ListView * GetFileList() const
Definition: FileSelector.h:100
static const Color CYAN
Opaque cyan color.
Definition: Color.h:287
virtual PluginApplication * CompileResourceScriptPlugin()=0
Implement any logic that is required before Application::Start() runs.
Vector3(float x, float y) noexcept
Construct from two-dimensional coordinates (for Urho2D).
Definition: Vector3.h:224
virtual ~Deserializer()
Destruct.
IntVector2 shadowOffset_
Text effect shadow offset.
Definition: Text.h:274
void ApplyAttributes() override
Apply attribute changes that can not be applied immediately. Called after scene load or a network upd...
Definition: CameraOperator.cpp:63
Uniform(Context *context)
Construct.
Definition: Uniform.cpp:63
bool IsUpdateEnabled() const
Definition: PhysicsWorld2D.h:178
WeakPtr< Constraint2D > attachedConstraint_
Attached constraint.
Definition: Constraint2D.h:114
void UpdateBatchesDelayed(const FrameInfo &frame) override
Batch update from main thread. Called on demand only if RequestUpdateBatchesDelayed() is called from ...
Definition: RibbonTrail.cpp:400
bool BeginLoad(Deserializer &source) override
Load resource from stream. May be called from a worker thread. Return true if successful.
Definition: Animation.cpp:217