Source/Urho3D/AngelScript/Script.h File Reference
Script.h File Reference
#include "../Core/Mutex.h"
#include "../Core/Object.h"
Classes | |
class | Urho3D::Script |
Scripting subsystem. Allows execution of AngelScript. More... | |
Enumerations | |
enum | Urho3D::DumpMode { DOXYGEN = 0, C_HEADER, MAX_DUMP_MODES } |
Output mode for DumpAPI method. | |
Functions | |
void | Urho3D::RegisterScriptLibrary (Context *context) |
Register Script library objects. | |
Variables | |
const char * | Urho3D::LOGIC_CATEGORY = "Logic" |
void GetScriptAttributes()
Check for script attributes.
Definition: ScriptInstance.cpp:632
void SetHorizontalAlignment(HorizontalAlignment align)
Definition: Text3D.cpp:240
unsigned long long GetMemoryBudget(StringHash type) const
Definition: ResourceCache.cpp:765
Vector3 GetDesiredVelocity() const
Definition: CrowdAgent.cpp:479
void ClearParameterSource(ShaderParameterGroup group)
Clear remembered shader parameter source group.
Definition: OGLGraphics.cpp:1472
Definition: Rect.h:32
IntVector2 ConvertSystemToUI(const IntVector2 &systemPos) const
Convert system mouse position (or offset) to scaled UI position (or offset).
Definition: UI.cpp:852
const Vector3 & GetNetPositionAttr() const
Return network position attribute.
Definition: Node.cpp:1512
float targetWeight_
Animation target weight.
Definition: AnimationController.h:63
static void RegisterObject(Context *context)
Register object factory.
Definition: Texture2DArray.cpp:61
void SetResizePopup(bool enable)
Definition: DropDownList.cpp:193
T * GetValuePtr()
Return pointer to value of the specified type. Return null pointer if type does not match.
Definition: Variant.h:1556
float GetAnimationLodBias() const
Definition: ParticleEffect.h:291
bool GetHardwareShadowSupport() const
Definition: Graphics.h:464
String & AppendWithFormat(const char *formatString,...)
Append to string using formatting.
Definition: Str.cpp:1078
void AddEventHandler(StringHash eventType, const String &handlerName) override
Add a scripted event handler.
Definition: ScriptFile.cpp:190
CollisionEventMode
Rigid body collision event signaling mode.
Definition: RigidBody.h:44
void LoadPropertySet(const XMLElement &element)
Load property set.
Definition: TmxFile2D.cpp:80
bool Stop(const String &name, float fadeOutTime=0.0f)
Stop an animation. Zero fadetime is instant. Return true on success.
Definition: AnimationController.cpp:208
Vector< Bone > bones_
Bones used for skinned decals.
Definition: DecalSet.h:238
static unsigned GetRGFloat32Format()
Return the API-specific RG 32-bit float texture format.
Definition: OGLGraphics.cpp:2634
float GetDampingRatio() const
Definition: ConstraintWeld2D.h:63
bool sendFinishedEvent_
Ready to send effect finish event flag.
Definition: ParticleEmitter.h:162
void BeginThreadedUpdate()
Begin a threaded update. During threaded update components can choose to delay dirty processing.
Definition: Scene.cpp:812
const String & GetOutputName(unsigned index) const
Definition: RenderPath.cpp:299
CollisionCircle2D(Context *context)
Construct.
Definition: CollisionCircle2D.cpp:37
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:1307
void SetVSMMultiSample(int multiSample)
Definition: Renderer.cpp:425
void SetMaxParticleSize(const Vector2 &size)
Definition: ParticleEffect.cpp:535
unsigned readBufferOffset_
Read buffer position.
Definition: File.h:138
int GetMaxOccluderTriangles() const
Definition: Renderer.h:374
bool HasPendingData() const
Return whether has pending data assigned while graphics context was lost.
Definition: GPUObject.h:70
SharedArrayPtr< unsigned char > shadowData_
Shadow data.
Definition: IndexBuffer.h:104
Definition: IKEffector.h:36
T * Last() const
Return last element, or null if empty.
Definition: LinkedList.h:172
void SetUpperAngle(float upperAngle)
Definition: ConstraintRevolute2D.cpp:101
SharedPtr< Texture > backupTexture_
Backup texture.
Definition: Texture.h:279
int textureAnisotropy_
Texture anisotropy level.
Definition: Renderer.h:607
void RemoveAllChildren()
Remove all child scene nodes.
Definition: Node.cpp:881
int maxNonThreadedWorkMs_
Maximum milliseconds per frame to spend on low-priority work, when there are no worker threads.
Definition: WorkQueue.h:153
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
virtual void Release()
Unconditionally release the GPU resource.
Definition: GPUObject.cpp:64
bool IsCustom() const
Return true when the variant stores custom type.
Definition: Variant.h:1347
float animationLodBias_
Animation LOD bias.
Definition: AnimatedModel.h:247
unsigned ReadNetID()
Read a 24-bit network object ID.
Definition: Deserializer.cpp:453
IntVector2 position_
Position in screen coordinates.
Definition: Input.h:67
bool GetSerializeParticles() const
Definition: ParticleEmitter.h:109
HashMap< const char *, asITypeInfo * > objectTypes_
Search cache for inbuilt object types.
Definition: Script.h:139
StringVector metadataKeys_
Animation metadata keys.
Definition: Resource.h:157
unsigned lastFrame_
Last frame counter for knowing when to erase the custom world transforms of previous frame.
Definition: Skybox.h:55
VectorBuffer attrBuffer_
Attribute buffer for network replication.
Definition: BillboardSet.h:229
void HandleConsoleCommand(StringHash eventType, VariantMap &eventData)
Handle a console command event.
Definition: FileSystem.cpp:927
void UnregisterVar(const String &name)
Unregister a node user variable hash reverse mapping.
Definition: Scene.cpp:696
BoundingBox(const Polyhedron &poly)
Construct from a polyhedron.
Definition: BoundingBox.h:108
SharedPtr< RenderSurface > renderSurfaces_[MAX_CUBEMAP_FACES]
Render surfaces.
Definition: TextureCube.h:86
static void RegisterObject(Context *context)
Register object factory.
Definition: CollisionShape2D.cpp:54
Vector2(float x, float y) noexcept
Construct from coordinates.
Definition: Vector2.h:196
bool SetDefaultWindowModes(int width, int height, const ScreenModeParams ¶ms)
Set default window modes. Return true if successful.
Definition: Graphics.cpp:118
void SetTargetNode(Node *targetNode)
The position of the target node provides the target position of the effector node.
Definition: IKEffector.cpp:84
String stringId_
Localization string id storage. Used when autoLocalizable flag is set.
Definition: Text.h:299
Mutex octreeMutex_
Mutex for octree reinsertions.
Definition: Octree.h:216
PODVector< OcclusionBatch > batches_
Submitted render jobs.
Definition: OcclusionBuffer.h:187
Rect(const Vector4 &vector) noexcept
Construct from a Vector4.
Definition: Rect.h:57
void QuantizeDirLightShadowCamera(Camera *shadowCamera, Light *light, const IntRect &shadowViewport, const BoundingBox &viewBox)
Quantize a directional light shadow camera view to eliminate swimming.
Definition: View.cpp:2729
BoundingBox shadowCasterBox_[MAX_LIGHT_SPLITS]
Combined bounding box of shadow casters in light projection space. Only used for focused spot lights.
Definition: View.h:70
const HashMap< Pair< unsigned char, unsigned char >, unsigned > * vertexAttributes_
Current mapping of vertex attribute locations by semantic. The map is owned by the shader program,...
Definition: OGLGraphicsImpl.h:124
bool HasAttribute(const String &name) const
Return whether has an attribute.
Definition: XMLElement.cpp:666
Vector< SharedPtr< TileMapObject2D > > objects_
Objects.
Definition: TmxFile2D.h:126
void SetCursorShape(WindowDragMode mode, Cursor *cursor) const
Set cursor shape based on drag mode.
Definition: Window.cpp:369
SharedArrayPtr< float > sourceHeightData_
Source height data for smoothing.
Definition: Terrain.h:298
void MarkTreeNeedsRebuild()
Indicates that the tree structure has changed in some way and needs updating (nodes added or removed,...
Definition: IKSolver.cpp:495
ConstIterator & operator++()
Preincrement the pointer.
Definition: HashSet.h:138
bool operator<(const WeakArrayPtr< T > &rhs) const
Test for less than with another weak array pointer.
Definition: ArrayPtr.h:340
const IntVector2 & GetEffectShadowOffset() const
Definition: Text.h:183
bool BeginLoadXML(Deserializer &source)
Helper function for loading XML files.
Definition: Material.cpp:272
void OnSceneSet(Scene *scene) override
Handle scene being assigned.
Definition: AnimationController.cpp:839
void OnSetEnabled() override
Handle enabled/disabled state change.
Definition: ParticleEmitter2D.cpp:75
HorizontalAlignment GetHorizontalAlignment() const
Definition: UIElement.cpp:1495
Vector3 GetContactPosition(int wheel) const
Get wheel contact position.
Definition: RaycastVehicle.cpp:529
AnimationChannelFlags channelMask_
Bitmask of included data (position, rotation, scale).
Definition: Animation.h:99
unsigned GetNumChildren(bool recursive=false) const
Definition: UIElement.cpp:1617
String textureNames_[MAX_TEXTURE_UNITS]
Textures.
Definition: RenderPath.h:170
unsigned GetVertexCount() const
Definition: CollisionPolygon2D.h:53
StringHash psExtraDefinesHash_
Hash for pixel shader extra defines.
Definition: Batch.h:273
SharedPtr< XMLFile > loadParameters_
Parameter file acquired during BeginLoad.
Definition: Texture3D.h:75
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:373
void SetGeometryDataAttr(const PODVector< unsigned char > &value)
Set geometry data attribute.
Definition: CustomGeometry.cpp:734
ResourceRef(StringHash type, const String &name)
Construct with type and resource name.
Definition: Variant.h:101
const BoundingBox & GetBoundingBox() const
Definition: Drawable.h:189
void SetPressedOffset(const IntVector2 &offset)
Definition: Button.cpp:157
bool operator!=(const Vector< T > &rhs) const
Test for inequality with another vector.
Definition: Vector.h:177
void FromAngleAxis(float angle, const Vector3 &axis)
Define from an angle (in degrees) and axis.
Definition: Quaternion.cpp:36
void HandleTextChanged(StringHash eventType, VariantMap &eventData)
Handle text change in the line edit.
Definition: Console.cpp:361
void StopLockless()
Stop sound without locking the audio mutex. Called internally.
Definition: SoundSource.cpp:576
void SetShaderParameterAnimationSpeed(const String &name, float speed)
Set shader parameter animation speed.
Definition: Material.cpp:1025
void SetFinishParticleSizeVariance(float finishParticleSizeVariance)
Set finish particle size variance.
Definition: ParticleEffect2D.cpp:404
Color or depth-stencil surface that can be rendered into.
Definition: RenderSurface.h:34
Animation * animation_
Current animation.
Definition: SpriterInstance2D.h:99
unsigned GetTimerPeriod() const
Return current low-resolution timer period in milliseconds.
Definition: Timer.h:104
StringHash GetAnimationNameHash() const
Return animation name hash.
Definition: Animation.h:171
bool mouseGrabbed_
Flag to indicate the mouse is being grabbed by an operation. Subsystems like UI that uses mouse shoul...
Definition: Input.h:454
unsigned GetControlledIdAttr() const
Get Controlled Node ID attribute.
Definition: SplinePath.h:119
bool IsChildOf(UIElement *element) const
Return whether is a direct or indirect child of specified element.
Definition: UIElement.cpp:1547
void UpdateEventSubscription()
Update whether should be subscribed to scene or global update events for shader parameter animation.
Definition: Material.cpp:1322
WeakPtr< Zone > lastAmbientStartZone_
Last zone used for ambient gradient start color.
Definition: Zone.h:194
VariantMap smoothingData_
Preallocated event data map for smoothing update events.
Definition: Scene.h:333
void SetTargetPosition(const Vector3 &position)
Definition: CrowdAgent.cpp:326
void PrepareNetworkUpdate()
Prepare network update by comparing attributes and marking replication states dirty as necessary.
Definition: Scene.cpp:1091
void DrawDebugGeometry(DebugRenderer *debug, bool depthTest) override
Visualize the component as debug geometry.
Definition: TerrainPatch.cpp:209
float delay_
Delay time remaining until execution.
Definition: ScriptEventListener.h:42
void OnSceneSet(Scene *scene) override
Handle scene being assigned, identify our DynamicNavigationMesh.
Definition: Obstacle.cpp:95
void SetMaxRadius(float maxRadius)
Set max radius.
Definition: ParticleEffect2D.cpp:419
const KeyValue * operator->() const
Point to the pair.
Definition: HashMap.h:211
constexpr RandomAccessConstIterator()
Construct.
Definition: Iter.h:130
float maxDistance_
Maximum ray distance.
Definition: OctreeQuery.h:257
dtCrowd * crowd_
Internal Detour crowd object.
Definition: CrowdManager.h:193
void OnDeviceLost() override
Mark the buffer destroyed on graphics context destruction. May be a no-op depending on the API.
Definition: OGLVertexBuffer.cpp:35
void OnWorldBoundingBoxUpdate() override
Recalculate the world-space bounding box.
Definition: RibbonTrail.cpp:430
bool HasRegisteredPaths() const
Return whether paths have been registered.
Definition: FileSystem.h:90
void SetMemoryBudget(StringHash type, unsigned long long budget)
Definition: ResourceCache.cpp:436
bool SetIndexBuffers(const Vector< SharedPtr< IndexBuffer > > &buffers)
Set index buffers.
Definition: Model.cpp:522
RefCount * RefCountPtr()
Return pointer to the reference count structure.
Definition: RefCounted.h:84
unsigned Hash(const T &key) const
Compute a hash based on the key and the bucket size.
Definition: HashSet.h:640
void MixMonoToStereoIP(Sound *sound, int *dest, unsigned samples, int mixRate)
Mix mono sample to stereo buffer interpolated.
Definition: SoundSource.cpp:832
asIScriptObject * object_
Script object that the handler method belongs to. Null for procedural event handling.
Definition: ScriptFile.h:182
ResourceRef GetModelAttr() const
Return model attribute.
Definition: StaticModel.cpp:386
AnimationState(AnimatedModel *model, Animation *animation)
Construct with animated model and animation pointers.
Definition: AnimationState.cpp:46
void ReloadResourceWithDependencies(const String &fileName)
Reload a resource based on filename. Causes also reload of dependent resources if necessary.
Definition: ResourceCache.cpp:398
void Insert(unsigned pos, T &&value)
Insert an element at position.
Definition: Vector.h:291
Vector3 ClosestPoint(const Ray &ray) const
Return closest point to another ray.
Definition: Ray.cpp:34
unsigned GetNumLayers() const
Return number of layers.
Definition: TmxFile2D.h:196
Sprite2D * GetSprite() const
Return sprite.
Definition: AnimationSet2D.cpp:207
void SetDynamicInstancing(bool enable)
Definition: Renderer.cpp:459
void SetWheelAxle(int wheel, Vector3 axle)
Set wheel axle vector.
Definition: RaycastVehicle.cpp:635
void SetMaxLodLevelsAttr(unsigned value)
Set max LOD levels attribute.
Definition: Terrain.cpp:816
void SetMinSize(const IntVector2 &minSize)
Definition: UIElement.cpp:603
void FromRotationTo(const Vector3 &start, const Vector3 &end)
Define from the rotation difference between two direction vectors.
Definition: Quaternion.cpp:68
Camera * shadowCameras_[MAX_LIGHT_SPLITS]
Shadow cameras.
Definition: View.h:64
float GetWheelMaxSuspensionForce(int wheel) const
Get wheel max suspension force.
Definition: RaycastVehicle.cpp:473
bool RemoveWorkItem(SharedPtr< WorkItem > item)
Remove a work item before it has started executing. Return true if successfully removed.
Definition: WorkQueue.cpp:173
virtual btCollisionShape * UpdateDerivedShape(int shapeType, const Vector3 &newWorldScale)
Definition: CollisionShape.cpp:1194
void UpdateAmbientGradient()
Recalculate the ambient gradient colors from neighbor zones. Not safe to call from worker threads due...
Definition: Zone.cpp:252
static void RegisterObject(Context *context)
Register object factory. StaticModel must be registered first.
Definition: StaticModelGroup.cpp:58
void SetOrientation(Orientation orientation)
Definition: Slider.cpp:166
void PushDouble(double value)
Push double to stack.
Definition: LuaFunction.cpp:123
const ColorFrame * GetColorFrame(unsigned index) const
Return a color animation frame, or null if outside range.
Definition: ParticleEffect.cpp:780
static void RegisterObject(Context *context)
Register object factory. Drawable must be registered first.
Definition: CustomGeometry.cpp:61
const Color & GetFinishColorVariance() const
Return finish color variance.
Definition: ParticleEffect2D.h:185
bool Load(Deserializer &source) override
Load from binary data. Return true if successful.
Definition: AnimatedModel.cpp:128
int maxParticles_
Max particles.
Definition: ParticleEffect2D.h:294
T * Get() const
Return raw pointer. If expired, return null.
Definition: Ptr.h:400
float GetAttributeAnimationTime(const String &name) const
Return attribute animation time position.
Definition: Animatable.cpp:446
float ReadFloat(const XMLElement &element, const String &name) const
Read float.
Definition: ParticleEffect2D.cpp:525
virtual bool IsWithinScissor(const IntRect ¤tScissor)
Return whether is visible and inside a scissor rectangle and should be rendered.
Definition: UIElement.cpp:385
Base class for animatable object, an animatable object can be set animation on it's attributes,...
Definition: Animatable.h:63
const String & GetConnectionString() const
Return database connection string. The connection string for SQLite3 is using the URI format describe...
Definition: ODBCConnection.h:50
void HandleTargetRotation(StringHash eventType, VariantMap &eventData)
Handle SmoothedTransform target rotation update.
Definition: RigidBody.cpp:1045
float delay_
Delay from hover start to displaying the tooltip.
Definition: ToolTip.h:67
void ResetShadowMaps()
Remove all shadow maps. Called when global shadow map resolution or format is changed.
Definition: Renderer.cpp:1898
ParticleEffect(Context *context)
Construct.
Definition: ParticleEffect.cpp:59
float GetTangentialAcceleration() const
Return tangential acceleration.
Definition: ParticleEffect2D.h:167
bool subscribed_
Subscribed to smoothing update event flag.
Definition: SmoothedTransform.h:105
bool GetButtonPress(unsigned index) const
Definition: Input.h:109
void ApplyForce(const Vector3 &force)
Apply force to center of mass.
Definition: RigidBody.cpp:516
WeakPtr< Shader > owner_
Shader this variation belongs to.
Definition: ShaderVariation.h:156
b2JointDef * GetJointDef() override
Return joint def.
Definition: ConstraintRope2D.cpp:96
AnimationBlendMode GetBlendMode(const String &name) const
Return animation blending mode.
Definition: AnimationController.cpp:519
void SetNumGeometries(unsigned num)
Definition: CustomGeometry.cpp:501
const std::type_info & GetTypeInfo() const
Get the type info.
Definition: Variant.h:185
unsigned defaultTextureAnisotropy_
Default texture max. anisotropy level.
Definition: Graphics.h:854
void SetScrollDeceleration(float deceleration)
Definition: ScrollView.h:88
void HandleNavigationTileAdded(StringHash eventType, VariantMap &eventData)
Handle navigation mesh tile added.
Definition: CrowdAgent.cpp:650
bool GetColorWrite() const
Return whether color write is enabled.
Definition: Graphics.h:553
void AddRenderTarget(const RenderTargetInfo &info)
Add a rendertarget.
Definition: RenderPath.cpp:435
static unsigned GetRGBAFormat()
Return the API-specific RGBA texture format.
Definition: OGLGraphics.cpp:2584
static String GetTimeStamp()
Get a date/time stamp as a string.
Definition: Timer.cpp:172
unsigned viewMask_
Drawable layers to include.
Definition: OctreeQuery.h:255
bool LoadJSON(const JSONValue &source) override
Load from JSON data. Return true if successful.
Definition: Node.cpp:175
String(const T &value)
Construct from a convertible value.
Definition: Str.h:157
SharedPtr< XMLFile > xmlFile_
XML file for XML mode.
Definition: Scene.h:62
CollisionGeometryDataCache gimpactTrimeshCache_
Cache for GImpact trimesh geometry data by model and LOD level.
Definition: PhysicsWorld.h:348
void DrawSolidCircle(const b2Vec2 ¢er, float32 radius, const b2Vec2 &axis, const b2Color &color) override
Draw a solid circle.
Definition: PhysicsWorld2D.cpp:238
bool GetUpdateNodePosition() const
Definition: CrowdAgent.h:165
void SetKnot(const Variant &knot, unsigned index)
Set the value of an existing knot.
Definition: Spline.cpp:104
void SeekInternal(unsigned newPosition)
Seek in file internally using either C standard IO functions or SDL RWops for Android asset files.
Definition: File.cpp:538
@ FM_FOCUSABLE_DEFOCUSABLE
Is focusable and also defocusable by pressing ESC.
Definition: UIElement.h:81
SharedPtr< ObjectAnimation > objectAnimation_
Animation.
Definition: Animatable.h:155
static struct PhysicsWorldConfig config
Overrides of the internal configuration.
Definition: PhysicsWorld.h:303
bool Define(RenderSurface *renderTarget, Viewport *viewport)
Define with rendertarget and viewport. Return true if successful.
Definition: View.cpp:293
void SetRawVertexData(const SharedArrayPtr< unsigned char > &data, const PODVector< VertexElement > &elements)
Override raw vertex data to be returned for CPU-side operations.
Definition: Geometry.cpp:156
bool BeginLoad(Deserializer &source) override
Load resource from stream. May be called from a worker thread. Return true if successful.
Definition: ObjectAnimation.cpp:58
Matrix3x4 reflectionMatrix_
Reflection matrix calculated from the plane.
Definition: Camera.h:316
bool emitting_
Currently emitting flag.
Definition: ParticleEmitter.h:156
const PListValueMap & GetValueMap() const
Return value map.
Definition: PListFile.cpp:242
void ReleaseShape()
Release the collision shape.
Definition: CollisionShape.cpp:889
void RemoveMetadata(const String &name)
Remove metadata variable.
Definition: Resource.cpp:140
NavigationPushiness GetNavigationPushiness() const
Definition: CrowdAgent.h:200
Deserializer()
Construct with zero size.
Definition: Deserializer.cpp:34
void UpdateMaterial()
Update material.
Definition: ParticleEmitter2D.cpp:269
void ClearInt(unsigned uintColor)
Clear the image with an integer color. R component is in the 8 lowest bits.
Definition: Image.cpp:1220
~RigidBody() override
Destruct. Free the rigid body and geometries.
Definition: RigidBody.cpp:86
const String & GetEntity() const
Definition: AnimatedSprite2D.h:92
void ProcessIdentity(int msgID, MemoryBuffer &msg)
Process an Identity message from the client. Called by Network.
Definition: Connection.cpp:937
void Initialize()
Initialize when screen mode initially set.
Definition: Input.cpp:1514
unsigned boundFBO_
Currently bound frame buffer object.
Definition: OGLGraphicsImpl.h:126
Vector3 gravityOverride_
Gravity override vector.
Definition: RigidBody.h:335
WeakArrayPtr(const SharedArrayPtr< T > &rhs)
Construct from a shared array pointer.
Definition: ArrayPtr.h:250
StringHash(unsigned value) noexcept
Construct with an initial value.
Definition: StringHash.h:46
void AddEventHandler(Object *sender, const StringHash &eventType, LuaFunction *function)
Add a scripted event handler.
Definition: LuaScriptEventInvoker.cpp:47
bool Exists(const 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:113
bool IsFrontWheel(int wheel) const
True if front wheel, otherwise false.
Definition: RaycastVehicle.cpp:678
bool CreateDir(const String &pathName)
Create a directory.
Definition: FileSystem.cpp:330
static void BulkTranspose(float *dest, const float *src, unsigned count)
Bulk transpose matrices.
Definition: Matrix2.h:238
float GetSpeed(const String &name) const
Return animation speed.
Definition: AnimationController.cpp:531
static unsigned GetLuminanceFormat()
Return the API-specific luminance texture format.
Definition: OGLGraphics.cpp:2559
int maxFontTextureSize_
Font texture maximum size.
Definition: UI.h:432
Octree component. Should be added only to the root scene node.
Definition: Octree.h:162
Iterator Erase(const Iterator &start, const Iterator &end)
Erase a range by iterators. Return an iterator to the next element.
Definition: List.h:336
void SetSelectionColor(const Color &color)
Definition: UISelectable.cpp:59
UniquePtr< NetworkState > networkState_
Network attribute state.
Definition: Serializable.h:141
unsigned numOcclusionBuffers_
Number of occlusion buffers in use.
Definition: Renderer.h:643
void UpdateVertexBuffer(const FrameInfo &frame)
Rewrite RibbonTrail vertex buffer.
Definition: RibbonTrail.cpp:523
void DrawBatch(const OcclusionBatch &batch, unsigned threadIndex)
Draw a batch. Called internally.
Definition: OcclusionBuffer.cpp:464
void DrawDebugGeometry(DebugRenderer *debug, bool depthTest) override
Visualize the component as debug geometry.
Definition: Drawable.cpp:167
void OnMarkedDirty(Node *node) override
Handle node transform being dirtied.
Definition: ScriptInstance.cpp:549
Variant(const IntVector2 &value)
Construct from an IntVector2.
Definition: Variant.h:482
Texture * GetScreenBuffer(int width, int height, unsigned format, int multiSample, bool autoResolve, bool cubemap, bool filtered, bool srgb, unsigned persistentKey=0)
Allocate a rendertarget or depth-stencil texture for deferred rendering or postprocessing....
Definition: Renderer.cpp:996
float Element(unsigned i, unsigned j) const
Return matrix element.
Definition: Matrix4.h:642
HashMap< unsigned, NodeReplicationState > nodeStates_
Nodes by ID.
Definition: ReplicationState.h:178
float GetDistanceSquared(const Vector3 &worldPos) const
Return squared distance to position. In orthographic mode uses only Z coordinate.
Definition: Camera.cpp:498
HashMap< Object *, HashMap< StringHash, SharedPtr< EventReceiverGroup > > > specificEventReceivers_
Event receivers for specific senders' events.
Definition: Context.h:236
const String & GetHistoryRow(unsigned index) const
Definition: Console.cpp:305
unsigned selectionAttr_
Selected item index attribute.
Definition: DropDownList.h:132
unsigned GetUInt(const String &name) const
Return an unsigned integer attribute, or zero if missing.
Definition: XMLElement.cpp:802
void HandleConsoleCommand(StringHash eventType, VariantMap &eventData)
Handle a console command event.
Definition: Script.cpp:425
HashSet(const HashSet< T > &set)
Construct from another hash set.
Definition: HashSet.h:183
String loadTextureName_
Texture name used while loading.
Definition: SpriteSheet2D.h:96
bool IsLocked() const
Return whether is currently locked.
Definition: VertexBuffer.h:76
Vector< SharedArrayPtr< DepthValue > > mipBuffers_
Reduced size depth buffers.
Definition: OcclusionBuffer.h:185
void RegisterVar(const String &name)
Register a node user variable hash reverse mapping (for editing).
Definition: Scene.cpp:691
DecalVertex(const Vector3 &position, const Vector3 &normal, const float *blendWeights, const unsigned char *blendIndices)
Construct with position, normal and skinning information.
Definition: DecalSet.h:50
void HandleLogMessage(StringHash eventType, VariantMap &eventData)
Handle a log message.
Definition: Console.cpp:530
void EndFrame()
End the profiling frame. Called by HandleEndFrame().
Definition: Profiler.cpp:58
void PushLuaTable(const String &tableName)
Push Lua table to stack. When the specified table is not found then a nil is pushed instead.
Definition: LuaFunction.h:96
bool WriteResourceRefList(const ResourceRefList &value)
Write a resource reference list.
Definition: Serializer.cpp:225
Component * owner_
Parent component.
Definition: SpriterInstance2D.h:93
Matrix3x4() noexcept
Construct an identity matrix.
Definition: Matrix3x4.h:39
Node * Down() const
Return next node in the bucket.
Definition: HashSet.h:60
bool Save(Serializer &dest, int pointSize, const String &indentation="\t")
Save as a new bitmap font type in XML format. Return true if successful.
Definition: FontFaceBitmap.cpp:265
StringVector * GetStringVectorPtr()
Return a pointer to a modifiable string vector or null on type mismatch.
Definition: Variant.h:1362
void SetConstraintType(ConstraintType type)
Definition: Constraint.cpp:149
Vector2 position_
Hit worldspace position.
Definition: PhysicsWorld2D.h:47
unsigned long long GetTotalMemoryUse() const
Definition: ResourceCache.cpp:777
ConstraintType constraintType_
Constraint type.
Definition: Constraint.h:206
float GetLodHeight(int x, int z, unsigned lodLevel) const
Return interpolated height for a specific LOD level.
Definition: Terrain.cpp:1317
ShadowQuality shadowQuality_
Shadow quality.
Definition: Renderer.h:617
void SetUpdateEnabled(bool enable)
Definition: PhysicsWorld2D.cpp:342
RenderSurface * colorAttachments_[MAX_RENDERTARGETS]
Bound color attachment textures.
Definition: OGLGraphicsImpl.h:89
const TechniqueEntry & GetTechniqueEntry(unsigned index) const
Return technique entry by index.
Definition: Material.cpp:1181
AnimationState * AddAnimationState(Animation *animation)
Add an animation state either to AnimatedModel or as a node animation.
Definition: AnimationController.cpp:847
unsigned GetMSec(bool reset)
Return elapsed milliseconds and optionally reset.
Definition: Timer.cpp:200
void SetDelayedCallsAttr(const PODVector< unsigned char > &value)
Set delayed method calls attribute.
Definition: ScriptInstance.cpp:445
void SetInternalEdge(bool enable)
Definition: PhysicsWorld.cpp:351
String SanitateResourceName(const String &name) const
Remove unsupported constructs from the resource name to prevent ambiguity, and normalize absolute fil...
Definition: ResourceCache.cpp:841
float DistanceToPoint(const Vector3 &point) const
Return distance to point.
Definition: BoundingBox.cpp:199
b2JointDef * GetJointDef() override
Return Joint def.
Definition: ConstraintPulley2D.cpp:119
void AddKeyFrame(const AnimationKeyFrame &keyFrame)
Add a keyframe at the end.
Definition: Animation.cpp:63
const IntVector2 & GetCheckedOffset() const
Definition: CheckBox.h:66
float GetMaxAgentRadius() const
Definition: CrowdManager.h:132
Vector3 ReadPackedVector3(float maxAbsCoord)
Read a Vector3 packed into 3 x 16 bits with the specified maximum absolute range.
Definition: Deserializer.cpp:180
Vector< VAnimKeyFrame > keyFrames_
Key frames.
Definition: ValueAnimation.h:171
VertexElement(VertexElementType type, VertexElementSemantic semantic, unsigned char index=0, bool perInstance=false) noexcept
Construct with type, semantic, index and whether is per-instance data.
Definition: GraphicsDefs.h:196
void Compact()
Reallocate so that no extra memory is used.
Definition: Vector.h:461
TextureFilterMode defaultTextureFilterMode_
Default texture filtering mode.
Definition: Graphics.h:852
FlagSet & operator^=(const Enum value)
Bitwise XOR against Enum value.
Definition: FlagSet.h:104
static int Close(SDL_RWops *context)
Close the object. Only meaningful for files, no-op otherwise.
Definition: RWOpsWrapper.h:91
bool alphaToCoverage_
Alpha-to-coverage enable.
Definition: Graphics.h:858
unsigned numPrimitives_
Number of primitives (3D geometry only).
Definition: Renderer.h:647
WeakPtr< Node > node_
Root scene node (node hierarchy mode).
Definition: AnimationState.h:179
void GetBatches(PODVector< UIBatch > &batches, PODVector< float > &vertexData, const IntRect ¤tScissor) override
Return UI rendering batches.
Definition: Text.cpp:120
void SetWorldScale2D(float x, float y)
Set scale in world space (for Urho2D).
Definition: Node.h:225
unsigned subObject_
Drawable specific subobject if applicable.
Definition: OctreeQuery.h:223
float GetRandomVelocity() const
Return random velocity.
Definition: ParticleEffect.cpp:801
const JSONValue & GetRoot() const
Return root value.
Definition: JSONFile.h:60
bool Equals(const Rect &rhs) const
Test for equality with another rect with epsilon.
Definition: Rect.h:213
void Insert(const Iterator &dest, const T *start, const T *end)
Insert elements.
Definition: List.h:307
static void BulkTranspose(float *dest, const float *src, unsigned count)
Bulk transpose matrices.
Definition: Matrix4.h:695
HashMap< String, Vector< StringHash > > objectCategories_
Object categories.
Definition: Context.h:244
void SetEffectStrokeThickness(int thickness)
Definition: Text.cpp:394
float hitFraction_
Hit fraction.
Definition: PhysicsWorld.h:75
void ApplyFrameLimit()
Get the timestep for the next frame and sleep for frame limiting if necessary.
Definition: Engine.cpp:722
Viewport * GetViewport(unsigned index) const
Definition: Renderer.cpp:537
void RotateAround2D(const Vector2 &point, float delta, TransformSpace space=TS_LOCAL)
Rotate around a point in the chosen transform space (for Urho2D).
Definition: Node.h:270
void ResetForces()
Reset accumulated forces.
Definition: RigidBody.cpp:570
PODVector< Drawable * > geometries_
Geometry objects.
Definition: View.h:98
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:465
Singly-linked list template class. Elements must inherit from LinkedListNode.
Definition: LinkedList.h:49
const Vector2 & GetOwnerBodyAnchor() const
Definition: ConstraintDistance2D.h:61
bool sortChildren_
Sort children according to priority flag.
Definition: UIElement.h:808
VertexElementSemantic
Arbitrary vertex declaration element semantics.
Definition: GraphicsDefs.h:168
int minInstances_
Minimum number of instances required in a batch group to render as instanced.
Definition: Renderer.h:627
CrowdAgentState previousAgentState_
Agent's previous agent state used to check for state changes.
Definition: CrowdAgent.h:267
String psSourceCode_
Source code adapted for pixel shader.
Definition: Shader.h:73
float elapsedLength_
Elapsed length inside the trail.
Definition: RibbonTrail.h:55
const unsigned char * GetData() const
Return data.
Definition: VectorBuffer.h:62
void SetPlayingAttr(bool value)
Set sound playing attribute.
Definition: SoundSource.cpp:481
void SetDensity(float density)
Definition: CollisionShape2D.cpp:133
void RemoveShaderParameter(const String &name)
Remove a shader parameter.
Definition: RenderPath.cpp:247
unsigned viewMask_
View mask of current camera for visibility checking.
Definition: Renderer2D.h:130
MouseButtonFlags dragButtons
Which button combo initiated the drag.
Definition: UI.h:274
bool lastMouseGrabbed_
The last mouse grabbed set by SetMouseGrabbed.
Definition: Input.h:456
Graphics subsystem. Manages the application window, rendering state and GPU resources.
Definition: Graphics.h:139
Color derivedColor_
Derived color. Only valid when no gradient.
Definition: UIElement.h:911
UniquePtr(UniquePtr &&up) noexcept
Move-construct from UniquePtr.
Definition: Ptr.h:592
PODVector< unsigned char > GetScriptNetworkDataAttr() const
Get script network serialization attribute by calling a script function.
Definition: LuaScriptInstance.cpp:484
void MarkForAuxView(unsigned frameNumber)
Mark material for auxiliary view rendering.
Definition: Material.cpp:1176
void SetType(StringHash typeHash)
Initialize the type hash only when type name not known. Called by Node when loading.
Definition: UnknownComponent.cpp:248
CollisionGeometryData * GetGeometryData() const
Return the shared geometry data.
Definition: CollisionShape.h:222
String vsSourceCode_
Source code adapted for vertex shader.
Definition: Shader.h:71
RenderSurface * GetLinkedRenderTarget() const
Definition: RenderSurface.h:102
void SetAnchor(const Vector2 &anchor)
Definition: ConstraintPrismatic2D.cpp:62
Iterator & operator++()
Preincrement the pointer.
Definition: HashSet.h:76
void SetScriptDataAttr(const PODVector< unsigned char > &data)
Set script file serialization attribute by calling a script function.
Definition: ScriptInstance.cpp:462
Definition: OctreeQuery.h:228
void MixOutput(void *dest, unsigned samples)
Mix sound sources into the buffer.
Definition: Audio.cpp:266
void SetSkeleton(const Skeleton &skeleton, bool createBones)
Set skeleton.
Definition: AnimatedModel.cpp:694
String sceneFileName_
Scene file to load once all packages (if any) have been downloaded.
Definition: Connection.h:340
void BindFramebuffer(unsigned fbo)
Bind a framebuffer using either extension or core functionality. Used only on OpenGL.
Definition: OGLGraphics.cpp:3277
float GetLowerAngle() const
Definition: ConstraintRevolute2D.h:75
bool FilterImplicitAttributes(XMLElement &dest) const override
Filter implicit attributes in serialization process.
Definition: Text.cpp:469
void ApplyAttributes() override
Perform post-load after deserialization. Acquire the components from the scene nodes.
Definition: RaycastVehicle.cpp:201
void SetUpdateNodePosition(bool unodepos)
Definition: CrowdAgent.cpp:370
float velocityMax_
Particle velocity maximum.
Definition: ParticleEffect.h:473
bool LoadDict(PListValueMap &dict, const XMLElement &dictElem)
Load dictionary.
Definition: PListFile.cpp:341
float shadowFadeDistance_
Shadow fade start distance.
Definition: Light.h:437
float lastTimeStep_
Last scene timestep.
Definition: RibbonTrail.h:261
bool SetVector3(const String &name, const Vector3 &value)
Set a Vector3 attribute.
Definition: XMLElement.cpp:528
float GetAttributeAnimationSpeed(const String &name) const
Return attribute animation speed.
Definition: Animatable.cpp:440
BoundingBox() noexcept
Construct with zero size.
Definition: BoundingBox.h:48
Vector3 previousOffset_
Previous offset to camera for determining whether sorting is necessary.
Definition: BillboardSet.h:225
ResourceRef GetMaterialAttr() const
Return material attribute.
Definition: RibbonTrail.cpp:906
unsigned GetTrackIndex(Node *node) const
Return track index with matching bone node, or M_MAX_UNSIGNED if not found.
Definition: AnimationState.cpp:416
void RecreateFixture()
Recreate fixture.
Definition: CollisionChain2D.cpp:124
void SetMaxAnchor(const Vector2 &anchor)
Definition: UIElement.cpp:784
static void RegisterObject(Context *context)
Register object factory.
Definition: SpriteSheet2D.cpp:49
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:279
Vector< String > deferredLightPSVariations_
Current variation names for deferred light volume shaders.
Definition: Renderer.h:603
void SetScriptFileAttr(const ResourceRef &value)
Set script file attribute.
Definition: ScriptInstance.cpp:439
Plane Transformed(const Matrix3 &transform) const
Return transformed by a 3x3 matrix.
Definition: Plane.cpp:68
bool HasBasePass(unsigned batchIndex) const
Return whether has a base pass.
Definition: Drawable.h:298
double GetDouble(double defaultValue=0.0) const
Return double value.
Definition: JSONValue.h:210
unsigned ToHash() const
Return hash value for HashSet & HashMap.
Definition: ArrayPtr.h:391
Vector3 boundingBoxMaxPoint_
Bounding box max point.
Definition: ParticleEmitter2D.h:171
ConstIterator(Node *ptr)
Construct with a node pointer.
Definition: HashSet.h:119
static void RegisterObject(Context *context)
Register object factory.
Definition: PhysicsWorld.cpp:201
bool forceGL2_
Force OpenGL 2 flag. Only used on OpenGL.
Definition: Graphics.h:788
static void RegisterObject(Context *context)
Register object factory.
Definition: RigidBody2D.cpp:71
static void RegisterObject(Context *context)
Register object factory.
Definition: LuaFile.cpp:54
void SetBlendMode(BlendMode blendMode)
Definition: ParticleEmitter2D.cpp:119
void OnSceneSet(Scene *scene) override
Handle scene being assigned.
Definition: ParticleEmitter2D.cpp:184
ShaderVariation * GetVertexShader() const
Return the vertex shader.
Definition: OGLShaderProgram.cpp:323
String ToString() const
Return as string.
Definition: BoundingBox.cpp:297
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:2115
void SetupDirLightShadowCamera(Camera *shadowCamera, Light *light, float nearSplit, float farSplit)
Set up a directional light shadow camera.
Definition: View.cpp:2612
void UpdateGeometry(const FrameInfo &frame) override
Prepare geometry for rendering. Called from a worker thread if possible (no GPU update).
Definition: TerrainPatch.cpp:141
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:105
const PODVector< Vector2 > & GetVertices() const
Return vertices.
Definition: CollisionPolygon2D.h:59
void SetVariant(const Variant &variant, Context *context=nullptr)
Set variant, context must provide for resource ref.
Definition: JSONValue.cpp:389
void OnDeviceLost() override
Mark the GPU resource destroyed on context destruction.
Definition: OGLShaderProgram.cpp:75
bool ignoreEvents_
Ignore events flag, used when changing line edits manually.
Definition: FileSelector.h:209
virtual void ApplyValue(const Variant &newValue)
Apply new animation value to the target object. Called by Update().
Definition: ValueAnimationInfo.cpp:124
ConstIterator Find(const T &key) const
Return const iterator to the pair with key, or end iterator if not found.
Definition: HashMap.h:543
static void RegisterObject(Context *context)
Register object factory.
Definition: CollisionBox2D.cpp:51
bool Rename(const String &srcFileName, const String &destFileName)
Rename a file. Return true if successful.
Definition: FileSystem.cpp:500
PointOctreeQuery(PODVector< Drawable * > &result, const Vector3 &point, unsigned char drawableFlags=DRAWABLE_ANY, unsigned viewMask=DEFAULT_VIEWMASK)
Construct with point and query parameters.
Definition: OctreeQuery.h:78
void QueueUpdate(Drawable *drawable)
Mark drawable object as requiring an update and a reinsertion.
Definition: Octree.cpp:550
Vector2 Normalized() const
Return normalized to unit length.
Definition: Vector2.h:336
unsigned numParticles_
Nummber of particles.
Definition: ParticleEmitter2D.h:159
void BeginFrame(float timeStep)
Begin new frame, with (last) frame duration in seconds and send frame start event.
Definition: Timer.cpp:105
bool FilterScrollBarImplicitAttributes(XMLElement &dest, const String &name) const
Filter implicit attributes in serialization process for internal scroll bar.
Definition: ScrollView.cpp:411
Pass * GetPass(unsigned passIndex) const
Return a pass, or null if not found.
Definition: Technique.h:260
bool Contains(const T &value) const
Return whether contains a specific value.
Definition: Vector.h:488
float DotProduct(const Vector2 &rhs) const
Calculate dot product.
Definition: Vector2.h:309
bool Expired() const
Return whether the object has expired. If null pointer, always return true.
Definition: Ptr.h:498
XMLElement SelectSingle(const String &query, pugi::xpath_variable_set *variables=nullptr) const
Select an element/attribute using XPath query.
Definition: XMLElement.cpp:225
asILockableSharedBool * sharedBool_
Shared boolean for checking the continued existence of the script object.
Definition: ScriptFile.h:180
UniquePtr< btConstraintSolver > solver_
Bullet constraint solver.
Definition: PhysicsWorld.h:326
void HandleScenePostUpdate(StringHash eventType, VariantMap &eventData)
Handle scene post-update event.
Definition: ScriptInstance.cpp:885
bool SaveFile(const String &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:871
Base class for objects with automatic serialization through attributes.
Definition: Serializable.h:44
void SetDepthTest(CompareMode mode)
Set depth compare.
Definition: OGLGraphics.cpp:1825
static void BulkTranspose(float *dest, const float *src, unsigned count)
Bulk transpose matrices.
Definition: Matrix3.h:312
static const PODVector< unsigned char > emptyBuffer
Empty buffer.
Definition: Variant.h:1388
void ClearControlPoints()
Clear the Control Points from the SplinePath.
Definition: SplinePath.cpp:177
void SetAreaCost(unsigned queryFilterType, unsigned areaID, float cost)
Set the cost of an area for the specified query filter type.
Definition: CrowdManager.cpp:335
~LuaScriptInstance() override
Destruct.
Definition: LuaScriptInstance.cpp:76
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
bool CheckPingpong(unsigned index)
Check whether a command should use pingponging instead of resolve from destination render target to v...
Definition: View.cpp:1928
unsigned layers_
Texture array layers number.
Definition: Texture2DArray.h:89
void ReleaseFixture()
Release fixture.
Definition: CollisionShape2D.cpp:235
void SetNumIterations(int num)
Definition: PhysicsWorld.cpp:333
void Update(const FrameInfo &frame)
Update and cull objects and construct rendering batches.
Definition: View.cpp:518
unsigned ToHash() const
Return hash value for HashSet & HashMap.
Definition: Str.h:475
static void AddOrMerge(const UIBatch &batch, PODVector< UIBatch > &batches)
Add or merge a batch.
Definition: UIBatch.cpp:441
void AddRigidBody(RigidBody *body)
Add a rigid body to keep track of. Called by RigidBody.
Definition: PhysicsWorld.cpp:718
float GetFrequencyHz() const
Definition: ConstraintWheel2D.h:87
virtual void OnHover(const IntVector2 &position, const IntVector2 &screenPosition, MouseButtonFlags buttons, QualifierFlags qualifiers, Cursor *cursor)
React to mouse hover.
Definition: UIElement.cpp:421
void SetLoopMode(LoopMode2D loopMode)
Definition: AnimatedSprite2D.cpp:185
void ApplyOriginalPoseToActivePose()
Definition: IKSolver.cpp:483
UpdateGeometryType GetUpdateGeometryType() override
Return whether a geometry update is necessary, and if it can happen in a worker thread.
Definition: Renderer2D.cpp:222
b2FrictionJointDef jointDef_
Box2D joint def.
Definition: ConstraintFriction2D.h:70
SharedPtr< IndexBuffer > indexBuffer_
Index buffer.
Definition: Geometry.h:132
void Disconnect(int waitMSec=0)
Disconnect. If wait time is non-zero, will block while waiting for disconnect to finish.
Definition: Connection.cpp:254
void SetLength(float length)
Definition: ConstraintDistance2D.cpp:112
void ApplyMaterialList(const String &fileName=String::EMPTY)
Apply default materials from a material list file. If filename is empty (default),...
Definition: StaticModel.cpp:302
void AddCommand(const RenderPathCommand &command)
Add a command to the end of the list.
Definition: RenderPath.cpp:474
void OnAttributeAnimationAdded() override
Handle attribute animation added.
Definition: Node.cpp:1901
void SetPixelShaderDefines(const String &defines)
Definition: Technique.cpp:153
void HandleScenePostUpdate(StringHash eventType, VariantMap &eventData)
Handle scene post-update event.
Definition: RibbonTrail.cpp:180
bool subscribed_
Subscribed to application update event flag.
Definition: ScriptFile.h:138
SharedPtr< FileSystem > fileSystem_
Filesystem.
Definition: FileWatcher.h:69
const PODVector< unsigned char > & GetNetBillboardsAttr() const
Return billboards attribute for network replication.
Definition: BillboardSet.cpp:452
long numAffectedRows_
Number of affected rows by recent DML query.
Definition: ODBCResult.h:70
SDL_RWops * GetRWOps()
Return the RWOps structure.
Definition: RWOpsWrapper.h:49
Iterator Insert(const Iterator &dest, T &&value)
Move-insert an element by iterator.
Definition: Vector.h:310
unsigned viewportIndex_
Viewport index to be set when component is added to a node.
Definition: UIComponent.h:78
void UpdateSelectionEffect()
Update selection effect when selection or focus changes.
Definition: ListView.cpp:979
int GetMultiSample() const
Return multisampling level.
Definition: RenderSurface.cpp:97
float splineTension_
Spline tension.
Definition: ValueAnimation.h:161
bool useFixtureMass_
Use fixture mass (calculate mass & inertia from collision shapes automatically).
Definition: RigidBody2D.h:203
IntVector2 layoutMinSize_
Parent's minimum size calculated by layout. Used internally.
Definition: UIElement.h:891
void FinalizeBoneBoundingBoxes()
Finalize master model bone bounding boxes by merging from matching non-master bones....
Definition: AnimatedModel.cpp:1013
bool operator==(const PODVector< T > &rhs) const
Test for equality with another vector.
Definition: Vector.h:778
void SetMouseModeRelative(SDL_bool enable)
Set SDL mouse mode relative.
Definition: Input.cpp:836
bool Create() override
Create the GPU texture.
Definition: OGLTexture2D.cpp:367
bool bufferDirty_
Vertex buffer needs rewrite flag.
Definition: RibbonTrail.h:243
Definition: UIComponent.h:39
ValueAnimation * GetAttributeAnimation(const String &name) const
Definition: ObjectAnimation.cpp:235
Data structure used to represent the drag data associated to a UIElement.
Definition: UI.h:271
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:597
void SetWheelDampingRelaxation(int wheel, float damping)
Set wheel damping relaxation.
Definition: RaycastVehicle.cpp:480
PODVector< UIElement * > tempElements_
UI element query vector.
Definition: UI.h:414
int maxOccluderTriangles_
Maximum number of occluder triangles.
Definition: View.h:362
void Release() override
Release the texture.
Definition: OGLTextureCube.cpp:79
Dynamically sized buffer that can be read and written to as a stream.
Definition: VectorBuffer.h:31
Color Lerp(const Color &rhs, float t) const
Return linear interpolation of this color with another color.
Definition: Color.cpp:240
void SendAttributeAnimationAddedEvent(const String &name)
Send attribute animation added event.
Definition: ObjectAnimation.cpp:261
Vector< SharedPtr< ShaderVariation > > & GetVertexShaders()
Return vertex shaders.
Definition: Technique.h:158
Intersection IsInside(const Rect &rect) const
Test if another rect is inside, outside or intersects.
Definition: Rect.h:225
FlagSet & operator=(const FlagSet &rhs)=default
Assignment operator from flagset.
AnimationControl()
Construct with defaults.
Definition: AnimationController.h:41
const Vector< String > & GetResourceDirs() const
Definition: ResourceCache.h:166
float emissionTimer_
New particle emission timer.
Definition: ParticleEmitter.h:150
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:262
unsigned GetMaxParticles() const
Return max particles.
Definition: ParticleEmitter2D.h:118
void SetAlwaysUpdateOwner(bool enable)
Definition: NetworkPriority.cpp:79
UpdateGeometryType GetUpdateGeometryType() override
Return whether a geometry update is necessary, and if it can happen in a worker thread.
Definition: RibbonTrail.cpp:406
void SetDefaultStyle(XMLFile *style)
Definition: UIElement.cpp:1039
PODVector< RigidBody * > rigidBodies_
Rigid bodies in the world.
Definition: PhysicsWorld.h:332
DebugRenderer * debugRenderer_
Debug renderer.
Definition: PhysicsWorld.h:376
FaceCameraMode GetFaceCameraMode() const
Definition: ParticleEffect.h:403
SharedArrayPtr< signed char > GetData() const
Return shared sound data.
Definition: Sound.h:71
unsigned LogBaseTwo(unsigned value)
Return log base two or the MSB position of the given value.
Definition: MathDefs.h:288
IntVector2 pressedChildOffset_
Pressed label offset.
Definition: Button.h:107
Vector3 Orthogonalize(const Vector3 &axis) const
Make vector orthogonal to the axis.
Definition: Vector3.h:391
void SetMorphs(const Vector< ModelMorph > &morphs)
Set vertex morphs.
Definition: Model.cpp:612
bool projectionDirty_
Projection matrix dirty flag.
Definition: Camera.h:280
bool Save(Serializer &dest) const override
Save resource with default indentation (one tab). Return true if successful.
Definition: JSONFile.cpp:213
RenderSurface * currentRenderTarget_
Color rendertarget active for the current renderpath command.
Definition: View.h:338
void RenderUpdate()
Update the UI for rendering. Called by HandleRenderUpdate().
Definition: UI.cpp:414
void TestDrawables(Drawable **start, Drawable **end, bool inside) override
Intersection test for drawables.
Definition: OctreeQuery.cpp:126
void SetRepeat(float delay, float rate)
Set repeat properties. Rate 0 (default) disables repeat.
Definition: Button.cpp:177
float GetWeight(const String &name) const
Return animation weight.
Definition: AnimationController.cpp:507
void ResetUseTimer()
Reset last used timer.
Definition: OcclusionBuffer.cpp:331
const Vector2 & GetOtherBodyGroundAnchor() const
Definition: ConstraintPulley2D.h:65
void GetCollidingBodies(PODVector< 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:681
bool Contains(const T &value) const
Return whether contains a specific value.
Definition: List.h:390
float Distance(const Vector3 &point) const
Return signed distance to a point.
Definition: Plane.h:101
static void RegisterObject(Context *context)
Register object factory.
Definition: RibbonTrail.cpp:105
const String & GetName() const
Return shader name.
Definition: ShaderVariation.h:108
unsigned numParticles_
Number of particles.
Definition: ParticleEffect.h:429
SharedPtr< Window > window_
Fileselector window.
Definition: FileSelector.h:169
bool fixedScreenSize_
Billboards fixed screen size flag.
Definition: ParticleEffect.h:439
VariantMap & GetEventDataMap() const
Return a preallocated map for event data. Used for optimization to avoid constant re-allocation of ev...
Definition: Object.cpp:401
ConstraintFriction2D(Context *context)
Construct.
Definition: ConstraintFriction2D.cpp:37
void ClearParameterSource(ShaderParameterGroup group)
Clear a parameter source. Affects only the current shader program if appropriate.
Definition: OGLShaderProgram.cpp:387
void Reset()
Reset. Clear all remembered nodes and components.
Definition: SceneResolver.cpp:39
const PODVector< unsigned char > & GetNetAngularVelocityAttr() const
Return network angular velocity attribute.
Definition: RigidBody.cpp:855
void SetFace(unsigned index, const Vector3 &v0, const Vector3 &v1, const Vector3 &v2)
Set a triangle face by index.
Definition: Polyhedron.cpp:293
GPUObject(Graphics *graphics)
Construct with graphics subsystem pointer.
Definition: GPUObject.cpp:33
void RemoveComponent()
Template version of removing a component.
Definition: Node.h:770
bool FadeOthers(const String &name, float targetWeight, float fadeTime)
Fade other animations on the same layer to target weight. Return true on success.
Definition: AnimationController.cpp:269
DragAndDropModeFlags dragDropMode_
Drag and drop flags.
Definition: UIElement.h:828
void HandleTouchMove(StringHash eventType, VariantMap &eventData)
Handle touch move event for scrolling.
Definition: ScrollView.cpp:551
void Update(float timeStep) override
Perform UI element update.
Definition: Button.cpp:66
void SetData(const PODVector< unsigned char > &data)
Set data from another buffer.
Definition: VectorBuffer.cpp:92
String pixelShaderName_
Pixel shader name.
Definition: RenderPath.h:164
bool WriteString(const String &value)
Write a null-terminated string.
Definition: Serializer.cpp:182
void * GetSurface() const
Return Direct3D9 surface.
Definition: RenderSurface.h:119
Vector3 parentPos_
Parent position. Trail bone type uses this.
Definition: RibbonTrail.h:53
Vector3 Translation() const
Return the translation part.
Definition: Matrix3x4.h:603
const HashMap< StringHash, Vector< AttributeInfo > > & GetAllAttributes() const
Return all registered attributes.
Definition: Context.h:184
T * GetSubsystem() const
Template version of returning a subsystem.
Definition: Object.h:204
void SetMaxParticles(unsigned maxParticles)
Set max particles.
Definition: ParticleEmitter2D.cpp:130
bool Test(const Enum value) const
Return true if specified enum value is set.
Definition: FlagSet.h:214
PODVector< UIElement * > GetItems() const
Return all items.
Definition: ListView.cpp:838
bool GetBlockEvents() const
Return sending and receiving events blocking status.
Definition: Object.h:181
void MixMonoToMono(Sound *sound, int *dest, unsigned samples, int mixRate)
Mix mono sample to mono buffer.
Definition: SoundSource.cpp:605
void SetLineAntiAlias(bool enable)
Definition: DebugRenderer.cpp:67
bool operator!=(const HashSet< T > &rhs) const
Test for inequality with another hash set.
Definition: HashSet.h:269
HashSet< unsigned > networkUpdateNodes_
Nodes to check for attribute changes on the next network update.
Definition: Scene.h:325
void SetMaxTimeToLive(float time)
Definition: ParticleEffect.cpp:545
Vector< ShadowBatchQueue > shadowSplits_
Shadow map split queues.
Definition: Batch.h:305
PropertySet2D * GetTilePropertySet(unsigned gid) const
Return tile property set by gid, if not exist return 0.
Definition: TmxFile2D.cpp:574
void OnClickBegin(const IntVector2 &position, const IntVector2 &screenPosition, MouseButton button, MouseButtonFlags buttons, QualifierFlags qualifiers, Cursor *cursor) override
React to mouse click begin.
Definition: Button.cpp:106
Sphere(const Vector3 *vertices, unsigned count) noexcept
Construct from an array of vertices.
Definition: Sphere.h:57
void UpdateView(const IntVector2 &position)
Limit and update the view with a new position.
Definition: ScrollView.cpp:499
Definition: WorkQueue.h:44
void Sort()
Sort keys. After sorting the set can be iterated in order until new elements are inserted.
Definition: HashSet.h:411
unsigned GetCorrectedLodLevel(unsigned lodLevel)
Return a corrected LOD level to ensure stitching can work correctly.
Definition: TerrainPatch.cpp:278
void StopAll(float fadeOutTime=0.0f)
Stop all animations. Zero fadetime is instant.
Definition: AnimationController.cpp:241
SharedPtr< SoundStream > soundStream_
Sound stream that is being played.
Definition: SoundSource.h:197
void SetImageRect(const IntRect &rect)
Definition: BorderImage.cpp:85
ResourceRef GetMaterialAttr() const
Return material attribute.
Definition: Text3D.cpp:561
unsigned GetAvailableSize() const
Definition: HttpRequest.cpp:293
bool LoadArray(PListValueVector &array, const XMLElement &arrayElem)
Load array.
Definition: PListFile.cpp:366
bool interpolation_
Interpolation flag.
Definition: PhysicsWorld.h:366
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:960
void RefreshMemoryUse()
Recalculate the memory used by the material.
Definition: Material.cpp:1302
Vector2 sizeMin_
Particle size minimum.
Definition: ParticleEffect.h:463
ObjectFactoryImpl(Context *context)
Construct.
Definition: Object.h:244
~WeakPtr() noexcept
Destruct. Release the weak reference to the object.
Definition: Ptr.h:322
void SetFixedHeight(int height)
Set fixed height.
Definition: UIElement.cpp:664
SharedPtr< Geometry > geometry_
Geometry.
Definition: BillboardSet.h:203
bool noStencil_
Whether is using a custom readable depth texture without a stencil channel.
Definition: View.h:382
void Update()
Update. Called by HandlePostUpdate().
Definition: DebugHud.cpp:114
JSONValue(const char *value)
Construct with a C string.
Definition: JSONValue.h:119
unsigned numVariations_
Number of unique variations so far.
Definition: Shader.h:81
String definesClipPlane_
Defines to use in compiling + CLIPPLANE define appended. Used only on Direct3D11.
Definition: ShaderVariation.h:174
WrapMode GetShaderParameterAnimationWrapMode(const String &name) const
Return shader parameter animation wrap mode.
Definition: Material.cpp:1215
bool CreateCrowd()
Create and initialized internal Detour crowd object. When it is a recreate, it preserves the configur...
Definition: CrowdManager.cpp:568
void SetLinkedDepthStencil(RenderSurface *depthStencil)
Definition: RenderSurface.cpp:66
bool activate_
If the RigidBody should be activated.
Definition: RaycastVehicle.h:193
bool showPercentText_
Flag to show the percent text.
Definition: ProgressBar.h:115
void SetNumExtraInstancingBufferElements(int elements)
Definition: Renderer.cpp:467
bool ResetAppStats(const String &label)
Reset application-specific stats. Return true if it was erased successfully.
Definition: DebugHud.cpp:293
void SetupShadowCameras(LightQueryResult &query)
Set up initial shadow camera view(s).
Definition: View.cpp:2521
void AddTextureTime(const Rect &uv, float time)
Add a texture frame sorted in the correct position based on time.
Definition: ParticleEffect.cpp:666
void OnSceneSet(Scene *scene) override
Handle scene being assigned.
Definition: StaticSprite2D.cpp:271
bool vertexLights_
Vertex lights flag.
Definition: RenderPath.h:196
void UpdateBatches(const FrameInfo &frame) override
Calculate distance and prepare batches for rendering. May be called from worker thread(s),...
Definition: AnimatedModel.cpp:259
Frustum() noexcept=default
Construct a degenerate frustum with all points at origin.
unsigned GetQueryFilterType() const
Definition: CrowdAgent.h:188
Mutex moduleMutex_
Script module create/delete mutex.
Definition: Script.h:145
@ 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:458
void DecScriptNestingLevel()
Decrease script nesting level.
Definition: Script.h:116
Color(const Color &color, float a) noexcept
Construct from another color and modify the alpha.
Definition: Color.h:66
Vector2 Lerp(const Vector2 &rhs, float t) const
Linear interpolation with another vector.
Definition: Vector2.h:324
float GetStartParticleSizeVariance() const
Return start particle size variance.
Definition: ParticleEffect2D.h:194
void SetLinearVelocity(const Vector2 &linearVelocity)
Definition: RigidBody2D.cpp:298
unsigned GetNumBillboards() const
Definition: BillboardSet.h:119
unsigned Capacity() const
Return capacity of vector.
Definition: Vector.h:1154
JoystickState * GetJoystickByIndex(unsigned index)
Definition: Input.cpp:1451
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:301
float GetRotationStart() const
Return rotation start.
Definition: ParticleEffect2D.h:230
void OnSceneSet(Scene *scene) override
Handle node being assigned.
Definition: CrowdAgent.cpp:609
unsigned numDrawables_
Number of drawable objects in this octant and child octants.
Definition: Octree.h:152
void RemoveKnot()
Remove the last knot on the spline.
Definition: Spline.h:105
IntRect border_
Border dimensions on screen.
Definition: BorderImage.h:139
TextureCube(Context *context)
Construct.
Definition: TextureCube.cpp:61
bool operator!=(const KeyValue &rhs) const
Test for inequality with another pair.
Definition: HashMap.h:73
HashMap< String, SharedPtr< LuaFunction > > functionNameToFunctionMap_
Function name to function map.
Definition: LuaScript.h:129
void SetShowPercentText(bool enable)
Definition: ProgressBar.cpp:114
CascadeParameters(float split1, float split2, float split3, float split4, float fadeStart, float biasAutoAdjust=1.0f)
Construct with initial values.
Definition: Light.h:88
static void RegisterObject(Context *context)
Register object factory.
Definition: Model.cpp:70
void StopSound(Sound *sound)
Stop any sound source playing a certain sound clip.
Definition: Audio.cpp:197
XMLElement CreateRoot(const String &name)
Clear the document and create a root element.
Definition: XMLFile.cpp:144
int GetInt(int defaultValue=0) const
Return integer value.
Definition: JSONValue.h:204
SharedPtr< XMLFile > loadParameters_
Parameter file acquired during BeginLoad.
Definition: TextureCube.h:92
void StorePreparedView(View *view, Camera *camera)
Mark a view as prepared by the specified culling camera.
Definition: Renderer.cpp:1142
const String & GetProperty(const String &name) const
Return property.
Definition: TileMapLayer2D.cpp:262
void SetScriptNetworkDataAttr(const PODVector< unsigned char > &data)
Set script network serialization attribute by calling a script function.
Definition: ScriptInstance.cpp:473
void HandleElementResized(StringHash eventType, VariantMap &eventData)
Handle content element resized.
Definition: ScrollView.cpp:545
unsigned page_
Texture page. M_MAX_UNSIGNED if not yet resident on any texture.
Definition: FontFace.h:58
unsigned dragButtonCount_
Drag button count.
Definition: UIElement.h:858
std::atomic< bool > shutDown_
Shutting down flag.
Definition: WorkQueue.h:141
ConstraintType GetConstraintType() const
Definition: Constraint.h:122
void FinishSaving(Serializer *dest) const
Finish saving. Sets the scene filename and checksum.
Definition: Scene.cpp:1281
void SetParametersDirty()
Mark parameters dirty. Called by Graphics.
Definition: Texture.cpp:229
void SetDrawAabb(bool drawAabb)
Definition: PhysicsWorld2D.cpp:364
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:433
void SetFontAttr(const ResourceRef &value)
Set font attribute.
Definition: Text.cpp:443
Technique * GetDefaultTechnique() const
Definition: Renderer.cpp:564
bool skinningDirty_
Skinning dirty flag.
Definition: AnimatedModel.h:261
VertexMaskFlags GetElementMask() const
Definition: VertexBuffer.h:110
Button * cancelButton_
Cancel button.
Definition: FileSelector.h:187
unsigned char drawableFlags_
Drawable flags.
Definition: Drawable.h:361
AnimationTrack * CreateTrack(const String &name)
Create and return a track by name. If track by same name already exists, returns the existing.
Definition: Animation.cpp:300
const PODVector< Drawable * > & GetGeometries() const
Return geometry objects.
Definition: View.h:163
void CreateThreads(unsigned numThreads)
Create worker threads. Can only be called once.
Definition: WorkQueue.cpp:86
ValueAnimationInfo * GetAttributeAnimationInfo(const String &name) const
Return attribute animation info by name.
Definition: ObjectAnimation.cpp:253
float farSplit_
Directional light cascade far split distance.
Definition: Batch.h:288
bool GetUseTextureRect() const
Definition: StaticSprite2D.h:136
unsigned GetMorphRangeCount(unsigned bufferIndex) const
Return vertex buffer morph range vertex count.
Definition: Model.cpp:778
float Lightness() const
Return lightness as defined for HSL: average of the largest and smallest values of the RGB components...
Definition: Color.cpp:151
void SetMaterialAttr(const ResourceRef &value)
Set material attribute.
Definition: BillboardSet.cpp:362
static void RegisterObject(Context *context)
Register object factory.
Definition: CollisionChain2D.cpp:47
bool QueueResource(StringHash type, const String &name, bool sendEventOnFailure, Resource *caller)
Queue loading of a resource. The name must be sanitated to ensure consistent format....
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:223
void OnDragBegin(const IntVector2 &position, const IntVector2 &screenPosition, MouseButtonFlags buttons, QualifierFlags qualifiers, Cursor *cursor) override
React to mouse drag begin.
Definition: LineEdit.cpp:139
Viewport definition either for a render surface or the backbuffer.
Definition: Viewport.h:41
void OnSetEnabled() override
Handle enabled/disabled state change.
Definition: DecalSet.cpp:203
static void RegisterObject(Context *context)
Register object factory.
Definition: CrowdManager.cpp:94
bool DrawOcclusion(OcclusionBuffer *buffer) override
Draw to occlusion buffer. Return true if did not run out of triangles.
Definition: StaticModel.cpp:189
Pass * GetSupportedPass(unsigned passIndex) const
Return a pass that is supported for rendering, or null if not found.
Definition: Technique.h:266
Color() noexcept
Construct with default values (opaque white).
Definition: Color.h:54
VariantVector parameters_
Parameters.
Definition: ScriptEventListener.h:48
void MarkNetworkUpdate() override
Mark for attribute check on the next network update.
Definition: Node.cpp:284
void AddSkeleton(const Skeleton &skeleton, const Color &color, bool depthTest=true)
Add a skeleton.
Definition: DebugRenderer.cpp:354
CreateMode
Component and child node creation mode for networking.
Definition: Node.h:43
WeakPtr< SmoothedTransform > smoothedTransform_
Smoothed transform, if has one.
Definition: RigidBody.h:331
Vector2(const float *data) noexcept
Construct from a float array.
Definition: Vector2.h:203
List & operator=(const List< T > &rhs)
Assign from another list.
Definition: List.h:208
Vector< Pair< String, CubeMapFace > > outputs_
Output rendertarget names and faces.
Definition: RenderPath.h:174
IntVector2 lastVisibleMousePosition_
Last mouse position before being set to not visible.
Definition: Input.h:438
SharedPtr< UIElement3D > rootElement_
UIElement to be rendered into texture. It also handles screen to UI coordinate translation.
Definition: UIComponent.h:76
VertexBuffer * GetVertexBuffer() const
Return vertex buffer.
Definition: TerrainPatch.cpp:263
float GetTime() const
Return time position.
Definition: ValueAnimationInfo.h:72
void SetMinPriority(float priority)
Definition: NetworkPriority.cpp:73
URHO_CPP14(constexpr) RandomAccessConstIterator< T > &operator
Assign from a non-const iterator.
void * externalWindow_
External window, null if not in use (default.)
Definition: Graphics.h:771
void ProcessRayQuery(const RayOctreeQuery &query, PODVector< RayQueryResult > &results) override
Process octree raycast. May be called from a worker thread.
Definition: Renderer2D.cpp:104
bool LoadRawFile(const String &fileName)
Load script file on file system (i.e. not from resource cache). Return true if successful.
Definition: LuaScript.cpp:266
unsigned GetNumGeometries() const
Definition: CustomGeometry.h:138
PODVector< float > uiVertexData_
Text vertex data.
Definition: Text3D.h:247
void SetVertexShaderDefineExcludes(const String &excludes)
Definition: Technique.cpp:159
Matrix3x4(const float *data) noexcept
Construct from a float array.
Definition: Matrix3x4.h:126
PODVector< unsigned char > GetScriptDataAttr() const
Get script file serialization attribute by calling a script function.
Definition: ScriptInstance.cpp:504
void SendAllBuffers()
Send out all buffered messages.
Definition: Connection.cpp:403
static unsigned deferredPassIndex
Index for deferred G-buffer pass. Initialized once GetPassIndex() has been called for the first time.
Definition: Technique.h:298
void Reset()
Reset number of triangles.
Definition: OcclusionBuffer.cpp:146
void UpdateAsyncLoading()
Update asynchronous loading.
Definition: Scene.cpp:1188
void SetPositionIterations(int positionIterations)
Definition: PhysicsWorld2D.cpp:425
HashSet< Scene * > networkScenes_
Networked scenes.
Definition: Network.h:174
bool alwaysUpdateOwner_
Update owner at full rate flag.
Definition: NetworkPriority.h:83
void RemoveCollisionShape(CollisionShape *shape)
Remove a collision shape. Called by CollisionShape.
Definition: PhysicsWorld.cpp:735
void AddEventHandlerInternal(Object *sender, StringHash eventType, const String &handlerName)
Add an event handler and create the necessary proxy object.
Definition: ScriptFile.cpp:657
Iterator Insert(const Iterator &dest, const T &value)
Insert an element by iterator.
Definition: Vector.h:891
bool IsValid() const
Check that function is valid.
Definition: LuaFunction.cpp:63
void SetScriptDataAttr(const PODVector< unsigned char > &data)
Set script file serialization attribute by calling a script function.
Definition: LuaScriptInstance.cpp:434
void RemoveEventHandlers(Object *sender) override
Remove all scripted event handlers for a specific sender.
Definition: LuaScriptInstance.cpp:348
SharedPtr< VertexBuffer > vertexBuffer_
Vertex buffer.
Definition: BillboardSet.h:205
Definition: ResourceCache.h:70
PODVector< ConstantBuffer * > dirtyConstantBuffers_
Dirty constant buffers.
Definition: OGLGraphicsImpl.h:146
void SetTailColumn(unsigned tailColumn)
Definition: RibbonTrail.cpp:355
SharedPtr< AttributeAccessor > accessor_
Helper object for accessor mode.
Definition: Attribute.h:108
PODVector< Drawable * > threadedGeometries_
Geometry objects that will be updated in worker threads.
Definition: View.h:398
WeakPtr< Constraint2D > otherConstraint_
Other body constraint.
Definition: ConstraintGear2D.h:74
static Sint64 Size(SDL_RWops *context)
Return data size of the object.
Definition: RWOpsWrapper.h:53
XPathResultSet SelectPrepared(const XPathQuery &query) const
Select elements/attributes using XPath query.
Definition: XMLElement.cpp:255
void DynamicCast(const WeakArrayPtr< U > &rhs)
Perform a dynamic cast from a weak array pointer of another type.
Definition: ArrayPtr.h:358
unsigned char adaptiveDepth
adaptive
Definition: CrowdManager.h:56
SharedPtr< Material > defaultMaterial_
Default material.
Definition: Renderer.h:559
int GetNumExtraInstancingBufferElements() const
Definition: Renderer.h:362
Object * GetSender() const
Return event sender. Null if the handler is non-specific.
Definition: Object.h:285
void SetProfilerMaxDepth(unsigned depth)
Definition: DebugHud.cpp:245
bool Equals(const Vector3 &rhs) const
Test for equality with another vector with epsilon.
Definition: Vector3.h:410
const Vector< SharedPtr< PackageFile > > & GetRequiredPackageFiles() const
Definition: Scene.h:232
void SetAspectRatioInternal(float aspectRatio)
Set aspect ratio without disabling the "auto aspect ratio" mode. Called internally by View.
Definition: Camera.cpp:597
bool executeConsoleCommands_
Flag for executing engine console commands as script code. Default to true.
Definition: Script.h:149
void ClearObjectTypeCache()
Clear the inbuild object type cache.
Definition: Script.cpp:353
void SetWheelDirection(int wheel, Vector3 direction)
Set wheel direction vector.
Definition: RaycastVehicle.cpp:620
void SetOwner(void *owner)
Set owner.
Definition: ValueAnimation.cpp:250
AutoRemoveMode
Autoremove is used by some components for automatic removal from the scene hierarchy upon completion ...
Definition: Component.h:39
ResourceRef GetMaterialAttr() const
Return material attribute.
Definition: BillboardSet.cpp:427
void RemoveDecals(unsigned num)
Remove n oldest decals.
Definition: DecalSet.cpp:485
unsigned GetNumThreads() const
Return number of worker threads.
Definition: WorkQueue.h:105
Definition: Profiler.h:233
void OnSetEnabled() override
Handle enabled/disabled state change.
Definition: AnimatedSprite2D.cpp:86
Definition: Vector.h:45
void SetPosition2D(float x, float y)
Set position in parent space (for Urho2D).
Definition: Node.h:142
bool EqualsExceptVSync(const ScreenModeParams &rhs) const
Compare contents except vsync flag.
Definition: Graphics.h:104
IKEffector(Context *context)
Constructs a new IK effector.
Definition: IKEffector.cpp:43
XMLElement SelectSinglePrepared(const XPathQuery &query) const
Select an element/attribute using XPath query.
Definition: XMLElement.cpp:235
List< AsyncExecRequest * > asyncExecQueue_
Async execution queue.
Definition: FileSystem.h:126
const PackageEntry * GetEntry(const String &fileName) const
Return the file entry corresponding to the name, or null if not found. This will be case-insensitive ...
Definition: PackageFile.cpp:135
bool executeConsoleCommands_
Flag for executing engine console commands as OS-specific system command. Default to true.
Definition: FileSystem.h:130
bool ExecuteString(const String &string)
Execute script string. Return true if successful.
Definition: LuaScript.cpp:251
void PushFront(const T &value)
Insert an element to the beginning.
Definition: List.h:282
unsigned offset_
Offset in constant buffer.
Definition: ShaderVariation.h:57
void GetCursorPositionAndVisible(IntVector2 &pos, bool &visible)
Return cursor position and visibility either from the cursor element, or the Input subsystem.
Definition: UI.cpp:1305
void InsertChild(unsigned index, UIElement *element)
Insert a child element into a specific position in the child list.
Definition: UIElement.cpp:1293
void ApplyAttributes() override
Apply attribute changes that can not be applied immediately.
Definition: UIElement.cpp:159
void UpdateGeometry(const FrameInfo &frame) override
Prepare geometry for rendering. Called from a worker thread if possible (no GPU update).
Definition: DecalSet.cpp:229
RefCount * refCount_
Pointer to the RefCount structure.
Definition: Ptr.h:538
int Refs() const
Return the array's reference count, or 0 if null pointer or if array has expired.
Definition: ArrayPtr.h:379
void SetPosition(const Vector3 &position)
Definition: CollisionShape.cpp:749
bool operator!=(const HashIteratorBase &rhs) const
Test for inequality with another iterator.
Definition: HashBase.h:76
bool depthHierarchyDirty_
Depth hierarchy needs update flag.
Definition: OcclusionBuffer.h:199
Graphics * GetGraphics() const
Return graphics subsystem.
Definition: View.cpp:674
unsigned vertexCount_
Number of vertices.
Definition: VertexBuffer.h:157
HashMap(HashMap< T, U > &&map) noexcept
Move-construct from another hash map.
Definition: HashMap.h:235
void SetOtherBodyAnchor(const Vector2 &anchor)
Definition: ConstraintRope2D.cpp:69
UpdateEventFlags GetUpdateEventMask() const
Return what update events are subscribed to.
Definition: LogicComponent.h:83
void OnNodeSet(Node *node) override
Handle node being assigned.
Definition: Constraint.cpp:416
HashMap< StringHash, AnimationTrack > tracks_
Animation tracks.
Definition: Animation.h:211
void OnHover(const IntVector2 &position, const IntVector2 &screenPosition, MouseButtonFlags buttons, QualifierFlags qualifiers, Cursor *cursor) override
React to mouse hover.
Definition: Window.cpp:116
int GetPacketsOutPerSec() const
Definition: Connection.cpp:1116
void UnsubscribeFromAllEvents()
Unsubscribe from all events.
Definition: Object.cpp:250
void InitializeJointDef(b2JointDef *jointDef)
Initialize joint def.
Definition: Constraint2D.cpp:173
bool GetStopAtEnd() const
Return whether playback should stop when no more data.
Definition: SoundStream.h:60
void SetNeighbors(TerrainPatch *north, TerrainPatch *south, TerrainPatch *west, TerrainPatch *east)
Set neighbor patches.
Definition: TerrainPatch.cpp:219
VectorBuffer attrBuffer_
Attribute buffer for network replication.
Definition: RigidBody.h:341
bool RemoveTrack(const String &name)
Remove a track by name. Return true if was found and removed successfully. This is unsafe if the anim...
Definition: Animation.cpp:314
Color GetPixel(int x, int y) const
Return a 2D pixel color.
Definition: Image.cpp:1475
void SetShadowCompare(bool enable)
Set shadow compare mode. Not used on Direct3D9.
Definition: Texture.cpp:92
SharedPtr< Image > GetNextLevel() const
Return next mip level by bilinear filtering. Note that if the image is already 1x1x1,...
Definition: Image.cpp:1591
void NewConnectionEstablished(const SLNet::AddressOrGUID &connection)
Handle a new client connection.
Definition: Network.cpp:308
void ResetMouseGrabbed()
Reset the mouse grabbed to the last unsuppressed SetMouseGrabbed call.
Definition: Input.cpp:822
SharedPtr< VertexBuffer > vertexBuffer_
UI vertex buffer.
Definition: UI.h:300
bool BeginLoad(Deserializer &source) override
Load resource from stream. May be called from a worker thread. Return true if successful.
Definition: Texture2DArray.cpp:66
HashSet< Pair< StringHash, StringHash > > dependents_
Resources that depend on this resource's loading.
Definition: BackgroundLoader.h:47
void AddSphere(const Sphere &sphere, const Color &color, bool depthTest=true)
Add a sphere.
Definition: DebugRenderer.cpp:260
IntRect clipBorder_
Child element clipping border.
Definition: UIElement.h:794
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: Button.cpp:123
bool GetScancodeDown(Scancode scancode) const
Definition: Input.cpp:1344
Variant(const Matrix3x4 &value)
Construct from a Matrix3x4.
Definition: Variant.h:506
unsigned readBuffers_
Read buffer bits.
Definition: OGLGraphicsImpl.h:93
void OnNodeSet(Node *node) override
Handle component being added to Node or removed from it.
Definition: UIComponent.cpp:198
Intersection IsInside(const IntRect &rect) const
Test if another rect is inside, outside or intersects.
Definition: Rect.h:429
void SetAngle(float angle)
Set angle.
Definition: ParticleEffect2D.cpp:329
void OnWorldBoundingBoxUpdate() override
Recalculate the world-space bounding box.
Definition: StaticSprite2D.cpp:278
WeakPtr< LuaScriptInstance > instance_
Lua script instance.
Definition: LuaScriptEventInvoker.h:54
SharedPtr< PropertySet2D > propertySet_
Property set.
Definition: TmxFile2D.h:87
bool SetIntVector3(const String &name, const IntVector3 &value)
Set an IntVector3 attribute.
Definition: XMLElement.cpp:392
void DrawDebugGeometry(DebugRenderer *debug, bool depthTest) override
Visualize the component as debug geometry.
Definition: Constraint.cpp:138
void SetScale(float scale)
Set uniform scaling elements.
Definition: Matrix4.h:512
void ApplyAttributes() override
Apply attribute changes that can not be applied immediately. Called after scene load or a network upd...
Definition: LuaScriptInstance.cpp:284
static void RegisterObject(Context *context)
Register object factory.
Definition: ParticleEffect.cpp:96
Billboard * GetBillboard(unsigned index)
Definition: BillboardSet.cpp:357
unsigned boundUBO_
Currently bound uniform buffer object.
Definition: OGLGraphicsImpl.h:130
bool RemoveGesture(unsigned gestureID)
Remove an in-memory gesture by ID. Return true if was found.
Definition: Input.cpp:1252
void HandleEndFrame(StringHash eventType, VariantMap &eventData)
Handle end of frame. Clear debug geometry.
Definition: DebugRenderer.cpp:651
bool BeginLoad(Deserializer &source) override
Load resource from stream. May be called from a worker thread. Return true if successful.
Definition: Texture2D.cpp:60
void ResetToDefault()
Reset all editable attributes to their default values.
Definition: Serializable.cpp:650
String vertexShaderDefines_
Vertex shader defines.
Definition: Technique.h:196
Color clearColor_
Clear color. Affects clear command only.
Definition: RenderPath.h:180
Vector< Variant > currentValues_
Current network attribute values.
Definition: ReplicationState.h:126
void AddConstraint2D(Constraint2D *constraint)
Add constraint.
Definition: RigidBody2D.cpp:489
void SetLoop(unsigned repeatOffset, unsigned endOffset)
Define loop.
Definition: Sound.cpp:271
void Swap(HashBase &rhs)
Swap with another hash set or map.
Definition: HashBase.h:118
const Vector< AttributeInfo > * GetAttributes() const override
Return attribute descriptions, or null if none defined.
Definition: ScriptInstance.h:78
String vertexShaderName_
Vertex shader name.
Definition: RenderPath.h:162
bool selectOnClickEnd_
React to click end instead of click start flag.
Definition: ListView.h:203
IKConstraint(Context *context)
Constructs a new IK constraint.
Definition: IKConstraint.cpp:38
bool isRouting_
Resource routing flag to prevent endless recursion.
Definition: ResourceCache.h:270
void CheckMaterialForAuxView(Material *material)
Check if material should render an auxiliary view (if it has a camera attached).
Definition: View.cpp:2847
void OnPackagesReady()
Handle all packages loaded successfully. Also called directly on MSG_LOADSCENE if there are none.
Definition: Connection.cpp:1593
void UpdateNodeIDs() const
Update node IDs attribute from the actual nodes.
Definition: StaticModelGroup.cpp:403
void SetAlphaToCoverage(bool enable)
Definition: Material.cpp:1095
virtual void Update(float timeStep)
Update the sound source. Perform subclass specific operations. Called by Audio.
Definition: SoundSource.cpp:329
Sprite2D * GetTileSprite(unsigned gid) const
Return tile sprite by gid, if not exist return 0.
Definition: TmxFile2D.cpp:555
StringHash animationNameHash_
Animation name hash.
Definition: Animation.h:207
void UpdateBatches(const FrameInfo &frame) override
Calculate distance and prepare batches for rendering. May be called from worker thread(s),...
Definition: Text3D.cpp:115
float GetBrake(int wheel) const
Get hand brake value.
Definition: RaycastVehicle.cpp:588
void OnSceneSet(Scene *scene) override
Handle scene being assigned.
Definition: ScriptInstance.cpp:532
void Define(const Vector3 &v0, const Vector3 &v1, const Vector3 &v2)
Define from 3 vertices.
Definition: Plane.h:66
void SetNetBillboardsAttr(const PODVector< unsigned char > &value)
Set billboards attribute for network replication.
Definition: BillboardSet.cpp:407
Quaternion rotation_
Observer rotation for interest management.
Definition: Connection.h:348
ConstIterator Begin() const
Return const iterator to the beginning.
Definition: Vector.h:1122
bool updateQueued_
Octree update queued flag.
Definition: Drawable.h:371
VariantVector GetBonesEnabledAttr() const
Return bones' animation enabled attribute.
Definition: AnimatedModel.cpp:867
void SetTextureFilterMode(TextureFilterMode mode)
Definition: Renderer.cpp:326
PODVector< int > GetMultiSampleLevels() const
Definition: OGLGraphics.cpp:2048
AttributeHandle & SetMetadata(StringHash key, const Variant &value)
Set metadata.
Definition: Attribute.h:135
void SetAutoRemoveMode(AutoRemoveMode mode)
Definition: SoundSource.cpp:308
unsigned GetRowDataSize(int width) const
Return data size in bytes for a pixel or block row.
Definition: OGLTexture.cpp:190
void MixStereoToMonoIP(Sound *sound, int *dest, unsigned samples, int mixRate)
Mix stereo sample to mono buffer interpolated.
Definition: SoundSource.cpp:1076
float cursorBlinkTimer_
Cursor blink timer.
Definition: LineEdit.h:164
unsigned ToHash() const
Return hash value for HashSet & HashMap.
Definition: Vector3.h:465
bool Link()
Link the shaders and examine the uniforms and samplers used. Return true if successful.
Definition: OGLShaderProgram.cpp:116
void SetEnableMotor(bool enableMotor)
Definition: ConstraintPrismatic2D.cpp:129
Vector2 otherBodyAnchor_
Other body anchor.
Definition: ConstraintDistance2D.h:87
void AddAltTarget(UIElement *target)
Add an alternative hover target.
Definition: ToolTip.cpp:128
void OnSceneSet(Scene *scene) override
Handle scene being assigned.
Definition: Constraint2D.cpp:163
void SetDrawOrder(int drawOrder)
Definition: TileMapLayer2D.cpp:217
float radialAcceleration_
Radial acceleration.
Definition: ParticleEffect2D.h:278
unsigned char timeStamp_
Controls timestamp. Incremented after each sent update.
Definition: Connection.h:275
unsigned char renderOrder_
8-bit render order modifier from material.
Definition: Batch.h:82
Vector4 Lerp(const Vector4 &rhs, float t) const
Linear interpolation with another vector.
Definition: Vector4.h:186
Ray GetScreenRay(int x, int y) const
Return ray corresponding to normalized screen coordinates.
Definition: Viewport.cpp:142
Intersection IsInside(const Vector3 &point) const
Test if a point is inside.
Definition: BoundingBox.h:285
void RemoveItem(UIElement *item)
Remove specific item.
Definition: DropDownList.cpp:168
void UnsubscribeFromScriptMethodEvents()
Unsubscribe from script method events.
Definition: LuaScriptInstance.cpp:642
bool IsInf() const
Return whether any component is Inf.
Definition: Vector2.h:333
bool forceAnimationUpdate_
Force animation update after becoming visible flag.
Definition: AnimatedModel.h:271
const PODVector< SoundSource * > & GetSoundSources() const
Return all sound sources.
Definition: Audio.h:109
bool IsApplyingTransforms() const
Return whether node dirtying should be disregarded.
Definition: PhysicsWorld.h:297
void HandleLogMessage(StringHash eventType, VariantMap &eventData)
Handle log message.
Definition: Application.cpp:124
void RemoveListener(Component *component)
Remove listener component.
Definition: Node.cpp:1170
static unsigned lightPassIndex
Index for per-pixel light pass. Initialized once GetPassIndex() has been called for the first time.
Definition: Technique.h:300
static const IntVector3 RIGHT_UP_FORWARD
(0, 1, 2) coordinate system (default).
Definition: RaycastVehicle.h:179
void OnDragBegin(const IntVector2 &position, const IntVector2 &screenPosition, MouseButtonFlags buttons, QualifierFlags qualifiers, Cursor *cursor) override
React to mouse drag begin.
Definition: Window.cpp:129
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:253
bool OpenInternal(const 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:428
PODVector< DebugTriangle > noDepthTriangles_
Triangles rendered without depth test.
Definition: DebugRenderer.h:184
RefCount * refCount_
Pointer to the RefCount structure.
Definition: ArrayPtr.h:428
Vector3 ViewportTransform(const Vector4 &vertex) const
Apply projection and viewport transform to vertex.
Definition: OcclusionBuffer.cpp:553
void Resize(unsigned newSize, const T &value)
Resize the vector and fill new elements with default value.
Definition: Vector.h:1056
void SetControlPointIdsAttr(const VariantVector &value)
Set Control Point Node IDs attribute.
Definition: SplinePath.cpp:242
T & EmplaceBack(Args &&... args)
Create an element at the end.
Definition: Vector.h:222
const Vector< UIElement * > GetDragElements()
Return currently dragged elements.
Definition: UI.cpp:885
Iterator Find(const T &value)
Return iterator to value, or to the end if not found.
Definition: List.h:372
const String & GetName() const override
Return the file name.
Definition: File.h:84
void ProcessLoadScene(int msgID, MemoryBuffer &msg)
Process a LoadScene message from the server. Called by Network.
Definition: Connection.cpp:528
String GetShadowVariations() const
Find variations for shadow shaders.
Definition: Renderer.cpp:1912
IntVector2 customSize_
Root element custom size. 0,0 for automatic resizing (default).
Definition: UI.h:480
virtual void AddReplicationState(NodeReplicationState *state)
Add a replication state that is tracking this node.
Definition: Node.cpp:293
long long frameMaxTime_
Maximum time on the previous frame.
Definition: Profiler.h:155
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:252
unsigned shadowCasterBegin_[MAX_LIGHT_SPLITS]
Shadow caster start indices.
Definition: View.h:66
unsigned numLodLevels_
Number of terrain LOD levels.
Definition: Terrain.h:332
static XPathQuery styleXPathQuery_
XPath query for selecting UI-style.
Definition: UIElement.h:929
void HandlePathChanged(StringHash eventType, VariantMap &eventData)
Handle path edited.
Definition: FileSelector.cpp:394
Timer dragBeginTimer
Timer used to trigger drag begin event.
Definition: UI.h:282
VectorBuffer GetVectorBuffer() const
Return VectorBuffer containing the buffer or empty on type mismatch.
Definition: Variant.cpp:430
void SetValueMap(const PListValueMap &valueMap)
Set value map.
Definition: PListFile.cpp:168
void ApplyOSCursorShape()
Apply pending OS cursor shape. Called by UI. No-op when the OS mouse pointer is not used.
Definition: Cursor.cpp:256
void AddAttribute(const pugi::xml_node &patch, const pugi::xpath_node &original) const
Add an attribute in the Patch.
Definition: XMLFile.cpp:347
ResourceCache(Context *context)
Construct.
Definition: ResourceCache.cpp:70
void SetTargetRotation(const Quaternion &rotation)
Definition: SmoothedTransform.cpp:114
void CreateConstraint()
Create the constraint.
Definition: Constraint.cpp:458
virtual const Vector< AttributeInfo > * GetNetworkAttributes() const
Return network replication attribute descriptions, or null if none defined.
Definition: Serializable.cpp:288
unsigned numBatches_
Number of batches (3D geometry only).
Definition: Renderer.h:649
void ChangeValue(float delta)
Change value by a delta.
Definition: Slider.cpp:199
void OnDragEnd(const IntVector2 &position, const IntVector2 &screenPosition, MouseButtonFlags dragButtons, MouseButtonFlags releaseButtons, Cursor *cursor) override
React to mouse drag end.
Definition: Slider.cpp:150
bool SaveXML(XMLElement &dest) const override
Save as XML data. Return true if successful.
Definition: UIElement.cpp:291
void HandleLayoutUpdated(StringHash eventType, VariantMap &eventData)
Handle the element layout having been updated.
Definition: LineEdit.cpp:658
bool ExecuteFile(const String &fileName)
Execute script file. Return true if successful.
Definition: LuaScript.cpp:237
ResourceRef GetModelAttr() const
Return model attribute.
Definition: AnimatedModel.cpp:862
SplinePath(Context *context)
Construct an Empty SplinePath.
Definition: SplinePath.cpp:42
void RemoveAnimationState(AnimationState *state)
Remove an animation state.
Definition: AnimationController.cpp:863
HashMap< String, Vector< SharedPtr< DbConnection > > > connectionsPool_
Database connections pool.
Definition: Database.h:76
Camera * shadowCamera_
Shadow map camera.
Definition: Batch.h:280
void HandleIncomingPacket(SLNet::Packet *packet, bool isServer)
All incoming packages are handled here.
Definition: Network.cpp:695
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
bool NeedParameterUpdate(ShaderParameterGroup group, const void *source)
Check whether a shader parameter group needs update. Does not actually check whether parameters exist...
Definition: OGLGraphics.cpp:1457
LegacyVertexElement
Hardcoded legacy vertex elements.
Definition: GraphicsDefs.h:134
const PODVector< unsigned char > & GetMorphsAttr() const
Return morphs attribute.
Definition: AnimatedModel.cpp:897
bool EndLoad() override
Finish resource loading. Always called from the main thread. Return true if successful.
Definition: ParticleEffect2D.cpp:211
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:2362
unsigned Tell() const
Return current position.
Definition: Deserializer.h:64
float screenScaleFactor_
Scale factor for fixed screen size mode. Used internally.
Definition: BillboardSet.h:58
void SetEndPoint(Node *node)
Definition: OffMeshConnection.cpp:113
void SetOutputName(unsigned index, const String &name)
Definition: RenderPath.cpp:266
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:147
int numExtraInstancingBufferElements_
Number of extra instancing data elements.
Definition: Renderer.h:665
unsigned jsonIndex_
Current JSON child array and for JSON mode.
Definition: Scene.h:70
HashMap< unsigned short, unsigned short > materialRemapping_
Material remapping table for 2-pass state and distance sort.
Definition: Batch.h:252
float currentTime_
Current time.
Definition: ValueAnimationInfo.h:94
bool Load(const XMLElement &element, const TileMapInfo2D &info)
Load from XML element.
Definition: TmxFile2D.cpp:340
String orientations_
Allowed screen orientations.
Definition: Graphics.h:914
void HandleDropFile(StringHash eventType, VariantMap &eventData)
Handle a file being drag-dropped into the application window.
Definition: UI.cpp:2059
void UpdateUIClickSubscription()
Update subscription to UI click events.
Definition: ListView.cpp:1157
~AnimationSet2D() override
Destruct.
Definition: AnimationSet2D.cpp:114
ConstIterator End() const
Return const iterator to the end.
Definition: Vector.h:500
float GetDownloadProgress() const
Definition: Connection.cpp:1141
static void RegisterObject(Context *context)
Register object factory.
Definition: LineEdit.cpp:74
HashMap< unsigned, WeakPtr< Node > > nodes_
Nodes.
Definition: SceneResolver.h:54
bool EndLoadFromPListFile()
End load from PList file.
Definition: SpriteSheet2D.cpp:149
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:438
void PlayLockless(Sound *sound)
Play a sound without locking the audio mutex. Called internally.
Definition: SoundSource.cpp:511
bool LoadXML(const XMLElement &source) override
Load from XML data. Return true if successful.
Definition: Animatable.cpp:77
HighlightMode highlightMode_
Highlight mode.
Definition: ListView.h:191
void ApplyAttributes() override
Apply attribute changes that can not be applied immediately.
Definition: LineEdit.cpp:90
bool BeginLoad(Deserializer &source) override
Load resource from stream. May be called from a worker thread. Return true if successful.
Definition: Shader.cpp:84
void OnGetAttribute(const AttributeInfo &attr, Variant &dest) const override
Handle attribute read access.
Definition: ScriptInstance.cpp:148
static const ResourceRefList emptyResourceRefList
Empty resource reference list.
Definition: Variant.h:1392
void SetMaterial(Material *material)
Definition: CustomGeometry.cpp:697
bool GetMouseButtonPress(MouseButtonFlags button) const
Definition: Input.cpp:1359
virtual Intersection TestOctant(const BoundingBox &box, bool inside)=0
Intersection test for an octant.
SoundListener(Context *context)
Construct.
Definition: SoundListener.cpp:33
SharedPtr< CollisionShape2D > shapeA_
Shape A.
Definition: PhysicsWorld2D.h:293
bool FilterPopupImplicitAttributes(XMLElement &dest) const override
Filter implicit attributes in serialization process.
Definition: DropDownList.cpp:263
void SetWheelMaxSuspensionForce(int wheel, float force)
Set wheel max suspension force. Good results are often obtained by a value that is about 3x to 4x the...
Definition: RaycastVehicle.cpp:466
bool GetExecuteConsoleCommands() const
Return whether is executing engine console commands as script code.
Definition: LuaScript.h:96
Node * ReserveNode(const T &key)
Reserve a node with specified key.
Definition: HashSet.h:610
bool GetEnableMotor() const
Definition: ConstraintWheel2D.h:75
HashMap< asIScriptObject *, SharedPtr< ScriptEventInvoker > > eventInvokers_
Event helper objects for handling procedural or non-ScriptInstance script events.
Definition: ScriptFile.h:150
const IntVector2 & GetChildOffset() const
Definition: UIElement.h:510
const String & GetVertexShaderDefineExcludes() const
Definition: Technique.h:151
const Vector2 & GetOtherBodyAnchor() const
Definition: ConstraintDistance2D.h:65
unsigned Find(const String &str, unsigned startPos=0, bool caseSensitive=true) const
Return index to the first occurrence of a string, or NPOS if not found.
Definition: Str.cpp:594
Matrix3x4 ReadMatrix3x4()
Read a Matrix3x4.
Definition: Deserializer.cpp:219
float periodTimer_
Active/inactive period timer.
Definition: ParticleEmitter.h:148
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
void SetInterceptNetworkUpdate(const String &attributeName, bool enable)
Enable interception of an attribute from network updates. Intercepted attributes are sent as events i...
Definition: Serializable.cpp:690
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:884
void Mix(int *dest, unsigned samples, int mixRate, bool stereo, bool interpolation)
Mix sound source output to a 32-bit clipping buffer. Called by Audio.
Definition: SoundSource.cpp:366
int baseIndent_
Base indent, used in hierarchy mode only.
Definition: ListView.h:197
Node * InsertNode(Node *dest, const T &key, const U &value)
Insert a node into the list. Return the new node.
Definition: HashMap.h:696
void Define(const Skeleton &src)
Define from another skeleton.
Definition: Skeleton.cpp:103
bool HasModalElement() const
Return true when UI has modal element(s).
Definition: UI.cpp:933
WeakPtr< PhysicsWorld > physicsWorld_
Physics world.
Definition: Constraint.h:198
void UpdateTail(float timeStep)
Update/Rebuild tail mesh only if position changed (called by UpdateBatches()).
Definition: RibbonTrail.cpp:213
String GetEffectiveVertexShaderDefines() const
Return the effective vertex shader defines, accounting for excludes. Called internally by Renderer.
Definition: Technique.cpp:184
unsigned ToHash() const
Return hash value for HashSet & HashMap.
Definition: Ptr.h:659
void ReleaseMaterialShaders()
Release shaders used in materials.
Definition: Renderer.cpp:1741
Quaternion ReadQuaternion()
Read a quaternion.
Definition: Deserializer.cpp:196
void SetNumParticles(unsigned num)
Definition: ParticleEffect.cpp:445
void SetTrigger(bool trigger)
Definition: CollisionShape2D.cpp:81
const Vector3 & GetPosition() const
Definition: CollisionShape.h:237
Light * GetFirstLight() const
Return the first added per-pixel light.
Definition: Drawable.h:307
bool Contains(const T &value) const
Return whether contains a specific value.
Definition: Vector.h:1116
void AddControlPoint(Node *point, unsigned index=M_MAX_UNSIGNED)
Add a Node to the SplinePath as a Control Point.
Definition: SplinePath.cpp:139
unsigned stencilCompareMask_
Stencil compare bitmask.
Definition: Graphics.h:890
URHO_CPP14(constexpr) RandomAccessIterator< T > operator++(int)
Postincrement the pointer.
Definition: Iter.h:59
void ApplyAttributes() override
Apply attribute changes that can not be applied immediately. Called after scene load or a network upd...
Definition: CrowdManager.cpp:109
void ProcessPackageDownload(int msgID, MemoryBuffer &msg)
Process package download related messages. Called by Network.
Definition: Connection.cpp:796
VariantVector GetVariantVector() const
Return a variant vector attribute, or empty if missing.
Definition: XMLElement.cpp:903
void RemoveAllDecals()
Remove all decals.
Definition: DecalSet.cpp:491
HashMap< String, SharedPtr< XMLFile > > tsxXMLFiles_
TSX name to XML file mapping.
Definition: TmxFile2D.h:218
void OnWorldBoundingBoxUpdate() override
Recalculate the world-space bounding box.
Definition: CustomGeometry.cpp:815
bool operator!=(const BatchGroupKey &rhs) const
Test for inequality with another batch group key.
Definition: Batch.h:215
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:103
bool SetWindowModes(const WindowModeParams &windowMode, const WindowModeParams &secondaryWindowMode, bool maximize=false)
Definition: Graphics.cpp:111
const pugi::xpath_node * GetXPathNode() const
Return pugixml xpath_node.
Definition: XMLElement.h:302
Vector3 cachedWorldScale_
Cached world scale.
Definition: CollisionShape2D.h:133
~HttpRequest() override
Destruct. Release the connection object.
Definition: HttpRequest.cpp:73
int GetNonThreadedWorkMs() const
Return how many milliseconds maximum to spend on non-threaded low-priority work.
Definition: WorkQueue.h:116
void SetSpecularIntensity(float intensity)
Definition: Light.cpp:314
bool forceAutoHint_
Flag for forcing FreeType auto hinting.
Definition: UI.h:446
bool IsInside(IntVector2 position, bool isScreen)
Return whether a point (either in element or screen coordinates) is inside the element.
Definition: UIElement.cpp:1742
virtual Geometry * GetLodGeometry(unsigned batchIndex, unsigned level)
Return the geometry for a specific LOD level.
Definition: Drawable.cpp:153
SharedPtr< ParticleEffect2D > Clone(const String &cloneName=String::EMPTY) const
Clone the 2D particle effect.
Definition: ParticleEffect2D.cpp:474
bool historyOrAutoCompleteChange_
Internal flag whether currently in an autocomplete or history change.
Definition: Console.h:214
void SetQueueShaderDefines(BatchQueue &queue, const RenderPathCommand &command)
Set shader defines for a batch queue if used.
Definition: View.cpp:2881
Vector4 GetVector4(const String &name) const
Return a Vector4 attribute, or zero vector if missing.
Definition: XMLElement.cpp:960
void SetDiscoveryBeacon(const VariantMap &data)
Set the data that will be used for a reply to attempts at host discovery on LAN/subnet.
Definition: Network.cpp:342
HashMap & Populate(const T &key, const U &value, const Args &... args)
Populate the map using variadic template.
Definition: HashMap.h:362
void SetUseDrawRect(bool useDrawRect)
Definition: StaticSprite2D.cpp:188
void SetFeature(Feature feature, bool enable)
Definition: IKEffector.cpp:217
bool GetContinuousPhysics() const
Definition: PhysicsWorld2D.cpp:690
unsigned Seek(unsigned position) override
Set position. No-op for pipes.
Definition: NamedPipe.cpp:75
void AdjustOtherBodyPosition()
Adjust other body position.
Definition: Constraint.cpp:580
bool etcTextureSupport_
ETC1 format support flag.
Definition: Graphics.h:800
Base class for per-user network replication states.
Definition: ReplicationState.h:138
float GetAutoFade(const String &name) const
Return animation autofade time.
Definition: AnimationController.cpp:555
TextureCube * GetIndirectionCubeMap() const
Return the shadowed pointlight indirection cube map.
Definition: Renderer.h:445
void SetAddressOrGUID(const SLNet::AddressOrGUID &addr)
Set the the RakNet address/guid.
Definition: Connection.cpp:1660
Variant ReadVariant()
Read a variant.
Definition: Deserializer.cpp:302
const ModelMorph * GetMorph(unsigned index) const
Return vertex morph by index.
Definition: Model.cpp:752
Vector< LightQueryResult > lightQueryResults_
Intermediate light processing results.
Definition: View.h:411
UpdateEventFlags updateEventMask_
Requested event subscription mask.
Definition: LogicComponent.h:108
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:1696
void CreateGeometry()
Regenerate terrain geometry.
Definition: Terrain.cpp:848
SharedPtr< VertexBuffer > vertexBuffer_
Vertex buffer.
Definition: DebugRenderer.h:194
void StaticCast(const WeakPtr< U > &rhs)
Perform a static cast from a weak pointer of another type.
Definition: Ptr.h:456
HashMap< int, Vector< SharedPtr< Texture2D > > > shadowMaps_
Shadow maps by resolution.
Definition: Renderer.h:573
void ApplyNodeWorldScale() override
Apply node world scale.
Definition: CollisionBox2D.cpp:105
Key GetKeyFromScancode(Scancode scancode) const
Return keycode from scancode.
Definition: Input.cpp:1309
void SetLightVolumeBatchShaders(Batch &batch, Camera *camera, const String &vsName, const String &psName, const String &vsDefines, const String &psDefines)
Choose shaders for a deferred light volume batch.
Definition: Renderer.cpp:1277
const String & GetLinkerOutput() const
Return linker output.
Definition: OGLShaderProgram.h:68
Matrix4 gpuProjection_
Projection transform in API-specific format.
Definition: DebugRenderer.h:190
UIElement * buttonLayout_
Button layout.
Definition: FileSelector.h:197
DebugRenderer * debugRenderer_
Debug renderer.
Definition: PhysicsWorld2D.h:259
void DumpMemory()
Dump information of all memory allocations to the log. Supported in MSVC debug mode only.
Definition: Engine.cpp:644
const T * Cast() const
Cast the object to specified most derived class.
Definition: Object.h:115
bool SetVariable(const String &name, bool value)
Add/Set a bool variable. Return true if successful.
Definition: XMLElement.cpp:1076
Stores files of a directory tree sequentially for convenient access.
Definition: PackageFile.h:42
void Update(float timeStep)
Update for rendering. Called by HandleRenderUpdate().
Definition: Renderer.cpp:647
void DrawPolygon(const b2Vec2 *vertices, int32 vertexCount, const b2Color &color) override
Draw a closed polygon provided in CCW order.
Definition: PhysicsWorld2D.cpp:189
void UpdateDrawRect()
Update drawRect.
Definition: StaticSprite2D.cpp:361
void AddEventHandler(const String &eventName, int functionIndex) override
Add a scripted event handler by function.
Definition: LuaScriptInstance.cpp:299
@ ASYNC_SUCCESS
BeginLoad() succeeded. EndLoad() can be called in the main thread.
Definition: Resource.h:48
void RaycastSingleSegmented(PhysicsRaycastResult &result, const Ray &ray, float maxDistance, float segmentDistance, unsigned collisionMask=M_MAX_UNSIGNED, float overlapDistance=0.1f)
Definition: PhysicsWorld.cpp:432
ShaderVariation * GetShader(ShaderType type, const String &name, const String &defines=String::EMPTY) const
Return a shader variation by name and defines.
Definition: OGLGraphics.cpp:2124
void SetAttributeAnimationTime(const String &name, float time)
Set attribute animation time position manually. Automatic update should be disabled in this case.
Definition: Animatable.cpp:406
void OnWorldBoundingBoxUpdate() override
Recalculate the world-space bounding box.
Definition: StaticModel.cpp:400
void HandleSceneUpdate(StringHash eventType, VariantMap &eventData)
Handle scene update event.
Definition: LogicComponent.cpp:169
FlagSet operator|(const Enum value) const
Bitwise OR against Enum value.
Definition: FlagSet.h:130
unsigned short GetBufferHash() const
Return buffers' combined hash value for state sorting.
Definition: Geometry.cpp:196
void SetBrake(int wheel, float force)
Set hand brake (wheel rotation blocking force).
Definition: RaycastVehicle.cpp:582
void RemoveAllKeyFrames()
Remove all keyframes.
Definition: Animation.cpp:82
const String & GetAppliedStyle() const
Definition: UIElement.cpp:1574
static void RegisterObject(Context *context)
Register object factory.
Definition: Material.cpp:206
bool geometriesUpdated_
Geometries updated flag.
Definition: View.h:368
void MergeBuffers()
Merge thread work buffers into the first buffer.
Definition: OcclusionBuffer.cpp:1004
bool LoadAsync(File *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:309
Vector2 projectionOffset_
Projection offset.
Definition: Camera.h:310
Camera * GetShadowCamera()
Allocate a temporary shadow camera and a scene node for it. Is thread-safe.
Definition: Renderer.cpp:1123
SharedPtr< Material > material_
Material.
Definition: ParticleEffect.h:427
Material * GetMaterial(Texture2D *texture, BlendMode blendMode)
Return material by texture and blend mode.
Definition: Renderer2D.cpp:243
ResourceRefList(StringHash type, const StringVector &names)
Construct with type and id list.
Definition: Variant.h:149
void SetEnableMotor(bool enableMotor)
Definition: ConstraintWheel2D.cpp:84
static bool Compare(const T &lhs, const T &rhs)
Compare types.
Definition: Variant.h:218
bool HasMethod(const String &declaration) const
Check if has a method.
Definition: ScriptInstance.cpp:431
void SetAutoDisableChildren(bool disable)
Definition: ScrollView.h:96
bool GetFlipVertical() const
Return vertical flipping mode.
Definition: Camera.h:229
int dragBeginDistance_
Drag begin event distance threshold in pixels.
Definition: UI.h:424
const Matrix4 & GetMatrix4() const
Return a Matrix4 or identity on type mismatch.
Definition: Variant.h:1287
Vector< Node * > wheelNodes_
Nodes of all wheels.
Definition: RaycastVehicle.h:201
SharedArrayPtr< int > dataWithSafety_
Full buffer data with safety padding.
Definition: OcclusionBuffer.h:57
void SetTolerance(float tolerance)
Sets the distance at which the effector is "close enough" to the target node, at which point the algo...
Definition: IKSolver.cpp:211
void PrecacheShaders(Deserializer &source)
Precache shader variations from an XML file generated with BeginDumpShaders().
Definition: Graphics.cpp:371
void ApplyAnimation()
Apply all animation states to nodes.
Definition: AnimatedModel.cpp:1276
const PODVector< unsigned char > & GetBuffer() const
Return buffer or empty on type mismatch.
Definition: Variant.h:1201
void UpdatePlanes()
Update the planes. Called internally.
Definition: Frustum.cpp:225
static void RegisterObject(Context *context)
Register object factory.
Definition: LuaScriptInstance.cpp:81
UniquePtr< Spriter::SpriterInstance > spriterInstance_
Spriter instance.
Definition: AnimatedSprite2D.h:158
void SetExcludeFlags(unsigned queryFilterType, unsigned short flags)
Set the exclude flags for the specified query filter type.
Definition: CrowdManager.cpp:323
void GetVector3MinMax(const XMLElement &element, Vector3 &minValue, Vector3 &maxValue)
Read a Vector3 from an XML element.
Definition: ParticleEffect.cpp:851
float projOffsetScaleX_
Combined X projection and viewport transform.
Definition: OcclusionBuffer.h:223
bool WriteInt64(long long value)
Write a 64-bit integer.
Definition: Serializer.cpp:36
float GetFloat(const String &name) const
Return a float attribute, or zero if missing.
Definition: XMLElement.cpp:792
void SetElementRenderTexture(UIElement *element, Texture2D *texture)
Set texture to which element will be rendered.
Definition: UI.cpp:2187
const Vector3 & GetGravityOverride() const
Definition: RigidBody.h:252
SharedPtr< Image > SaveFaceTexture(Texture2D *texture)
Save font face texture as image resource.
Definition: FontFaceBitmap.cpp:356
const TmxObjectGroup2D * objectGroup_
Object group.
Definition: TileMapLayer2D.h:128
void SetDefaultRenderPath(RenderPath *renderPath)
Definition: Renderer.cpp:293
bool GetDepthWrite() const
Return whether depth write is enabled.
Definition: Graphics.h:568
void CreatePatchGeometry(TerrainPatch *patch)
Regenerate patch geometry.
Definition: Terrain.cpp:651
Intersection IsInsideFast(const Sphere &sphere) const
Test if a sphere if (partially) inside or outside.
Definition: Frustum.h:111
SharedPtr< BorderImage > scrollPanel_
Scroll panel element.
Definition: ScrollView.h:182
void HandleBeginFrame(StringHash eventType, VariantMap &eventData)
Handle begin frame event to check for completed async executions.
Definition: FileSystem.cpp:904
Vector3 Lerp(const Vector3 &rhs, float t) const
Linear interpolation with another vector.
Definition: Vector3.h:407
bool IsPowerOfTwo(unsigned value)
Check whether an unsigned integer is a power of two.
Definition: MathDefs.h:261
bool IsPlaying(const String &name) const
Return whether an animation is active. Note that non-looping animations that are being clamped at the...
Definition: AnimationController.cpp:429
unsigned long long GetElementHash() const
Return vertex element hash.
Definition: ShaderVariation.h:123
static View * GetActualView(View *view)
Return a view or its source view if it uses one. Used internally for render statistics.
Definition: Renderer.cpp:1154
void UpdateBatches(const FrameInfo &frame) override
Calculate distance and prepare batches for rendering. May be called from worker thread(s),...
Definition: StaticModelGroup.cpp:169
void UnmapBuffer()
Unmap the GPU buffer. Not used on OpenGL.
Definition: OGLVertexBuffer.cpp:274
Vector2 touchScrollSpeed_
Accumulated touch scroll speed.
Definition: ScrollView.h:190
SharedPtr< XMLFile > loadParameters_
Parameter file acquired during BeginLoad.
Definition: Texture2DArray.h:97
Variant(const Vector3 &value)
Construct from a Vector3.
Definition: Variant.h:386
void DoAutoRemove(AutoRemoveMode mode)
Perform autoremove. Called by subclasses. Caller should keep a weak pointer to itself to check whethe...
Definition: Component.cpp:309
bool FromString(const String &source)
Deserialize from a string. Return true if successful.
Definition: JSONFile.cpp:232
Mutex mutex_
Mutex for synchronizing the worker and the main thread.
Definition: HttpRequest.h:103
bool WriteVector4(const Vector4 &value)
Write a Vector4.
Definition: Serializer.cpp:132
const Matrix3x4 * worldTransform_
World transform.
Definition: Batch.h:126
void SetIndentSpacing(int indentSpacing)
Definition: UIElement.cpp:1086
auto Average(Iterator begin, Iterator end) -> typename std::decay< decltype(*begin)>::type
Compute average value of the range.
Definition: MathDefs.h:221
static bool HasParameter(const VariantMap ¶meters, const String ¶meter)
Return whether startup parameters contains a specific parameter.
Definition: Engine.cpp:962
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
SharedPtr< Node > nodeB_
Node B.
Definition: PhysicsWorld2D.h:291
void BindStencilAttachment(unsigned object, bool isRenderBuffer)
Bind a framebuffer stencil attachment using either extension or core functionality....
Definition: OGLGraphics.cpp:3333
void HandleUpdate(StringHash eventType, VariantMap &eventData)
Handle the logic update event to update the scene, if active.
Definition: Scene.cpp:1164
void SetApplyingTransforms(bool enable)
Set node dirtying to be disregarded.
Definition: PhysicsWorld.h:294
float GetSimulatedPacketLoss() const
Definition: Network.h:122
void AddVertexLight(Light *light)
Add a per-vertex light affecting the object this frame.
Definition: Drawable.h:328
Vector< String > Split(char separator, bool keepEmptyStrings=false) const
Return substrings split by a separator char. By default don't return empty strings.
Definition: Str.cpp:561
void FindScriptObjectMethodRefs()
Find script object method refs.
Definition: LuaScriptInstance.cpp:609
void OnKey(Key key, MouseButtonFlags buttons, QualifierFlags qualifiers) override
React to a key press.
Definition: ListView.cpp:206
EmitterType2D emitterType_
Emitter type.
Definition: ParticleEffect2D.h:306
XMLElement operator[](unsigned index) const
Definition: XMLElement.cpp:1036
unsigned index_
Octant index relative to its siblings or ROOT_INDEX for root octant.
Definition: Octree.h:158
float sizeAdd_
Particle size additive parameter.
Definition: ParticleEffect.h:483
void SetWheelFrictionSlip(int wheel, float slip)
Set wheel friction slip.
Definition: RaycastVehicle.cpp:508
bool CheckAccess(const String &pathName) const
Check if a path is allowed to be accessed. If no paths are registered, all are allowed.
Definition: FileSystem.cpp:550
void SetSpriteAttr(const ResourceRef &value)
Set sprite attribute.
Definition: ParticleEmitter2D.cpp:161
int minInstances_
Minimum number of instances required in a batch group to render as instanced.
Definition: View.h:364
Texture * GetTexture(TextureUnit unit) const
Definition: Material.cpp:1197
Iterator Insert(const Pair< T, U > &pair, bool &exists)
Insert a pair. Return iterator and set exists flag according to whether the key already existed.
Definition: HashMap.h:375
HashMap< StringHash, Variant > shaderParameters_
Shader parameters.
Definition: RenderPath.h:172
void Update(float delta)
Update the crowd simulation.
Definition: CrowdManager.cpp:678
PhysicsWorld * GetPhysicsWorld() const
Return physics world.
Definition: RigidBody.h:180
Quaternion GetWheelRotation(int wheel)
Get wheel rotation relative to RigidBody.
Definition: RaycastVehicle.cpp:424
MaterialQuality materialQuality_
Material quality level.
Definition: Renderer.h:613
void SetZoneTextureAttr(const ResourceRef &value)
Set zone texture attribute.
Definition: Zone.cpp:218
String name_
Animation resource name.
Definition: AnimationController.h:57
bool SystemOpen(const String &fileName, const String &mode=String::EMPTY)
Open a file in an external program, with mode such as "edit" optionally specified....
Definition: FileSystem.cpp:437
bool useDerivedOpacity_
Use derived opacity flag.
Definition: UIElement.h:810
void ApplyAttributes() override
Apply Attributes to the SplinePath.
Definition: SplinePath.cpp:70
void ApplyLinearImpulseToCenter(const Vector2 &impulse, bool wake)
Apply linear impulse to center.
Definition: RigidBody2D.cpp:353
bool fixedWidthResizing_
Fixed width resize flag.
Definition: Window.h:165
int * GetBuffer() const
Return highest level depth values.
Definition: OcclusionBuffer.h:126
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:683
Batch(const SourceBatch &rhs)
Construct from a drawable's source batch.
Definition: Batch.h:56
void UpdateParticle(Particle2D &particle, float timeStep, const Vector3 &worldPosition, float worldScale)
Update particle.
Definition: ParticleEmitter2D.cpp:417
bool NeedRenderShadowMap(const LightBatchQueue &queue)
Check whether a light queue needs shadow rendering.
Definition: View.cpp:3052
bool WriteRect(const Rect &value)
Write a Rect.
Definition: Serializer.cpp:106
void AddConstraint(Constraint *constraint)
Add a constraint to keep track of. Called by Constraint.
Definition: PhysicsWorld.cpp:740
PODVector< Object * > eventSenders_
Event sender stack.
Definition: Context.h:238
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:188
void HandleSceneSubsystemUpdate(StringHash eventType, VariantMap &eventData)
Handle the scene subsystem update event, step simulation here.
Definition: PhysicsWorld2D.cpp:714
void FinishBackgroundLoading(BackgroundLoadItem &item)
Finish one background loaded resource.
Node * CreateTemporaryChild(const String &name=String::EMPTY, CreateMode mode=REPLICATED, unsigned id=0)
Create a temporary child scene node (with specified ID if provided).
Definition: Node.cpp:799
bool bringToFront_
Bring to front when focused flag.
Definition: UIElement.h:802
NavigationQuality GetNavigationQuality() const
Definition: CrowdAgent.h:196
void SetVarNamesAttr(const String &value)
Set node user variable reverse mappings.
Definition: Scene.cpp:1067
static void WriteRaw(const String &message, bool error=false)
Write raw output to the log.
Definition: Log.cpp:208
Delayed world transform assignment for parented rigidbodies.
Definition: PhysicsWorld.h:81
void UpdateBufferSize()
Resize billboard vertex and index buffers.
Definition: BillboardSet.cpp:501
bool collideConnected_
Collide connected flag.
Definition: Constraint2D.h:109
void OnHidePopup() override
React to the popup being hidden.
Definition: DropDownList.cpp:138
void SetInterpolationMode(InterpolationMode interpolationMode)
Definition: SplinePath.cpp:199
void CopyMetadata(const ResourceWithMetadata &source)
Copy metadata from another resource.
Definition: Resource.cpp:188
void MoveRange(unsigned dest, unsigned src, unsigned count)
Move a range of characters within the string.
Definition: Str.h:524
SharedPtr< VertexBuffer > vertexBuffer_
UI vertex buffer.
Definition: UI.h:410
BoundingBox(const Frustum &frustum)
Construct from a frustum.
Definition: BoundingBox.h:100
void SetScale(const Vector2 &scale)
Set scaling elements.
Definition: Matrix2.h:140
void GetLitBatches(Drawable *drawable, LightBatchQueue &lightQueue, BatchQueue *alphaQueue)
Get pixel lit batches for a certain light and drawable.
Definition: View.cpp:1379
virtual ~ProfilerBlock()
Destruct. Free the child blocks.
Definition: Profiler.h:63
void DiscoverHosts(unsigned port)
Scan the LAN/subnet for available hosts.
Definition: Network.cpp:351
void SetShadowDistance(float distance)
Definition: Drawable.cpp:179
void Remove()
Remove from the parent node. If no other shared pointer references exist, causes immediate deletion.
Definition: Node.cpp:1119
long long frameTime_
Time on the previous frame.
Definition: Profiler.h:153
float normalOffset_
Normal offset multiplier.
Definition: Light.h:77
HashIteratorBase(HashNodeBase *ptr)
Construct with a node pointer.
Definition: HashBase.h:67
constexpr T * operator->() const
Point to the object.
Definition: Iter.h:46
void OnDragCancel(const IntVector2 &position, const IntVector2 &screenPosition, MouseButtonFlags dragButtons, MouseButtonFlags cancelButtons, Cursor *cursor) override
React to mouse drag cancel.
Definition: Window.cpp:239
void SetUTF8FromWChar(const wchar_t *str)
Construct UTF8 content from wide characters.
Definition: Str.cpp:751
ConstIterator Begin() const
Return iterator to the beginning.
Definition: HashSet.h:503
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:689
Scancode GetScancodeFromName(const String &name) const
Return scancode from key name.
Definition: Input.cpp:1324
Node * GetTileNode(int x, int y) const
Return tile node (for tile layer only).
Definition: TileMapLayer2D.cpp:292
bool useLitBase_
Forward light base pass optimization flag. If in use, combine the base pass and first light for all o...
Definition: View.h:378
void Load(const XMLElement &element)
Read from an XML element.
Definition: RenderPath.cpp:116
unsigned numWorldTransforms_
Number of world transforms.
Definition: Batch.h:94
Iterator(Node *ptr)
Construct with a node pointer.
Definition: HashMap.h:113
PODVector< VariantMap * > eventDataMaps_
Event data stack.
Definition: Context.h:240
void HandleTextFinished(StringHash eventType, VariantMap &eventData)
Handle enter pressed on the line edit.
Definition: Console.cpp:371
bool WriteBuffer(const PODVector< unsigned char > &value)
Write a buffer, with size encoded as VLE.
Definition: Serializer.cpp:206
virtual ~GPUObject()
Destruct. Remove from the Graphics.
Definition: GPUObject.cpp:46
IntVector2 checkedOffset_
Checked image offset.
Definition: CheckBox.h:70
void HandleFilterChanged(StringHash eventType, VariantMap &eventData)
Handle filter changed.
Definition: FileSelector.cpp:385
ConstIterator(Node *ptr)
Construct with a node pointer.
Definition: HashMap.h:162
HashMap< Pair< WeakPtr< RigidBody >, WeakPtr< RigidBody > >, ManifoldPair > currentCollisions_
Collision pairs on this frame.
Definition: PhysicsWorld.h:338
unsigned replicatedNodeID_
Next free non-local node ID.
Definition: Scene.h:335
void BeginGeometry(unsigned index, PrimitiveType type)
Begin defining a geometry. Clears existing vertices in that index.
Definition: CustomGeometry.cpp:524
b2JointDef * GetJointDef() override
Return joint def.
Definition: ConstraintWheel2D.cpp:159
Iterator Erase(Iterator it)
Erase an element by iterator. Return iterator to the next element.
Definition: List.h:330
bool operator<(const UniquePtr< U > &rhs) const
Test for less than with another unique pointer.
Definition: Ptr.h:618
bool HasEventHandler(StringHash eventType) const override
Return whether has subscribed to an event.
Definition: ScriptInstance.cpp:406
void SetFinishColorVariance(const Color &finishColorVariance)
Set finish color variance.
Definition: ParticleEffect2D.cpp:379
float GetAngularOffset() const
Definition: ConstraintMotor2D.h:65
IntVector2 dragBeginCursor_
Original mouse cursor position at drag begin.
Definition: Slider.h:121
void SetFlipVertical(bool enable)
Set vertical flipping mode. Called internally by View to resolve OpenGL / Direct3D9 rendertarget samp...
Definition: Camera.cpp:246
@ LOAD_SCENE
Load scene content without preloading. Resources will be requested synchronously when encountered.
Definition: Scene.h:51
const Vector3 & GetTargetPosition() const
Definition: CrowdAgent.h:146
unsigned ReadVLE()
Read a variable-length encoded unsigned integer, which can use 29 bits maximum.
Definition: Deserializer.cpp:428
asIScriptContext * immediateContext_
Immediate execution script context.
Definition: Script.h:131
void AddTags(const String &tags, char separator=';')
Add tags with the specified separator (; by default).
Definition: UIElement.cpp:1473
void Bind()
Bind query object with variable set.
Definition: XMLElement.cpp:1070
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:474
Bone * GetBoneParent(const Bone *bone)
Return parent of the given bone. Return null for root bones.
Definition: Skeleton.cpp:178
Vector3 ProjectOntoLine(const Vector3 &from, const Vector3 &to, bool clamped=false) const
Project position vector onto line segment.
Definition: Vector3.h:372
const T & operator*() const
Dereference the node value.
Definition: List.h:165
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:188
const Vector< PODVector< Matrix3x4 > > & GetGeometrySkinMatrices() const
Return per-geometry skin matrices. If empty, uses global skinning.
Definition: AnimatedModel.h:176
void SetHotSpot(const Vector2 &hotspot)
Definition: StaticSprite2D.cpp:209
void Finalize()
Finalize all prepared statements, close all BLOB handles, and finish all sqlite3_backup objects.
Definition: ODBCConnection.cpp:68
HashMap< unsigned, Component * > localComponents_
Local components by ID.
Definition: Scene.h:311
Definition: BillboardSet.h:39
HashMap< unsigned, SharedPtr< Sprite2D > > gidToSpriteMapping_
Gid to tile sprite mapping.
Definition: TmxFile2D.h:222
ScrollBar * GetVerticalScrollBar() const
Definition: ScrollView.h:116
float GetRotationEnd() const
Return rotation end.
Definition: ParticleEffect2D.h:236
void ApplyAttributes() override
Apply attribute changes that can not be applied immediately.
Definition: ScrollView.cpp:171
void SetEffectAttr(const ResourceRef &value)
Set particles effect attribute.
Definition: ParticleEmitter.cpp:358
void SetBlendMode(BlendMode blendMode)
Set blend mode.
Definition: ParticleEffect2D.cpp:449
void OnResize(const IntVector2 &newSize, const IntVector2 &delta) override
React to resize.
Definition: View3D.cpp:75
static void RegisterObject(Context *context)
Register object factory.
Definition: Animatable.cpp:71
const HashMap< TextureUnit, SharedPtr< Texture > > & GetTextures() const
Return all textures.
Definition: Material.h:220
void SetModelAttr(const ResourceRef &value)
Set model attribute.
Definition: AnimatedModel.cpp:799
BufferedSoundStream()
Construct.
Definition: BufferedSoundStream.cpp:32
const HashMap< StringHash, ResourceGroup > & GetAllResources() const
Return all loaded resources.
Definition: ResourceCache.h:162
Node * InstantiateJSON(const JSONValue &source, const Vector3 &position, const Quaternion &rotation, CreateMode mode=REPLICATED)
Instantiate scene content from JSON data. Return root node if successful.
Definition: Scene.cpp:574
void ApplyAttributes() override
Apply attribute changes that can not be applied immediately recursively to child nodes and components...
Definition: Node.cpp:275
bool BeginLoad(Deserializer &source) override
Load resource from stream. May be called from a worker thread. Return true if successful.
Definition: LuaFile.cpp:59
Definition: Profiler.h:34
bool hasExtraDefines_
Whether the pass command contains extra shader defines.
Definition: Batch.h:265
HashMap< StringHash, Vector< AttributeInfo > > attributes_
Attribute descriptions per object type.
Definition: Context.h:230
TypeInfo(const char *typeName, const TypeInfo *baseTypeInfo)
Construct.
Definition: Object.cpp:36
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:207
bool Open(const String &fileName, FileMode mode=FILE_READ)
Open a filesystem file. Return true if successful.
Definition: File.cpp:126
ShaderParameterAnimationInfo(Material *material, const String &name, ValueAnimation *attributeAnimation, WrapMode wrapMode, float speed)
Construct.
Definition: Material.cpp:182
bool BeginLoad(Deserializer &source) override
Load resource from stream. May be called from a worker thread. Return true if successful.
Definition: ParticleEffect2D.cpp:114
Iterator Erase(const Iterator &it)
Erase an element by iterator. Return iterator to the next element.
Definition: Vector.h:955
void SetColorFrames(const Vector< ColorFrame > &colorFrames)
Set color animation of particles.
Definition: ParticleEffect.cpp:634
static void RegisterObject(Context *context)
Register object factory and attributes.
Definition: RaycastVehicle.cpp:185
float startParticleSize_
Start particle size.
Definition: ParticleEffect2D.h:296
bool EmitParticle(const Vector3 &worldPosition, float worldAngle, float worldScale)
Emit particle.
Definition: ParticleEmitter2D.cpp:363
Vector3 normal_
Hit worldspace normal.
Definition: PhysicsWorld.h:71
WeakPtr< Component > component_
Link to the actual component.
Definition: ReplicationState.h:150
IndexBuffer(Context *context, bool forceHeadless=false)
Construct. Optionally force headless (no GPU-side buffer) operation.
Definition: IndexBuffer.cpp:36
void SetMousePosition(const IntVector2 &position)
Definition: Input.cpp:1831
String Trimmed() const
Return string with whitespace trimmed from the beginning and the end.
Definition: Str.cpp:520
Intersection TestOctant(const BoundingBox &box, bool inside) override
Intersection test for an octant.
Definition: OctreeQuery.cpp:121
const HashMap< StringHash, MaterialShaderParameter > & GetShaderParameters() const
Return all shader parameters.
Definition: Material.h:240
NavigationQuality navQuality_
Agent's navigation quality. The higher the setting, the higher the CPU usage during crowd simulation.
Definition: CrowdAgent.h:259
static void RegisterObject(Context *context)
Registers this class to the context.
Definition: IKSolver.cpp:80
bool resizeContentWidth_
Resize content widget width to match panel. Internal flag, used by the ListView class.
Definition: ScrollView.h:200
bool HasTextureUnit(TextureUnit unit) const
Return whether uses a texture unit (only for pixel shaders). Not applicable on OpenGL,...
Definition: ShaderVariation.h:117
bool IsDirty() const
Return whether has unapplied data.
Definition: ConstantBuffer.h:62
void OnDeviceReset() override
Recreate the GPU resource and restore data if applicable.
Definition: OGLTexture2DArray.cpp:57
Vector< SharedPtr< AnimationState > > nodeAnimationStates_
Node hierarchy mode animation states.
Definition: AnimationController.h:209
SharedPtr< Sprite2D > sprite_
Sprite.
Definition: ParticleEmitter2D.h:155
void SetOtherPosition(const Vector3 &position)
Definition: Constraint.cpp:219
void UpdateBufferSize()
Resize RibbonTrail vertex and index buffers.
Definition: RibbonTrail.cpp:444
void UpdateSkinning()
Recalculate skinning.
Definition: AnimatedModel.cpp:1303
void ValidateSelection()
Validate text selection to be within the text.
Definition: Text.cpp:745
void SetFilters(const Vector< String > &filters, unsigned defaultIndex)
Set filters.
Definition: FileSelector.cpp:215
Definition: CrowdManager.h:45
unsigned GetUInt(unsigned defaultValue=0) const
Return unsigned integer value.
Definition: JSONValue.h:206
void ProcessNewNode(Node *node)
Process a node that the client has not yet received.
Definition: Connection.cpp:1239
void SetShaderParameter(const String &name, const Variant &value)
Definition: RenderPath.cpp:242
const Vector< TextureFrame > & GetTextureFrames() const
Return all texture animation frames.
Definition: ParticleEffect.h:392
float inactiveTime_
Inactive period.
Definition: ParticleEffect.h:457
bool HasComponent() const
Template version of checking whether has a specific component.
Definition: Node.h:788
void MarkFramesDirty()
Mark frames dirty.
Definition: Constraint.h:195
Vector3 GetActualVelocity() const
Definition: CrowdAgent.cpp:485
bool BeginLoad(Deserializer &source) override
Load resource from stream. May be called from a worker thread. Return true if successful.
Definition: SpriteSheet2D.cpp:54
WeakPtr(std::nullptr_t) noexcept
Construct a null weak pointer.
Definition: Ptr.h:274
void SendRemoteEvents()
Send queued remote events. Called by Network.
Definition: Connection.cpp:301
const Vector2 & GetAnchor() const
Definition: ConstraintWheel2D.h:67
static void RegisterObject(Context *context)
Register object factory.
Definition: ConstraintDistance2D.cpp:47
void SetVertexCount(unsigned count)
Definition: CollisionChain2D.cpp:68
bool disableCollision_
Disable collision between connected bodies flag.
Definition: Constraint.h:228
HashMap & operator+=(const Pair< T, U > &rhs)
Add-assign a pair.
Definition: HashMap.h:281
void Insert(const ConstIterator &start, const ConstIterator &end)
Insert a range by iterators.
Definition: HashMap.h:399
virtual void PostUpdate(float timeStep)
Called on scene post-update, variable timestep.
Definition: LogicComponent.cpp:55
void BeginDumpShaders(const String &fileName)
Begin dumping shader variation names to an XML file for precaching.
Definition: Graphics.cpp:361
MouseButtonFlags dragButtonCombo_
Drag button combo.
Definition: UIElement.h:856
void UpdateNumTransforms()
Ensure proper size of world transforms when nodes are added/removed. Also mark node IDs dirty.
Definition: StaticModelGroup.cpp:393
void EndFrame()
End frame. Increment total time and send frame end event.
Definition: Timer.cpp:130
void SetNeighbors(Terrain *north, Terrain *south, Terrain *west, Terrain *east)
Set all neighbor terrains at once.
Definition: Terrain.cpp:340
unsigned GetNumQueryFilterTypes() const
Definition: CrowdManager.h:140
void SetDefaultScriptFile(ScriptFile *file)
Set immediate mode script file.
Definition: Script.cpp:268
void SetVariantVector(const VariantVector &variantVector, Context *context=nullptr)
Set variant vector, context must provide for resource ref.
Definition: JSONValue.cpp:593
void ApplyAttributes() override
Apply attribute changes that can not be applied immediately. Called after scene load or a network upd...
Definition: ScriptInstance.cpp:194
void SetRadialAccelVariance(float radialAccelVariance)
Set radial acceleration variance.
Definition: ParticleEffect2D.cpp:354
PODVector< unsigned char > ReadBuffer()
Read a buffer with size encoded as VLE.
Definition: Deserializer.cpp:276
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:415
static String GetCallStack(asIScriptContext *context)
Get call stack.
Definition: Script.cpp:325
float GetInactiveTime() const
Definition: ParticleEffect.h:323
Texture * depthOnlyDummyTexture_
Dummy texture for D3D9 depth only rendering.
Definition: View.h:344
Geometry * GetOcclusionGeometry() const
Return geometry used for occlusion.
Definition: TerrainPatch.cpp:258
BlendMode blendMode_
Blend mode. Affects quad command only.
Definition: RenderPath.h:186
Material's shader parameter animation instance.
Definition: Material.h:76
T & operator*() const
Dereference the node value.
Definition: List.h:103
Iterator Find(const T &value)
Return iterator to value, or to the end if not found.
Definition: Vector.h:464
float SaturationHSV() const
Return saturation as defined for HSV.
Definition: Color.cpp:143
AbstractFile(unsigned int size)
Construct.
Definition: AbstractFile.h:39
void Expand(unsigned index, bool enable, bool recursive=false)
Expand item at index. Only has effect in hierarchy mode.
Definition: ListView.cpp:773
HashMap< unsigned, PODVector< unsigned char > > nodeLatestData_
Pending latest data for not yet received nodes.
Definition: Connection.h:330
bool relative_
Billboards relative flag.
Definition: BillboardSet.h:182
SpriteSheet2D(Context *context)
Construct.
Definition: SpriteSheet2D.cpp:42
void OnWorldBoundingBoxUpdate() override
Recalculate the world-space bounding box.
Definition: Renderer2D.cpp:276
Definition: CustomGeometry.h:32
void SetIKConstraintNode(ik_node_t *constraintNode)
Intended to be used only by IKSolver.
Definition: IKConstraint.cpp:108
FrameInfo frame_
View frame info for current frame.
Definition: Renderer2D.h:124
BoundingBox Transformed(const Matrix3 &transform) const
Return transformed by a 3x3 matrix.
Definition: BoundingBox.cpp:126
void SetReturnFailedResources(bool enable)
Definition: ResourceCache.h:130
void ApplyValue(const Variant &newValue) override
Apply new animation value to the target object. Called by Update().
Definition: Material.cpp:193
Graphics subsystem implementation. Holds API-specific objects.
Definition: OGLGraphicsImpl.h:99
void ProcessRayQuery(const RayOctreeQuery &query, PODVector< RayQueryResult > &results) override
Process octree raycast. May be called from a worker thread.
Definition: Light.cpp:167
const Color & GetColor() const
Return color or default on type mismatch. Vector4 is aliased to Color if necessary.
Definition: Variant.h:1195
Definition: Light.h:82
float dampingForce_
Particle velocity damping force.
Definition: ParticleEffect.h:453
void SortBackToFront()
Sort non-instanced draw calls back to front.
Definition: Batch.cpp:728
Vector< PODVector< Matrix3x4 > > geometrySkinMatrices_
Subgeometry skinning matrices, used if more bones than skinning shader can manage.
Definition: AnimatedModel.h:235
void Get(const Serializable *ptr, Variant &value) const override
Invoke getter function.
Definition: Serializable.h:166
unsigned char GetTimeStamp() const
Return the controls timestamp, sent from client to server along each control update.
Definition: Connection.h:191
void ClearRequiredPackageFiles()
Clear required package files.
Definition: Scene.cpp:686
RigidBody * body_
Rigid body that was hit.
Definition: PhysicsWorld.h:77
Component * CloneComponent(Component *component, unsigned id=0)
Clone a component from another node using its create mode. Return the clone if successful or null on ...
Definition: Node.cpp:942
PODVector(const T *data, unsigned size)
Construct with initial data.
Definition: Vector.h:710
void SetReflectionPlaneAttr(const Vector4 &value)
Set reflection plane attribute.
Definition: Camera.cpp:616
void ApplyAttributes() override
Apply attribute changes that can not be applied immediately.
Definition: DropDownList.cpp:81
virtual unsigned Read(void *dest, unsigned size)=0
Read bytes from the stream. Return number of bytes actually read.
bool IsThreaded() const
Return whether is using threads to speed up rendering.
Definition: OcclusionBuffer.h:150
void DebugDraw(UIElement *element)
Debug draw a UI element.
Definition: UI.cpp:546
void PushFloat(float value)
Push float to stack.
Definition: LuaFunction.cpp:116
float GetSpeed() const
Return speed.
Definition: ValueAnimationInfo.h:75
void CalculateJointRotations()
Skinned models require joint rotations to be calculated so skinning works correctly....
Definition: IKSolver.cpp:393
bool operator==(const Vector< T > &rhs) const
Test for equality with another vector.
Definition: Vector.h:160
DirtyBits dirtyAttributes_
Dirty attribute bits.
Definition: ReplicationState.h:152
void SetRestitution(float restitution)
Definition: RigidBody.cpp:401
unsigned short FloatToHalf(float value)
Convert float to half float. From https://gist.github.com/martinkallman/5049614.
Definition: MathDefs.h:331
bool operator!=(Enum rhs) const
Non-equality check against enum value.
Definition: FlagSet.h:202
void AddBodyToWorld()
Create the rigid body, or re-add to the physics world with changed flags. Calls UpdateMass().
Definition: RigidBody.cpp:952
void FinishResources(int maxMs)
Process resources that are ready to finish.
void SetInstancingData(void *lockedData, unsigned stride, unsigned &freeIndex)
Pre-set the instance data. Buffer must be big enough to hold all data.
Definition: Batch.cpp:645
void SetDepthBias(float constantBias, float slopeScaledBias)
Set depth bias.
Definition: OGLGraphics.cpp:1803
T GetCustom() const
Return custom variant value or default-constructed on type mismatch.
Definition: Variant.h:1310
Serializable(Context *context)
Construct.
Definition: Serializable.cpp:56
AnimationController(Context *context)
Construct.
Definition: AnimationController.cpp:56
@ USE_POSTUPDATE
Bitmask for using the scene post-update event.
Definition: LogicComponent.h:40
Resource * GetResource(StringHash type, const 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:562
Helper base class for user-defined game logic components that hooks up to update events and forwards ...
Definition: LogicComponent.h:49
LuaScriptInstance(Context *context)
Construct.
Definition: LuaScriptInstance.cpp:66
void RemoveCommand(unsigned index)
Remove a command by index.
Definition: RenderPath.cpp:484
Vector< ScratchBuffer > scratchBuffers_
Scratch buffers.
Definition: Graphics.h:822
virtual unsigned GetNumOccluderTriangles()
Return number of occlusion geometry triangles.
Definition: Drawable.h:144
static unsigned CStringLength(const char *str)
Return length of a C string.
Definition: Str.h:505
LockState lockState_
Buffer locking state.
Definition: IndexBuffer.h:110
unsigned GetNumNetworkAttributes() const
Return number of network replication attributes.
Definition: Serializable.cpp:994
const StringMap & GetInternalMap() const
Return map of hashes. Return value is unsafe to use if RegisterString is called from other threads.
Definition: StringHashRegister.h:55
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:216
void SetOwnerBodyAnchor(const Vector2 &anchor)
Definition: ConstraintRope2D.cpp:58
SharedPtr< BackgroundLoader > backgroundLoader_
Resource background loader.
Definition: ResourceCache.h:260
StringHash nameHash_
Package file name hash.
Definition: PackageFile.h:100
StringHash soundTypeHash_
SoundSource type hash.
Definition: SoundSource.h:148
T * GetDerivedComponent(bool recursive=false) const
Return first component derived from class.
Definition: Node.h:790
virtual void Update(float timeStep)
Update the animations. Is called from HandleScenePostUpdate().
Definition: AnimationController.cpp:88
ParticleEffect2D * GetEffect() const
Definition: ParticleEmitter2D.cpp:140
virtual bool LoadXML(const XMLElement &source)
Load from XML data. Return true if successful.
Definition: Serializable.cpp:344
Definition: OctreeQuery.h:263
void SetDampingRatio(float dampingRatio)
Definition: ConstraintMouse2D.cpp:102
void HandleNavigationTileAdded(StringHash eventType, VariantMap &eventData)
Handle navigation mesh tile added.
Definition: Obstacle.cpp:142
SharedPtr< Sprite2D > sprite_
Spine sprite.
Definition: AnimationSet2D.h:101
void OnDrawOrderChanged() override
Handle draw order changed.
Definition: ParticleEmitter2D.cpp:204
void RemoveAttributeAnimation(const String &name)
Remove attribute animation, attribute name can in following format: "attribute" or "#0/#1/attribute" ...
Definition: ObjectAnimation.cpp:204
HashMap(const HashMap< T, U > &map)
Construct from another hash map.
Definition: HashMap.h:226
BoundingBox(float min, float max) noexcept
Construct from minimum and maximum floats (all dimensions same).
Definition: BoundingBox.h:76
IntRect imageBorder_
Border dimensions on the image.
Definition: BorderImage.h:141
static unsigned CalculateCapacity(unsigned size, unsigned capacity)
Calculate new vector capacity.
Definition: Vector.h:569
void ThreadFunction() override
Process the connection in the worker thread until closed.
Definition: HttpRequest.cpp:78
PODVector< unsigned char > GetGeometryDataAttr() const
Return geometry data attribute.
Definition: CustomGeometry.cpp:775
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:159
void HandleEndFrame(StringHash eventType, VariantMap &eventData)
Handle end of frame. Process the threaded log messages.
Definition: Log.cpp:267
unsigned intervalFrames_
Frames in the current interval.
Definition: Profiler.h:228
SDL_Window * GetWindow() const
Return SDL window.
Definition: Graphics.h:345
AttributeHandle RegisterAttribute(StringHash objectType, const AttributeInfo &attr)
Register object attribute.
Definition: Context.cpp:196
void SetMaterialsAttr(const ResourceRefList &value)
Set materials attribute.
Definition: CustomGeometry.cpp:768
bool resizable_
Whether the window is resizable.
Definition: Graphics.h:88
WeakPtr< ShaderVariation > vertexShader_
Vertex shader.
Definition: OGLShaderProgram.h:91
~BackgroundLoader() override
Destruct. Forcibly clear the load queue.
bool CheckUpdate(float distance, float &accumulator)
Increment and check priority accumulator. Return true if should update. Called by Connection.
Definition: NetworkPriority.cpp:85
OcclusionBuffer * GetOcclusionBuffer(Camera *camera)
Allocate an occlusion buffer.
Definition: Renderer.cpp:1103
void Acquire()
Acquire the mutex. Block if already acquired.
Definition: Mutex.cpp:89
bool recreateConstraint_
Recreate constraint flag.
Definition: Constraint.h:230
void SetMaxDirection(const Vector3 &direction)
Definition: ParticleEffect.cpp:495
void OnNodeSet(Node *node) override
Handle node being assigned.
Definition: Constraint2D.cpp:148
unsigned resizeNestingLevel_
Resize nesting level to prevent multiple events and endless loop.
Definition: UIElement.h:838
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:80
unsigned GetPixelInt(int x, int y) const
Return a 2D pixel integer color. R component is in the 8 lowest bits.
Definition: Image.cpp:1510
Definition: Vector.h:46
SharedPtr< Material > CreateMaterial(Texture2D *texture, BlendMode blendMode)
Create material by texture and blend mode.
Definition: Renderer2D.cpp:283
Intersection TestOctant(const BoundingBox &box, bool inside) override
Intersection test for an octant.
Definition: OctreeQuery.cpp:54
void AddTrigger(const AnimationTriggerPoint &trigger)
Add a trigger point.
Definition: Animation.cpp:342
void WriteInitialDeltaUpdate(Serializer &dest, unsigned char timeStamp)
Write initial delta network update.
Definition: Serializable.cpp:737
Animated sprite component, it uses to play animation created by Spine (http://www....
Definition: AnimatedSprite2D.h:57
void OnElementResized(StringHash eventType, VariantMap &args)
Handle resizing of element. Setting size of element will automatically resize texture....
Definition: UIComponent.cpp:222
void SetAngularVelocity(float angularVelocity)
Set angular velocity.
Definition: RigidBody2D.cpp:314
bool RemoveScreenJoystick(SDL_JoystickID id)
Remove screen joystick by instance ID.
Definition: Input.cpp:1148
bool HasTextureUnit(TextureUnit unit) const
Return whether uses a texture unit.
Definition: OGLShaderProgram.h:62
void SetEffectRoundStroke(bool roundStroke)
Definition: Text3D.cpp:293
virtual void OnRemoveFromOctree()
Handle removal from octree.
Definition: Drawable.h:344
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:690
Intersection IsInside(const Sphere &sphere) const
Test if another sphere is inside, outside or intersects.
Definition: Sphere.h:167
void SetMinTimeToLive(float time)
Definition: ParticleEffect.cpp:540
const VariantMap & GetVariantMap() const
Return a variant map or empty on type mismatch.
Definition: Variant.h:1245
static void RegisterObject(Context *context)
Register object factory.
Definition: CrowdAgent.cpp:105
bool CheckDrawableFit(const BoundingBox &box) const
Check if a drawable object fits.
Definition: Octree.cpp:168
int GetVelocityIterations() const
Definition: PhysicsWorld2D.h:221
Static model component with fixed position in relation to the camera.
Definition: Skybox.h:31
void SetParent(UIElement *parent, unsigned index=M_MAX_UNSIGNED)
Set parent element. Same as parent->InsertChild(index, this).
Definition: UIElement.cpp:1433
Color GetColor(const String &name) const
Return a color attribute, or default if missing.
Definition: XMLElement.cpp:787
bool IsZoneDirty() const
Return whether current zone is inconclusive or dirty due to the drawable moving.
Definition: Drawable.h:283
bool IsInf() const
Return whether any component is Inf.
Definition: Vector3.h:422
Internal implementation structure for less performance-critical Node variables.
Definition: Node.h:58
OcclusionBuffer * occlusionBuffer_
Occlusion buffer for the main camera.
Definition: View.h:330
PODVector< Vector2 > vertices_
Vertices.
Definition: CollisionChain2D.h:83
Vector3 position_
Hit worldspace position.
Definition: PhysicsWorld.h:69
int positionIterations_
Position iterations.
Definition: PhysicsWorld2D.h:254
float GetLinearRestThreshold() const
Definition: RigidBody.cpp:633
static void RegisterObject(Context *context)
Register object factory.
Definition: TmxFile2D.cpp:388
ResourceRef GetAnimationSetAttr() const
Return animation set attribute.
Definition: AnimatedSprite2D.cpp:207
bool SaveXML(Serializer &dest, const String &indentation="\t") const
Save to an XML file. Return true if successful.
Definition: Scene.cpp:263
AnimationState * GetAnimationState(Animation *animation) const
Return animation state by animation pointer.
Definition: AnimatedModel.cpp:657
float height_
Agent's height, if 0 the navigation mesh's setting will be used.
Definition: CrowdAgent.h:253
Component * CreateComponent(StringHash type, CreateMode mode=REPLICATED, unsigned id=0)
Create a component to this node (with specified ID if provided).
Definition: Node.cpp:914
virtual void Update(const FrameInfo &frame)
Update before octree reinsertion. Is called from a worker thread.
Definition: Drawable.h:131
void SetWorldPosition(const Vector3 &position)
Definition: Node.cpp:513
void SetScaleSilent(const Vector3 &scale)
Set scale in parent space silently without marking the node & child nodes dirty. Used by animation co...
Definition: Node.h:681
void SetSpriterAnimation()
Handle set spriter animation.
Definition: AnimatedSprite2D.cpp:389
int languageIndex_
Index of current language.
Definition: Localization.h:76
float GetMinEmissionRate() const
Definition: ParticleEffect.h:327
void SetCameraShaderParameters(Camera *camera)
Set camera-specific shader parameters. Called by Batch and internally by View.
Definition: View.cpp:704
static void RegisterObject(Context *context)
Register object factory.
Definition: PListFile.cpp:306
void Insert(const HashMap< T, U > &map)
Insert a map.
Definition: HashMap.h:384
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:348
bool SaveLayout(Serializer &dest, UIElement *element)
Save a UI layout to an XML file. Return true if successful.
Definition: UI.cpp:625
void SetFillMode(FillMode mode)
Set polygon fill mode.
Definition: OGLGraphics.cpp:1843
void HandleModelReloadFinished(StringHash eventType, VariantMap &eventData)
Update trimesh or convex shape after a model has reloaded itself.
Definition: CollisionShape.cpp:1209
HashSet & operator=(const HashSet< T > &rhs)
Assign a hash set.
Definition: HashSet.h:219
unsigned indexCount_
Number of indices.
Definition: CollisionShape.h:121
TerrainPatch * GetSouthPatch() const
Return south neighbor patch.
Definition: TerrainPatch.h:92
bool Save(Serializer &dest) const override
Save resource. Return true if successful.
Definition: ParticleEffect2D.cpp:227
void LimitVertexLights(bool removeConvertedLights)
Sort and limit per-vertex lights to maximum allowed.
Definition: Drawable.cpp:338
PODVector< Camera * > viewCameras_
List of cameras from which is seen on the current frame.
Definition: Drawable.h:409
JSONValue(const String &value)
Construct with a string.
Definition: JSONValue.h:113
void RemoveEventHandler(StringHash eventType) override
Remove a scripted event handler.
Definition: ScriptInstance.cpp:381
AsyncLoadState GetAsyncLoadState() const
Return the asynchronous loading state.
Definition: Resource.h:105
String & AppendUTF8(unsigned unicodeChar)
Append Unicode character at the end as UTF8.
Definition: Str.cpp:855
float GetFrequencyHz() const
Definition: ConstraintMouse2D.h:66
unsigned GetNumPersistentComponents() const
Calculate number of non-temporary components.
Definition: Node.cpp:1881
bool SetMode(int bufferLengthMSec, int mixRate, bool stereo, bool interpolation=true)
Initialize sound output with specified buffer length and output mode.
Definition: Audio.cpp:75
bool SetBlendMode(const String &name, AnimationBlendMode mode)
Set animation blending mode. Return true on success.
Definition: AnimationController.cpp:405
void SetWrapMode(WrapMode wrapMode)
Set wrap mode.
Definition: ValueAnimationInfo.h:57
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:1139
void SetHighLimit(const Vector2 &limit)
Definition: Constraint.cpp:282
Variant GetAttribute(unsigned index) const
Definition: Serializable.cpp:902
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:707
ProfilerBlock * current_
Current profiling block.
Definition: Profiler.h:224
float offsetX_
X offset for viewport transform.
Definition: OcclusionBuffer.h:219
bool instancingSupport_
Instancing support flag.
Definition: Graphics.h:808
void GainFocus()
Prepare input state for application gaining input focus.
Definition: Input.cpp:1591
unsigned systemFBO_
iOS/tvOS system framebuffer handle.
Definition: OGLGraphicsImpl.h:114
TrailPoint endTail_
End of trail point for smoother tail disappearance.
Definition: RibbonTrail.h:282
SharedPtr< XMLFile > loadParameters_
Parameter file acquired during BeginLoad.
Definition: Texture2D.h:93
const String & GetCommandInterpreter() const
Definition: Console.h:114
bool BeginLoad(Deserializer &source) override
Load resource from stream. May be called from a worker thread. Return true if successful.
Definition: Technique.cpp:258
unsigned offset_
Offset of element from vertex start. Filled by VertexBuffer once the vertex declaration is built.
Definition: GraphicsDefs.h:220
Mutex & GetModuleMutex()
Return the script module create/delete mutex.
Definition: Script.h:105
float GetWheelSkidInfoCumulative(int wheel) const
Get cumulative skid info.
Definition: RaycastVehicle.cpp:373
Color startColor_
Color for start of trails.
Definition: RibbonTrail.h:253
void ClearScriptAttributes()
Clear attributes to C++ side attributes only.
Definition: ScriptInstance.cpp:620
URHO_CPP14(constexpr) RandomAccessIterator< T > &operator--()
Predecrement the pointer.
Definition: Iter.h:67
bool removeOnCompletion_
Sets whether this should automatically be removed when it finishes playing.
Definition: AnimationController.h:81
void MixStereoToStereoIP(Sound *sound, int *dest, unsigned samples, int mixRate)
Mix stereo sample to stereo buffer interpolated.
Definition: SoundSource.cpp:1153
void SetBasePriority(float priority)
Definition: NetworkPriority.cpp:61
void OnDeviceReset() override
Recreate the buffer and restore data if applicable. May be a no-op depending on the API.
Definition: OGLIndexBuffer.cpp:44
void SetRotation(const Quaternion &rotation)
Definition: RigidBody.cpp:249
void * ReserveScratchBuffer(unsigned size)
Reserve a CPU-side scratch buffer.
Definition: Graphics.cpp:399
bool WriteFloat(float value)
Write a float.
Definition: Serializer.cpp:81
IntVector2 lastNumVertices_
Terrain size in vertices at the time of last update.
Definition: Terrain.h:324
DebugHud * CreateDebugHud()
Create the debug hud.
Definition: Engine.cpp:542
unsigned maxTriangles_
Maximum number of triangles.
Definition: OcclusionBuffer.h:195
void StoreObject(const XMLElement &objectElem, const SharedPtr< TileMapObject2D > &object, const TileMapInfo2D &info, bool isTile=false)
Store object.
Definition: TmxFile2D.cpp:249
void SetFrequencyHz(float frequencyHz)
Definition: ConstraintMouse2D.cpp:87
const Variant & GetMetadata(const StringHash &key) const
Get attribute metadata.
Definition: Attribute.h:89
RayQueryLevel level_
Raycast detail level.
Definition: OctreeQuery.h:259
String error_
Error string. Empty if no error.
Definition: HttpRequest.h:95
bool SetData(const void *data)
Set all data in the buffer.
Definition: OGLIndexBuffer.cpp:78
void SetViewport(unsigned index, Viewport *viewport)
Definition: Renderer.cpp:285
StringVector GetStringVector() const
Return a string vector attribute, or empty if missing.
Definition: XMLElement.cpp:917
unsigned numTriangles_
Number of rendered triangles.
Definition: OcclusionBuffer.h:193
void SetTrigger(unsigned index, const AnimationTriggerPoint &trigger)
Definition: Animation.cpp:331
bool IsSolverTreeValid() const
Returns false if calling Solve() would cause the IK library to abort. Urho3D's error handling philoso...
Definition: IKSolver.cpp:501
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:138
Vector2 ReadVector2()
Read a Vector2.
Definition: Deserializer.cpp:166
void SetMaxVelocity(float velocity)
Definition: ParticleEffect.cpp:555
bool ToggleFullscreen()
Toggle between full screen and windowed mode. Return true if successful.
Definition: Graphics.cpp:169
bool SaveJSON(JSONValue &dest) const override
Save as JSON data. Return true if successful.
Definition: Animatable.cpp:213
Quaternion worldRotation_
New world rotation.
Definition: PhysicsWorld.h:90
StaticModel(Context *context)
Construct.
Definition: StaticModel.cpp:47
bool focusedThisFrame_
Gained focus on this frame flag.
Definition: Input.h:472
int dragConfirmedCount_
Number of elements in dragElements_ with dragPending = false.
Definition: UI.h:472
VariantMap nodeCollisionData_
Preallocated event data map for node collision events.
Definition: PhysicsWorld.h:352
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:43
Iterator Find(const T &key)
Return iterator to the key, or end iterator if not found.
Definition: HashSet.h:462
SpriteSheet2D * GetSpriteSheet() const
Return sprite sheet.
Definition: Sprite2D.h:90
void ClearTransformSources()
Clear remembered transform shader parameter sources.
Definition: OGLGraphics.cpp:1483
unsigned ToHash() const
Return hash value for HashSet & HashMap.
Definition: Ptr.h:504
CollisionEventMode GetCollisionEventMode() const
Definition: RigidBody.h:280
float GetMaxMotorTorque() const
Definition: ConstraintWheel2D.h:79
void Remove()
Remove from the parent element. If no other shared pointer references exist, causes immediate deletio...
Definition: UIElement.cpp:1421
void MarkDecalsDirty()
Mark decals and the bounding box dirty.
Definition: DecalSet.cpp:992
HashMap(const std::initializer_list< Pair< T, U >> &list)
Aggregate initialization constructor.
Definition: HashMap.h:241
String spriteSheetFilePath_
Sprite sheet file path.
Definition: AnimationSet2D.h:117
const Vector2 & GetOwnerBodyGroundAnchor() const
Definition: ConstraintPulley2D.h:61
const std::type_info & typeInfo_
Type info.
Definition: Variant.h:211
unsigned GetNumRows() const
Return number of rows in the resultset or 0 if the number of rows is not available.
Definition: ODBCResult.h:48
void RequestPackage(const String &name, unsigned fileSize, unsigned checksum)
Initiate a package download.
Definition: Connection.cpp:1545
bool isBase_
Base batch flag. This tells to draw the object fully without light optimizations.
Definition: Batch.h:86
static void RegisterObject(Context *context)
Register object factory.
Definition: ValueAnimation.cpp:64
void UpdateBatches(const FrameInfo &frame) override
Calculate distance and prepare batches for rendering. May be called from worker thread(s),...
Definition: StaticModel.cpp:132
static JSONValueType GetValueTypeFromName(const String &typeName)
Return a value type from name; null if unrecognized.
Definition: JSONValue.cpp:633
unsigned dummyColorFormat_
Shadow map dummy color texture format.
Definition: Graphics.h:824
Node * Down() const
Return next node in the bucket.
Definition: HashMap.h:103
int GetTolerance() const
Return the pool tolerance.
Definition: WorkQueue.h:113
Matrix3x4 customWorldTransform_
Custom world transform for facing the camera automatically.
Definition: Text3D.h:249
float ProjectOntoAxis(const Vector2 &axis) const
Project vector onto axis.
Definition: Vector2.h:315
bool EndCall(int numReturns=0)
End call and actually execute the function. The return values, if any, are still left in the stack wh...
Definition: LuaFunction.cpp:85
ResourceRefList materialsAttr_
Material list attribute.
Definition: CustomGeometry.h:185
Sprite2D * GetSprite() const
Definition: ParticleEmitter2D.cpp:145
bool GetScreenKeyboardSupport() const
Definition: Input.cpp:1486
void SetWorldPosition(const Vector3 &position)
Definition: Constraint.cpp:261
void RemoveAllItems()
Remove all items.
Definition: DropDownList.cpp:178
AttributeInfo * GetAttribute(StringHash objectType, const char *name)
Return a specific attribute description for an object, or null if not found.
Definition: Context.cpp:389
void MarkPositionsDirty()
Mark billboard vertex buffer to need an update.
Definition: BillboardSet.cpp:767
bool RequestNeededPackages(unsigned numPackages, MemoryBuffer &msg)
Check a package list received from server and initiate package downloads as necessary....
Definition: Connection.cpp:1474
void MarkEndPointDirty()
Mark end point dirty.
Definition: OffMeshConnection.h:86
void PushUserType(const T &userType, const char *typeName)
Push user type to stack.
Definition: LuaFunction.h:86
String ReadString()
Read a null-terminated string.
Definition: Deserializer.cpp:247
float GetWheelDampingRelaxation(int wheel) const
Get wheel damping relaxation.
Definition: RaycastVehicle.cpp:487
const TypeInfo * baseTypeInfo_
Base class type info.
Definition: Object.h:67
bool GetEnableLimit() const
Definition: ConstraintPrismatic2D.h:78
void Set(unsigned buttons, bool down=true)
Set or release buttons.
Definition: Controls.h:43
Intersection IsInsideFast(const BoundingBox &box) const
Test if another bounding box is (partially) inside or outside.
Definition: BoundingBox.h:308
b2Fixture * fixture_
Box2D fixture.
Definition: CollisionShape2D.h:131
float basePriority_
Base priority.
Definition: NetworkPriority.h:77
unsigned short ReadUShort()
Read a 16-bit unsigned integer.
Definition: Deserializer.cpp:105
Animatable * FindAttributeAnimationTarget(const String &name, String &outName) override
Find target of an attribute animation from object hierarchy by name.
Definition: Node.cpp:1913
const T & GetValue() const
Get const value.
Definition: Variant.h:240
bool resolveDirty_
Multisampling resolve needed -flag.
Definition: Texture.h:275
void SetUpdateInvisible(bool enable)
Definition: ParticleEffect.cpp:450
void SetSpeed(float speed)
Set speed.
Definition: ValueAnimationInfo.h:60
virtual void OnPositionSet(const IntVector2 &newPosition)
React to position change.
Definition: UIElement.h:196
void Define(const Vector3 ¢er, float radius)
Define from center and radius.
Definition: Sphere.h:96
void Roll(float angle, TransformSpace space=TS_LOCAL)
Rotate around the Z axis.
Definition: Node.cpp:665
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:1162
bool GetSearchPackagesFirst() const
Definition: ResourceCache.h:208
Polyhedron(const BoundingBox &box)
Construct from a bounding box.
Definition: Polyhedron.h:58
bool desktopSupport_
Cached desktop GPU support flag.
Definition: Technique.h:312
void SetVertexShaderDefines(const String &defines)
Definition: Technique.cpp:147
String ToString() const
Return an address:port string.
Definition: Connection.cpp:1121
void SetNavigationMesh(NavigationMesh *navMesh)
Definition: CrowdManager.cpp:256
int getDebugMode() const override
Return debug draw flags.
Definition: PhysicsWorld.h:159
void OnNodeSet(Node *node) override
Handle node being assigned.
Definition: CollisionShape.cpp:906
unsigned navigationMeshId_
The NavigationMesh component Id for pending crowd creation.
Definition: CrowdManager.h:197
Vector2 patchWorldSize_
Size of a patch on the XZ-plane.
Definition: Terrain.h:320
float shadowSoftness_
Shadow softness, only works when SHADOWQUALITY_BLUR_VSM is used.
Definition: Renderer.h:619
XMLElement GetNext(const String &name=String::EMPTY) const
Return next sibling element.
Definition: XMLElement.cpp:622
float radialAcceleration_
Radial acceleration.
Definition: ParticleEmitter2D.h:60
WeakPtr< Scene > scene_
Associated scene for shader parameter animation updates.
Definition: Material.h:356
bool SetAnimation(int index, LoopMode loopMode=Default)
Set current animation.
Definition: SpriterInstance2D.cpp:84
void ProcessRayQuery(const RayOctreeQuery &query, PODVector< RayQueryResult > &results) override
Process octree raycast. May be called from a worker thread.
Definition: StaticModelGroup.cpp:106
bool IsInside(const Ray &ray) const
Return whether or not the ray is inside geometry.
Definition: Geometry.cpp:329
bool IsObjectAlive() const
Returns whether the ScriptObject is still alive. Will return true if there is no reference and object...
Definition: ScriptFile.cpp:1044
bool SetMatrix3x4(const String &name, const Matrix3x4 &value)
Set a Matrix3x4 attribute.
Definition: XMLElement.cpp:553
unsigned GetShadersLoadedFrameNumber() const
Return last shaders loaded frame number.
Definition: Technique.h:119
Node * GetWheelNode(int wheel) const
Get node of the wheel.
Definition: RaycastVehicle.cpp:601
bool SetSize(int width, int height, bool threaded)
Set occlusion buffer size and whether to reserve multiple buffers for threading optimization.
Definition: OcclusionBuffer.cpp:61
void OnMarkedDirty(Node *node) override
Handle node transform being dirtied.
Definition: AnimatedModel.cpp:945
void SetCylinder(float diameter, float height, const Vector3 &position=Vector3::ZERO, const Quaternion &rotation=Quaternion::IDENTITY)
Set as a cylinder.
Definition: CollisionShape.cpp:620
static const IntVector3 UP_FORWARD_RIGHT
(1, 2, 0) coordinate system.
Definition: RaycastVehicle.h:183
Vector3 baseVelocity_
Base velocity applied to the trail.
Definition: RibbonTrail.h:220
Color(float r, float g, float b, float a) noexcept
Construct from RGBA values.
Definition: Color.h:84
void SetVertex2(const Vector2 &vertex)
Definition: CollisionEdge2D.cpp:66
Geometry * GetGeometry() const
Return visible geometry.
Definition: TerrainPatch.cpp:248
void BlurShadowMap(View *view, Texture2D *shadowMap, float blurScale)
Blur the shadow map.
Definition: Renderer.cpp:1962
float projOffsetScaleY_
Combined Y projection and viewport transform.
Definition: OcclusionBuffer.h:225
bool BeginLoad(Deserializer &source) override
Load resource from stream. May be called from a worker thread. Return true if successful.
Definition: ParticleEffect.cpp:101
void ResetDepthStencil()
Reset depth-stencil surface.
Definition: OGLGraphics.cpp:1626
bool SaveXML(XMLElement &dest) const override
Save as XML data. Return true if successful.
Definition: UnknownComponent.cpp:192
void Patch(XMLFile *patchFile)
Patch the XMLFile with another XMLFile. Based on RFC 5261.
Definition: XMLFile.cpp:191
void SetTextureFrame(unsigned index, const TextureFrame &textureFrame)
Set number of texture animation frames.
Definition: ParticleEffect.cpp:714
HashMap< unsigned, WeakPtr< Component > > components_
Components.
Definition: SceneResolver.h:56
UIElement * GetItem(unsigned index) const
Definition: DropDownList.cpp:203
float AbsDotProduct(const Vector3 &rhs) const
Calculate absolute dot product.
Definition: Vector3.h:356
void SortColorFrames()
Sort the list of color frames based on time.
Definition: ParticleEffect.cpp:658
IntRect resizeBorder_
Resize area width at edges.
Definition: Window.h:169
void SetDisabledOffset(const IntVector2 &offset)
Definition: BorderImage.cpp:123
ShaderVariation * GetPixelShader() const
Return current pixel shader.
Definition: Graphics.h:518
void AddNode(const pugi::xml_node &patch, const pugi::xpath_node &original) const
Add a node in the Patch.
Definition: XMLFile.cpp:277
const AttributeInfo & attributeInfo_
Attribute information.
Definition: Animatable.h:59
SLNet::RakPeerInterface * rakPeer_
SLikeNet peer instance for server connection.
Definition: Network.h:162
Component * GetParentComponent(StringHash type, bool fullTraversal=false) const
Return component in parent node. If there are several, returns the first. May optional traverse up to...
Definition: Node.cpp:1422
bool LoadXML(const XMLElement &source)
Load from XML data. Return true if successful.
Definition: ValueAnimation.cpp:89
HashSet< int > scancodeDown_
Key down state by scancode.
Definition: Input.h:418
const ResourceRefList & GetMaterialsAttr() const
Return materials attribute.
Definition: StaticModel.cpp:391
String compilerOutput_
Shader compile error string.
Definition: ShaderVariation.h:176
void SetTargetVelocity(const Vector3 &velocity)
Definition: CrowdAgent.cpp:345
Vector3 GetVector3(const String &name) const
Return a Vector3 attribute, or zero vector if missing.
Definition: XMLElement.cpp:955
ConstraintRope2D(Context *context)
Construct.
Definition: ConstraintRope2D.cpp:37
void RemoveShaderParameter(const String &name)
Remove shader parameter.
Definition: Material.cpp:1124
ResourceRef GetFontAttr() const
Return font attribute.
Definition: Text3D.cpp:566
SDL_GameController * controller_
SDL game controller.
Definition: Input.h:124
AutoRemoveMode autoRemove_
Automatic removal mode.
Definition: ParticleEmitter.h:164
bool autoVisibleOnError_
Auto visible on error flag.
Definition: Console.h:164
float priorityAcc_
Interest management priority accumulator.
Definition: ReplicationState.h:169
bool Defined() const
Return true if this rect is defined via a previous call to Define() or Merge().
Definition: Rect.h:195
void HandleUpdate(StringHash eventType, VariantMap &eventData)
Handle application update event.
Definition: ScriptFile.cpp:988
unsigned GetNumViewports() const
Definition: RenderSurface.h:90
void SetShadowCullMode(CullMode mode)
Definition: Material.cpp:1079
bool Erase(T *element, T *previous)
Erase an element when the previous element is known (optimization). Return true if successful.
Definition: LinkedList.h:147
PODVector< UIElement * > GetItems() const
Return all items.
Definition: DropDownList.cpp:208
unsigned maxLodLevels_
Maximum number of LOD levels.
Definition: Terrain.h:334
SharedArrayPtr< float > GetHeightData() const
Return raw height data.
Definition: Terrain.h:193
BatchQueue litBatches_
Lit geometry draw calls, non-base (additive).
Definition: Batch.h:303
void SetControlledIdAttr(unsigned value)
Set Controlled Node ID attribute.
Definition: SplinePath.cpp:277
HashSet< StringHash > blacklistedRemoteEvents_
Remote event fixed blacklist.
Definition: Network.h:172
void HandleTouchBegin(StringHash eventType, VariantMap &eventData)
Handle touch begin event.
Definition: UI.cpp:1883
Iterator & operator--()
Predecrement the pointer.
Definition: HashMap.h:134
bool anisotropySupport_
Anisotropic filtering support flag.
Definition: Graphics.h:796
void SetOctant(Octant *octant)
Move into another octree octant.
Definition: Drawable.h:352
void SetMaxSideSlipSpeed(float speed)
Definition: RaycastVehicle.cpp:358
bool RemoveAttribute(const String &name=String::EMPTY)
Remove an attribute by name. Return true if successful.
Definition: XMLElement.cpp:206
Vector< PODVector< Drawable * > > tempDrawables_
Per-thread octree query results.
Definition: View.h:388
ConstraintRevolute2D(Context *context)
Construct.
Definition: ConstraintRevolute2D.cpp:37
Vector(Vector< T > &&vector)
Move-construct from another vector.
Definition: Vector.h:89
void SetMaxParticles(int maxParticles)
Set max particles.
Definition: ParticleEffect2D.cpp:384
unsigned dragBeginCursor_
Drag begin cursor position.
Definition: LineEdit.h:160
bool SaveXML(XMLElement &dest) const override
Save as XML data. Return true if successful.
Definition: Animatable.cpp:179
void SetPosition(const Vector3 &position)
Definition: Constraint.cpp:177
void SetMaxLength(float maxLength)
Definition: ConstraintRope2D.cpp:80
bool pvrtcTextureSupport_
PVRTC formats support flag.
Definition: Graphics.h:804
static void RegisterObject(Context *context)
Register object factory.
Definition: Slider.cpp:62
void SetFixedWidthResizing(bool enable)
Definition: Window.cpp:262
float AbsDotProduct(const Vector4 &rhs) const
Calculate absolute dot product.
Definition: Vector4.h:174
PODVector(unsigned size, const T &value)
Construct with initial size and default value.
Definition: Vector.h:702
unsigned GetIntFrequency() const
Return default frequency as an integer.
Definition: SoundStream.h:57
bool SetVariantVector(const VariantVector &value)
Set a variant vector attribute. Creates child elements as necessary.
Definition: XMLElement.cpp:473
float lightLength_
Length of the light source. If above 0 and radius is above 0 it will create a tube light....
Definition: Light.h:409
const TypeInfo * GetBaseTypeInfo() const
Return base type info.
Definition: Object.h:59
bool LoadAsyncXML(File *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:382
bool IsCompleted(unsigned priority) const
Return whether all work with at least the specified priority is finished.
Definition: WorkQueue.cpp:296
Definition: OctreeQuery.h:74
Iterator Find(const T &value)
Return iterator to value, or to the end if not found.
Definition: Vector.h:1092
void SetWidth(float width)
Scale UI to the specified width in pixels.
Definition: UI.cpp:745
bool SaveDefaultAttributes() const override
Return whether should save default-valued attributes into XML. Always save node transforms for readab...
Definition: Node.h:105
void SetNavigationQuality(NavigationQuality val)
Definition: CrowdAgent.cpp:453
IntVector2(const int *data) noexcept
Construct from an int array.
Definition: Vector2.h:50
ConstIterator Begin() const
Return const iterator to the beginning.
Definition: Vector.h:494
void Resolve()
Resolve component and node ID attributes and reset.
Definition: SceneResolver.cpp:57
DbResult Execute(const String &sql, bool useCursorEvent=false)
Execute an SQL statements immediately. Send E_DBCURSOR event for each row in the resultset when useCu...
Definition: ODBCConnection.cpp:73
Node * CreateChild(const String &name=String::EMPTY, CreateMode mode=REPLICATED, unsigned id=0, bool temporary=false)
Create a child scene node (with specified ID if provided).
Definition: Node.cpp:792
String Substring(unsigned pos) const
Return a substring from position to end.
Definition: Str.cpp:490
~FileSelector() override
Destruct.
Definition: FileSelector.cpp:133
void AddInstanceNode(Node *node)
Add an instance scene node. It does not need any drawable components of its own.
Definition: StaticModelGroup.cpp:273
EmitterType emitterType_
Emitter shape.
Definition: ParticleEffect.h:443
void SetTags(const StringVector &tags)
Set tags. Old tags are overwritten.
Definition: Node.cpp:345
SharedPtr< VertexBuffer > vertexBuffer_
Vertex buffer.
Definition: Renderer2D.h:53
Vector2 normal_
Hit worldspace normal.
Definition: PhysicsWorld2D.h:49
void SetRatio(float ratio)
Definition: ConstraintPulley2D.cpp:108
const HashMap< String, SharedPtr< Sprite2D > > & GetSpriteMapping() const
Return sprite mapping.
Definition: SpriteSheet2D.h:68
NavigationPushiness navPushiness_
Agent's navigation pushiness. The higher the setting, the stronger the agent pushes its colliding nei...
Definition: CrowdAgent.h:261
bool WriteIntRect(const IntRect &value)
Write an IntRect.
Definition: Serializer.cpp:91
const Vector< SourceBatch > & GetBatches() const
Return draw call source data.
Definition: Drawable.h:249
bool nodesDirty_
Whether node IDs have been set and nodes should be searched for during ApplyAttributes.
Definition: StaticModelGroup.h:96
void HandleScenePostUpdate(StringHash eventType, VariantMap &eventData)
Handle scene post-update event.
Definition: AnimationController.cpp:911
unsigned long long ReadUInt64()
Read a 64-bit unsigned integer.
Definition: Deserializer.cpp:91
bool IsProjectionValid() const
Return if projection parameters are valid for rendering and raycasting.
Definition: Camera.cpp:580
void IncScriptNestingLevel()
Increase script nesting level.
Definition: Script.h:113
void SetMobileNormalOffsetMul(float mul)
Definition: Renderer.cpp:507
SharedPtr< File > GetFile(const String &name, bool sendEventOnFailure=true)
Open and return a file from the resource load paths or from inside a package file....
Definition: ResourceCache.cpp:488
bool operator!=(const List< T > &rhs) const
Test for inequality with another list.
Definition: List.h:260
ResourceRef GetModelAttr() const
Return model attribute.
Definition: CollisionShape.cpp:884
bool HasAnimation(const String &animationName) const
Check has animation.
Definition: AnimationSet2D.cpp:182
void OnPositionSet(const IntVector2 &newPosition) override
React to position change.
Definition: Sprite.cpp:130
void SetMaskBits(int maskBits)
Definition: CollisionShape2D.cpp:107
UniquePtr< TriangleMeshInterface > meshInterface_
Bullet triangle mesh interface.
Definition: CollisionShape.h:84
void OnKey(Key key, MouseButtonFlags buttons, QualifierFlags qualifiers) override
React to a key press.
Definition: ScrollView.cpp:197
bool isDesktop_
Require desktop level hardware flag.
Definition: Technique.h:190
void OnNodeSet(Node *node) override
Handle scene node being assigned at creation.
Definition: LogicComponent.cpp:76
HashSet< String > allowedPaths_
Allowed directories.
Definition: FileSystem.h:124
void SetAngularVelocity(const Vector3 &velocity)
Definition: RigidBody.cpp:336
bool IsLooped(const String &name) const
Return animation looping.
Definition: AnimationController.cpp:513
String vsExtraDefines_
Vertex shader extra defines.
Definition: Batch.h:267
void SetCursorPosition(unsigned position)
Definition: LineEdit.cpp:491
void SetViewOverrideFlags(ViewOverrideFlags flags)
Definition: Camera.cpp:183
float GetAngularRestThreshold() const
Definition: RigidBody.cpp:653
bool debugDepthTest_
Debug draw depth test mode.
Definition: PhysicsWorld.h:374
void SetMinMaxZ(float minZ, float maxZ)
Set view-space depth bounds.
Definition: Drawable.h:257
Iterator Insert(const Iterator &dest, const T *start, const T *end)
Insert elements.
Definition: Vector.h:331
void UpdateAnchoring()
Update anchored size & position. Only called when anchoring is enabled.
Definition: UIElement.cpp:2040
unsigned CreateFramebuffer()
Create a framebuffer using either extension or core functionality. Used only on OpenGL.
Definition: OGLGraphics.cpp:3255
void DrawDebugGeometry(DebugRenderer *debug, bool depthTest) override
Visualize the component as debug geometry.
Definition: OffMeshConnection.cpp:76
const ResourceRefList & GetMaterialsAttr() const
Return materials attribute.
Definition: CustomGeometry.cpp:806
const Matrix3x4 & GetTransform() const
Update and return rendering transform, also used to transform child sprites.
Definition: Sprite.cpp:218
bool HasMasterGain(const String &type) const
Return whether the specified master gain has been defined.
Definition: Audio.h:112
ResourceRef GetTextureAttr() const
Return texture attribute.
Definition: BorderImage.cpp:226
bool WriteUByte(unsigned char value)
Write an 8-bit unsigned integer.
Definition: Serializer.cpp:71
void RemoveAttributeAnimation(const String &name)
Remove attribute animation. Same as calling SetAttributeAnimation with a null pointer.
Definition: Animatable.cpp:418
float GetSpriteTextureEdgeOffset() const
Definition: TmxFile2D.h:207
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:351
Vector< T > & operator=(const Vector< T > &rhs)
Assign from another vector.
Definition: Vector.h:111
bool GetDrawRectangle(Rect &rect, bool flipX=false, bool flipY=false) const
Return draw rectangle.
Definition: Sprite2D.cpp:143
const Color & GetDerivedColor() const
Return derived color. Only valid when no gradient.
Definition: UIElement.cpp:1683
void CloneGeometries()
Clone geometries for vertex morphing.
Definition: AnimatedModel.cpp:1105
HorizontalAlignment GetHorizontalAlignment() const
Definition: Text3D.cpp:403
void Complete(unsigned priority)
Finish all queued work which has at least the specified priority. Main thread will also execute prior...
Definition: WorkQueue.cpp:244
Node * EraseNode(Node *node)
Erase and free a node. Return pointer to the next node, or to the end if could not erase.
Definition: List.h:451
IntVector2 viewPositionAttr_
View offset attribute.
Definition: ScrollView.h:188
static void RegisterObject(Context *context)
Register object factory.
Definition: Font.cpp:71
bool lineAntiAlias_
Line antialiasing enable flag.
Definition: Graphics.h:872
Object * GetEventSender() const
Return active event sender. Null outside event handling.
Definition: Object.cpp:426
void SendViewEvent(StringHash eventType)
Send a view update or render related event through the Renderer subsystem. The parameters are the sam...
Definition: View.cpp:3168
void OnMarkedDirty(Node *node) override
Handle node transform being dirtied.
Definition: DecalSet.cpp:654
CustomVariantValue * GetCustomVariantValuePtr()
Return pointer to custom variant value.
Definition: Variant.h:1293
bool LoadJSON(const JSONValue &source)
Load from JSON data. Return true if successful.
Definition: ValueAnimation.cpp:151
Quaternion(const Vector3 &start, const Vector3 &end) noexcept
Construct from the rotation difference between two direction vectors.
Definition: Quaternion.h:120
b2PulleyJointDef jointDef_
Box2D joint def.
Definition: ConstraintPulley2D.h:85
virtual void ApplyAttributes()
Apply attribute changes that can not be applied immediately. Called after scene load or a network upd...
Definition: Serializable.h:76
unsigned GetNumOccluders(bool allViews=false) const
Definition: Renderer.cpp:630
bool SetGeometry(unsigned index, unsigned lodLevel, Geometry *geometry)
Set geometry.
Definition: Model.cpp:573
const IntRect & GetIntRect() const
Return an integer rect or empty on type mismatch.
Definition: Variant.h:1254
VertexBuffer * GetVertexBuffer(unsigned index) const
Return current vertex buffer by index.
Definition: OGLGraphics.cpp:2147
Color ambientStartColor_
Cached ambient start color.
Definition: Zone.h:176
void SetReflectionPlane(const Plane &plane)
Definition: Camera.cpp:224
void HandleModelReloadFinished(StringHash eventType, VariantMap &eventData)
Handle model reload finished.
Definition: AnimatedModel.cpp:1433
VerticalAlignment GetVerticalAlignment() const
Definition: Text3D.cpp:408
virtual ~RefCounted()
Destruct. Mark as expired and also delete the reference count structure if no outside weak references...
Definition: RefCounted.cpp:39
WeakPtr< UIElement > target_
The element that is being tracked for hovering. Normally the parent element.
Definition: ToolTip.h:63
PODVector< RayQueryResult > & result_
Result vector reference.
Definition: OctreeQuery.h:249
Texture2D * shadowMap_
Shadow map depth texture.
Definition: Batch.h:299
void SetRotationEnd(float rotationEnd)
Set rotation end.
Definition: ParticleEffect2D.cpp:464
void MarkForUpdate()
Mark for update and octree reinsertion. Update is automatically queued when the drawable's scene node...
Definition: Drawable.cpp:247
const String & GetProperty(const String &name) const
Return property value.
Definition: TileMapDefs2D.cpp:215
unsigned lockCount_
Lock number of vertices.
Definition: IndexBuffer.h:114
SharedPtr< VertexBuffer > vertexBuffer_
Vertex buffer.
Definition: Text3D.h:241
virtual unsigned GetSize() const
Get size.
Definition: Variant.h:200
Vector< float > wheelSideSlipSpeed_
Wheel side movement speed.
Definition: RaycastVehicle.h:209
bool IsInside(const BoundingBox &box) const
Check whether a bounding box is inside the view frustum.
Definition: DebugRenderer.cpp:641
PODVector< float > vertexData_
UI rendering vertex data.
Definition: UI.h:298
void AddTime(float delta)
Modify time position. Animation triggers will be fired.
Definition: AnimationState.cpp:253
void CalculateSortKey()
Calculate state sorting key, which consists of base pass flag, light, pass and geometry.
Definition: Batch.cpp:162
AsyncProgress asyncProgress_
Asynchronous loading progress.
Definition: Scene.h:315
String password_
Server/Client password used for connecting.
Definition: Network.h:190
PODVector< Batch * > sortedBatches_
Sorted non-instanced draw calls.
Definition: Batch.h:259
static const IntVector3 UP_RIGHT_FORWARD
(1, 0, 2) coordinate system.
Definition: RaycastVehicle.h:185
bool operator!=(const ListIteratorBase &rhs) const
Test for inequality with another iterator.
Definition: ListBase.h:72
void OnMarkedDirty(Node *node) override
Handle node transform being dirtied.
Definition: CollisionShape2D.cpp:304
void SetTranslation(const Vector3 &translation)
Set translation elements.
Definition: Matrix3x4.h:504
float GetParticleLifeSpan() const
Return particle lifespan.
Definition: ParticleEffect2D.h:149
void HandleScrollBarChanged(StringHash eventType, VariantMap &eventData)
Handle scrollbar value changed.
Definition: ScrollView.cpp:522
void SetDelay(float interval)
Set the delay in seconds before file changes are notified. This (hopefully) avoids notifying when a f...
Definition: FileWatcher.cpp:232
virtual void OnEvent(Object *sender, StringHash eventType, VariantMap &eventData)
Handle event.
Definition: Object.cpp:89
bool SetModalElement(UIElement *modalElement, bool enable)
Definition: UI.cpp:235
SharedPtr< VertexBuffer > debugVertexBuffer_
UI debug geometry vertex buffer.
Definition: UI.h:306
bool loading_
Loading flag. During loading bone nodes are not created, as they will be serialized as child nodes.
Definition: AnimatedModel.h:267
static void CopyElements(T *dest, const T *src, unsigned count)
Copy elements from one buffer to another.
Definition: Vector.h:1171
void HandleBeginFrame(StringHash eventType, VariantMap &eventData)
Handle frame start event.
Definition: Input.cpp:2435
void EndSendEvent()
End event send. Clean up event receivers removed in the meanwhile.
Definition: Context.cpp:468
Variant LinearInterpolation(unsigned index1, unsigned index2, float scaledTime) const
Linear interpolation.
Definition: ValueAnimation.cpp:374
void SetMaxSortedInstances(int instances)
Definition: Renderer.cpp:481
float distance_
Hit distance from ray origin.
Definition: PhysicsWorld2D.h:51
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:419
void AddChange(const String &fileName)
Add a file change into the changes queue.
Definition: FileWatcher.cpp:326
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:432
bool updateNodePosition_
Flag indicating the node's position should be updated by Detour crowd manager.
Definition: CrowdAgent.h:245
void Clear(bool clearReplicated=true, bool clearLocal=true)
Clear scene completely of either replicated, local or all nodes and components.
Definition: Scene.cpp:615
bool SetGeometryCenter(unsigned index, const Vector3 ¢er)
Definition: Model.cpp:590
bool IsMaster() const
Return whether is the master (first) animated model.
Definition: AnimatedModel.h:153
const Variant & GetShaderParameter(const String &name) const
Definition: Material.cpp:1203
bool DirExists(const String &pathName) const
Check if a directory exists.
Definition: FileSystem.cpp:627
String shaderPath_
Base directory for shaders.
Definition: Graphics.h:902
void SetScrollBarsAutoVisible(bool enable)
Definition: ScrollView.cpp:331
PODVector(unsigned size)
Construct with initial size.
Definition: Vector.h:696
void SendMessage(int msgID, bool reliable, bool inOrder, const VectorBuffer &msg, unsigned contentID=0)
Send a message.
Definition: Connection.cpp:111
void RefreshMemoryUse()
Recalculate the memory used by the shader.
Definition: Shader.cpp:215
void SetVertexBuffer(VertexBuffer *buffer)
Set vertex buffer.
Definition: OGLGraphics.cpp:961
void SetRampTextureAttr(const ResourceRef &value)
Set ramp texture attribute.
Definition: Light.cpp:520
const Rect & GetRect() const
Return a rect or empty on type mismatch.
Definition: Variant.h:1251
Vector< DelayedCall > delayedCalls_
Delayed function calls.
Definition: ScriptFile.h:148
PODVector< BatchGroup * > sortedBatchGroups_
Sorted instanced draw calls.
Definition: Batch.h:261
virtual const String & GetTypeName() const =0
Localization(Context *context)
Construct.
Definition: Localization.cpp:36
HashMap< unsigned, Node * > localNodes_
Local scene nodes by ID.
Definition: Scene.h:307
T * Get() const
Return raw pointer. If expired, return null.
Definition: ArrayPtr.h:301
unsigned GetNumVertices(unsigned index) const
Definition: CustomGeometry.cpp:718
void AddChild(Node *node, unsigned index=M_MAX_UNSIGNED)
Add a child scene node at a specific index. If index is not explicitly specified or is greater than c...
Definition: Node.cpp:804
bool ComponentIsInOurSubtree(Component *component) const
Definition: IKSolver.cpp:355
const CascadeParameters & GetShadowCascade() const
Definition: Light.h:315
void ProcessSceneChecksumError(int msgID, MemoryBuffer &msg)
Process a SceneChecksumError message from the server. Called by Network.
Definition: Connection.cpp:576
Vector3(const Vector2 &vector) noexcept
Construct from a two-dimensional vector (for Urho2D).
Definition: Vector3.h:207
unsigned maxInactiveFps_
Maximum frames per second when the application does not have input focus.
Definition: Engine.h:157
Iterator & operator--()
Predecrement the pointer.
Definition: HashSet.h:91
bool SetupNextTexture(int textureWidth, int textureHeight)
Setup next texture.
Definition: FontFaceFreeType.cpp:332
HashSet< unsigned > networkUpdateComponents_
Components to check for attribute changes on the next network update.
Definition: Scene.h:327
JSONValue(unsigned value)
Construct with a unsigned integer.
Definition: JSONValue.h:95
Color GammaToLinear() const
Convert color from gamma to linear space.
Definition: Color.h:215
bool SetDataRange(const void *data, unsigned start, unsigned count, bool discard=false)
Set a data range in the buffer. Optionally discard data outside the range.
Definition: OGLVertexBuffer.cpp:116
unsigned GetNumOccluderTriangles() override
Return number of occlusion geometry triangles.
Definition: TerrainPatch.cpp:170
bool LoadXML(const XMLElement &source) override
Load from XML data. Return true if successful.
Definition: Node.cpp:156
signed char ReadByte()
Read an 8-bit integer.
Definition: Deserializer.cpp:84
T * GetSubsystem() const
Template version of returning a subsystem.
Definition: Context.h:273
HashMap< asITypeInfo *, HashMap< String, asIScriptFunction * > > methods_
Search cache for methods.
Definition: ScriptFile.h:146
bool BeginCall(const LuaScriptInstance *instance=nullptr)
Begin function call. When a script object is given then pass it as self argument (first parameter) to...
Definition: LuaFunction.cpp:68
int GetHeight() const
Return buffer height.
Definition: OcclusionBuffer.h:138
VariantMap GetVariantMap() const
Return a variant map attribute, or empty if missing.
Definition: XMLElement.cpp:931
Matrix4 ToMatrix4() const
Convert to a 4x4 matrix by filling in an identity last row.
Definition: Matrix3x4.h:558
TraversalMode traversalMode_
Traversal mode for rendering.
Definition: UIElement.h:925
void MarkChainsNeedUpdating()
Indicates that the internal structures of the IK library need to be updated. See the documentation of...
Definition: IKSolver.cpp:489
bool deferred_
Deferred flag. Inferred from the existence of a light volume command in the renderpath.
Definition: View.h:374
bool LoadAsyncJSON(File *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:451
RibbonTrail(Context *context)
Construct.
Definition: RibbonTrail.cpp:62
void HandleRuntimeError(const char *message, const char *cause)
Internal helper method to handle runtime exception by logging it to stderr stream.
Definition: ODBCConnection.cpp:158
ConvexData(Model *model, unsigned lodLevel)
Construct from a model.
Definition: CollisionShape.cpp:227
FileSelector(Context *context)
Construct.
Definition: FileSelector.cpp:52
bool Equals(const Color &rhs) const
Test for equality with another color with epsilon.
Definition: Color.h:243
Intersection TestOctant(const BoundingBox &box, bool inside) override
Intersection test for an octant.
Definition: OctreeQuery.cpp:76
~RaycastVehicle() override
Destruct.
Definition: RaycastVehicle.cpp:152
Definition: Object.h:339
FaceCameraMode faceCameraMode_
Particle rotation mode in relation to the camera.
Definition: ParticleEffect.h:493
T * Reserve()
Reserve and default-construct an object.
Definition: Allocator.h:94
void SetFormat(unsigned frequency, bool sixteenBit, bool stereo)
Set sound data format.
Definition: SoundStream.cpp:45
bool SaveJSON(JSONValue &dest) const override
Save as JSON data. Return true if successful.
Definition: Node.cpp:231
FontFaceFreeType(Font *font)
Construct.
Definition: FontFaceFreeType.cpp:79
void AllocateScreenBuffers()
Allocate needed screen buffers.
Definition: View.cpp:1952
SharedArrayPtr< Vector3 > vertexData_
Vertex data.
Definition: CollisionShape.h:115
void Define(const Vector3 &point)
Define from a point.
Definition: BoundingBox.h:172
const String & GetTypeName() const
Return type name of objects created by this factory.
Definition: Object.h:230
Vector< AttributeInfo > attributeInfos_
Attributes, including script object variables.
Definition: ScriptInstance.h:204
PODVector< CharLocation > charLocations_
Cached locations of each character in the text.
Definition: Text.h:295
SharedPtr< Material > material_
Material to use as a base for the text material(s).
Definition: Text3D.h:243
String ToString() const
Convert value to string. Pointers are returned as null, and VariantBuffer or VariantMap are not suppo...
Definition: Variant.cpp:440
void SetStartColor(const Color &startColor)
Set start color.
Definition: ParticleEffect2D.cpp:364
unsigned GetNumOccluderTriangles() override
Return number of occlusion geometry triangles.
Definition: StaticModel.cpp:168
void ReleaseAllResources(bool force=false)
Release all resources. When called with the force flag false, releases all currently unused resources...
Definition: ResourceCache.cpp:344
IntVector2 coordinates_
Patch coordinates in the terrain. (0,0) is the northwest corner.
Definition: TerrainPatch.h:138
WeakPtr< RenderSurface > linkedRenderTarget_
Linked color buffer.
Definition: RenderSurface.h:172
void SetVertex(unsigned index, const Vector2 &vertex)
Set vertex.
Definition: CollisionPolygon2D.cpp:60
const Vector3 & GetTargetPosition() const
Definition: SmoothedTransform.h:73
Quaternion Rotation() const
Return the rotation part.
Definition: Matrix3x4.h:613
static const Plane UP
Plane at origin with normal pointing up.
Definition: Plane.h:127
HashMap< unsigned, float > kerningMapping_
Kerning mapping.
Definition: FontFace.h:108
void OptimizeLightByStencil(Light *light, Camera *camera)
Optimize a light by marking it to the stencil buffer and setting a stencil test.
Definition: Renderer.cpp:1380
Vector< PODVector< unsigned > > geometryBoneMappings_
Mapping of subgeometry bone indices, used if more bones than skinning shader can manage.
Definition: AnimatedModel.h:233
void * GetRenderTargetView() const
Return Direct3D11 rendertarget or depth-stencil view. Not valid on OpenGL.
Definition: RenderSurface.h:122
void ApplyLinearImpulse(const Vector2 &impulse, const Vector2 &point, bool wake)
Apply linear impulse.
Definition: RigidBody2D.cpp:347
float emitRotation_
Emit rotation.
Definition: ParticleEmitter2D.h:70
bool isVisible(const btVector3 &aabbMin, const btVector3 &aabbMax) override
Check if an AABB is visible for debug drawing.
Definition: PhysicsWorld.cpp:215
void OnMarkedDirty(Node *node) override
Handle node transform being dirtied.
Definition: Constraint.cpp:451
void SetElementEventSender(bool flag)
Definition: UIElement.cpp:1454
const HashMap< String, PackageEntry > & GetEntries() const
Return all file entries.
Definition: PackageFile.h:62
unsigned buffer_
Constant buffer index. Only used on Direct3D11.
Definition: ShaderVariation.h:75
float GetLodDistance(float distance, float scale, float bias) const
Return a scene node's LOD scaled distance.
Definition: Camera.cpp:512
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:151
bool SetInfo(Orientation2D orientation, int width, int height, float tileWidth, float tileHeight)
Set Tilemap information.
Definition: TmxFile2D.cpp:530
PODVector< Drawable * > drawableUpdates_
Drawable objects that require update.
Definition: Octree.h:212
unsigned totalFragments_
Total number of fragments.
Definition: Connection.h:80
void SetParameter(unsigned offset, unsigned size, const void *data)
Set a generic parameter and mark buffer dirty.
Definition: ConstantBuffer.cpp:45
unsigned shadowCasterEnd_[MAX_LIGHT_SPLITS]
Shadow caster end indices.
Definition: View.h:68
const Vector< SharedPtr< Texture2D > > & GetTextures() const
Return textures.
Definition: FontFace.h:94
static void RegisterObject(Context *context)
Register object factory.
Definition: CollisionShape.cpp:479
void RegisterSubsystem(Object *object)
Register a subsystem.
Definition: Context.cpp:181
unsigned GetOcclusionLodLevel() const
Definition: StaticModel.h:97
void SetTextureRect(const Rect &rect)
Definition: StaticSprite2D.cpp:108
Iterator Insert(const Iterator &dest, const T &value)
Insert an element by iterator.
Definition: Vector.h:303
void Update(float timeStep)
Run update on sound sources. Not required for continued playback, but frees unused sound sources & so...
Definition: Audio.cpp:129
void HandleScreenJoystickTouch(StringHash eventType, VariantMap &eventData)
Handle touch events from the controls of screen joystick(s).
Definition: Input.cpp:2453
Vector3 Reflect(const Vector3 &direction) const
Reflect a normalized direction vector.
Definition: Plane.h:104
float GetAnimationLodBias() const
Definition: RibbonTrail.h:180
void HandleConsoleCommand(StringHash eventType, VariantMap &eventData)
Handle a console command event.
Definition: LuaScript.cpp:483
SharedPtr< UIElement > overlayContainer_
Overlay container, used in hierarchy mode only.
Definition: ListView.h:199
Object * GetReceiver() const
Return event receiver.
Definition: Object.h:282
void OnSetEnabled() override
Handle enabled/disabled state change.
Definition: LuaScriptInstance.cpp:291
void SetRenderTarget(unsigned index, const RenderTargetInfo &info)
Definition: RenderPath.cpp:427
DeferredLightVSVariation
Deferred light volume vertex shader variations.
Definition: Renderer.h:111
bool GetData(CubeMapFace face, unsigned level, void *dest) const
Get data from a face's mip level. The destination buffer must be big enough. Return true if successfu...
Definition: OGLTextureCube.cpp:372
Vector< SharedPtr< WorkerThread > > threads_
Worker threads.
Definition: WorkQueue.h:131
bool LoadJSON(const JSONValue &source) override
Load from JSON data. Return true if successful.
Definition: UnknownComponent.cpp:141
Node * FindNode(const T &key, unsigned hashKey) const
Find a node from the buckets. Do not call if the buckets have not been allocated.
Definition: HashMap.h:628
unsigned ClosestPowerOfTwo(unsigned value)
Round up or down to the closest power of two.
Definition: MathDefs.h:280
unsigned GetNumObjects() const
Return number of objects.
Definition: TmxFile2D.h:119
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:283
bool stopAtEnd_
Stop when no more data flag.
Definition: SoundStream.h:72
bool SaveJSON(JSONValue &dest) const override
Save as JSON data. Return true if successful.
Definition: UnknownComponent.cpp:219
void SetNode(Node *node)
Set scene node. Called by Node when creating the component.
Definition: Component.cpp:259
void Update(float timeStep)
Step the simulation forward.
Definition: PhysicsWorld2D.cpp:279
static unsigned GetDataType(unsigned format)
Definition: OGLTexture.cpp:282
HashMap< int, PODVector< const char * > > enumValues_
Cache of typeIds to array of enum value strings for attributes.
Definition: Script.h:141
void SetEffect(ParticleEffect2D *effect)
Definition: ParticleEmitter2D.cpp:89
Vector3 GetWheelConnectionPoint(int wheel) const
Get wheel connection point relative to RigidBody.
Definition: RaycastVehicle.cpp:432
void GetChildrenRecursive(PODVector< Node * > &dest) const
Return child nodes recursively.
Definition: Node.cpp:2135
void SetVar(StringHash key, const Variant &value)
Set a user variable.
Definition: Node.cpp:1146
HashMap & operator=(const HashMap< T, U > &rhs)
Assign a hash map.
Definition: HashMap.h:262
PODVector< float > lodErrors_
Geometrical error per LOD level.
Definition: TerrainPatch.h:136
bool useMutableGlyphs_
Flag for using mutable (erasable) font glyphs.
Definition: UI.h:444
unsigned char gridSize
grid
Definition: CrowdManager.h:53
float GetUpperAngle() const
Definition: ConstraintRevolute2D.h:79
float autoDisableThreshold_
Threshold to trigger auto disable children.
Definition: ScrollView.h:216
ResourceRef GetFontAttr() const
Return font attribute.
Definition: Text.cpp:449
unsigned char lightMask_
8-bit light mask for stencil marking in deferred rendering.
Definition: Batch.h:84
HashMap< asITypeInfo *, bool > validClasses_
Search cache for checking whether script classes implement "ScriptObject" interface.
Definition: ScriptFile.h:142
void Close()
Close the pipe. Note that once a client has disconnected, the server needs to close and reopen the pi...
Definition: NamedPipe.cpp:323
const IntVector2 & GetAbsoluteGlyphOffset() const
Definition: Font.h:83
unsigned GetNumOccluderTriangles() override
Return number of occlusion geometry triangles.
Definition: CustomGeometry.cpp:143
void Reset()
Hide tooltip if visible and reset parentage.
Definition: ToolTip.cpp:116
void UpdateAttributeAnimations(float timeStep)
Update attribute animations.
Definition: Animatable.cpp:508
Variant GetVariantValue(VariantType type) const
Return a variant attribute with static type.
Definition: XMLElement.cpp:853
RenderSurface * renderTargets_[MAX_RENDERTARGETS]
Rendertargets in use.
Definition: Graphics.h:846
virtual void GetDebugDrawBatches(PODVector< UIBatch > &batches, PODVector< float > &vertexData, const IntRect ¤tScissor)
Return UI rendering batches for debug draw.
Definition: UIElement.cpp:349
float GetCorrectionFactor() const
Definition: ConstraintMotor2D.h:77
bool pauseMinimized_
Pause when minimized flag.
Definition: Engine.h:159
static VariantType GetTypeFromName(const String &typeName)
Return variant type from type name.
Definition: Variant.cpp:969
void AddCollisionShape2D(CollisionShape2D *collisionShape)
Add collision shape.
Definition: RigidBody2D.cpp:468
void SetTransform2D(const Vector2 &position, float rotation, const Vector2 &scale)
Set position, rotation, and scale in parent space as an atomic operation (for Urho2D).
Definition: Node.h:187
bool bringToBack_
Bring to back when defocused flag.
Definition: UIElement.h:804
asIScriptObject * scriptObject_
Script object.
Definition: ScriptInstance.h:196
Quaternion(float angle, const Vector3 &axis) noexcept
Construct from an angle (in degrees) and axis.
Definition: Quaternion.h:96
void Resize(unsigned newSize)
Resize the list by removing or adding items at the end.
Definition: List.h:362
unsigned GetNumObstacleAvoidanceTypes() const
Definition: CrowdManager.h:156
static const Quaternion IDENTITY
Identity quaternion.
Definition: Quaternion.h:477
Definition: Text.h:57
Vector< SharedPtr< Viewport > > viewports_
Backbuffer viewports.
Definition: Renderer.h:589
const StringHash & GetEventType() const
Return event type.
Definition: Object.h:288
void SetMipsToSkip(MaterialQuality quality, int toSkip)
Definition: Texture.cpp:109
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:439
BoundingBox cullingBox_
Bounding box used for drawable object fitting.
Definition: Octree.h:140
void ClearBuffer(unsigned threadIndex)
Clear a thread work buffer.
Definition: OcclusionBuffer.cpp:1028
bool GetVerticalScrollBarVisible() const
Definition: ScrollView.cpp:363
const Vector2 & GetLayoutFlexScale() const
Definition: UIElement.h:655
KeyValue(const KeyValue &value)
Copy-construct.
Definition: HashMap.h:61
Quaternion(const Vector3 &angles) noexcept
Construct from Euler angles (in degrees).
Definition: Quaternion.h:114
HashNodeBase ** Ptrs() const
Return bucket head pointers.
Definition: HashBase.h:146
bool useSystemShapes_
Use system default shapes flag.
Definition: Cursor.h:146
const IntRect & GetBorder() const
Definition: StretchableSprite2D.h:45
2D physics simulation world component. Should be added only to the root scene node.
Definition: PhysicsWorld2D.h:70
static void RegisterObject(Context *context)
Register object attributes. Drawable must be registered first.
Definition: Drawable.cpp:99
bool BeginLoad(Deserializer &source) override
Load resource from stream. May be called from a worker thread. Return true if successful.
Definition: PListFile.cpp:311
int Refs() const
Return the object's reference count, or 0 if null pointer or if object has expired.
Definition: Ptr.h:486
void Pitch(float angle, TransformSpace space=TS_LOCAL)
Rotate around the X axis.
Definition: Node.cpp:660
NetworkPriority(Context *context)
Construct.
Definition: NetworkPriority.cpp:40
SLNet::AddressOrGUID * address_
Address of this connection.
Definition: Connection.h:360
Octant * GetOctant() const
Return octree octant.
Definition: Drawable.h:276
void OnMarkedDirty(Node *node) override
Handle node transform being dirtied.
Definition: Camera.cpp:642
bool SetVariantValue(const Variant &value)
Set a variant attribute excluding the type.
Definition: XMLElement.cpp:420
Vector3 SignedScale(const Matrix3 &rotation) const
Return the scaling part with the sign. Reference rotation matrix is required to avoid ambiguity.
Definition: Matrix3x4.h:626
void SetTextureFrames(const Vector< TextureFrame > &textureFrames)
Set particle texture animation.
Definition: ParticleEffect.cpp:709
SharedPtr< Text > statsText_
Rendering stats text.
Definition: DebugHud.h:127
void Transform(const Matrix3 &transform)
Transform with a 3x3 matrix.
Definition: Polyhedron.cpp:237
int GetRefreshRate() const
Return refresh rate when using vsync in fullscreen.
Definition: Graphics.h:398
Vector(ConstIterator start, ConstIterator end)
Copy-construct from another vector (iterator version).
Definition: Vector.h:83
void RegisterFactory(ObjectFactory *factory)
Register a factory for an object type.
Definition: Context.cpp:163
void SetOccluderSizeThreshold(float screenSize)
Definition: Renderer.cpp:512
const T & At(unsigned index) const
Return const element at index.
Definition: Vector.h:215
UIElement * screenJoystick_
UI element containing the screen joystick.
Definition: Input.h:126
Zone * cameraZone_
Zone the camera is inside, or default zone if not assigned.
Definition: View.h:326
void RemoveEventHandler(StringHash eventType) override
Remove a scripted event handler.
Definition: ScriptFile.cpp:212
void OnSceneSet(Scene *scene) override
Handle scene being assigned.
Definition: AnimatedSprite2D.cpp:212
void ReleaseShaders()
Reset shader pointers in all passes.
Definition: Technique.cpp:366
View * GetPreparedView(Camera *camera)
Return a prepared view if exists for the specified camera. Used to avoid duplicate view preparation C...
Definition: Renderer.cpp:1148
bool Compile()
Compile from source. Return true if successful.
Definition: OGLShaderVariation.cpp:200
bool operator<(const Pair< T, U > &rhs) const
Test for less than with another pair.
Definition: Pair.h:51
HiresTimer timer_
High-resolution timer for measuring the block duration.
Definition: Profiler.h:141
void FixedPostUpdate(float timeStep) override
Perform fixed step post-update.
Definition: RaycastVehicle.cpp:318
Key GetKeyFromName(const String &name) const
Return keycode from key name.
Definition: Input.cpp:1304
HashMap< unsigned, VertexBufferMorph > buffers_
Morph data per vertex buffer.
Definition: Model.h:63
int functionRef_
Lua reference to function object.
Definition: LuaFunction.h:107
void SetTransform(const Vector3 &position, const Quaternion &rotation)
Set both position and rotation in parent space as an atomic operation. This is faster than setting po...
Definition: Node.cpp:484
void SendEndContactEvents()
Send end contact events.
Definition: PhysicsWorld2D.cpp:774
SharedPtr< Object > CreateObject() override
Create an object of the specific type.
Definition: Object.h:251
Matrix3x4(const Matrix3 &matrix) noexcept
Copy-construct from a 3x3 matrix and set the extra elements to identity.
Definition: Matrix3x4.h:66
void drawLine(const btVector3 &from, const btVector3 &to, const btVector3 &color) override
Draw a physics debug line.
Definition: PhysicsWorld.cpp:223
void * GetGPUObject() const
Return the object pointer. Applicable only on Direct3D.
Definition: GPUObject.h:63
void SetSteeringValue(int wheel, float steeringValue)
Set steering value of particular wheel.
Definition: RaycastVehicle.cpp:439
void ResetToDefaults()
Reset to defaults.
Definition: Material.cpp:1246
static void RegisterObject(Context *context)
Register object factory.
Definition: AnimationSet2D.cpp:119
bool sRGB_
sRGB conversion on write flag for the main window.
Definition: Graphics.h:790
void SetAngleVariance(float angleVariance)
Set angle variance.
Definition: ParticleEffect2D.cpp:334
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:569
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
unsigned drawStart_
Draw start. First index for indexed geometry, otherwise first vertex.
Definition: OcclusionBuffer.h:78
void AddAttributeAnimation(const 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:193
Mutex backgroundLoadMutex_
Mutex for thread-safe access to the background load queue.
Definition: BackgroundLoader.h:82
void InsertDrawable(Drawable *drawable)
Insert a drawable object by checking for fit recursively.
Definition: Octree.cpp:134
static void ConstructElements(T *dest, RandomIteratorT start, RandomIteratorT end, MoveTag)
Move-construct elements.
Definition: Vector.h:561
b2JointDef * GetJointDef() override
Return joint def.
Definition: ConstraintMouse2D.cpp:117
void ScanDir(Vector< String > &result, const String &pathName, const String &filter, unsigned flags, bool recursive) const
Scan a directory for specified files.
Definition: FileSystem.cpp:681
Constraint2D * GetAttachedConstraint() const
Return attached constraint (for gear).
Definition: Constraint2D.h:79
void AddTransforms(const Batch &batch)
Add world transform(s) from a batch.
Definition: Batch.h:153
const IntVector2 & GetDisabledOffset() const
Definition: BorderImage.h:106
Iterator Find(const T &key)
Return iterator to the pair with key, or end iterator if not found.
Definition: HashMap.h:529
unsigned senderID_
Remote sender node ID (0 if not a remote node event).
Definition: Connection.h:58
float height_
Height of this obstacle, extends 1/2 height below and 1/2 height above the owning node's position.
Definition: Obstacle.h:91
GeometryType
Geometry type for vertex shader geometry variations.
Definition: GraphicsDefs.h:55
void AddNode(Node *node, float scale=1.0f, bool depthTest=true)
Add a scene node represented as its coordinate axes.
Definition: DebugRenderer.cpp:131
Vector3 centerOfMass_
Center of mass offset.
Definition: RigidBody.h:337
unsigned Seek(unsigned position) override
Set position from the beginning of the buffer. Return actual new position.
Definition: VectorBuffer.cpp:63
Scene * GetDefaultScene() const
Return immediate mode scene.
Definition: Script.cpp:348
SharedPtr< HttpRequest > MakeHttpRequest(const String &url, const String &verb=String::EMPTY, const Vector< String > &headers=Vector< String >(), const String &postData=String::EMPTY)
Perform an HTTP request to the specified URL. Empty verb defaults to a GET request....
Definition: Network.cpp:639
const ScreenModeParams & GetScreenModeParams() const
Return screen mode parameters.
Definition: Graphics.h:368
void Update(float timeStep)
Process incoming messages from connections. Called by HandleBeginFrame.
Definition: Network.cpp:889
unsigned long long elementHash_
Vertex element hash.
Definition: VertexBuffer.h:163
void CalculateConstantBufferSizes()
Calculate constant buffer sizes from parameters.
Definition: OGLShaderVariation.cpp:203
HashSet< Pair< StringHash, StringHash > > dependencies_
Resources depended on for loading.
Definition: BackgroundLoader.h:45
bool BeginLoad(Deserializer &source) override
Load resource from stream. May be called from a worker thread. Return true if successful.
Definition: Material.cpp:211
Vector< SharedPtr< Geometry > > geometries_
Geometries.
Definition: Text3D.h:239
static void RegisterObject(Context *context)
Register object factory.
Definition: UIElement.cpp:112
IntVector3(int x, int y, int z) noexcept
Construct from coordinates.
Definition: Vector3.h:44
Matrix3x4 volumeTransform_
Custom world transform for the light volume.
Definition: Light.h:417
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
void DrawInstanced(PrimitiveType type, unsigned indexStart, unsigned indexCount, unsigned minVertex, unsigned vertexCount, unsigned instanceCount)
Draw indexed, instanced geometry. An instancing vertex buffer must be set.
Definition: OGLGraphics.cpp:901
virtual bool Create()
Create the GPU texture. Implemented in subclasses.
Definition: Texture.h:228
HashMap< int, TouchState > touches_
Active finger touches.
Definition: Input.h:422
void NotifyRigidBody(bool updateMass=true)
Update the new collision shape to the RigidBody.
Definition: CollisionShape.cpp:845
void SetParameters(asIScriptContext *context, asIScriptFunction *function, const VariantVector ¶meters)
Set parameters for a function or method.
Definition: ScriptFile.cpp:835
void SetTexture(unsigned index, Texture *texture)
Set texture.
Definition: OGLGraphics.cpp:1492
bool BeginLoad(Deserializer &source) override
Load resource from stream. May be called from a worker thread. Return true if successful.
Definition: ValueAnimation.cpp:69
float GetContactProcessingThreshold() const
Definition: RigidBody.cpp:683
float GetSteeringValue(int wheel) const
Get steering value of particular wheel.
Definition: RaycastVehicle.cpp:445
bool EmitNewParticle()
Create a new particle. Return true if there was room.
Definition: ParticleEmitter.cpp:448
Vector< PODVector< CustomGeometryVertex > > vertices_
Source vertices per geometry.
Definition: CustomGeometry.h:175
void DefineNormal(const Vector3 &normal)
Define a vertex normal.
Definition: CustomGeometry.cpp:550
bool HasEventHandler(const String &eventName) const override
Return whether has subscribed to an event.
Definition: LuaScriptInstance.cpp:370
const String & PrintData(bool showUnused=false, bool showTotal=false, unsigned maxDepth=M_MAX_UNSIGNED) const
Return profiling data as text output. This method is not thread-safe.
Definition: Profiler.cpp:72
bool IsReadOnly()
Return whether buffer is read-only.
Definition: MemoryBuffer.h:55
int GetMaxParticles() const
Return max particles.
Definition: ParticleEffect2D.h:188
void HandleBackButtonPressed(StringHash eventType, VariantMap &eventData)
Handle back button pressed.
Definition: ScrollBar.cpp:274
float Average() const
Return average value of the RGB channels.
Definition: Color.h:173
bool WriteQuaternion(const Quaternion &value)
Write a quaternion.
Definition: Serializer.cpp:137
void SetAnimationEnabled(bool enable)
Definition: Animatable.cpp:254
VectorBuffer attrBuffer_
Attribute buffer for network replication.
Definition: AnimationController.h:211
void MarkAnimationDirty()
Mark animation and skinning to require an update.
Definition: AnimatedModel.cpp:1082
void RemoveEventHandlers() override
Remove all scripted event handlers.
Definition: ScriptInstance.cpp:396
bool NeedParameterUpdate(ShaderParameterGroup group, const void *source)
Check whether a shader parameter group needs update. Does not actually check whether parameters exist...
Definition: OGLShaderProgram.cpp:347
void CreateWindowIcon()
Create the application window icon.
Definition: Graphics.cpp:477
Connection * connection_
Parent network connection.
Definition: ReplicationState.h:141
void OnAttributeAnimationRemoved() override
Handle attribute animation removed.
Definition: Node.cpp:1907
String scriptObjectType_
Script object type.
Definition: LuaScriptInstance.h:179
bool CheckFramebuffer()
Check FBO completeness using either extension or core functionality. Used only on OpenGL.
Definition: OGLGraphics.cpp:3356
long long maxTime_
Maximum time on current frame.
Definition: Profiler.h:145
bool BeginLoad(Deserializer &source) override
Load resource from stream. May be called from a worker thread. Return true if successful.
Definition: Font.cpp:76
VariantVector nodeIDsAttr_
IDs of instance nodes for serialization.
Definition: StaticModelGroup.h:92
void SetEffectStrokeThickness(int thickness)
Definition: Text3D.cpp:288
void GetLightBatches()
Get batches from lit geometries and shadowcasters.
Definition: View.cpp:1003
void SetAnimation(const String &name, LoopMode2D loopMode=LM_DEFAULT)
Set animation by name and loop mode.
Definition: AnimatedSprite2D.cpp:169
static unsigned materialPassIndex
Index for prepass material pass. Initialized once GetPassIndex() has been called for the first time.
Definition: Technique.h:296
void EnsureItemVisibility(unsigned index)
Ensure full visibility of the item.
Definition: ListView.cpp:994
IntVector2 GetIntVector2(const String &name) const
Return an IntVector2 attribute, or default if missing.
Definition: XMLElement.cpp:827
bool BeginLoad(Deserializer &source) override
Load resource from stream. May be called from a worker thread. Return true if successful.
Definition: ScriptFile.cpp:114
void SetVertex(unsigned index, const Vector2 &vertex)
Set vertex.
Definition: CollisionChain2D.cpp:73
Vector< FileSelectorEntry > fileEntries_
File entries.
Definition: FileSelector.h:203
String EvaluateToString(const XMLElement &element) const
Evaluate XPath query and expecting a string return value.
Definition: XMLElement.cpp:1180
Geometry * GetLodGeometry(unsigned batchIndex, unsigned level) override
Return the geometry for a specific LOD level.
Definition: TerrainPatch.cpp:162
void ApplyAttributes() override
Apply attribute changes that can not be applied immediately. Called after scene load or a network upd...
Definition: RigidBody.cpp:131
void ReleaseObject()
Release the script object.
Definition: LuaScriptInstance.cpp:728
void GetLevels(PODVector< Image * > &levels)
Get all stored mip levels starting from this.
Definition: Image.cpp:2315
int indentSpacing_
Indent spacing (number of pixels per indentation level).
Definition: UIElement.h:846
bool Load(Deserializer &source)
Load resource synchronously. Call both BeginLoad() & EndLoad() and return true if both succeeded.
Definition: Resource.cpp:41
void SetObjectGroup(const TmxObjectGroup2D *objectGroup)
Set object group.
Definition: TileMapLayer2D.cpp:369
void UpdateEdgePatchNeighbors()
Update edge patch neighbors when neighbor terrain(s) change or are recreated.
Definition: Terrain.cpp:1450
void AddAutoComplete(const String &option)
Add auto complete option.
Definition: Console.cpp:253
void SetFullImageRect()
Use whole texture as the image.
Definition: BorderImage.cpp:91
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:247
void OnWorldBoundingBoxUpdate() override
Recalculate the world-space bounding box.
Definition: BillboardSet.cpp:471
static void RegisterObject(Context *context)
Register object factory.
Definition: ConstraintWheel2D.cpp:46
unsigned lastInstanceOffset_
Last used instance data offset.
Definition: OGLGraphicsImpl.h:148
void SetShaderParameterAnimationWrapMode(const String &name, WrapMode wrapMode)
Set shader parameter animation wrap mode.
Definition: Material.cpp:1018
void SetTransform2D(const Vector2 &position, float rotation, float scale)
Set position, rotation, and uniform scale in parent space as an atomic operation (for Urho2D).
Definition: Node.h:181
LuaFunction * coroutineUpdate_
Coroutine update function.
Definition: LuaScript.h:123
Vector2 ownerBodyAnchor_
Owner body anchor.
Definition: ConstraintPulley2D.h:91
Vector4 splits_
Far clip values of the splits.
Definition: Light.h:112
StencilOp stencilPass_
Stencil operation on pass.
Definition: Graphics.h:882
ResourceGroup()
Construct with defaults.
Definition: ResourceCache.h:47
void SetTolerance(int tolerance)
Set the pool telerance before it starts deleting pool items.
Definition: WorkQueue.h:99
void GetRigidBodies(PODVector< RigidBody2D * > &results, const Rect &aabb, unsigned collisionMask=M_MAX_UNSIGNED)
Return rigid bodies by a box query.
Definition: PhysicsWorld2D.cpp:668
bool levelsDirty_
Mipmap levels regeneration needed -flag.
Definition: Texture.h:277
SharedPtr< VertexBuffer > vertexBuffer_
Vertex buffer.
Definition: TerrainPatch.h:124
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:889
void UnsubscribeFromEvents(Object *sender)
Unsubscribe from a specific sender's events.
Definition: Object.cpp:231
bool HasEventFrames() const
Has event frames.
Definition: ValueAnimation.h:141
void OnSceneSet(Scene *scene) override
Handle scene being assigned.
Definition: CollisionShape.cpp:918
void SetObjectAnimation(ObjectAnimation *objectAnimation)
Definition: Animatable.cpp:298
bool IsBidirectional() const
Definition: OffMeshConnection.h:74
void * MapBuffer(unsigned start, unsigned count, bool discard)
Map the GPU buffer into CPU memory. Not used on OpenGL.
Definition: OGLIndexBuffer.cpp:265
void Insert(unsigned pos, const PODVector< T > &vector)
Insert another vector at position.
Definition: Vector.h:879
XMLElement GetOrCreateChild(const String &name)
Return the first child element with name or create if does not exist.
Definition: XMLElement.cpp:109
unsigned long long GetMemoryUse(StringHash type) const
Definition: ResourceCache.cpp:771
const AttributeInfo & GetAttributeInfo() const
Return attribute information.
Definition: Animatable.h:51
ResourceRefList materialsAttr_
Material list attribute.
Definition: StaticModel.h:134
void DrawDebugGeometry(DebugRenderer *debug, bool depthTest) override
Visualize the component as debug geometry.
Definition: AnimatedModel.cpp:323
SharedPtr< FreeTypeLibrary > freeType_
FreeType library.
Definition: FontFaceFreeType.h:59
void OnNodeSet(Node *node) override
Handle node being assigned.
Definition: CrowdAgent.cpp:603
List< Pair< SharedArrayPtr< signed char >, unsigned > > buffers_
Buffers and their sizes.
Definition: BufferedSoundStream.h:62
SharedPtr< Technique > technique_
Technique.
Definition: Material.h:66
void SetType(VariantType newType)
Set new type and allocate/deallocate memory as necessary.
Definition: Variant.cpp:623
Definition: EventProfiler.h:32
static bool IsSupported()
Return if high-resolution timer is supported.
Definition: Timer.h:62
Quaternion worldRotation_
New world rotation.
Definition: PhysicsWorld2D.h:66
void Move(float timeStep)
Move the controlled Node to the next position along the SplinePath based off the Speed value.
Definition: SplinePath.cpp:222
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:554
Polyhedron(const Polyhedron &polyhedron)
Copy-construct from another polyhedron.
Definition: Polyhedron.h:46
void OnDeviceLost() override
Mark the GPU resource destroyed on context destruction.
Definition: OGLTextureCube.cpp:46
String lastShaderName_
Last used shader name in shader variation query.
Definition: Graphics.h:910
int numArguments_
Number of arguments being pushed so far. For internal use only.
Definition: LuaFunction.h:105
void RemoveEventHandlers(Object *sender) override
Remove all scripted event handlers for a specific sender.
Definition: LuaScript.cpp:205
void ApplyAttributes() override
Apply attribute changes that can not be applied immediately. Called after scene load or a network upd...
Definition: Terrain.cpp:151
unsigned IndexOf(const T &value) const
Return index of value in vector, or size if not found.
Definition: Vector.h:482
Variant(const VectorBuffer &value)
Construct from a VectorBuffer and store as a buffer.
Definition: Variant.h:428
SharedPtr< Animation > animation_
Animation.
Definition: AnimationState.h:181
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:329
int multiSample_
Multisampling level (1 = no multisampling).
Definition: RenderPath.h:84
unsigned geometryIndex_
Current geometry being updated.
Definition: CustomGeometry.h:183
void OnNodeSet(Node *node) override
Handle node being assigned.
Definition: Camera.cpp:636
double GetDouble(const String &name) const
Return a double attribute, or zero if missing.
Definition: XMLElement.cpp:797
void SetNATServerInfo(const String &address, unsigned short port)
Set NAT server information.
Definition: Network.cpp:467
void ApplyAttributes() override
Apply attribute changes that can not be applied immediately.
Definition: Text.cpp:101
void HandleScriptFileReload(StringHash eventType, VariantMap &eventData)
Handle script file reload start.
Definition: ScriptInstance.cpp:949
unsigned regCount_
Number of registers on Direct3D9.
Definition: ShaderVariation.h:71
const char ** GetEnumValues(int asTypeID)
Returns an array of strings of enum value names for Enum Attributes.
Definition: Script.cpp:369
void SetShadowQuality(ShadowQuality quality)
Definition: Renderer.cpp:378
void OnResize(const IntVector2 &newSize, const IntVector2 &delta) override
React to resize.
Definition: Text.cpp:240
bool Run()
Start running the thread. Return true if successful, or false if already running or if can not create...
Definition: Thread.cpp:74
void ApplyAttributes() override
Apply attribute changes that can not be applied immediately. Called after scene load or a network upd...
Definition: Constraint2D.cpp:58
bool Rehash(unsigned numBuckets)
Rehash to a specific bucket count, which must be a power of two. Return true if successful.
Definition: HashSet.h:442
void SetEffectShadowOffset(const IntVector2 &offset)
Definition: Text3D.cpp:283
void * GetSampler() const
Return sampler state object. Only used on Direct3D11.
Definition: Texture.h:187
void CheckFeatureSupport()
Check supported rendering features.
Definition: OGLGraphics.cpp:2731
ResourceRef GetSpriteAttr() const
Return sprite attribute.
Definition: StaticSprite2D.cpp:255
bool CheckViewportWrite(const RenderPathCommand &command)
Check if a command writes into the destination render target.
Definition: View.cpp:1916
float sortDistance_
Sort distance. Used internally.
Definition: BillboardSet.h:56
bool autoReloadResources_
Automatic resource reloading flag.
Definition: ResourceCache.h:264
void SetNonFocusedMouseWheel(bool nonFocusedMouseWheel)
Definition: UI.cpp:676
bool SetRemoveOnCompletion(const String &name, bool removeOnCompletion)
Set whether an animation auto-removes on completion.
Definition: AnimationController.cpp:381
bool LoadJSON(const JSONValue &source) override
Load from JSON data. Return true if successful.
Definition: AnimatedModel.cpp:146
float GetMaxTorque() const
Definition: ConstraintFriction2D.h:63
bool SetLayer(const String &name, unsigned char layer)
Set animation blending layer priority. Return true on success.
Definition: AnimationController.cpp:300
SpriterData * spriterData_
Spriter data.
Definition: SpriterInstance2D.h:95
StaticSprite2D(Context *context)
Construct.
Definition: StaticSprite2D.cpp:42
JSONValue(const JSONObject &value)
Construct with a JSON object.
Definition: JSONValue.h:131
void AddGPUObject(GPUObject *object)
Add a GPU object to keep track of. Called by GPUObject.
Definition: Graphics.cpp:385
bool Defined() const
Return true if this sphere is defined via a previous call to Define() or Merge().
Definition: Sphere.h:151
void SetVector3ArrayParameter(unsigned offset, unsigned rows, const void *data)
Set a Vector3 array parameter and mark buffer dirty.
Definition: ConstantBuffer.cpp:54
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:302
unsigned GetScriptNestingLevel()
Return current script nesting level.
Definition: Script.h:119
void SaveMetadataToXML(XMLElement &destination) const
Save as <metadata> children of XML element.
Definition: Resource.cpp:178
MessageBox(Context *context, const String &messageString=String::EMPTY, const String &titleString=String::EMPTY, 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 GetBatches(PODVector< UIBatch > &batches, PODVector< float > &vertexData, const IntRect ¤tScissor) override
Return UI rendering batches.
Definition: Cursor.cpp:112
JSONObjectIterator Begin()
Return iterator to the beginning.
Definition: JSONValue.cpp:304
const Vector< String > GetEntryNames() const
Return list of file names in the package.
Definition: PackageFile.h:92
bool opacityDirty_
Derived opacity dirty flag.
Definition: UIElement.h:913
void OnSceneSet(Scene *scene) override
Handle scene being assigned.
Definition: CrowdManager.cpp:640
float rotationStart_
Rotation start.
Definition: ParticleEffect2D.h:322
void Update(float timeStep)
Update scene. Called by HandleUpdate.
Definition: Scene.cpp:760
void HandleScenePostUpdate(StringHash eventType, VariantMap &eventData)
Handle scene post-update event.
Definition: ParticleEmitter.cpp:575
const IntVector2 & GetViewSize() const
Return view dimensions.
Definition: View.h:160
bool SetAttribute(const String &name, const String &value)
Set an attribute.
Definition: XMLElement.cpp:288
Quaternion Slerp(const Quaternion &rhs, float t) const
Spherical interpolation with another quaternion.
Definition: Quaternion.cpp:249
~Script() override
Destruct. Release the AngelScript engine.
Definition: Script.cpp:211
void SetAlignment(HorizontalAlignment hAlign, VerticalAlignment vAlign)
Set horizontal and vertical alignment.
Definition: Text3D.cpp:233
VectorBuffer contacts_
Preallocated buffer for physics collision contact data.
Definition: PhysicsWorld.h:354
Vector< SharedPtr< Geometry > > geometries_
Geometries.
Definition: Renderer2D.h:65
int maxSortedInstances_
Maximum sorted instances per batch group.
Definition: Renderer.h:629
Bone * GetStartBone(const String &name) const
Return animation start bone, or null if no such animation.
Definition: AnimationController.cpp:489
b2FixtureDef fixtureDef_
Fixture def.
Definition: CollisionShape2D.h:129
Vector< AttributeInfo > xmlAttributeInfos_
XML format attribute infos.
Definition: UnknownComponent.h:95
unsigned register_
Direct3D9 register index.
Definition: ShaderVariation.h:61
void SetReuseShadowMaps(bool enable)
Definition: Renderer.cpp:441
Definition: Renderer2D.h:41
void UpdateViewBatchInfo(ViewBatchInfo2D &viewBatchInfo, Camera *camera)
Update view batch info.
Definition: Renderer2D.cpp:419
void MarkShadersLoaded(unsigned frameNumber)
Mark shaders loaded this frame.
Definition: Technique.cpp:179
static void RegisterObject(Context *context)
Register object factory.
Definition: TextureCube.cpp:79
bool operator==(const Variant &rhs) const
Test for equality with another variant.
Definition: Variant.cpp:150
void SetPlayPosition(signed char *pos)
Set new playback position.
Definition: SoundSource.cpp:319
float Value() const
Return value as defined for HSV: largest value of the RGB components. Equivalent to calling MinRGB().
Definition: Color.h:188
Definition: Variant.h:169
void SetWindowTitle(const String &windowTitle)
Definition: Graphics.cpp:73
VariantVector GetObstacleAvoidanceTypesAttr() const
Return all the obstacle avoidance types configured in the crowd as attribute.
Definition: CrowdManager.cpp:511
bool serializeParticles_
Serialize particles flag.
Definition: ParticleEmitter.h:160
unsigned basePassFlags_
Base pass flags, bit per batch.
Definition: Drawable.h:405
Definition: MemoryBuffer.h:32
Vector< SharedPtr< TileMapObject2D > > GetTileCollisionShapes(unsigned gid) const
Return tile collision shapes for a given gid.
Definition: TmxFile2D.cpp:564
bool BackgroundLoadResource(StringHash type, const 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:638
unsigned GetSampleSize() const
Return sample size.
Definition: SoundStream.cpp:57
float GetRawHeight(int x, int z) const
Return an uninterpolated terrain height value, clamping to edges.
Definition: Terrain.cpp:1297
T * First() const
Return first element, or null if empty.
Definition: LinkedList.h:169
ConstIterator & operator++()
Preincrement the pointer.
Definition: List.h:132
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:543
unsigned GetNumOccluderTriangles() override
Return number of occlusion geometry triangles.
Definition: StaticModelGroup.cpp:202
bool modalAutoDismiss_
Modal auto dismiss (with escape key) flag. Default true.
Definition: Window.h:181
void SendPackageToClient(PackageFile *package)
Trigger client connection to download a package file from the server. Can be used to download additio...
Definition: Connection.cpp:1151
void Scale(float scale)
Modify scale in parent space uniformly.
Definition: Node.cpp:702
WeakPtr< Node > controlledNode_
Node to be moved along the SplinePath.
Definition: SplinePath.h:146
Intersection TestOctant(const BoundingBox &box, bool inside) override
Intersection test for an octant.
Definition: OctreeQuery.cpp:98
bool needUpdate_
Need update flag.
Definition: ParticleEmitter.h:158
const Rect & GetTextureRect() const
Definition: StaticSprite2D.h:100
bool charLocationsDirty_
Char positions dirty flag.
Definition: Text.h:265
Vector< float > skidInfoCumulative_
Per-wheel extra settings.
Definition: RaycastVehicle.h:207
void EndSendEvent()
End event send. Clean up if necessary.
Definition: Context.cpp:62
Node(const T &key, const U &value)
Construct with key and value.
Definition: HashMap.h:88
unsigned GetUInt() const
Return unsigned int or zero on type mismatch. Floats and doubles are converted.
Definition: Variant.h:1131
JSONObjectIterator End()
Return iterator to the end.
Definition: JSONValue.cpp:320
Vector< ColorFrame > colorFrames_
Particle color animation frames.
Definition: ParticleEffect.h:487
static bool PushLuaFunction(lua_State *L, const String &functionName)
Push Lua function to stack. Return true if is successful. Return false on any error and an error stri...
Definition: LuaScript.cpp:490
RenderSurface * GetLinkedDepthStencil() const
Definition: RenderSurface.h:106
PODVector< bool > buttons_
Button up/down state.
Definition: Input.h:130
AutoRemoveMode autoRemove_
Automatic removal mode.
Definition: SoundSource.h:162
pugi::xpath_node_set * resultSet_
Pugixml xpath_node_set.
Definition: XMLElement.h:362
const RenderPathCommand * lightVolumeCommand_
Pointer to the light volume command if any.
Definition: View.h:433
unsigned keyFrame_
Last key frame.
Definition: AnimationState.h:67
unsigned maxScratchBufferRequest_
Largest scratch buffer request this frame.
Definition: Graphics.h:818
unsigned GetInterpolatedColor(float x, float y)
Return an interpolated color for the UI element.
Definition: UIBatch.cpp:418
bool IsScreenKeyboardVisible() const
Definition: Input.cpp:1491
ResourceRef GetHeightMapAttr() const
Return heightmap attribute.
Definition: Terrain.cpp:843
bool WriteFileID(const String &value)
Write a four-letter file ID. If the string is not long enough, spaces will be appended.
Definition: Serializer.cpp:190
Plane(const Vector3 &v0, const Vector3 &v1, const Vector3 &v2) noexcept
Construct from 3 vertices.
Definition: Plane.h:45
unsigned GetLastModifiedTime(const String &fileName) const
Returns the file's last modified time as seconds since 1.1.1970, or 0 if can not be accessed.
Definition: FileSystem.cpp:573
void HandlePostUpdate(StringHash eventType, VariantMap &eventData)
Handle logic post-update event. The HUD texts are updated here.
Definition: DebugHud.cpp:303
float finishParticleSizeVariance_
Finish particle size variance.
Definition: ParticleEffect2D.h:302
void ProcessRayQuery(const RayOctreeQuery &query, PODVector< RayQueryResult > &results) override
Process octree raycast. May be called from a worker thread.
Definition: BillboardSet.cpp:135
void Scale2D(const Vector2 &scale)
Modify scale in parent space (for Urho2D).
Definition: Node.h:289
static void RegisterObject(Context *context)
Register object factory.
Definition: NetworkPriority.cpp:51
Rect textureRect_
Texture rectangle.
Definition: StaticSprite2D.h:194
void ProcessLight(LightQueryResult &query, unsigned threadIndex)
Query for lit geometries and shadow casters for a light.
Definition: View.cpp:2276
float GetWheelSideSlipSpeed(int wheel) const
Get wheel slide speed.
Definition: RaycastVehicle.cpp:543
void Invert(bool invertAlpha=false)
Inverts the RGB channels and optionally the alpha channel as well.
Definition: Color.cpp:230
WrapMode GetWrapMode() const
Return wrap mode.
Definition: ValueAnimationInfo.h:69
void BeginBlock(StringHash eventID)
Begin timing a profiling block based on an event ID.
Definition: EventProfiler.h:77
bool GetMouseButtonDown(MouseButtonFlags button) const
Definition: Input.cpp:1354
unsigned char renderOrder_
Render order value.
Definition: Material.h:334
void SetFaceCameraMode(FaceCameraMode mode)
Definition: Text3D.cpp:371
void ProcessRayQuery(const RayOctreeQuery &query, PODVector< RayQueryResult > &results) override
Process octree raycast. May be called from a worker thread.
Definition: Skybox.cpp:53
bool operator==(const Pair< T, U > &rhs) const
Test for equality with another pair.
Definition: Pair.h:45
void SetNumParticles(unsigned num)
Definition: ParticleEmitter.cpp:283
bool IsFadingOut(const String &name) const
Return whether an animation is fading out.
Definition: AnimationController.cpp:460
RenderTargetSizeMode sizeMode_
Size mode.
Definition: RenderPath.h:82
Vector2 GetVector2(const String &name) const
Return a Vector2 attribute, or zero vector if missing.
Definition: XMLElement.cpp:950
StringHash GetType() const
Return type hash of objects created by this factory.
Definition: Object.h:227
void QueueUpdate()
Queue manual update on the render texture.
Definition: View3D.cpp:124
virtual void OnSetEnabled()
Handle enabled/disabled state change.
Definition: Component.h:62
void HandleTargetPosition(StringHash eventType, VariantMap &eventData)
Handle SmoothedTransform target position update.
Definition: RigidBody.cpp:1038
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
static void RegisterObject(Context *context)
Register object factory.
Definition: Text.cpp:78
bool SetDrawRange(PrimitiveType type, unsigned indexStart, unsigned indexCount, bool getUsedVertexRange=true)
Set the draw range.
Definition: Geometry.cpp:84
bool debugDepthTest_
Debug draw depth test mode.
Definition: PhysicsWorld2D.h:261
void SetBaseVelocity(const Vector3 &baseVelocity)
Definition: RibbonTrail.cpp:859
bool customProjection_
Use custom projection matrix flag. Used internally.
Definition: Camera.h:326
unsigned GetNumPersistentChildren() const
Calculate number of non-temporary child nodes.
Definition: Node.cpp:1868
HashMap< String, Timer > changes_
Pending changes. These will be returned and removed from the list when their timer has exceeded the d...
Definition: FileWatcher.h:73
bool IsThreadedUpdate() const
Return threaded update flag.
Definition: Scene.h:247
const Vector2 & GetVertex1() const
Definition: CollisionEdge2D.h:54
DebugLine(const Vector3 &start, const Vector3 &end, unsigned color)
Construct with start and end positions and color.
Definition: DebugRenderer.h:50
void SetContactProcessingThreshold(float threshold)
Definition: RigidBody.cpp:410
PODVector< 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:548
const Vector2 & GetOtherBodyAnchor() const
Definition: ConstraintPulley2D.h:73
Node * Clone(CreateMode mode=REPLICATED)
Clone scene node, components and child nodes. Return the clone.
Definition: Node.cpp:1101
SharedPtr< Texture2D > texture_
Texture.
Definition: SpriteSheet2D.h:86
btRigidBody * GetBody() const
Return Bullet rigid body.
Definition: RigidBody.h:183
void PushBool(bool value)
Push bool to stack.
Definition: LuaFunction.cpp:109
bool SetVariant(const Variant &value)
Set a variant attribute.
Definition: XMLElement.cpp:412
void UpdateBatches(const FrameInfo &frame) override
Calculate distance and prepare batches for rendering. May be called from worker thread(s),...
Definition: DecalSet.cpp:215
bool boundingBoxDirty_
Bounding box needs update flag.
Definition: DecalSet.h:256
String name_
Shader parameter name.
Definition: Material.h:96
ColorFrame(const Color &color)
Construct with a color and zero time.
Definition: ParticleEffect.h:54
ViewOverrideFlags GetViewOverrideFlags() const
Definition: Camera.h:161
void SetDepthWrite(bool enable)
Set depth write on/off.
Definition: OGLGraphics.cpp:1834
WeakPtr< XMLFile > appliedStyleFile_
Last applied style file.
Definition: UIElement.h:923
void PrepareNetworkUpdate()
Prepare network update by comparing attributes and marking replication states dirty as necessary.
Definition: Component.cpp:168
CollisionGeometryDataCache triMeshCache_
Cache for trimesh geometry data by model and LOD level.
Definition: PhysicsWorld.h:344
RWOpsWrapper(T &object)
Construct with object reference.
Definition: RWOpsWrapper.h:37
HashMap< String, PackageEntry > entries_
File entries.
Definition: PackageFile.h:96
void SetStaticPlane(const Vector3 &position=Vector3::ZERO, const Quaternion &rotation=Quaternion::IDENTITY)
Set as a static plane.
Definition: CollisionShape.cpp:604
const String & GetName() const
Return shader parameter name.
Definition: Material.h:88
HashSet< int > scancodePress_
Key pressed state by scancode.
Definition: Input.h:420
bool hasMutableGlyph_
Has mutable glyph.
Definition: FontFaceFreeType.h:71
void StoreScriptAttributes()
Store values of script attributes for hot reload.
Definition: ScriptInstance.cpp:728
Octant(const BoundingBox &box, unsigned level, Octant *parent, Octree *root, unsigned index=ROOT_INDEX)
Construct.
Definition: Octree.cpp:71
constexpr RandomAccessIterator(T *ptr)
Construct with an object pointer.
Definition: Iter.h:40
void HandleScenePostUpdate(StringHash eventType, VariantMap &eventData)
Handle scene post update.
Definition: ParticleEmitter2D.cpp:277
void SetWheelDampingCompression(int wheel, float compression)
Set wheel damping compression.
Definition: RaycastVehicle.cpp:494
void Decompose(Vector3 &translation, Quaternion &rotation, Vector3 &scale) const
Return decomposition to translation, rotation and scale.
Definition: Matrix3x4.cpp:41
void MixStereoToStereo(Sound *sound, int *dest, unsigned samples, int mixRate)
Mix stereo sample to stereo buffer.
Definition: SoundSource.cpp:995
void SetScriptFile(LuaFile *scriptFile)
Set script file.
Definition: LuaScriptInstance.cpp:394
float occluderSizeThreshold_
Occluder screen size threshold.
Definition: Renderer.h:635
sqlite3 * connectionImpl_
The underlying implementation connection object.
Definition: SQLiteConnection.h:62
static void RegisterObject(Context *context)
Register object factory.
Definition: ConstraintPrismatic2D.cpp:46
Vector3 GetVelocityAtPoint(const Vector3 &position) const
Return linear velocity at local point.
Definition: RigidBody.cpp:628
void RemoveResourceDir(const String &pathName)
Remove a resource load directory.
Definition: ResourceCache.cpp:183
float GetWheelRestLength(int wheel) const
Get wheel rest length.
Definition: RaycastVehicle.cpp:657
static const char * elementSemanticNames[]
D3D11 vertex semantic names. Used internally.
Definition: ShaderVariation.h:141
static const Urho3D::String & GetTypeNameStatic()
Return static type name.
Definition: UnknownComponent.h:83
PODVector< VertexElement > rawElements_
Raw vertex data elements.
Definition: Geometry.h:146
void InsertFront(T *element)
Insert an element at the beginning.
Definition: LinkedList.h:93
bool bufferSizeDirty_
Buffers need resize flag.
Definition: RibbonTrail.h:241
IntVector2 dragBeginPosition_
Original slider position at drag begin.
Definition: Slider.h:123
bool SetSize(int width, int height, int depth, unsigned format, TextureUsage usage=TEXTURE_STATIC)
Set size, format and usage. Zero size will follow application window size. Return true if successful.
Definition: Texture3D.cpp:159
b2MouseJointDef jointDef_
Box2D joint def.
Definition: ConstraintMouse2D.h:77
b2Fixture * GetFixture() const
Return fixture.
Definition: CollisionShape2D.h:116
void RemovePass(const String &name)
Remove a pass.
Definition: Technique.cpp:426
float GetBoneWeight(unsigned index) const
Return per-bone blending weight by track index.
Definition: AnimationState.cpp:389
unsigned Write(const void *data, unsigned size) override
Write bytes to the memory area.
Definition: MemoryBuffer.cpp:87
const TmxLayer2D * GetLayer(unsigned index) const
Return layer at index.
Definition: TmxFile2D.cpp:582
String ToString() const override
Convert custom value to string.
Definition: Variant.h:268
void RemoveAllTriggers()
Remove all trigger points.
Definition: Animation.cpp:364
void HandleMessage(const SLNet::AddressOrGUID &source, int packetID, int msgID, const char *data, size_t numBytes)
Handle an inbound message.
Definition: Network.cpp:294
PListValue & operator=(const PListValue &rhs)
Assign operator.
Definition: PListFile.cpp:94
bool SaveTGA(const String &fileName) const
Save in TGA format. Return true if successful.
Definition: Image.cpp:1283
Variant(const ResourceRefList &value)
Construct from a resource reference list.
Definition: Variant.h:446
JSONValue(const JSONArray &value)
Construct with a JSON array.
Definition: JSONValue.h:125
Vector3 GetContactNormal(int wheel) const
Get contact normal.
Definition: RaycastVehicle.cpp:536
void NodeAdded(Node *node)
Node added. Assign scene pointer and add to ID map.
Definition: Scene.cpp:906
Vector< SharedPtr< FileWatcher > > fileWatchers_
File watchers for resource directories, if automatic reloading enabled.
Definition: ResourceCache.h:254
BiasParameters depthBias_
Depth bias parameters.
Definition: Material.h:332
InterpMethod GetInterpolationMethod() const
Definition: ValueAnimation.h:118
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:274
void SetAlignment(HorizontalAlignment hAlign, VerticalAlignment vAlign)
Set horizontal and vertical alignment.
Definition: UIElement.cpp:670
LuaFile * GetScriptFile() const
Return script file.
Definition: LuaScriptInstance.cpp:462
void AddChild(UIElement *element)
Add a child element.
Definition: UIElement.cpp:1288
static void RegisterObject(Context *context)
Register object factory.
Definition: ScrollBar.cpp:79
float shadowMaxExtrusion_
Directional shadow max. extrusion distance.
Definition: Light.h:445
CullMode GetCullMode() const
Return hardware culling mode.
Definition: Graphics.h:556
unsigned ConvertFormatToNumComponents(unsigned format)
Convert graphics format to number of components.
Definition: FontFaceBitmap.cpp:344
void GetFaces(Vector< PODVector< DecalVertex > > &faces, Drawable *target, unsigned batchIndex, const Frustum &frustum, const Vector3 &decalNormal, float normalCutoff)
Get triangle faces from the target geometry.
Definition: DecalSet.cpp:697
void SetEffectRoundStroke(bool roundStroke)
Definition: Text.cpp:399
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
float distanceFactor_
Priority reduction distance factor.
Definition: NetworkPriority.h:79
float Random()
Return a random float between 0.0 (inclusive) and 1.0 (exclusive).
Definition: MathDefs.h:311
void AddBoundingBox(const BoundingBox &box, const Color &color, bool depthTest=true, bool solid=false)
Add a bounding box.
Definition: DebugRenderer.cpp:144
bool BeginLoadSpriter(Deserializer &source)
Begin load scml.
Definition: AnimationSet2D.cpp:283
bool Save(Serializer &dest) const override
Save resource. Return true if successful.
Definition: ValueAnimation.cpp:78
float GetShadowRange() const
Return shadow maximum range.
Definition: Light.h:102
bool persistent_
Should be persistent and not shared/reused between other buffers of same size.
Definition: RenderPath.h:96
bool setInstanceDefault_
When true, store the attribute value as instance's default value (internal use only).
Definition: Serializable.h:152
bool IsSoundTypePaused(const String &type) const
Return whether specific sound type has been paused.
Definition: Audio.cpp:216
bool FilterImplicitAttributes(XMLElement &dest) const override
Filter implicit attributes in serialization process.
Definition: ScrollView.cpp:379
Vector3(const IntVector3 &vector) noexcept
Construct from an IntVector3.
Definition: Vector3.h:215
TileMapLayerType2D GetLayerType() const
Definition: TileMapLayer2D.cpp:269
void OnWorldBoundingBoxUpdate() override
Recalculate the world-space bounding box.
Definition: DecalSet.cpp:665
bool Rehash(unsigned numBuckets)
Rehash to a specific bucket count, which must be a power of two. Return true if successful.
Definition: HashMap.h:509
ConstIterator & operator--()
Predecrement the pointer.
Definition: HashMap.h:196
PODVector< float > axes_
Axis position from -1 to 1.
Definition: Input.h:134
const Vector2 & GetTarget() const
Definition: ConstraintMouse2D.h:58
@ AM_DEFAULT
Attribute used for both file serialization and network replication (default).
Definition: Attribute.h:43
Vector4 GetReflectionPlaneAttr() const
Return reflection plane attribute.
Definition: Camera.cpp:626
Vector< SharedPtr< Connection > > GetClientConnections() const
Definition: Network.cpp:673
void SetMouseWheel(int delta)
Handle mouse wheel change.
Definition: Input.cpp:1815
unsigned NextPowerOfTwo(unsigned value)
Round up to next power of two.
Definition: MathDefs.h:267
float finishParticleSize_
Finish particle size.
Definition: ParticleEffect2D.h:300
T * GetComponent() const
Template version of returning a component in the same scene node by type.
Definition: Component.h:155
bool GetWEIGHT_NLERP() const
Need these wrapper functions flags of GetFeature/SetFeature can be correctly exposed to the editor an...
const PODVector< Light * > & GetLights() const
Return per-pixel lights.
Definition: Drawable.h:301
void SetParticleLifespanVariance(float particleLifespanVariance)
Set particle lifespan variance.
Definition: ParticleEffect2D.cpp:324
const Vector2 & GetVertex(unsigned index) const
Return vertex.
Definition: CollisionPolygon2D.h:56
EmitterType2D GetEmitterType() const
Return emitter type.
Definition: ParticleEffect2D.h:206
bool HasShaderParameter(StringHash param)
Check whether a shader parameter exists on the currently set shaders.
Definition: OGLGraphics.cpp:1462
void Remove()
Remove from the scene node. If no other shared pointer references exist, causes immediate deletion.
Definition: Component.cpp:144
void Update(const FrameInfo &frame) override
Update before octree reinsertion. Is called from a main thread.
Definition: RibbonTrail.cpp:201
bool operator<(const WeakPtr< U > &rhs) const
Test for less than with another weak pointer.
Definition: Ptr.h:436
String(const char *str, unsigned length)
Construct from a char array and length.
Definition: Str.h:97
Intersection IsInsideFast(const Sphere &sphere) const
Test if another sphere is (partially) inside or outside.
Definition: Sphere.h:179
void Clear()
End Shape Generation Helper Functions.
Definition: CustomGeometry.cpp:492
void SetRotation(const Quaternion &rotation)
Definition: Constraint.cpp:187
UnknownComponent(Context *context)
Construct.
Definition: UnknownComponent.cpp:84
DeferredLightPSVariation
Deferred light volume pixels shader variations.
Definition: Renderer.h:121
Definition: UISelectable.h:31
void SetPassword(const String &password)
Set password for the client/server communcation.
Definition: Network.cpp:363
bool bidirectional_
Bidirectional flag.
Definition: OffMeshConnection.h:94
PODVector< float > distances_
Distances.
Definition: Renderer2D.h:61
virtual bool LoadJSON(const JSONValue &source)
Load from JSON data. Return true if successful.
Definition: Serializable.cpp:419
const pugi::xpath_node * xpathNode_
Pugixml xpath_node.
Definition: XMLElement.h:322
unsigned requestedLevels_
Requested mip levels.
Definition: Texture.h:247
void OnSceneSet(Scene *scene) override
Handle scene being assigned.
Definition: PhysicsWorld.cpp:779
Node * FindNode(const T &key, unsigned hashKey, Node *&previous) const
Find a node and the previous node from the buckets. Do not call if the buckets have not been allocate...
Definition: HashSet.h:539
~AnimatedSprite2D() override
Destruct.
Definition: AnimatedSprite2D.cpp:67
void SetWorldTransform(const Vector3 &position, const Quaternion &rotation)
Set both position and rotation in world space as an atomic operation.
Definition: Node.cpp:539
~SpriterInstance()
Destructor.
Definition: SpriterInstance2D.cpp:45
void ResetDeepEnabled()
Reset enabled state to the element's remembered state prior to calling SetDeepEnabled.
Definition: UIElement.cpp:901
unsigned fragment_
Current fragment index.
Definition: Connection.h:96
bool emitting_
Currently emitting flag.
Definition: ParticleEmitter2D.h:165
static void RegisterObject(Context *context)
Register object factory.
Definition: CollisionEdge2D.cpp:51
void SetWheelRollInfluence(int wheel, float rollInfluence)
Set wheel roll influence.
Definition: RaycastVehicle.cpp:522
void GetDrawablesInternal(OctreeQuery &query, bool inside) const
Return drawable objects by a query, called internally.
Definition: Octree.cpp:229
void SetCoordinateSystem(const IntVector3 &coordinateSystem=RIGHT_FORWARD_UP)
Definition: RaycastVehicle.cpp:702
void ApplyWorldTransform()
Apply world transform from the Box2D body. Called by PhysicsWorld2D.
Definition: RigidBody2D.cpp:421
static unsigned GetRGBAFloat32Format()
Return the API-specific RGBA 32-bit float texture format.
Definition: OGLGraphics.cpp:2607
unsigned GetRenderBuffer() const
Return OpenGL renderbuffer if created.
Definition: RenderSurface.h:131
float GetWheelSuspensionStiffness(int wheel) const
Get suspension stiffness for particular wheel.
Definition: RaycastVehicle.cpp:459
T * Cast()
Cast the object to specified most derived class.
Definition: Object.h:113
virtual void OnCrowdUpdate(dtCrowdAgent *ag, float dt)
Handle crowd agent being updated. It is called by CrowdManager::Update() via callback.
Definition: CrowdAgent.cpp:517
bool useTextureRect_
Use texture rectangle flag.
Definition: StaticSprite2D.h:188
SDL_GLContext context_
SDL OpenGL context.
Definition: OGLGraphicsImpl.h:112
void SetVertexDistance(float length)
Definition: RibbonTrail.cpp:818
PODVector< ReplicationState * > replicationStates_
Replication states that are tracking this object.
Definition: ReplicationState.h:130
AsyncLoadState asyncLoadState_
Asynchronous loading state.
Definition: Resource.h:117
bool useClipPlane_
Custom clip plane enable flag.
Definition: Graphics.h:898
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:385
void ScanDirInternal(Vector< String > &result, String path, const String &startPath, const String &filter, unsigned flags, bool recursive) const
Scan directory, called internally.
Definition: FileSystem.cpp:791
VariantVector GetParticleBillboardsAttr() const
Return billboards attribute. Returns billboard amount only if particles are not to be serialized.
Definition: ParticleEmitter.cpp:412
void SetHeightMapAttr(const ResourceRef &value)
Set heightmap attribute.
Definition: Terrain.cpp:797
IntVector2 GetRenderTargetDimensions() const
Return current rendertarget width and height.
Definition: OGLGraphics.cpp:2186
Mutex rendererMutex_
Mutex for shadow camera allocation.
Definition: Renderer.h:601
SharedPtr< ScrollBar > horizontalScrollBar_
Horizontal scroll bar.
Definition: ScrollView.h:178
bool IsInf() const
Return whether any element is Inf.
Definition: Matrix3x4.h:681
bool TakeScreenShot(Image &destImage)
Take a screenshot. Return true if successful.
Definition: OGLGraphics.cpp:557
virtual bool FilterImplicitAttributes(XMLElement &dest) const
Filter implicit attributes in serialization process.
Definition: UIElement.cpp:2021
Vector3 ToHSL() const
Return HSL color-space representation as a Vector3; the RGB values are clipped before conversion but ...
Definition: Color.cpp:53
UniquePtr< btBvhTriangleMeshShape > shape_
Bullet triangle mesh collision shape.
Definition: CollisionShape.h:86
unsigned dataSize_
Morphed vertices data size as bytes.
Definition: Model.h:48
PODVector< T > & operator=(const PODVector< T > &rhs)
Assign from another vector.
Definition: Vector.h:736
virtual void OnNodeSet(Node *node)
Handle scene node being assigned at creation.
Definition: Component.cpp:238
NetworkState * GetNetworkState() const
Return the network attribute state, if allocated.
Definition: Serializable.h:137
void SendAttributeAnimationRemovedEvent(const String &name)
Send attribute animation remove event.
Definition: ObjectAnimation.cpp:270
UIElement * GetSelectedItem() const
Definition: DropDownList.cpp:218
void UpdateInternal(float timeStep)
Actually update sound sources with the specific timestep. Called internally.
Definition: Audio.cpp:328
bool FlipHorizontal()
Flip image horizontally. Return true if successful.
Definition: Image.cpp:1031
Vector2 sourcePositionVariance_
Source position variance.
Definition: ParticleEffect2D.h:262
void SetCommandShaderParameters(const RenderPathCommand &command)
Set command's shader parameters if any. Called internally by View.
Definition: View.cpp:763
float maxNetworkAngularVelocity_
Maximum angular velocity for network replication.
Definition: PhysicsWorld.h:362
void RemoveConstraint(Constraint *constraint)
Remove a constraint that refers to this rigid body.
Definition: RigidBody.cpp:868
void SetCustomVariantValue(const CustomVariantValue &value)
Set custom value.
Definition: Variant.cpp:404
unsigned ByteOffsetUTF8(unsigned index) const
Return byte offset to char in UTF8 content.
Definition: Str.cpp:798
static unsigned GetRGBAFloat16Format()
Return the API-specific RGBA 16-bit float texture format.
Definition: OGLGraphics.cpp:2598
void SetVertex1(const Vector2 &vertex)
Definition: CollisionEdge2D.cpp:61
SharedPtr< AnimationSet2D > animationSet_
Animation set.
Definition: AnimatedSprite2D.h:142
void SetOtherRotation(const Quaternion &rotation)
Definition: Constraint.cpp:229
SharedPtr< RenderSurface > renderSurface_
Render surface.
Definition: Texture2D.h:89
unsigned viewFrameNumber_
Last visible frame number.
Definition: Drawable.h:387
bool RequireSDL(unsigned int sdlFlags)
Initialises the specified SDL systems, if not already. Returns true if successful....
Definition: Context.cpp:253
void EndBlock()
End timing the current profiling block.
Definition: Profiler.h:195
View * GetSourceView() const
Return the source view that was already prepared. Used when viewports specify the same culling camera...
Definition: View.cpp:684
void OnResize(const IntVector2 &newSize, const IntVector2 &delta) override
React to resize.
Definition: Slider.cpp:161
bool SetVertexBuffers(const PODVector< VertexBuffer * > &buffers, unsigned instanceOffset=0)
Definition: OGLGraphics.cpp:969
FontHintLevel
Font hinting level (only used for FreeType fonts).
Definition: UI.h:36
bool animationEnabled_
Animation enabled.
Definition: Animatable.h:153
bool GetData(unsigned layer, unsigned level, void *dest) const
Get data from a mip level. The destination buffer must be big enough. Return true if successful.
Definition: OGLTexture2DArray.cpp:371
SharedPtr< Image > GetImage() const
Get image data from zero mip level. Only RGB and RGBA textures are supported.
Definition: Texture2D.cpp:176
void AddSoundSource(SoundSource *soundSource)
Add a sound source to keep track of. Called by SoundSource.
Definition: Audio.cpp:226
void OnSceneSet(Scene *scene) override
Handle scene being assigned.
Definition: LogicComponent.cpp:90
float GetMaxSuspensionTravel(int wheel)
Get maximum suspension travel value.
Definition: RaycastVehicle.cpp:613
Spriter::SpriterData * GetSpriterData() const
Return spriter data.
Definition: AnimationSet2D.h:80
WeakPtr< RigidBody2D > rigidBody_
Rigid body.
Definition: CollisionShape2D.h:127
const Variant & GetShaderParameter(const String &name) const
Definition: RenderPath.cpp:510
void HandleChangeLanguage(StringHash eventType, VariantMap &eventData)
Handle change Language.
Definition: Text.cpp:362
float GetDampingRatio() const
Definition: ConstraintDistance2D.h:73
void PatchReplace(const pugi::xml_node &patch, pugi::xpath_node &original) const
Replace a node or attribute in the Patch.
Definition: XMLFile.cpp:246
unsigned maxAgents_
The maximum number of agents the crowd can manage.
Definition: CrowdManager.h:199
bool subscribed_
Subscribed to scene post update event flag.
Definition: DecalSet.h:262
float GetWheelRollInfluence(int wheel) const
Get wheel roll influence.
Definition: RaycastVehicle.cpp:548
Vector< Pair< WeakPtr< RenderSurface >, WeakPtr< Viewport > > > queuedViewports_
Render surface viewports queued for update.
Definition: Renderer.h:591
int layoutElementMaxSize_
Layout element maximum size in layout direction.
Definition: UIElement.h:842
bool WriteVector2(const Vector2 &value)
Write a Vector2.
Definition: Serializer.cpp:111
WeakPtr< PhysicsWorld > physicsWorld_
Physics world.
Definition: CollisionShape.h:305
void SetConnectPending(bool connectPending)
Set the connection pending status. Called by Network.
Definition: Connection.cpp:244
Vector2 ownerBodyGroundAnchor_
Owner body ground anchor.
Definition: ConstraintPulley2D.h:87
void SetTags(const StringVector &tags)
Set tags. Old tags are overwritten.
Definition: UIElement.cpp:1459
unsigned resolveDestFBO_
Write frame buffer for multisampled texture resolves.
Definition: OGLGraphicsImpl.h:134
~ShaderPrecache() override
Destruct. Write the collected shaders to XML.
Definition: ShaderPrecache.cpp:67
Tile2D * GetTile(int x, int y) const
Return tile.
Definition: TmxFile2D.cpp:219
Vector3 boundingBoxMinPoint_
Bounding box min point.
Definition: ParticleEmitter2D.h:169
void SetExecuteConsoleCommands(bool enable)
Set whether to execute engine console commands as script code.
Definition: LuaScript.cpp:322
TextureFilterMode GetTextureFilterMode() const
Definition: Renderer.h:318
Input subsystem. Converts operating system window messages to input state and events.
Definition: Input.h:144
static unsigned Calculate(const char *str, unsigned hash=0)
Calculate hash value from a C string.
Definition: StringHash.cpp:71
void SetValue(const T &value)
Set value.
Definition: Variant.h:236
unsigned controlledIdAttr_
Controlled ID for the SplinePath.
Definition: SplinePath.h:152
void RemoveAllComponents()
Remove all components from this node.
Definition: Node.cpp:1078
SoundSource3D(Context *context)
Construct.
Definition: SoundSource3D.cpp:46
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:96
DragAndDropModeFlags GetDragDropMode() const
Definition: UIElement.h:633
bool dragBeginPending
Flag for a drag start event pending.
Definition: UI.h:280
void SetScene(Scene *scene)
Set scene. Called by Scene.
Definition: Node.cpp:1444
void RemoveSubsystem()
Template version of removing a subsystem.
Definition: Context.h:263
void UnsuppressMouseMove()
Unsuppress mouse movement.
Definition: Input.cpp:1855
const Color & GetColorAttr() const
Return color attribute. Uses just the top-left color.
Definition: UIElement.h:748
void SetIncludeFlags(unsigned queryFilterType, unsigned short flags)
Set the include flags for the specified query filter type.
Definition: CrowdManager.cpp:311
bool GetDrawDebug() const
Return whether should draw debug geometry.
Definition: View.h:154
bool EndLoad() override
Finish resource loading. Always called from the main thread. Return true if successful.
Definition: Texture2D.cpp:94
void ReloadShaders()
Force reload of shaders.
Definition: Renderer.cpp:526
void GetFace(Vector< PODVector< 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:810
float DotProduct(const Vector3 &rhs) const
Calculate dot product.
Definition: Vector3.h:353
bool GetEnableMotor() const
Definition: ConstraintPrismatic2D.h:90
void GetChildrenWithComponent(PODVector< Node * > &dest, StringHash type, bool recursive=false) const
Return child scene nodes with a specific component.
Definition: Node.cpp:1256
unsigned obstacleAvoidanceType_
Agent's obstacle avoidance type, it is an index to the obstacle avoidance array configured in Detour ...
Definition: CrowdAgent.h:257
MouseButtonFlags mouseButtonDown_
Mouse buttons' down state.
Definition: Input.h:432
void UpdateBatches(const FrameInfo &frame) override
Calculate distance and prepare batches for rendering. May be called from worker thread(s),...
Definition: Skybox.cpp:58
Vector< PODVector< Matrix3x4 * > > geometrySkinMatrixPtrs_
Subgeometry skinning matrix pointers, if more bones than skinning shader can manage.
Definition: AnimatedModel.h:237
Sphere(const Frustum &frustum) noexcept
Construct from a frustum.
Definition: Sphere.h:69
void SetMaxForce(float maxForce)
Definition: ConstraintFriction2D.cpp:68
virtual void OnWheel(int delta, MouseButtonFlags buttons, QualifierFlags qualifiers)
React to mouse wheel.
Definition: UIElement.h:186
const ResourceRefList & GetResourceRefList() const
Return a resource reference list or empty on type mismatch.
Definition: Variant.h:1227
Vector< SharedPtr< Node > > children_
Child scene nodes.
Definition: Node.h:749
Texture2DArray(Context *context)
Construct.
Definition: Texture2DArray.cpp:46
float GetMaxMotorForce() const
Definition: ConstraintPrismatic2D.h:94
const String & GetDefinesClipPlane()
Return defines with the CLIPPLANE define appended. Used internally on Direct3D11 only,...
Definition: ShaderVariation.h:138
HashMap< WeakPtr< UIElement >, DragData * > dragElements_
Currently dragged elements.
Definition: UI.h:468
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:67
unsigned localComponentID_
Next free local component ID.
Definition: Scene.h:341
float GetWheelDampingCompression(int wheel) const
Get wheel damping compression.
Definition: RaycastVehicle.cpp:501
int location_
OpenGL uniform location.
Definition: ShaderVariation.h:59
int fontOversampling_
Horizontal oversampling for subpixel fonts (default is 2).
Definition: UI.h:452
unsigned GetShadowMask(Drawable *drawable)
Return the drawable's shadow mask, considering also its zone.
Definition: View.h:297
WeakPtr< AnimatedModel > model_
Animated model (model mode).
Definition: AnimationState.h:177
Base class for resources that support arbitrary metadata stored. Metadata serialization shall be impl...
Definition: Resource.h:121
ParticleEffect * GetEffect() const
Definition: ParticleEmitter.cpp:353
VariantVector GetParticlesAttr() const
Return particles attribute. Returns particle amount only if particles are not to be serialized.
Definition: ParticleEmitter.cpp:387
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:351
bool Equals(const Quaternion &rhs) const
Test for equality with another quaternion with epsilon.
Definition: Quaternion.h:413
void OnSetEnabled() override
Handle enabled/disabled state change.
Definition: RaycastVehicle.cpp:195
bool operator==(const HashMap< T, U > &rhs) const
Test for equality with another hash map.
Definition: HashMap.h:295
unsigned GetNumColumns() const
Return number of columns in the resultset or 0 if there is no resultset.
Definition: ODBCResult.h:45
void SetModalFrameSize(const IntVector2 &size)
Definition: Window.cpp:310
void SetDisableCollision(bool disable)
Definition: Constraint.cpp:326
StringHash typeHash_
Type of stored component.
Definition: UnknownComponent.h:91
const Vector< SharedPtr< UIElement > > & GetChildren() const
Return immediate child elements.
Definition: UIElement.h:669
const Vector< AttributeInfo > * GetAttributes(StringHash type) const
Return attribute descriptions for an object type, or null if none defined.
Definition: Context.h:170
bool barScrolling_
Used to prevent touch scroll - scroll bar conflict.
Definition: ScrollView.h:208
HashSet< String > usedCombinations_
Already encountered shader combinations.
Definition: ShaderPrecache.h:60
bool Open(const String &fileName, unsigned startOffset=0)
Open the package file. Return true if successful.
Definition: PackageFile.cpp:53
SharedPtr< Texture > rampTexture_
Range attenuation texture.
Definition: Light.h:419
BoundingBox GetWorldBoundingBox() const
Definition: CollisionShape.cpp:824
void SetDepthBias(const BiasParameters ¶meters)
Definition: Material.cpp:1089
float tangentialAcceleration_
Tangential acceleration.
Definition: ParticleEffect2D.h:280
bool useTextureUnits_[MAX_TEXTURE_UNITS]
Texture unit use.
Definition: OGLShaderProgram.h:97
HashMap< unsigned, Vector< SharedPtr< TileMapObject2D > > > gidToCollisionShapeMapping_
Gid to tile collision shape mapping.
Definition: TmxFile2D.h:226
const String & GetProperty(const String &name) const
Return property value.
Definition: TileMapDefs2D.cpp:154
String SanitateResourceDirName(const String &name) const
Remove unnecessary constructs from a resource directory name and ensure it to be an absolute path.
Definition: ResourceCache.cpp:872
SmoothingTypeFlags smoothingMask_
Active smoothing operations bitmask.
Definition: SmoothedTransform.h:103
bool useFogColor_
Use fog color for clearing.
Definition: RenderPath.h:190
Vector< Quaternion > origRotation_
All wheels original rotations. These are applied in addition to wheel rotations by btRaycastVehicle.
Definition: RaycastVehicle.h:203
float timeAcc_
Time accumulator for non-interpolated mode.
Definition: PhysicsWorld.h:360
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
bool WriteResourceRef(const ResourceRef &value)
Write a resource reference.
Definition: Serializer.cpp:217
const TileMapInfo2D & GetInfo() const
Return Tilemap information.
Definition: TmxFile2D.h:184
Vector< TrailPoint * > sortedPoints_
Trail pointers for sorting.
Definition: RibbonTrail.h:273
IntRect GetIntRect(const String &name) const
Return an IntRect attribute, or default if missing.
Definition: XMLElement.cpp:822
List< int > availableTouchIDs_
List that maps between event touch IDs and normalised touch IDs.
Definition: Input.h:424
CollisionShape(Context *context)
Construct.
Definition: CollisionShape.cpp:456
Vector< T > operator+(const T &rhs) const
Add an element.
Definition: Vector.h:144
Polyhedron(const Frustum &frustum)
Construct from a frustum.
Definition: Polyhedron.h:64
void BeginSendEvent()
Begin event send. When receivers are removed during send, group has to be cleaned up afterward.
Definition: Context.cpp:57
static void RegisterObject(Context *context)
Register object factory.
Definition: CollisionCircle2D.cpp:48
void HandlePostUpdate(StringHash eventType, VariantMap &eventData)
Handle the application post-update.
Definition: Console.cpp:549
Vector3 worldPosition_
New world position.
Definition: PhysicsWorld.h:88
bool cameraZoneOverride_
Camera zone's override flag.
Definition: View.h:370
void UpdateBatch()
Update the batch (geometry type, shader data).
Definition: DecalSet.cpp:1089
void SetGlobalShaderParameters()
Set global (per-frame) shader parameters. Called by Batch and internally by View.
Definition: View.cpp:689
StringHashRegister(bool threadSafe)
Construct. threadSafe controls whether the RegisterString and GetStringCopy are thread-safe.
Definition: StringHashRegister.cpp:36
static void RegisterObject(Context *context)
Register object factory.
Definition: Sprite.cpp:53
bool Save(Serializer &dest) const override
Save as binary data. Return true if successful.
Definition: Component.cpp:65
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:615
void SetViewportIndex(unsigned index)
Set index of viewport to be used for screen coordinate translation.
Definition: UIComponent.cpp:241
Iterator Insert(const Iterator &dest, const PODVector< T > &vector)
Insert a vector by iterator.
Definition: Vector.h:902
bool WriteIntVector3(const IntVector3 &value)
Write an IntVector3.
Definition: Serializer.cpp:101
bool EndLoad() override
Finish resource loading. Always called from the main thread. Return true if successful.
Definition: Model.cpp:321
float GetSoundSourceMasterGain(StringHash typeHash) const
Return sound type specific gain multiplied by master gain.
Definition: Audio.cpp:242
void SetSelectionAttr(unsigned index)
Set selection attribute.
Definition: DropDownList.cpp:228
bool Contains(char c, bool caseSensitive=true) const
Return whether contains a specific character.
Definition: Str.h:450
void Swap(VectorBase &rhs)
Swap with another vector.
Definition: VectorBase.h:53
Color startColorVariance_
Start color variance.
Definition: ParticleEffect2D.h:288
String(wchar_t *str)
Construct from a null-terminated wide character array.
Definition: Str.h:116
void PushUserType(const T &userType)
Push user type to stack.
Definition: LuaFunction.h:74
void Insert(unsigned pos, const JSONValue &value)
Insert an JSON value at position.
Definition: JSONValue.cpp:218
Weak array pointer template class. Uses non-intrusive reference counting.
Definition: ArrayPtr.h:231
void ResumeAll()
Resume playback of all sound types.
Definition: Audio.cpp:185
virtual void OnTextInput(const String &text)
React to text input event.
Definition: UIElement.h:190
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:380
void ResizeRootElement()
Resize root element to effective size.
Definition: UI.cpp:2164
const char * GetAttributeCString(const char *name) const
Return attribute as C string, or null if missing.
Definition: XMLElement.cpp:703
void OnSceneSet(Scene *scene) override
Subscribe to drawable update finished event here.
Definition: IKSolver.cpp:519
float nearClip_
Near clip distance.
Definition: OcclusionBuffer.h:211
const Quaternion & GetOtherRotation() const
Definition: Constraint.h:146
void SetGeometryBoneMappings(const Vector< PODVector< unsigned > > &geometryBoneMappings)
Set bone mappings when model has more bones than the skinning shader can handle.
Definition: Model.cpp:607
void ApplyTorque(const Vector3 &torque)
Apply torque.
Definition: RigidBody.cpp:534
Vector3 LocalToWorld(const Vector3 &position) const
Convert a local space position to world space.
Definition: Node.cpp:1190
void SetMouseVisible(bool enable, bool suppressEvent=false)
Set whether the operating system mouse cursor is visible. When not visible (default),...
Definition: Input.cpp:556
static unsigned alphaPassIndex
Index for alpha pass. Initialized once GetPassIndex() has been called for the first time.
Definition: Technique.h:294
SharedPtr< Geometry > dirLightGeometry_
Directional light quad geometry.
Definition: Renderer.h:551
SharedPtr< Image > GetDecompressedImage() const
Return decompressed image data in RGBA format.
Definition: Image.cpp:2101
bool HasProperty(const String &name) const
Return has property.
Definition: TileMapLayer2D.cpp:254
void ProcessRayQuery(const RayOctreeQuery &query, PODVector< RayQueryResult > &results) override
Process octree raycast. May be called from a worker thread.
Definition: CustomGeometry.cpp:80
void SetGeometryBoneMappings()
Set mapping of subgeometry bone indices.
Definition: AnimatedModel.cpp:1223
void RemoveCommands(const String &tag)
Remove commands by tag name.
Definition: RenderPath.cpp:489
void PushUserType(void *userType, const char *typeName)
Push user type to stack.
Definition: LuaFunction.cpp:137
Vector2 inputScale_
Input coordinate scaling. Non-unity when window and backbuffer have different sizes (e....
Definition: Input.h:444
void SetShaderParameter(StringHash param, const float *data, unsigned count)
Set shader float constants.
Definition: OGLGraphics.cpp:1151
static const unsigned MIN_BUCKETS
Initial amount of buckets.
Definition: HashBase.h:104
void SetWheelDataAttr(const VariantVector &value)
Set wheel data attribute during loading.
Definition: RaycastVehicle.cpp:759
PODVector< unsigned > numAreas_
Number of configured area in each filter type. Limit to DT_MAX_AREAS.
Definition: CrowdManager.h:205
Node * InsertNode(const T &key, const U &value, bool findExisting=true)
Insert a key and value and return either the new or existing node.
Definition: HashMap.h:659
virtual bool Save(Serializer &dest) const
Save as binary data. Return true if successful.
Definition: Serializable.cpp:318
unsigned numWorldTransforms_
Number of world transforms.
Definition: Drawable.h:102
static ThreadID mainThreadID
Main thread's thread ID.
Definition: Thread.h:78
const Vector3 & GetTargetPosition() const
Definition: IKEffector.cpp:112
bool isServer_
Whether we started as server or not.
Definition: Network.h:188
bool useSystemClipboard_
Flag for using operating system clipboard instead of internal.
Definition: UI.h:440
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:173
b2JointDef * GetJointDef() override
Return joint def.
Definition: ConstraintRevolute2D.cpp:161
long long GetInt64() const
Return 64 bit int or zero on type mismatch. Floats and doubles are converted.
Definition: Variant.h:1101
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:476
void AddConstraint(Constraint *constraint)
Add a constraint that refers to this rigid body.
Definition: RigidBody.cpp:863
HashMap< unsigned, ComponentReplicationState > componentStates_
Components by ID.
Definition: ReplicationState.h:167
void SetOutput(unsigned index, const String &name, CubeMapFace face=FACE_POSITIVE_X)
Set output rendertarget name and face index for cube maps.
Definition: RenderPath.cpp:258
void MakeCircle(float radius=1, size_t iterations=300, float startTheta=0, float endTheta=2 *M_PI, bool clear=true, int geomNum=0)
Definition: CustomGeometry.cpp:242
ConstIterator(const Iterator &rhs)
Construct from a non-const iterator.
Definition: List.h:119
EventProfilerBlock(EventProfilerBlock *parent, StringHash eventID)
Construct with the specified parent block and event ID.
Definition: EventProfiler.h:36
const T * operator->() const
Point to the node value.
Definition: List.h:162
void ApplyNodeWorldScale() override
Apply node world scale.
Definition: CollisionCircle2D.cpp:85
const IntVector2 & GetPressedChildOffset() const
Definition: Button.h:86
LineEdit * fileNameEdit_
Filename editor.
Definition: FileSelector.h:179
RenderSurfaceUpdateMode
Update mode for render surface viewports.
Definition: GraphicsDefs.h:292
ListIteratorBase(ListNodeBase *ptr)
Construct with a node pointer.
Definition: ListBase.h:63
void RefreshFiles()
Refresh the directory listing.
Definition: FileSelector.cpp:287
SharedPtr< RenderSurface > renderSurface_
Render surface.
Definition: Texture2DArray.h:91
float GetShaderParameterAnimationSpeed(const String &name) const
Return shader parameter animation speed.
Definition: Material.cpp:1221
Variant GetAnimationValue(float scaledTime) const
Return animation value.
Definition: ValueAnimation.cpp:341
void SetPosition(float factor)
Set the controlled Node's position on the SplinePath.
Definition: SplinePath.cpp:205
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:407
ResourceRef GetSpriteAttr() const
Return sprite attribute.
Definition: ParticleEmitter2D.cpp:179
bool EndLoad() override
Finish resource loading. Always called from the main thread. Return true if successful.
Definition: Shader.cpp:112
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:586
VariantVector GetShapesAttr() const
Return shapes attribute.
Definition: Cursor.cpp:235
void SetSize(unsigned dataSize)
Set sound size in bytes. Also resets the sound to be uncompressed and one-shot.
Definition: Sound.cpp:223
Iterator Erase(const Iterator &it)
Erase an element by iterator. Return iterator to the next element.
Definition: Vector.h:372
void Update(float timeStep) override
Perform UI element update.
Definition: ToolTip.cpp:52
const Vector< AnimationControl > & GetAnimations() const
Return the animation control structures for inspection.
Definition: AnimationController.h:177
UniquePtr< btCompoundShape > shiftedCompoundShape_
Compound collision shape with center of mass offset applied.
Definition: RigidBody.h:327
@ USE_FIXEDUPDATE
Bitmask for using the physics update event.
Definition: LogicComponent.h:42
bool HasChild(const String &name) const
Return whether has a child element.
Definition: XMLElement.cpp:591
IntRect(const IntVector2 &min, const IntVector2 &max) noexcept
Construct from minimum and maximum vectors.
Definition: Rect.h:293
unsigned GetLightMask(Drawable *drawable)
Return the drawable's light mask, considering also its zone.
Definition: View.h:291
unsigned vertexSize_
Vertex size in bytes.
Definition: OcclusionBuffer.h:72
void EraseSwap(unsigned pos, unsigned length=1)
Erase a range of elements by swapping elements from the end of the array.
Definition: Vector.h:348
bool IsZero() const override
Compare to zero.
Definition: Variant.h:266
void * Lock(unsigned start, unsigned count, bool discard=false)
Lock the buffer for write-only editing. Return data pointer if successful. Optionally discard data ou...
Definition: OGLVertexBuffer.cpp:165
Scrollable UI element for showing a (possibly large) child element.
Definition: ScrollView.h:34
PODVector< Drawable * > litGeometries_
Lit geometries.
Definition: View.h:60
StencilOp GetStencilFail() const
Return stencil operation to do if stencil test fails.
Definition: Graphics.h:592
void RemoveRigidBody(RigidBody2D *rigidBody)
Remove rigid body.
Definition: PhysicsWorld2D.cpp:442
Quaternion GetQuaternion(const String &name) const
Return a quaternion attribute, or default if missing.
Definition: XMLElement.cpp:837
BillboardSet(Context *context)
Construct.
Definition: BillboardSet.cpp:77
bool dxtTextureSupport_
DXT format support flag.
Definition: Graphics.h:798
Variant(const ResourceRef &value)
Construct from a resource reference.
Definition: Variant.h:440
void * decoder_
Decoder state.
Definition: OggVorbisSoundStream.h:50
void HandleScriptFileReloadFinished(StringHash eventType, VariantMap &eventData)
Handle script file reload finished.
Definition: ScriptInstance.cpp:955
HashMap< 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:340
bool IsType() const
Return whether the specified type is stored.
Definition: Variant.h:187
void SetFontSubpixelThreshold(float threshold)
Definition: UI.cpp:718
ResourceRef(const String &type, const String &name)
Construct with type and resource name.
Definition: Variant.h:108
bool EndLoad() override
Finish resource loading. Always called from the main thread. Return true if successful.
Definition: Material.cpp:246
IntVector2 GetEffectiveMinSize() const
Return effective minimum size, also considering layout. Used internally.
Definition: UIElement.cpp:1870
void SetFixedWidth(int width)
Set fixed width.
Definition: UIElement.cpp:658
Variant & operator=(const Variant &rhs)
Assign from another variant.
Definition: Variant.cpp:77
void BeginInterval()
Begin new profiling interval.
Definition: Profiler.h:113
void HandleBeginViewUpdate(StringHash eventType, VariantMap &eventData)
Handle view update begin event. Determine Drawable2D's and their batches here.
Definition: Renderer2D.cpp:320
void Rotate(const Quaternion &delta, TransformSpace space=TS_LOCAL)
Rotate the scene node in the chosen transform space.
Definition: Node.cpp:587
void SetBox(const Vector3 &size, const Vector3 &position=Vector3::ZERO, const Quaternion &rotation=Quaternion::IDENTITY)
Set as a box.
Definition: CollisionShape.cpp:570
void AddRef()
Increment reference count. Can also be called outside of a SharedPtr for traditional reference counti...
Definition: RefCounted.cpp:54
PODVector< PrimitiveType > primitiveTypes_
Primitive type per geometry.
Definition: CustomGeometry.h:173
Quaternion Conjugate() const
Return conjugate.
Definition: Quaternion.h:425
unsigned lightPassIndex_
Index of the forward light pass.
Definition: View.h:427
unsigned long long GetVertexLightQueueHash(const PODVector< Light * > &vertexLights)
Return hash code for a vertex light queue.
Definition: View.h:303
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:526
Vector< OcclusionBufferData > buffers_
Highest-level buffer data per thread.
Definition: OcclusionBuffer.h:183
bool WriteVariant(const Variant &value)
Write a variant.
Definition: Serializer.cpp:237
void SetPacketSizeLimit(int limit)
Buffered packet size limit, when reached, packet is sent out immediately.
Definition: Connection.cpp:1182
bool HasSubscribedToEvent(StringHash eventType) const
Return whether has subscribed to an event without specific sender.
Definition: Object.cpp:436
static void RegisterObject(Context *context)
Register Obstacle with engine context.
Definition: Obstacle.cpp:54
SharedPtr< RigidBody2D > bodyA_
Rigid body A.
Definition: PhysicsWorld2D.h:285
TileMap2D * GetTileMap() const
Return tile map.
Definition: TileMapLayer2D.cpp:249
virtual Animatable * FindAttributeAnimationTarget(const String &name, String &outName)
Find target of an attribute animation from object hierarchy by name.
Definition: Animatable.cpp:466
void SetAttenuation(float attenuation)
Set attenuation. 1.0 is unaltered. Used for distance attenuated playback.
Definition: SoundSource.cpp:296
static void RegisterObject(Context *context)
Register object factory.
Definition: Window.cpp:62
AreaAllocator allocator_
Glyph area allocator.
Definition: FontFaceFreeType.h:73
void Define(const Vector3 &origin, const Vector3 &direction)
Define from origin and direction. The direction will be normalized.
Definition: Ray.h:63
const T & At(unsigned index) const
Return const element at index.
Definition: Vector.h:833
SharedPtr< Image > GetImage(CubeMapFace face) const
Get image data from a face's zero mip level. Only RGB and RGBA textures are supported.
Definition: TextureCube.cpp:316
void Erase(unsigned pos, unsigned length=1)
Erase a range of elements.
Definition: Vector.h:944
void SendBuffer(PacketType type)
Send out buffered messages by their type.
Definition: Connection.cpp:378
b2JointDef * GetJointDef() override
Return joint def.
Definition: ConstraintDistance2D.cpp:127
bool Save(Serializer &dest) const override
Save resource. Return true if successful.
Definition: ObjectAnimation.cpp:67
void SortTechniques()
Ensure that material techniques are listed in correct order.
Definition: Material.cpp:1171
float emissionRateMax_
Particles per second maximum.
Definition: ParticleEffect.h:461
const String & GetAnimationName() const
Definition: Animation.h:168
const Vector< SourceBatch2D > & GetSourceBatches()
Return all source batches (called by Renderer2D).
Definition: Drawable2D.cpp:99
void RemoveAgent(CrowdAgent *agent)
Removes the detour crowd agent.
Definition: CrowdManager.cpp:630
SharedArrayPtr< unsigned char > rawIndexData_
Raw index data override.
Definition: Geometry.h:150
Watches a directory and its subdirectories for files being modified.
Definition: FileWatcher.h:37
String pixelShaderDefines_
Pixel shader defines.
Definition: Technique.h:198
SharedPtr< T > CreateObject()
Create an object by type. Return pointer to it or null if no factory found.
Definition: Context.h:77
void SetBlendMode(BlendMode mode, bool alphaToCoverage=false)
Set blending and alpha-to-coverage modes. Alpha-to-coverage is not supported on Direct3D9.
Definition: OGLGraphics.cpp:1746
Node * InsertNode(Node *dest, const T &key)
Insert a node into the list. Return the new node.
Definition: HashSet.h:556
ConstIterator & operator--()
Predecrement the pointer.
Definition: HashSet.h:153
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
void Load(const XMLElement &element)
Read from an XML element.
Definition: RenderPath.cpp:64
IntRect GetShadowMapViewport(Light *light, int splitIndex, Texture2D *shadowMap)
Return the viewport for a shadow map split.
Definition: View.cpp:2491
void ApplyAttributes() override
Apply attribute changes that can not be applied immediately. Called after scene load or a network upd...
Definition: StaticModelGroup.cpp:68
unsigned GetStencilRef() const
Return stencil reference value.
Definition: Graphics.h:598
void SetOrientation(Orientation orientation)
Definition: ScrollBar.cpp:148
Matrix3 ToMatrix3() const
Return the combined rotation and scaling matrix.
Definition: Matrix3x4.h:542
void SetPackageCacheDir(const String &path)
Definition: Network.cpp:613
Iterator Erase(const Iterator &start, const Iterator &end)
Erase a range by iterators. Return iterator to the next element.
Definition: Vector.h:383
WeakPtr< View > sourceView_
Shared source view. Null if this view is using its own culling.
Definition: View.h:324
unsigned IndexOf(const T &value) const
Return index of value in vector, or size if not found.
Definition: Vector.h:1110
unsigned replicatedComponentID_
Next free non-local component ID.
Definition: Scene.h:337
void HandleRenderUpdate(StringHash eventType, VariantMap &eventData)
Handle render update event.
Definition: Audio.cpp:309
void MarkDirty()
Mark screen position as needing an update.
Definition: UIElement.cpp:1935
PODVector< Batch > batches_
Unsorted non-instanced draw calls.
Definition: Batch.h:257
unsigned numVertices_
Vertices in the current decals.
Definition: DecalSet.h:242
bool Load(Deserializer &source) override
Load from binary data. Return true if successful.
Definition: UnknownComponent.cpp:95
unsigned GetNumInstanceNodes() const
Definition: StaticModelGroup.h:63
void Add(Object *object)
Add receiver. Same receiver must not be double-added!
Definition: Context.cpp:80
bool SetQuaternion(const String &name, const Quaternion &value)
Set a quaternion attribute.
Definition: XMLElement.cpp:402
~IKEffector() override
Destructs he IK effector.
Definition: IKEffector.cpp:56
Vector< SharedPtr< UIElement > > children_
Child elements.
Definition: UIElement.h:790
virtual void OnResize(const IntVector2 &newSize, const IntVector2 &delta)
React to resize.
Definition: UIElement.h:193
WeakPtr< PhysicsWorld > physicsWorld_
Physics world.
Definition: RigidBody.h:329
const Vector2 & GetHotSpot() const
Definition: StaticSprite2D.h:140
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: OGLTexture3D.cpp:87
b2JointDef * GetJointDef() override
Return joint def.
Definition: ConstraintWeld2D.cpp:97
void GetComponentsRecursive(PODVector< Component * > &dest, StringHash type) const
Return specific components recursively.
Definition: Node.cpp:2158
void HandleSceneSubsystemUpdate(StringHash eventType, VariantMap &eventData)
Handle the scene subsystem update event.
Definition: CrowdManager.cpp:695
float animationLodTimer_
Animation LOD timer.
Definition: AnimatedModel.h:249
void HandleRenderUpdate(StringHash eventType, VariantMap &eventData)
Handle render update event.
Definition: Renderer.cpp:1954
void OnSceneSet(Scene *scene) override
Handle scene being assigned.
Definition: Constraint.cpp:425
void SetLineEditText(LineEdit *edit, const String &text)
Set the text of an edit field and ignore the resulting event.
Definition: FileSelector.cpp:280
void RemoveAllChildren()
Remove all child elements.
Definition: UIElement.cpp:1395
void DrawDebugGeometry(DebugRenderer *debug, bool depthTest) override
Visualize the component as debug geometry.
Definition: Camera.cpp:109
void SetAnimationSetAttr(const ResourceRef &value)
Set animation set attribute.
Definition: AnimatedSprite2D.cpp:201
void Set(Serializable *ptr, const Variant &value) override
Invoke setter function.
Definition: Serializable.h:174
Resource * GetExistingResource(StringHash type, const String &name)
Return an already loaded resource of specific type & name, or null if not found. Will not load if doe...
Definition: ResourceCache.cpp:542
bool writeSyncNeeded_
Synchronization needed before write -flag.
Definition: File.h:150
std::atomic< bool > pausing_
Pausing flag. Indicates the worker threads should not contend for the queue mutex.
Definition: WorkQueue.h:143
void SetOrientations(const String &orientations)
Definition: Graphics.cpp:100
void AddFrustum(const Frustum &frustum, const Color &color, bool depthTest=true)
Add a frustum.
Definition: DebugRenderer.cpp:226
VariantVector GetWheelDataAttr() const
Get wheel data attribute for serialization.
Definition: RaycastVehicle.cpp:720
VariantVector controlPointIdsAttr_
Control Point ID's for the SplinePath.
Definition: SplinePath.h:150
void AddBatchToQueue(BatchQueue &queue, Batch &batch, Technique *tech, bool allowInstancing=true, bool allowShadows=true)
Choose shaders for a batch and add it to queue.
Definition: View.cpp:2897
virtual unsigned Seek(unsigned position)=0
Set position from the beginning of the stream. Return actual new position.
static void RegisterObject(Context *context)
Register object factory. Drawable must be registered first.
Definition: Drawable2D.cpp:60
bool IsEof() const override
Return whether pipe has no data available.
Definition: NamedPipe.cpp:349
Variant(long long value)
Construct from 64 bit integer.
Definition: Variant.h:338
SharedPtr< ParticleEffect > effect_
Particle effect.
Definition: ParticleEmitter.h:144
bool IsExpanded(unsigned index) const
Return whether an item at index has its children expanded (in hierarchy mode only).
Definition: ListView.cpp:931
void PreStep(float timeStep)
Trigger update before each physics simulation step.
Definition: PhysicsWorld.cpp:800
float shadowNearFarRatio_
Shadow camera near/far clip distance ratio.
Definition: Light.h:443
ResourceRef GetObjectAnimationAttr() const
Return object animation attribute.
Definition: Animatable.cpp:461
void FindAnimation(const String &name, unsigned &index, AnimationState *&state) const
Find the internal index and animation state of an animation.
Definition: AnimationController.cpp:887
Matrix4 projection_
Projection transform.
Definition: DebugRenderer.h:188
void HandleAttributeAnimationAdded(StringHash eventType, VariantMap &eventData)
Handle attribute animation added.
Definition: Animatable.cpp:547
Node * ReserveNode(const T &key, const U &value)
Reserve a node with specified key and value.
Definition: HashMap.h:750
List< SharedPtr< WorkItem > > workItems_
Work item collection. Accessed only by the main thread.
Definition: WorkQueue.h:135
const String & GetScriptObjectType() const
Return script object type.
Definition: LuaScriptInstance.h:125
URHO_CPP14(constexpr) RandomAccessIterator< T > operator--(int)
Postdecrement the pointer.
Definition: Iter.h:74
unsigned ToHash() const
Return hash value for HashSet & HashMap.
Definition: Vector2.h:150
bool autoLocalizable_
The text will be automatically translated.
Definition: Text.h:297
Vector3 WorldToLocal(const Vector3 &position) const
Convert a world space position to local space.
Definition: Node.cpp:1206
void ProcessRayQuery(const RayOctreeQuery &query, PODVector< RayQueryResult > &results) override
Process octree raycast. May be called from a worker thread.
Definition: TerrainPatch.cpp:73
void SetShapesAttr(const VariantVector &value)
Set shapes attribute.
Definition: Cursor.cpp:215
int GetFunctionRef() const
Return function ref.
Definition: LuaFunction.h:99
void SetGlobalVar(StringHash key, const Variant &value)
Set global variable with the respective key and value.
Definition: Context.cpp:369
bool useLitBase_
Use lit base pass optimization for forward per-pixel lights.
Definition: RenderPath.h:194
SharedPtr< JSONFile > jsonFile_
JSON file for JSON mode.
Definition: Scene.h:64
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
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:618
void SetAngularDamping(float damping)
Definition: RigidBody.cpp:365
ConstIterator & operator=(const Iterator &rhs)
Assign from a non-const iterator.
Definition: List.h:125
PODVector< Node * > dependencyNodes_
Nodes this node depends on for network updates.
Definition: Node.h:61
VariantVector * GetVariantVectorPtr()
Return a pointer to a modifiable variant vector or null on type mismatch.
Definition: Variant.h:1359
Sprite2D * GetSpriterFileSprite(int folderId, int fileId) const
Return spriter file sprite.
Definition: AnimationSet2D.cpp:212
bool derivedColorDirty_
Derived color dirty flag (only used when no gradient).
Definition: UIElement.h:915
LightBatchQueue * lightQueue_
Light properties.
Definition: Batch.h:197
void HandleScenePostUpdate(StringHash eventType, VariantMap &eventData)
Handle scene post update.
Definition: AnimatedSprite2D.cpp:245
const Vector3 & GetCenterOfMass() const
Definition: RigidBody.h:256
unsigned a_
Alpha channel mask. If zero, alpha channel is set to 1.
Definition: Color.h:46
unsigned GetNumParticles() const
Definition: ParticleEmitter.h:101
unsigned GetTimeStamp() const
Return the latest timestamp of the shader code and its includes.
Definition: Shader.h:60
void HandleSceneDrawableUpdateFinished(StringHash eventType, VariantMap &eventData)
Invokes the IK solver.
Definition: IKSolver.cpp:723
constexpr unsigned SDBMHash(unsigned hash, unsigned char c)
Update a hash with the given 8-bit value using the SDBM algorithm.
Definition: MathDefs.h:308
const Vector3 & GetMaxDirection() const
Definition: ParticleEffect.h:307
void UnregisterRemoteEvent(StringHash eventType)
Unregister a remote event as allowed to received.
Definition: Network.cpp:603
unsigned r_
Red channel mask. If zero, red channel is set to 0.
Definition: Color.h:40
void SetTextureAnisotropy(int level)
Definition: Renderer.cpp:321
void BeginFrame()
Begin the profiling frame. Called by HandleBeginFrame().
Definition: Profiler.cpp:49
AttributeAnimationInfo(Animatable *animatable, const AttributeInfo &attributeInfo, ValueAnimation *attributeAnimation, WrapMode wrapMode, float speed)
Construct.
Definition: Animatable.cpp:42
bool autoAspectRatio_
Auto aspect ratio flag.
Definition: Camera.h:318
void Reset()
Reset all animating bones to initial positions.
Definition: Skeleton.cpp:129
float startEndTailTime_
The time the tail become end of trail.
Definition: RibbonTrail.h:284
unsigned stencilWriteMask_
Stencil write bitmask.
Definition: Graphics.h:892
PODVector< Drawable * > drawables_
Drawable objects.
Definition: Octree.h:142
virtual ~Octant()
Destruct. Move drawables to root if available (detach if not) and free child octants.
Definition: Octree.cpp:80
Renderer * GetRenderer() const
Return renderer subsystem.
Definition: View.cpp:679
void WriteInt(XMLElement &element, const String &name, int value) const
Write integer.
Definition: ParticleEffect2D.cpp:542
void Render(bool renderUICommand=false)
Render the UI. If renderUICommand is false (default), is assumed to be the default UI render to backb...
Definition: UI.cpp:483
Variant GetAttributeDefault(unsigned index) const
Definition: Serializable.cpp:946
bool GetUseXML() const
Return whether was loaded using XML data.
Definition: UnknownComponent.h:74
void OnMarkedDirty(Node *node) override
Definition: CrowdAgent.cpp:622
BoundingBox worldBoundingBox_
World bounding box.
Definition: Octree.h:138
void HandleFocusChanged(StringHash eventType, VariantMap &eventData)
Handle focus changed.
Definition: ListView.cpp:1148
void SetAnimationLodBias(float bias)
Definition: AnimatedModel.cpp:539
void GetRawData(const unsigned char *&vertexData, unsigned &vertexSize, const unsigned char *&indexData, unsigned &indexSize, const PODVector< VertexElement > *&elements) const
Return raw vertex and index data for CPU operations, or null pointers if not available....
Definition: Geometry.cpp:212
bool IsPressed(unsigned button, const Controls &previousControls) const
Check if a button was pressed on this frame. Requires previous frame's controls.
Definition: Controls.h:58
bool updateQueued_
Update queued flag.
Definition: RenderSurface.h:178
@ FONT_HINT_LEVEL_NORMAL
Full hinting, using either the font's own hinting or FreeType's auto-hinter.
Definition: UI.h:45
CascadeParameters shadowCascade_
Directional light cascaded shadow parameters.
Definition: Light.h:413
void HandleScreenMode(StringHash eventType, VariantMap &eventData)
Handle screen mode event.
Definition: Renderer.cpp:1946
AnimationTrack * GetTrack(unsigned index)
Return animation track by index.
Definition: Animation.cpp:389
float animationLodBias_
Animation LOD bias.
Definition: RibbonTrail.h:214
void SetUpdateInvisible(bool enable)
Definition: AnimatedModel.cpp:545
TileMapObjectType2D GetObjectType() const
Definition: TileMapDefs2D.h:180
bool Save(Serializer &dest) const override
Save resource. Return true if successful.
Definition: Material.cpp:388
void UpdateSkinning()
Recalculate skinning.
Definition: DecalSet.cpp:1072
void Clear(int maxSortedInstances)
Clear for new frame by clearing all groups and batches.
Definition: Batch.cpp:720
PODVector< unsigned char > GetScriptNetworkDataAttr() const
Get script network serialization attribute by calling a script function.
Definition: ScriptInstance.cpp:518
void SubscribeToScriptMethodEvents()
Subscribe to script method events.
Definition: LuaScriptInstance.cpp:618
float GetMinRadiusVariance() const
Return min radius variance.
Definition: ParticleEffect2D.h:218
bool usingSDFShader_
Flag for whether currently using SDF shader defines in the generated material.
Definition: Text3D.h:261
UIElement * window_
UI element containing the whole UI layout. Typically it is a Window element type.
Definition: MessageBox.h:72
float distance_
Hit distance from ray origin.
Definition: PhysicsWorld.h:73
void DynamicCast(const WeakPtr< U > &rhs)
Perform a dynamic cast from a weak pointer of another type.
Definition: Ptr.h:465
bool WriteByte(signed char value)
Write an 8-bit integer.
Definition: Serializer.cpp:51
WeakPtr< Zone > lastAmbientEndZone_
Last zone used for ambient gradient end color.
Definition: Zone.h:196
void RenderShadowMap(const LightBatchQueue &queue)
Render a shadow map.
Definition: View.cpp:3059
void SetAnimationStatesAttr(const VariantVector &value)
Set animation states attribute.
Definition: AnimatedModel.cpp:813
void RenderQuad(RenderPathCommand &command)
Perform a quad rendering command.
Definition: View.cpp:1839
bool Save(Serializer &dest) const override
Save resource. Return true if successful.
Definition: Model.cpp:368
unsigned long long GetUInt64() const
Return unsigned 64 bit int or zero on type mismatch. Floats and doubles are converted.
Definition: Variant.h:1116
Vector< WeakPtr< Component > > listeners_
Node listeners.
Definition: Node.h:751
RigidBody * rigidBody_
Rigid body.
Definition: PhysicsWorld.h:84
void SetMinRotationSpeed(float speed)
Definition: ParticleEffect.cpp:570
Vector< SharedPtr< Image > > loadImages_
Layer image files acquired during BeginLoad.
Definition: Texture2DArray.h:95
bool HasElement(VertexElementType type, VertexElementSemantic semantic, unsigned char index=0) const
Return whether has an element semantic with specific type.
Definition: VertexBuffer.h:100
SharedPtr< PListFile > loadPListFile_
PList file used while loading.
Definition: SpriteSheet2D.h:90
LuaFunction(lua_State *L, int index)
Construct from a Lua function object at the specified stack index.
Definition: LuaFunction.cpp:39
Intersection IsInside(const Vector2 &point) const
Test whether a point is inside.
Definition: Rect.h:216
SharedPtr< Texture2D > defaultLightSpot_
Default spotlight attenuation texture.
Definition: Renderer.h:563
unsigned dataSize_
Compressed sound data size in bytes.
Definition: OggVorbisSoundStream.h:54
bool SetResourceRef(const ResourceRef &value)
Set a resource reference attribute.
Definition: XMLElement.cpp:444
Camera * GetCullCamera() const
Return culling camera. Normally same as the viewport camera.
Definition: View.h:145
void RemoveTrigger(unsigned index)
Remove a trigger point by index.
Definition: Animation.cpp:358
PODVector< Matrix3x4 > skinMatrices_
Skinning matrices.
Definition: AnimatedModel.h:231
void UpdateMorphs()
Reapply all vertex morphs.
Definition: AnimatedModel.cpp:1342
void SetAngularOffset(float angularOffset)
Definition: ConstraintMotor2D.cpp:74
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:1749
RenderSurface * GetDepthStencil(RenderSurface *renderTarget)
Return the proper depth-stencil surface to use for a rendertarget.
Definition: View.cpp:3141
void AddCylinder(const Vector3 &position, float radius, float height, const Color &color, bool depthTest=true)
Add a cylinder.
Definition: DebugRenderer.cpp:335
void * GetVoidPtr() const
Return void pointer or null on type mismatch. RefCounted pointer will be converted.
Definition: Variant.h:1210
float DotProduct(const Vector4 &rhs) const
Calculate dot product.
Definition: Vector4.h:171
unsigned Hash(const T &key) const
Compute a hash based on the key and the bucket size.
Definition: HashMap.h:780
BoundingBox boundingBox_
Local-space bounding box.
Definition: Skeleton.h:81
void SetScale2D(float x, float y)
Set scale in parent space (for Urho2D).
Definition: Node.h:166
CrowdAgentRequestedTarget requestedTargetType_
Requested target type.
Definition: CrowdAgent.h:243
Vector< SharedPtr< Geometry > > geometries_
All geometries.
Definition: CustomGeometry.h:177
void SetDebugDepthTest(bool enable)
Set debug geometry depth test mode. Called both by PhysicsWorld itself and physics components.
Definition: PhysicsWorld.cpp:766
Vector< T > & operator+=(const T &rhs)
Add-assign an element.
Definition: Vector.h:130
Delayed world transform assignment for parented 2D rigidbodies.
Definition: PhysicsWorld2D.h:57
void SetDirectoryMode(bool enable)
Definition: FileSelector.cpp:241
unsigned offset_
Start position within a package file, 0 for regular files.
Definition: File.h:142
bool colorGradient_
Has color gradient flag.
Definition: UIElement.h:919
Node * GetEndPoint() const
Definition: OffMeshConnection.cpp:120
bool EndLoad() override
Finish resource loading. Always called from the main thread. Return true if successful.
Definition: SpriteSheet2D.cpp:77
unsigned FindChild(UIElement *element) const
Find child index. Return M_MAX_UNSIGNED if not found.
Definition: UIElement.cpp:1427
VariantMap globalVars_
Variant map for global variables that can persist throughout application execution.
Definition: Context.h:246
String startupErrors_
Collected startup error log messages.
Definition: Application.h:66
void InsertNode(Node *dest, const T &value)
Allocate and insert a node into the list.
Definition: List.h:430
static void RegisterObject(Context *context)
Register object factory.
Definition: Texture3D.cpp:57
float emitRotationDelta_
Emit rotation delta.
Definition: ParticleEmitter2D.h:72
bool Load(const XMLElement &source)
Load from an XML element. Return true if successful.
Definition: Material.cpp:397
float Range() const
Return range, defined as the difference between the greatest and least RGB component.
Definition: Color.cpp:213
void HandleRenderSurfaceUpdate(StringHash eventType, VariantMap &eventData)
Handle render surface update event.
Definition: TextureCube.cpp:336
bool Open(const String &pipeName, bool isServer)
Open the pipe in either server or client mode. If already open, the existing pipe is closed....
Definition: NamedPipe.cpp:210
void SetMemoryUse(unsigned size)
Set memory use in bytes, possibly approximate.
Definition: Resource.cpp:105
String typeName_
Type name of the stored component.
Definition: UnknownComponent.h:93
Background loader of resources. Owned by the ResourceCache.
Definition: BackgroundLoader.h:53
Variant SubstractAndMultiply(const Variant &value1, const Variant &value2, float t) const
Return (value1 - value2) * t.
Definition: ValueAnimation.cpp:513
Timer displayAt_
Point at which the tooltip was set visible.
Definition: ToolTip.h:71
~ScriptEventInvoker() override
Destructor, release the ref it we still hold it.
Definition: ScriptFile.cpp:1035
const IntVector2 & GetModalFrameSize() const
Definition: Window.h:144
StencilOp GetStencilPass() const
Return stencil operation to do if stencil test passes.
Definition: Graphics.h:589
High-level rendering subsystem. Manages drawing of 3D views.
Definition: Renderer.h:175
SharedPtr< CollisionShape2D > shapeB_
Shape B.
Definition: PhysicsWorld2D.h:295
ResourceRef(const char *type, const char *name)
Construct with type and resource name.
Definition: Variant.h:115
void UpdateElements()
Update elements to layout properly. Call this after manually adjusting the sub-elements.
Definition: Console.cpp:272
int width_
Width of the window. 0 to pick automatically.
Definition: Graphics.h:131
UniquePtr< btCompoundShape > compoundShape_
Bullet compound collision shape.
Definition: RigidBody.h:325
DropDownList(Context *context)
Construct.
Definition: DropDownList.cpp:42
static bool IsActive()
Return true if active.
Definition: EventProfiler.h:74
float GetDistanceFactor() const
Definition: NetworkPriority.h:62
HashMap< StringHash, String > varNames_
Registered node user variable reverse mappings.
Definition: Scene.h:323
const sqlite3 * GetConnectionImpl() const
Return the underlying implementation connection object pointer. It is sqlite* when using SQLite3 or n...
Definition: SQLiteConnection.h:53
SpriterInstance(Component *owner, SpriterData *spriteData)
Constructor with spriter data.
Definition: SpriterInstance2D.cpp:38
void OnNodeSet(Node *node) override
Handle node being assigned.
Definition: RigidBody.cpp:925
SharedPtr< Button > backButton_
Back button.
Definition: ScrollBar.h:116
BoundingBox GetBoundingBox() const
Return bounding box attribute, or empty if missing.
Definition: XMLElement.cpp:759
HashMap< WeakPtr< UIElement >, MouseButtonFlags > touchDragElements_
UI elements that are being touched with touch input.
Definition: UI.h:474
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:439
Renders several object instances while culling and receiving light as one unit. Can be used as a CPU-...
Definition: StaticModelGroup.h:31
void Insert(const Iterator &dest, const T &value)
Insert an element at position.
Definition: List.h:285
Quaternion() noexcept
Construct an identity quaternion.
Definition: Quaternion.h:39
void RemoveComponents()
Template version of removing all components of specific type.
Definition: Node.h:772
bool BeginLoad(Deserializer &source) override
Load resource from stream. May be called from a worker thread. Return true if successful.
Definition: Texture3D.cpp:62
Matrix4 viewProj_
Combined view and projection matrix.
Definition: OcclusionBuffer.h:207
void UpdateMaterial()
Update material.
Definition: StaticSprite2D.cpp:348
VertexMaskFlags elementMask_
Vertex elements.
Definition: Model.h:44
ConstIterator Find(const T &value) const
Return const iterator to value, or to the end if not found.
Definition: Vector.h:473
void SetBatchShaders(Batch &batch, Technique *tech, bool allowShadows, const BatchQueue &queue)
Choose shaders for a forward rendering batch. The related batch queue is provided in case it has extr...
Definition: Renderer.cpp:1162
void InsertItem(unsigned index, UIElement *item)
Insert item to a specific position.
Definition: DropDownList.cpp:159
HashSet(const std::initializer_list< T > &list)
Aggregate initialization constructor.
Definition: HashSet.h:198
static unsigned GetFloat32Format()
Return the API-specific single channel 32-bit float texture format.
Definition: OGLGraphics.cpp:2652
PListValueVector & ConvertToValueVector()
Convert to value vector (internal use only).
Definition: PListFile.cpp:264
bool SetQuery(const String &queryString, const String &variableString=String::EMPTY, bool bind=true)
Set XPath query string and variable string. The variable string format is "name1:type1,...
Definition: XMLElement.cpp:1114
void LoadMetadataFromJSON(const JSONArray &array)
Load metadata from JSON array.
Definition: Resource.cpp:169
void SetTextureQuality(MaterialQuality quality)
Definition: Renderer.cpp:331
void Stop()
Set the running flag to false and wait for the thread to finish.
Definition: Thread.cpp:97
IntRect ReadIntRect()
Read an IntRect.
Definition: Deserializer.cpp:138
void Activate()
Activate rigid body if it was resting.
Definition: RigidBody.cpp:576
TransformSpace
Transform space for translations and rotations.
Definition: Node.h:50
void MessageCallback(const asSMessageInfo *msg)
Log a message from the script engine.
Definition: Script.cpp:290
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:75
IntVector2 GetIntVector2() const
Return IntVector2, for string type.
Definition: PListFile.cpp:222
HashMap< TextureUnit, SharedPtr< Texture > > textures_
Textures.
Definition: Material.h:316
HashMap< int, SharedPtr< Technique > > cachedTechniques_
Cached techniques per blend mode.
Definition: Renderer2D.h:134
void EndFrame()
End frame rendering and swap buffers.
Definition: OGLGraphics.cpp:625
void HandleAttributeAnimationRemoved(StringHash eventType, VariantMap &eventData)
Handle attribute animation removed.
Definition: Animatable.cpp:562
Matrix3x4 inverseWorld_
Cached inverse world transform matrix.
Definition: Zone.h:162
HashMap< unsigned, BatchQueue > batchQueues_
Batch queues by pass index.
Definition: View.h:419
Vector< TechniqueEntry > techniques_
Techniques.
Definition: Material.h:314
virtual void Invoke(VariantMap &eventData)=0
Invoke event handler function.
bool Load(Deserializer &source) override
Load from binary data. Return true if successful.
Definition: Node.cpp:96
bool ExecuteFunction(const String &functionName)
Execute script function.
Definition: LuaScript.cpp:316
CollisionShape2D(Context *context)
Construct.
Definition: CollisionShape2D.cpp:38
virtual void MarkNetworkUpdate()
Mark for attribute check on the next network update.
Definition: Serializable.h:82
void Solve()
Invokes the solver. The solution is applied back to the scene graph automatically.
Definition: IKSolver.cpp:399
SharedPtr< WorkItem > GetFreeItem()
Get pointer to an usable WorkItem from the item pool. Allocate one if no more free items.
Definition: WorkQueue.cpp:108
PODVector< VertexElement > elements_
Vertex elements.
Definition: VertexBuffer.h:161
const Vector< LightBatchQueue > & GetLightQueues() const
Return light batch queues.
Definition: View.h:172
void SetWindowPosition(const IntVector2 &position)
Definition: Graphics.cpp:87
bool doubleWidth_
The dimension use for next growth. Used internally.
Definition: AreaAllocator.h:68
void RemoveRenderTargets(const String &tag)
Remove rendertargets by tag name.
Definition: RenderPath.cpp:457
Helper class for forwarding events to script objects that are not part of a scene.
Definition: ScriptFile.h:158
void SetScrollBarsVisible(bool horizontal, bool vertical)
Set scrollbars' visibility manually. Disables scrollbar autoshow/hide.
Definition: ScrollView.cpp:312
~CollisionShape() override
Destruct. Free the geometry data and clean up unused data from the geometry data cache.
Definition: CollisionShape.cpp:471
Vector3 directionMax_
Particle direction maximum.
Definition: ParticleEffect.h:449
const StringVector & GetStringVector() const
Return a string vector or empty on type mismatch.
Definition: Variant.h:1239
Pass * CreatePass(const String &name)
Create a new pass.
Definition: Technique.cpp:408
bool useXML_
Flag of whether was loaded using XML/JSON data.
Definition: UnknownComponent.h:101
Frustum Transformed(const Matrix3 &transform) const
Return transformed by a 3x3 matrix.
Definition: Frustum.cpp:189
FlagSet operator&(const Enum value) const
Bitwise AND against Enum value.
Definition: FlagSet.h:118
unsigned GetCharIndex(const IntVector2 &position)
Return char index corresponding to position within element, or M_MAX_UNSIGNED if not found.
Definition: LineEdit.cpp:620
String autoCompleteLine_
Store the original line which is being auto-completed.
Definition: Console.h:207
unsigned displayedRows_
Maximum displayed rows.
Definition: Console.h:187
const dtQueryFilter * GetDetourQueryFilter(unsigned queryFilterType) const
Get the detour query filter.
Definition: CrowdManager.cpp:690
HashMap< RigidBody2D *, DelayedWorldTransform2D > delayedWorldTransforms_
Delayed (parented) world transform assignments.
Definition: PhysicsWorld2D.h:272
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:41
void HandleCloseButtonPressed(StringHash eventType, VariantMap &eventData)
Handle close button being pressed.
Definition: Console.cpp:520
void SetNetParentAttr(const PODVector< unsigned char > &value)
Set network parent attribute.
Definition: Node.cpp:1475
Spline class to get a point on it based off the interpolation mode.
Definition: Spline.h:49
void Yaw(float angle, TransformSpace space=TS_LOCAL)
Rotate around the Y axis.
Definition: Node.cpp:655
StringHash RegisterString(const StringHash &hash, const char *string)
Register string for hash reverse mapping. Could be used from StringHash ctor.
Definition: StringHashRegister.cpp:48
float outerAngle_
Outer angle for directional attenuation.
Definition: SoundSource3D.h:98
unsigned ReadUInt()
Read a 32-bit unsigned integer.
Definition: Deserializer.cpp:98
void HandleScreenMode(StringHash eventType, VariantMap &eventData)
Handle screen mode event.
Definition: UI.cpp:1749
void SetSimulatedPacketLoss(float probability)
Definition: Network.cpp:586
bool CreateObject(const String &scriptObjectType)
Create script object. Return true if successful.
Definition: LuaScriptInstance.cpp:380
bool SetCurrentDir(const String &pathName)
Definition: FileSystem.cpp:306
ResourceRef ReadResourceRef()
Read a resource reference.
Definition: Deserializer.cpp:284
A link between otherwise unconnected regions of the navigation mesh.
Definition: OffMeshConnection.h:31
bool updateEnabled_
Automatic simulation update enabled flag.
Definition: PhysicsWorld.h:364
UpdateGeometryType GetUpdateGeometryType() override
Return whether a geometry update is necessary, and if it can happen in a worker thread.
Definition: AnimatedModel.cpp:313
const IntRect & GetImageBorder() const
Definition: BorderImage.h:98
int WeakRefs() const
Return the object's weak reference count.
Definition: Ptr.h:489
Vector< SharedPtr< ShaderVariation > > & GetPixelShaders()
Return pixel shaders.
Definition: Technique.h:161
void SetShadowResolution(float resolution)
Definition: Light.cpp:398
void HandleUIMouseClick(StringHash eventType, VariantMap &eventData)
Handle global UI mouseclick to check for selection change.
Definition: ListView.cpp:1018
void SetHierarchyMode(bool enable)
Enable hierarchy mode. Allows items to have parent-child relationship at different indent level and t...
Definition: ListView.cpp:712
bool lightPrepassSupport_
Light pre-pass rendering support flag.
Definition: Graphics.h:792
void SetCenter(const Vector2 ¢er)
Definition: CollisionBox2D.cpp:78
float autoFadeTime_
Animation autofade on stop -time, 0 if disabled.
Definition: AnimationController.h:67
void SetFileName(const String &fileName)
Definition: FileSelector.cpp:210
void SetIndexBuffer(IndexBuffer *buffer)
Set index buffer.
Definition: OGLGraphics.cpp:1003
void SetTextAlignment(HorizontalAlignment align)
Definition: Text.cpp:311
const String & GetVertexShaderDefines() const
Definition: Material.h:224
SharedPtr< Image > nextLevel_
Precalculated mip level image.
Definition: Image.h:247
void PauseSoundType(const String &type)
Pause playback of specific sound type. This allows to suspend e.g. sound effects or voice when the ga...
Definition: Audio.cpp:170
PODVector< Drawable * > geometries_
Visible geometry objects.
Definition: View.h:394
ShaderVariation * GetPixelShader() const
Return the pixel shader.
Definition: OGLShaderProgram.cpp:328
void OnWheel(int delta, MouseButtonFlags buttons, QualifierFlags qualifiers) override
React to mouse wheel.
Definition: ScrollView.cpp:189
void SetInnerAngle(float angle)
Definition: SoundSource3D.cpp:131
HashMap< Texture2D *, HashMap< int, SharedPtr< Material > > > cachedMaterials_
Cached materials.
Definition: Renderer2D.h:132
static void RegisterObject(Context *context)
Register object factory.
Definition: UISelectable.cpp:33
CustomVariantValue * Clone() const override
Clone.
Definition: Variant.h:253
unsigned char lightStencilValue_
Current stencil value for light optimization.
Definition: Renderer.h:653
void SetCategoryBits(int categoryBits)
Definition: CollisionShape2D.cpp:94
Matrix3 GetMatrix3(const String &name) const
Return a Matrix3 attribute, or zero matrix if missing.
Definition: XMLElement.cpp:975
bool CheckActiveParticles() const
Return whether has active particles.
Definition: ParticleEmitter.cpp:561
void SetAnimationSet(AnimationSet2D *animationSet)
Definition: AnimatedSprite2D.cpp:102
void OnSetEditable() override
React to editable status change.
Definition: ScrollBar.cpp:143
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:165
float GetRandomRotation() const
Return random rotation.
Definition: ParticleEffect.cpp:816
Vector3 GetWheelDirection(int wheel) const
Get wheel direction vector.
Definition: RaycastVehicle.cpp:628
void UpdateScrollBars()
Update the scrollbars' ranges and positions.
Definition: ScrollView.cpp:472
int asyncLoadingMs_
Maximum milliseconds per frame to spend on async scene loading.
Definition: Scene.h:345
TriangleMeshData(Model *model, unsigned lodLevel)
Construct from a model.
Definition: CollisionShape.cpp:199
WeakPtr< Graphics > graphics_
Graphics subsystem.
Definition: GPUObject.h:74
VariantVector loadedWheelData_
Loaded data temporarily wait here for ApplyAttributes to come pick them up.
Definition: RaycastVehicle.h:213
PODVector< IntRect > freeAreas_
Free rectangles.
Definition: AreaAllocator.h:62
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:121
bool Save(Serializer &dest) const
Write to a stream. Return true if successful.
Definition: Skeleton.cpp:77
EventReceiverGroup * GetEventReceivers(StringHash eventType)
Return event receivers for an event type, or null if they do not exist.
Definition: Context.h:200
bool forceUpdate_
Force update flag (ignore animation LOD momentarily).
Definition: RibbonTrail.h:275
Vector2 worldNormal_
Contact normal in world space.
Definition: PhysicsWorld2D.h:299
void SetFullImageRect()
Use whole texture as the image.
Definition: Sprite.cpp:207
WeakPtr< DynamicNavigationMesh > ownerMesh_
Pointer to the navigation mesh we belong to.
Definition: Obstacle.h:96
void setDebugMode(int debugMode) override
Set debug draw flags.
Definition: PhysicsWorld.h:156
b2WeldJointDef jointDef_
Box2D joint def.
Definition: ConstraintWeld2D.h:70
Texture * FindNamedTexture(const String &name, bool isRenderTarget, bool isVolumeMap=false)
Get a named texture from the rendertarget list or from the resource cache, to be either used as a ren...
Definition: View.cpp:3183
String(String &&str) noexcept
Move-construct from another string.
Definition: Str.h:70
HashMap< unsigned, unsigned > shaderRemapping_
Shader remapping table for 2-pass state and distance sort.
Definition: Batch.h:250
bool IsNaN() const
Return whether any component is NaN.
Definition: Vector4.h:195
BoundingBox(const BoundingBox &box) noexcept
Copy-construct from another bounding box.
Definition: BoundingBox.h:55
long long totalTime_
Total accumulated time.
Definition: Profiler.h:165
void OnNodeSet(Node *node) override
Handle node being assigned.
Definition: Obstacle.cpp:89
void HandleResourceBackgroundLoaded(StringHash eventType, VariantMap &eventData)
Handle a background loaded resource completing.
Definition: Scene.cpp:1173
bool splineTangentsDirty_
Spline tangents dirty.
Definition: ValueAnimation.h:175
void SuppressNextMouseMove()
Suppress next mouse movement.
Definition: Input.cpp:1849
bool CombineText(const pugi::xml_node &patch, const pugi::xml_node &original, bool prepend) const
Combine two text nodes.
Definition: XMLFile.cpp:364
void MarkShapeDirty()
Mark shape dirty.
Definition: CollisionShape.h:302
void DisableInternalLayoutUpdate()
Disable automatic layout update for internal elements.
Definition: ListView.cpp:331
unsigned GetLastHeardTime() const
Definition: Connection.cpp:1084
AnimationBlendMode GetBlendMode() const
Definition: AnimationState.h:151
float GetRotatePerSecondVariance() const
Return rotate per second variance.
Definition: ParticleEffect2D.h:224
bool UpdateToGPU()
Update the shadow data to the GPU buffer.
Definition: OGLVertexBuffer.cpp:260
void SetCorrectionFactor(float correctionFactor)
Definition: ConstraintMotor2D.cpp:119
int highestZonePriority_
Highest zone priority currently visible.
Definition: View.h:366
void HandleModelReloadFinished(StringHash eventType, VariantMap &eventData)
Handle model reload finished.
Definition: StaticModel.cpp:446
static void RegisterObject(Context *context)
Register object factory.
Definition: SoundSource.cpp:131
Vector4 ReadVector4()
Read a Vector4.
Definition: Deserializer.cpp:189
void SetGravityScale(float gravityScale)
Definition: RigidBody2D.cpp:268
CursorShapeInfo(int systemCursor)
Construct with system cursor.
Definition: Cursor.h:68
const Vector2 & GetAnchor() const
Definition: ConstraintFriction2D.h:55
void SetEventFrame(float time, const StringHash &eventType, const VariantMap &eventData=VariantMap())
Set event frame.
Definition: ValueAnimation.cpp:309
float GetRestitution() const
Definition: CollisionShape2D.h:103
void OnSetEnabled() override
Handle enabled/disabled state change.
Definition: RigidBody2D.cpp:93
ResourceRef GetShapeTextureAttr() const
Return shape texture attribute.
Definition: Light.cpp:537
void SetBlendMode(AnimationBlendMode mode)
Definition: AnimationState.cpp:179
void OnShowPopup() override
React to the popup being shown.
Definition: DropDownList.cpp:113
void SetClipBorder(const IntRect &rect)
Definition: UIElement.cpp:814
bool SaveBMP(const String &fileName) const
Save in BMP format. Return true if successful.
Definition: Image.cpp:1249
void SetEventHandler(EventHandler *handler)
Set current event handler. Called by Object.
Definition: Context.h:223
StringHash GetNameHash() const
Return hash of the package file name.
Definition: PackageFile.h:69
void HandleScenePostUpdate(StringHash eventType, VariantMap &eventData)
Handle scene post-update event.
Definition: LogicComponent.cpp:192
Color startColor_
Start color.
Definition: ParticleEffect2D.h:286
AnimatedModel(Context *context)
Construct.
Definition: AnimatedModel.cpp:70
void SetDuration(float duration)
Set duration.
Definition: ParticleEffect2D.cpp:409
void SetScale(float scale)
Set uniform scaling elements.
Definition: Matrix3x4.h:534
bool operator>(const Pair< T, U > &rhs) const
Test for greater than with another pair.
Definition: Pair.h:61
SharedPtr< ConstantBuffer > constantBuffers_[MAX_SHADER_PARAMETER_GROUPS *2]
Constant buffers by binding index.
Definition: OGLShaderProgram.h:103
const Vector< SharedPtr< VertexBuffer > > & GetVertexBuffers() const
Return all vertex buffers.
Definition: Geometry.h:74
void RemoveAnimationState(Animation *animation)
Remove an animation by animation pointer.
Definition: AnimatedModel.cpp:465
Matrix3x4 transforms_[2]
Transform matrices for position and billboard orientation.
Definition: BillboardSet.h:209
HashMap< WeakPtr< UIElement >, bool > hoveredElements_
Currently hovered elements.
Definition: UI.h:466
const IntRect & GetLayoutBorder() const
Definition: UIElement.h:651
unsigned long long memoryUse_
Current memory use.
Definition: ResourceCache.h:56
btTypedConstraint * GetConstraint() const
Return Bullet constraint.
Definition: Constraint.h:118
void SetLevelsDirty()
Set the mipmap levels dirty flag. Called internally by Graphics.
Definition: Texture.cpp:234
bool SetFloat(const String &name, float value)
Set a float attribute.
Definition: XMLElement.cpp:352
void SetIntensitySortValue(float distance)
Set sort value based on intensity and view distance.
Definition: Light.cpp:566
virtual void Stop()
Cleanup after the main loop. Called by Application.
Definition: Application.h:50
ScriptFile * GetDefaultScriptFile() const
Return immediate mode script file.
Definition: Script.cpp:343
Iterator Insert(const T &key, bool &exists)
Insert a key. Return an iterator and set exists flag according to whether the key already existed.
Definition: HashSet.h:316
void SetUpdateMode(RenderSurfaceUpdateMode mode)
Definition: RenderSurface.cpp:55
void DrawSolidPolygon(const b2Vec2 *vertices, int32 vertexCount, const b2Color &color) override
Draw a solid closed polygon provided in CCW order.
Definition: PhysicsWorld2D.cpp:201
static void RegisterObject(Context *context)
Register object factory.
Definition: ConstraintPulley2D.cpp:49
void ClearDelayedExecute(const String &declaration=String::EMPTY)
Clear pending delay-executed function calls. If empty declaration given, clears all.
Definition: ScriptFile.cpp:508
String GetAttributeLower(const String &name) const
Return attribute in lowercase, or empty if missing.
Definition: XMLElement.cpp:716
Custom overrides of physics internals. To use overrides, must be set before the physics component is ...
Definition: PhysicsWorld.h:110
void SendServerUpdate()
Send scene update messages. Called by Network.
Definition: Connection.cpp:259
bool SetTextures(RenderPathCommand &command)
Set textures for current render command. Return whether depth write is allowed (depth-stencil not bou...
Definition: View.cpp:1800
bool Create() override
Create the GPU texture.
Definition: OGLTexture3D.cpp:340
unsigned char index_
Semantic index of element, for example multi-texcoords.
Definition: GraphicsDefs.h:216
unsigned GetNumColorFrames() const
Definition: ParticleEffect.h:386
PODVector< GPUObject * > gpuObjects_
GPU objects.
Definition: Graphics.h:820
void SetRotation(const Matrix3 &rotation)
Set rotation elements from a 3x3 matrix.
Definition: Matrix3x4.h:512
void SetShadowMaxExtrusion(float extrusion)
Definition: Light.cpp:353
const String & GetString() const
Return string or empty on type mismatch.
Definition: Variant.h:1198
void MarkDirty()
Mark node and child nodes to need world transform recalculation. Notify listener components.
Definition: Node.cpp:743
HashMap< StringHash, Texture * > renderTargets_
Rendertargets defined by the renderpath.
Definition: View.h:409
UniquePtr< btDiscreteDynamicsWorld > world_
Bullet physics world.
Definition: PhysicsWorld.h:328
void SetMinRotation(float rotation)
Definition: ParticleEffect.cpp:560
void SetActiveTime(float time)
Definition: ParticleEffect.cpp:510
bool HasTextureUnit(TextureUnit unit)
Check whether the current vertex or pixel shader uses a texture unit.
Definition: OGLGraphics.cpp:1467
void OnGetAttribute(const AttributeInfo &attr, Variant &dest) const override
Handle attribute read access.
Definition: LuaScriptInstance.cpp:208
void CleanupEventInvoker(asIScriptObject *object)
Clean up an event invoker object when its associated script object no longer exists.
Definition: ScriptFile.cpp:652
IntVector2 dragBeginPosition_
Original position at drag begin.
Definition: Window.h:175
typename std::underlying_type< Enum >::type Integer
Integer type.
Definition: FlagSet.h:52
const Vector2 & GetGravity() const
Definition: PhysicsWorld2D.h:217
bool fixedHeightResizing_
Fixed height resize flag.
Definition: Window.h:167
HashMap< Camera *, ViewBatchInfo2D > viewBatchInfos_
View batch info.
Definition: Renderer2D.h:126
const VariantVector & GetNodeIDsAttr() const
Return node IDs attribute.
Definition: StaticModelGroup.cpp:355
bool interpolatable_
Interpolatable flag.
Definition: ValueAnimation.h:165
void SetMinRadiusVariance(float minRadiusVariance)
Set min radius variance.
Definition: ParticleEffect2D.cpp:434
WeakPtr(const SharedPtr< T > &rhs) noexcept
Construct from a shared pointer.
Definition: Ptr.h:306
void OnServerDisconnected(const SLNet::AddressOrGUID &address)
Handle server disconnection.
Definition: Network.cpp:1002
CrowdAgentTargetState previousTargetState_
Agent's previous target state used to check for state changes.
Definition: CrowdAgent.h:265
void UpdateGeometry(const FrameInfo &frame) override
Prepare geometry for rendering. Called from a worker thread if possible (no GPU update).
Definition: AnimatedModel.cpp:297
Vector3(float x, float y, float z) noexcept
Construct from coordinates.
Definition: Vector3.h:223
Spriter animation set, it includes one or more animations, for more information please refer to http:...
Definition: AnimationSet2D.h:46
void Swap(ListBase &rhs)
Swap with another linked list.
Definition: ListBase.h:106
void ClearParameterSources()
Clear remembered shader parameter sources.
Definition: OGLGraphics.cpp:1478
void HandleOKPressed(StringHash eventType, VariantMap &eventData)
Handle OK button pressed.
Definition: FileSelector.cpp:442
float Angle(const Vector2 &rhs) const
Returns the angle between this vector and another vector in degrees.
Definition: Vector2.h:318
Component * GetOrCreateComponent(StringHash type, CreateMode mode=REPLICATED, unsigned id=0)
Create a component to this node if it does not exist already.
Definition: Node.cpp:933
void SetOtherBody(RigidBody2D *body)
Definition: Constraint2D.cpp:118
IntVector2 lastMousePosition_
Last mouse position for calculating movement.
Definition: Input.h:436
SharedPtr< PropertySet2D > propertySet_
Property set.
Definition: TileMapDefs2D.h:169
Variant(const Variant &value)
Copy-construct from another variant.
Definition: Variant.h:549
void HandlePostUpdate(StringHash eventType, VariantMap &eventData)
Handle post update.
Definition: LuaScript.cpp:466
void SetTargetRotation(const Quaternion &targetRotation)
Definition: IKEffector.cpp:132
ConstraintDistance2D(Context *context)
Construct.
Definition: ConstraintDistance2D.cpp:37
Vector4(const Vector3 &vector, float w) noexcept
Construct from a 3-dimensional vector and the W coordinate.
Definition: Vector4.h:47
int GetLayoutElementMaxSize() const
Return maximum layout element size in the layout direction. Only valid after layout has been calculat...
Definition: UIElement.h:724
void SetTransformSilent(const Vector3 &position, const Quaternion &rotation, const Vector3 &scale)
Set local transform silently without marking the node & child nodes dirty. Used by animation code.
Definition: Node.cpp:1894
IntRect GetViewport() const
Return the viewport coordinates.
Definition: Graphics.h:544
LuaScript * luaScript_
Lua Script subsystem.
Definition: LuaScriptInstance.h:171
Matrix3x4 view_
View transform matrix.
Definition: OcclusionBuffer.h:203
bool HasProperty(const String &name) const
Return has property.
Definition: TileMapDefs2D.cpp:173
int multiSample_
Level of multisampling.
Definition: Graphics.h:97
void MixZeroVolume(Sound *sound, unsigned samples, int mixRate)
Advance playback pointer without producing audible output.
Definition: SoundSource.cpp:1234
bool SetVariantMap(const VariantMap &value)
Set a variant map attribute. Creates child elements as necessary.
Definition: XMLElement.cpp:506
void HandleScreenMode(StringHash eventType, VariantMap &eventData)
Handle screen mode event.
Definition: Input.cpp:2397
bool GetUpdateInvisible() const
Definition: AnimatedModel.h:132
float GetAreaCost(unsigned queryFilterType, unsigned areaID) const
Get the cost of an area for the specified query filter type.
Definition: CrowdManager.cpp:501
unsigned Read(void *dest, unsigned size) override
Read bytes from the buffer. Return number of bytes actually read.
Definition: VectorBuffer.cpp:47
void StepForward()
Scroll forward one step.
Definition: ScrollBar.cpp:196
b2PrismaticJointDef jointDef_
Box2D joint def.
Definition: ConstraintPrismatic2D.h:105
WeakPtr< RigidBody > otherBody_
Other rigid body.
Definition: Constraint.h:202
void UpdateEventSubscription(bool checkAllDecals)
Subscribe/unsubscribe from scene post-update as necessary.
Definition: DecalSet.cpp:1122
const Color & GetFinishColor() const
Return finish color.
Definition: ParticleEffect2D.h:182
void RecalculateSegmentLengths()
Unusual, but if you have a tree with translational motions such that the distances between nodes chan...
Definition: IKSolver.cpp:387
const Matrix3x4 * worldTransform_
World transform(s). For a skinned model, these are the bone transforms.
Definition: Batch.h:92
static void RegisterObject(Context *context)
Register object factory.
Definition: MessageBox.cpp:109
void SetMorphsAttr(const PODVector< unsigned char > &value)
Set morphs attribute.
Definition: AnimatedModel.cpp:856
RenderSurface * GetDepthStencil() const
Return current depth-stencil surface.
Definition: Graphics.h:541
bool Compare(const CustomVariantValue &rhs) const override
Compare to another custom value.
Definition: Variant.h:260
void SetStartBone(Bone *startBone)
Definition: AnimationState.cpp:105
bool RemoveSwap(const T &value)
Erase an element by value by swapping with the last element. Return true if was found and erased.
Definition: Vector.h:408
bool SaveXML(Serializer &dest, int pointSize, bool usedGlyphs=false, const String &indentation="\t")
Save resource as a new bitmap font type in XML format. Return true if successful.
Definition: Font.cpp:114
void SetOwnerBodyGroundAnchor(const Vector2 &groundAnchor)
Definition: ConstraintPulley2D.cpp:64
RenderCommandSortMode sortMode_
Sorting mode.
Definition: RenderPath.h:154
void MixNull(float timeStep)
Advance playback pointer to simulate audio playback in headless mode.
Definition: SoundSource.cpp:1263
float GetRotationEndVariance() const
Return rotation end variance.
Definition: ParticleEffect2D.h:239
Vector3 lastSpacing_
Vertex and height sacing at the time of last update.
Definition: Terrain.h:316
void GetBatches(PODVector< UIBatch > &batches, PODVector< float > &vertexData, const IntRect ¤tScissor) override
Return UI rendering batches.
Definition: Button.cpp:88
void OnSceneSet(Scene *scene) override
Handle scene being assigned.
Definition: RigidBody2D.cpp:565
void SetOwnerBodyAnchor(const Vector2 &anchor)
Definition: ConstraintPulley2D.cpp:86
Sphere(const BoundingBox &box) noexcept
Construct from a bounding box.
Definition: Sphere.h:63
BatchGroupKey(const Batch &batch)
Construct from a batch.
Definition: Batch.h:184
void Release() override
Release the texture.
Definition: OGLTexture3D.cpp:69
void DefineVertex(const Vector3 &position)
Define a vertex position. This begins a new vertex.
Definition: CustomGeometry.cpp:541
virtual void Start()
Called when the component is added to a scene node. Other components may not yet exist.
Definition: LogicComponent.h:62
SharedArrayPtr< unsigned char > data_
Index data.
Definition: Model.h:89
@ 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
EventProfilerBlock * GetChild(StringHash eventID)
Return child block with the specified event ID.
Definition: EventProfiler.h:43
void GetRawDataShared(SharedArrayPtr< unsigned char > &vertexData, unsigned &vertexSize, SharedArrayPtr< unsigned char > &indexData, unsigned &indexSize, const PODVector< VertexElement > *&elements) const
Return raw vertex and index data for CPU operations, or null pointers if not available....
Definition: Geometry.cpp:257
const 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
bool Execute(const String &declaration, const VariantVector ¶meters=Variant::emptyVariantVector)
Query for a method by declaration and execute. Log an error if not found.
Definition: ScriptInstance.cpp:277
bool IsNaN() const
Return whether any component is NaN.
Definition: Vector2.h:330
unsigned otherBodyNodeID_
Other body node ID for pending constraint recreation.
Definition: Constraint.h:226
CubeMapFace GetOutputFace(unsigned index) const
Definition: RenderPath.cpp:304
bool operator==(const KeyValue &rhs) const
Test for equality with another pair.
Definition: HashMap.h:71
WeakArrayPtr()
Construct a null weak array pointer.
Definition: ArrayPtr.h:235
const String & GetDepthStencilName() const
Definition: RenderPath.h:147
void ApplyNodeWorldScale() override
Apply node world scale.
Definition: CollisionPolygon2D.cpp:106
bool operator!=(const Pair< T, U > &rhs) const
Test for inequality with another pair.
Definition: Pair.h:48
float rotationSpeedMin_
Particle rotation speed minimum.
Definition: ParticleEffect.h:479
unsigned GetNumGeometryLodLevels(unsigned index) const
Definition: Model.cpp:736
bool Resize(int width, int height)
Resize image by bilinear resampling. Return true if successful.
Definition: Image.cpp:1158
UniquePtr< btDispatcher > collisionDispatcher_
Bullet collision dispatcher.
Definition: PhysicsWorld.h:322
bool usePhysicalValues_
Use physical light values flag.
Definition: Light.h:449
float animationLodDistance_
Animation LOD distance, the minimum of all LOD view distances last frame.
Definition: AnimatedModel.h:251
IntVector2 ConvertUIToSystem(const IntVector2 &uiPos) const
Convert scaled UI position (or offset) to system mouse position (or offset).
Definition: UI.cpp:857
unsigned ToHash() const
Return hash value for HashSet & HashMap.
Definition: Color.h:255
unsigned numWorldTransforms_
Number of valid instance node transforms.
Definition: StaticModelGroup.h:94
float masterGain_
Effective master gain.
Definition: SoundSource.h:158
unsigned nextAsyncExecID_
Next async execution ID.
Definition: FileSystem.h:128
DropDownList * filterList_
Filter dropdown.
Definition: FileSelector.h:181
void BringToFront()
Bring UI element to front.
Definition: UIElement.cpp:1217
bool SetFont(const 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:188
String PrintMemoryUsage() const
Returns a formatted string containing the memory actively used.
Definition: ResourceCache.cpp:916
void AddRequiredPackageFile(PackageFile *package)
Add a required package file for networking. To be called on the server.
Definition: Scene.cpp:677
void SetDistanceAttenuation(float nearDistance, float farDistance, float rolloffFactor)
Set attenuation parameters.
Definition: SoundSource3D.cpp:104
void ApplyAttributes() override
Apply attribute changes that can not be applied immediately. Called after scene load or a network upd...
Definition: CollisionShape.cpp:494
void SetBuffer(const void *data, unsigned size)
Set buffer type from a memory area.
Definition: Variant.cpp:392
String GetAttribute(const String &name=String::EMPTY) const
Return attribute, or empty if missing.
Definition: XMLElement.cpp:693
void SetFixedRotation(bool fixedRotation)
Definition: RigidBody2D.cpp:232
void GetBatches(PODVector< UIBatch > &batches, PODVector< float > &vertexData, const IntRect ¤tScissor) override
Return UI rendering batches.
Definition: Window.cpp:84
void UpdateWorldTransform() const
Recalculate the world transform.
Definition: Node.cpp:2087
Quaternion targetRotation_
Target rotation.
Definition: SmoothedTransform.h:101
void HandleForwardButtonPressed(StringHash eventType, VariantMap &eventData)
Handle forward button pressed.
Definition: ScrollBar.cpp:280
float Element(unsigned i, unsigned j) const
Return matrix element.
Definition: Matrix3.h:266
Matrix4 projection_
Projection matrix.
Definition: OcclusionBuffer.h:205
unsigned rawIndexSize_
Raw index data override size.
Definition: Geometry.h:154
void UnsubscribeFromAllEventsExcept(const PODVector< StringHash > &exceptions, bool onlyUserData)
Unsubscribe from all events except those listed, and optionally only those with userdata (script regi...
Definition: Object.cpp:268
const String & GetDownloadName() const
Definition: Connection.cpp:1131
void Reset()
Reset button, axis and hat states to neutral.
Definition: Input.cpp:339
JSONValue(const JSONValue &value)
Copy-construct from another JSON value.
Definition: JSONValue.h:137
PODVector< float > debugVertexData_
UI rendering vertex data for debug draw.
Definition: UI.h:408
void SetEnableMotor(bool enableMotor)
Definition: ConstraintRevolute2D.cpp:116
void AddCollisionShape(CollisionShape *shape)
Add a collision shape to keep track of. Called by CollisionShape.
Definition: PhysicsWorld.cpp:730
void MarkConstraintDirty()
Mark constraint dirty.
Definition: Constraint.h:193
T & operator[](int index)
Subscript the object if applicable.
Definition: Ptr.h:422
void BroadcastMessage(int msgID, bool reliable, bool inOrder, const VectorBuffer &msg, unsigned contentID=0)
Broadcast a message with content ID to all client connections.
Definition: Network.cpp:513
void RemoveCachedGeometry(Model *model)
Invalidate cached collision geometry for a model.
Definition: PhysicsWorld.cpp:614
bool LoadXML(const XMLElement &source) override
Load from XML data. Return true if successful.
Definition: AnimatedModel.cpp:137
float GetMotorSpeed() const
Definition: ConstraintRevolute2D.h:87
float projFarClip_
Cached actual far clip distance.
Definition: Camera.h:288
PODVector< float > debugVertexData_
UI rendering vertex data for debug draw.
Definition: UI.h:304
HashMap< StringHash, Vector< AttributeInfo > > networkAttributes_
Network replication attribute descriptions per object type.
Definition: Context.h:232
void SetBoneWeight(unsigned index, float weight, bool recursive=false)
Set per-bone blending weight by track index. Default is 1.0 (full), is multiplied with the state's bl...
Definition: AnimationState.cpp:205
void Update(float timeStep)
Update.
Definition: ParticleEmitter2D.cpp:311
const Vector< ModelMorph > & GetMorphs() const
Return vertex morphs.
Definition: Model.h:197
void AddListener(Component *component)
Add listener component that is notified of node being dirtied. Can either be in the same node or anot...
Definition: Node.cpp:1152
WeakPtr< Shader > lastShader_
Last used shader in shader variation query.
Definition: Graphics.h:908
float GetWheelFrictionSlip(int wheel) const
Get wheel friction slip.
Definition: RaycastVehicle.cpp:515
List< SharedPtr< WorkItem > > poolItems_
Work item pool for reuse to cut down on allocation. The bool is a flag for item pooling and whether i...
Definition: WorkQueue.h:133
void SetApplyingTransforms(bool enable)
Set node dirtying to be disregarded.
Definition: PhysicsWorld2D.h:231
float Element(unsigned i, unsigned j) const
Return matrix element.
Definition: Matrix3x4.h:660
void Load(const XMLElement &element)
Load from XML element.
Definition: TileMapDefs2D.cpp:142
int GetDrawOrder() const
Return draw order by layer and order in layer.
Definition: Drawable2D.h:113
bool vertexBuffersDirty_
Need vertex attribute pointer update flag.
Definition: OGLGraphicsImpl.h:158
unsigned GetNumQueuedResources() const
Return amount of resources in the load queue.
HashMap< unsigned, Node * > replicatedNodes_
Replicated scene nodes by ID.
Definition: Scene.h:305
const SharedPtr< Resource > & FindResource(StringHash type, StringHash nameHash)
Find a resource.
Definition: ResourceCache.cpp:975
void Merge(const Vector3 &point)
Merge a point.
Definition: BoundingBox.h:178
void SetDrawPair(bool drawPair)
Definition: PhysicsWorld2D.cpp:372
bool SetUInt(const String &name, unsigned value)
Set an unsigned integer attribute.
Definition: XMLElement.cpp:362
Matrix3 ReadMatrix3()
Read a Matrix3.
Definition: Deserializer.cpp:212
void SetFriction(float friction)
Definition: CollisionShape2D.cpp:152
void SetOuterAngle(float angle)
Definition: SoundSource3D.cpp:137
Object * GetEventSender() const
Return active event sender. Null outside event handling.
Definition: Context.cpp:374
bool BeginLoad(Deserializer &source) override
Load resource from stream. May be called from a worker thread. Return true if successful.
Definition: AnimationSet2D.cpp:124
bool markedDirty_
Whether exists in the SceneState's dirty set.
Definition: ReplicationState.h:171
SharedPtr< Text > profilerText_
Profiling information text.
Definition: DebugHud.h:131
bool SetVectorVariant(const String &name, const Variant &value)
Set a float, Vector or Matrix attribute stored in a variant.
Definition: XMLElement.cpp:538
void RemoveAllTracks()
Remove all tracks. This is unsafe if the animation is currently used in playback.
Definition: Animation.cpp:326
void SetOrientation(Orientation orientation)
Definition: ProgressBar.cpp:76
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
ConstIterator & operator=(const Iterator &rhs)
Assign from a non-const iterator.
Definition: HashSet.h:131
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:526
bool operator==(Enum rhs) const
Equality check against enum value.
Definition: FlagSet.h:190
bool physicsStepping_
Whether is currently stepping the world. Used internally.
Definition: PhysicsWorld2D.h:266
void SetOcclusionLodLevel(unsigned level)
Definition: StaticModel.cpp:296
RaycastVehicleData * vehicleData_
Opaque Bullet data hidden from public.
Definition: RaycastVehicle.h:197
void AddDrawable(Drawable2D *drawable)
Add Drawable2D.
Definition: Renderer2D.cpp:227
Cached character location and size within text. Used for queries related to text editing.
Definition: Text.h:47
void SetAppStats(const String &label, const Variant &stats)
Set application-specific stats.
Definition: DebugHud.cpp:280
void OnMarkedDirty(Node *node) override
Handle node transform being dirtied.
Definition: Zone.cpp:229
void PrepareInstancingBuffer()
Prepare instancing buffer by filling it with all instance transforms.
Definition: View.cpp:2954
DecalVertex(const Vector3 &position, const Vector3 &normal)
Construct with position and normal.
Definition: DecalSet.h:43
Variant(const Matrix3 &value)
Construct from a Matrix3.
Definition: Variant.h:500
bool SetNumVertexBuffers(unsigned num)
Definition: Geometry.cpp:53
HashMap< RigidBody *, DelayedWorldTransform > delayedWorldTransforms_
Delayed (parented) world transform assignments.
Definition: PhysicsWorld.h:342
constexpr RandomAccessConstIterator(const T *ptr)
Construct with an object pointer.
Definition: Iter.h:136
String loadMaterialName_
Material name acquired during BeginLoad().
Definition: ParticleEffect.h:491
void SetSpecularLighting(bool enable)
Definition: Renderer.cpp:316
Vector3 targetPosition_
Target position.
Definition: SmoothedTransform.h:99
const Vector< ColorFrame > & GetColorFrames() const
Return all color animation frames.
Definition: ParticleEffect.h:382
SharedPtr< Material > Clone(const String &cloneName=String::EMPTY) const
Clone the material.
Definition: Material.cpp:1146
bool initiated_
Download initiated flag.
Definition: Connection.h:84
PODVector< DebugLine > lines_
Lines rendered with depth test.
Definition: DebugRenderer.h:178
float GetFadeTime(const String &name) const
Return animation fade time.
Definition: AnimationController.cpp:547
bool ReadDeltaUpdate(Deserializer &source)
Read and apply a network delta update. Return true if attributes were changed.
Definition: Serializable.cpp:820
int agentCrowdId_
Crowd manager reference to this agent.
Definition: CrowdAgent.h:237
~Object() override
Destruct. Clean up self from event sender & receiver structures.
Definition: Object.cpp:83
void Draw(View *view, Camera *camera, bool allowDepthWrite) const
Prepare and draw.
Definition: Batch.cpp:636
ValueAnimation * GetAttributeAnimation(const String &name) const
Return attribute animation.
Definition: Animatable.cpp:428
void LoadPassShaders(Pass *pass, Vector< SharedPtr< ShaderVariation > > &vertexShaders, Vector< SharedPtr< ShaderVariation > > &pixelShaders, const BatchQueue &queue)
Reload shaders for a material pass. The related batch queue is provided in case it has extra shader c...
Definition: Renderer.cpp:1639
unsigned GetHiresShadowMapFormat() const
Return 24-bit shadow map depth texture format, or 0 if not supported.
Definition: Graphics.h:445
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:2223
ShaderPrecache(Context *context, const String &fileName)
Construct and begin collecting shader combinations. Load existing combinations from XML if the file e...
Definition: ShaderPrecache.cpp:38
Vector3 GetLocalPoint(float theta, float phi) const
Return point on the sphere relative to sphere position.
Definition: Sphere.cpp:257
Allocator< T > & operator=(const Allocator< T > &rhs)=delete
Prevent assignment.
virtual bool IsZero() const
Compare to zero.
Definition: Variant.h:205
bool SetStringVector(const StringVector &value)
Set a string vector attribute. Creates child elements as necessary.
Definition: XMLElement.cpp:490
int AddAgentToCrowd(bool force=false)
Add agent into crowd.
Definition: CrowdAgent.cpp:270
Quaternion(const float *data) noexcept
Construct from a float array.
Definition: Quaternion.h:82
bool EndLoad() override
Finish resource loading. Always called from the main thread. Return true if successful.
Definition: ParticleEffect.cpp:120
const SharedPtr< ConstantBuffer > * GetConstantBuffers() const
Return all constant buffers.
Definition: OGLShaderProgram.h:77
const String & GetTargetName() const
Retrieves the name of the target node. The node doesn't necessarily have to exist in the scene graph.
Definition: IKEffector.cpp:99
void RegenerateLevels()
Regenerate mipmap levels for a rendertarget after rendering and before sampling. Called internally by...
Definition: OGLTexture.cpp:335
File * SearchPackages(const String &name)
Search resource packages for file.
Definition: ResourceCache.cpp:1123
HorizontalAlignment GetTextAlignment() const
Definition: Text3D.cpp:413
~ShaderProgram() override
Destruct.
Definition: OGLShaderProgram.cpp:70
SharedPtr< Model > Clone(const String &cloneName=String::EMPTY) const
Clone the model. The geometry data is deep-copied and can be modified in the clone without affecting ...
Definition: Model.cpp:617
IntVector2 GetLayoutChildPosition(UIElement *child)
Get child element constant position in a layout.
Definition: UIElement.cpp:2185
Vector< RemoteEvent > remoteEvents_
Queued remote events.
Definition: Connection.h:338
Node * FindNode(const T &key, unsigned hashKey) const
Find a node from the buckets. Do not call if the buckets have not been allocated.
Definition: HashSet.h:525
SharedPtr< TextureCube > indirectionCubeMap_
Indirection cube map for shadowed pointlights.
Definition: Renderer.h:567
Node * InstantiateXML(const XMLElement &source, const Vector3 &position, const Quaternion &rotation, CreateMode mode=REPLICATED)
Instantiate scene content from XML data. Return root node if successful.
Definition: Scene.cpp:551
Vector< SharedPtr< OcclusionBuffer > > occlusionBuffers_
Reusable occlusion buffers.
Definition: Renderer.h:571
bool EndLoadFromJSONFile()
End load from JSON file.
Definition: SpriteSheet2D.cpp:299
InstanceData(const Matrix3x4 *worldTransform, const void *instancingData, float distance)
Construct with transform, instancing data and distance.
Definition: Batch.h:118
Vector< SharedPtr< AnimationState > > animationStates_
Animation states.
Definition: AnimatedModel.h:229
Iterator & operator--()
Predecrement the pointer.
Definition: List.h:85
Vector template class for POD types. Does not call constructors or destructors and uses block move....
Definition: Vector.h:685
void SetWorldTransform2D(const Vector2 &position, float rotation)
Set both position and rotation in world space as an atomic operation (for Urho2D).
Definition: Node.h:237
InterpolationMode interpolationMode_
Interpolation mode.
Definition: Spline.h:124
UniquePtr< TriangleMeshInterface > meshInterface_
Bullet triangle mesh interface.
Definition: CollisionShape.h:100
bool WriteUInt64(unsigned long long value)
Write a 64-bit unsigned integer.
Definition: Serializer.cpp:56
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:695
unsigned GetObstacleAvoidanceType() const
Definition: CrowdAgent.h:192
bool UpdateToGPU()
Update the shadow data to the GPU buffer.
Definition: OGLIndexBuffer.cpp:257
const Vector2 & GetPoint(unsigned index) const
Return point at index (use for script).
Definition: TileMapDefs2D.cpp:195
void ResetMouseVisible()
Reset last mouse visibility that was not suppressed in SetMouseVisible.
Definition: Input.cpp:664
Definition: BoundingBox.h:44
void SetPressed(bool enable)
Set new pressed state.
Definition: Button.cpp:193
Vector< SharedPtr< Viewport > > viewports_
Viewports.
Definition: RenderSurface.h:170
SharedPtr< IndexBuffer > indexBuffer_
Index buffer.
Definition: RibbonTrail.h:237
IntVector2 lastPosition_
Last position in screen coordinates.
Definition: Input.h:69
SharedPtr< ParticleEffect > Clone(const String &cloneName=String::EMPTY) const
Clone the particle effect.
Definition: ParticleEffect.cpp:736
bool lastMouseVisible_
The last operating system mouse cursor visible flag set by end use call to SetMouseVisible.
Definition: Input.h:452
void SetDecalsAttr(const PODVector< unsigned char > &value)
Set decals attribute.
Definition: DecalSet.cpp:524
unsigned SeekRelative(int delta)
Set position relative to current position. Return actual new position.
Definition: Deserializer.cpp:48
unsigned usedVertexAttributes_
Vertex attributes bitmask used by the current shader program.
Definition: OGLGraphicsImpl.h:120
void SetHighlightMode(HighlightMode mode)
Definition: ListView.cpp:701
AnimationBlendMode blendingMode_
Blending mode.
Definition: AnimationState.h:195
virtual void OnDeviceLost()
Mark the GPU resource destroyed on graphics context destruction.
Definition: GPUObject.cpp:52
unsigned sortFrameNumber_
Frame number on which was last sorted.
Definition: BillboardSet.h:223
HashMap< AttributeInfo *, unsigned > idAttributes_
Storage for unapplied node and component ID attributes.
Definition: ScriptInstance.h:206
void FromRotationMatrix(const Matrix3 &matrix)
Define from a rotation matrix.
Definition: Quaternion.cpp:106
const BoundingBox & GetWorldBoundingBox() const
Definition: Octree.h:78
void Update(const FrameInfo &frame) override
Update before octree reinsertion. Is called from a worker thread.
Definition: ParticleEmitter.cpp:101
float inAirRPM_
Revolutions per minute value for in-air motor wheels. FIXME: set this one per wheel.
Definition: RaycastVehicle.h:205
bool GetStencilTest() const
Return whether stencil test is enabled.
Definition: Graphics.h:577
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:1780
Iterator Insert(const Iterator &dest, const Vector< T > &vector)
Insert a vector by iterator.
Definition: Vector.h:317
int packedMessageLimit_
Outgoing packet size limit.
Definition: Connection.h:374
unsigned FindLast(const String &str, unsigned startPos=NPOS, bool caseSensitive=true) const
Return index to the last occurrence of a string, or NPOS if not found.
Definition: Str.cpp:668
asIScriptFunction * GetFunction(const String &declaration)
Return a function by declaration. Will be stored to a search cache so that further searches should be...
Definition: ScriptFile.cpp:606
Animatable * FindAttributeAnimationTarget(const String &name, String &outName) override
Find target of an attribute animation from object hierarchy by name.
Definition: UIElement.cpp:1890
float GetLowerTranslation() const
Definition: ConstraintPrismatic2D.h:82
static void RegisterObject(Context *context)
Register object factory.
Definition: SoundListener.cpp:40
void SendBeginContactEvents()
Send begin contact events.
Definition: PhysicsWorld2D.cpp:723
const Matrix3x4 & GetView() const
Return view transform matrix.
Definition: OcclusionBuffer.h:129
void ClipVertices(const Vector4 &plane, Vector4 *vertices, bool *triangles, unsigned &numTriangles)
Clip vertices against a plane.
Definition: OcclusionBuffer.cpp:685
String packageCacheDir_
Package cache directory.
Definition: Network.h:186
float GetRotatePerSecond() const
Return rotate per second.
Definition: ParticleEffect2D.h:221
void OnObjectAnimationRemoved(ObjectAnimation *objectAnimation)
Handle object animation removed.
Definition: Animatable.cpp:497
virtual void OnGetAttribute(const AttributeInfo &attr, Variant &dest) const
Handle attribute read access. Default implementation reads the variable at offset,...
Definition: Serializable.cpp:178
PODVector< Light * > vertexLights_
Per-vertex lights affecting this drawable.
Definition: Drawable.h:415
BoundingBox boundingBox_
Local-space bounding box.
Definition: DecalSet.h:95
float GetScrollSnapEpsilon() const
Definition: ScrollView.h:148
virtual void Stop()
Called when the component is detached from a scene node, usually on destruction. Note that you will n...
Definition: LogicComponent.h:68
RayQueryResult()
Construct with defaults.
Definition: OctreeQuery.h:192
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:34
void SetShadowFadeDistance(float distance)
Definition: Light.cpp:386
Custom variant value type traits. Specialize the template to implement custom type behavior.
Definition: Variant.h:215
Definition: Input.h:80
bool SaveJSON(JSONValue &dest) const
Save as XML data. Return true if successful.
Definition: ValueAnimation.cpp:187
const BoundingBox & GetCullingBox() const
Return bounding box used for fitting drawable objects.
Definition: Octree.h:81
bool RemoveChildXML(XMLElement &parent, const String &name) const
Remove child XML element by matching attribute name.
Definition: UIElement.cpp:1945
void EnableLayoutUpdate()
Enable automatic layout update.
Definition: UIElement.cpp:1212
bool SetBuffer(const String &name, const void *data, unsigned size)
Set a buffer attribute.
Definition: XMLElement.cpp:332
void SetModelAttr(const ResourceRef &value)
Set model attribute.
Definition: CollisionShape.cpp:876
static Variant ParseShaderParameterValue(const 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:1237
float vertexDistance_
Distance between points. Basically is tail length.
Definition: RibbonTrail.h:247
URHO_CPP14(constexpr) RandomAccessIterator< T > &operator++()
Preincrement the pointer.
Definition: Iter.h:52
void OnKey(Key key, MouseButtonFlags buttons, QualifierFlags qualifiers) override
React to a key press.
Definition: CheckBox.cpp:82
SharedPtr< Texture2D > depthTexture_
Depth stencil texture.
Definition: View3D.h:96
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:1664
void ResetTouches()
Clear touch states and send touch end events.
Definition: Input.cpp:1658
Vector3 CrossProduct(const Vector3 &rhs) const
Calculate cross product.
Definition: Vector3.h:394
void Release() override
Release the shader.
Definition: OGLShaderVariation.cpp:60
asITypeInfo * GetObjectType(const char *declaration)
Query for an inbuilt object type by constant declaration. Can not be used for script types.
Definition: Script.cpp:358
void SetWorldPosition2D(const Vector2 &position)
Definition: Node.h:198
const HashMap< String, SharedPtr< ValueAnimationInfo > > & GetAttributeAnimationInfos() const
Return all attribute animations infos.
Definition: ObjectAnimation.h:81
Vector3 GetWheelAxle(int wheel) const
Get wheel axle vector.
Definition: RaycastVehicle.cpp:643
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:77
void ReorderComponent(Component *component, unsigned index)
Adjust index order of an existing component in this node.
Definition: Node.cpp:1083
void SetDrawCenterOfMass(bool drawCenterOfMass)
Definition: PhysicsWorld2D.cpp:380
bool hasSimulated_
Internal flag whether has simulated at least once.
Definition: RigidBody.h:365
static unsigned globalFrameNumber
Global shader parameter source framenumber.
Definition: OGLShaderProgram.h:112
void Page(const IntVector2 &position, bool pressed)
Send slider page event.
Definition: Slider.cpp:277
int GetWidth() const
Return buffer width.
Definition: OcclusionBuffer.h:135
Texture2D * GetDefaultLightRamp() const
Definition: Renderer.h:435
AnimationState * GetAnimationState(const String &name) const
Find an animation state by animation name.
Definition: AnimationController.cpp:571
SharedPtr< Image > loadImage_
Image file acquired during BeginLoad.
Definition: Texture3D.h:73
void LoadParameters()
Load optional parameters from an XML file.
Definition: Sound.cpp:341
void OnSceneSet(Scene *scene) override
Handle scene being assigned.
Definition: RigidBody.cpp:931
SharedArrayPtr< unsigned > indexData_
Index data.
Definition: CollisionShape.h:119
void FromUIntMask(unsigned color, const ChannelMask &mask)
Set RGBA values from packed 32-bit integer with arbitrary channel mask.
Definition: Color.cpp:85
SharedPtr< Sound > streamBuffer_
Decode buffer.
Definition: SoundSource.h:205
void SetCoordinates(const IntVector2 &coordinates)
Set patch coordinates.
Definition: TerrainPatch.cpp:238
void SetSplitImpulse(bool enable)
Definition: PhysicsWorld.cpp:358
bool LoadCharGlyph(unsigned charCode, Image *image=nullptr)
Load char glyph.
Definition: FontFaceFreeType.cpp:410
IntVector2 originalPosition_
Original offset position to the parent.
Definition: ToolTip.h:73
void UpdateBoneBoundingBox()
Recalculate the bone bounding box. Normally called internally, but can also be manually called if up-...
Definition: AnimatedModel.cpp:906
float GetParticleLifespanVariance() const
Return particle lifespan variance.
Definition: ParticleEffect2D.h:152
Spline spline_
The Control Points of the Spline.
Definition: SplinePath.h:134
Abstract base class for invoking attribute accessors.
Definition: Attribute.h:62
void SetRestitution(float restitution)
Definition: CollisionShape2D.cpp:178
void UpdateParameters(unsigned scope=M_MAX_UNSIGNED)
Update Detour crowd agent parameter.
Definition: CrowdAgent.cpp:190
String pixelShaderDefineExcludes_
Pixel shader define excludes.
Definition: Technique.h:202
Vector< WeakPtr< RigidBody2D > > rigidBodies_
Rigid bodies.
Definition: PhysicsWorld2D.h:270
bool FilterImplicitAttributes(XMLElement &dest) const override
Filter implicit attributes in serialization process.
Definition: Slider.cpp:209
IntVector2 ScreenToElement(const IntVector2 &screenPosition) override
Convert screen coordinates to element coordinates.
Definition: Sprite.cpp:96
SharedPtr< VertexBuffer > vertexBuffer_
Vertex buffer.
Definition: RibbonTrail.h:235
void HandleSliderChanged(StringHash eventType, VariantMap &eventData)
Handle slider movement.
Definition: ScrollBar.cpp:286
GImpactMeshData(Model *model, unsigned lodLevel)
Construct from a model.
Definition: CollisionShape.cpp:217
void DrawTriangle(Vector4 *vertices, unsigned threadIndex)
Draw a triangle.
Definition: OcclusionBuffer.cpp:589
Vector< Vector< SharedPtr< Geometry > > > geometries_
All geometries.
Definition: StaticModel.h:128
float GetAngleVariance() const
Return angle variance.
Definition: ParticleEffect2D.h:158
void GetFloatMinMax(const XMLElement &element, float &minValue, float &maxValue)
Read a float range from an XML element.
Definition: ParticleEffect.cpp:821
int GetOcclusionBufferSize() const
Definition: Renderer.h:378
void SetVertices(const PODVector< Vector2 > &vertices)
Set vertices.
Definition: CollisionChain2D.cpp:87
IndexBuffer * GetIndexBuffer() const
Return current index buffer.
Definition: Graphics.h:512
virtual const IntVector2 & GetScreenPosition() const
Definition: UIElement.cpp:395
void SetSphere(float diameter, const Vector3 &position=Vector3::ZERO, const Quaternion &rotation=Quaternion::IDENTITY)
Set as a sphere.
Definition: CollisionShape.cpp:587
VariantAttributeAccessorImpl(TGetFunction getFunction, TSetFunction setFunction)
Construct.
Definition: Serializable.h:163
void LoadMetadataFromXML(const XMLElement &source)
Load metadata from <metadata> children of XML element.
Definition: Resource.cpp:163
PODVector< ScenePassInfo > scenePasses_
Info for scene render passes defined by the renderpath.
Definition: View.h:413
unsigned ToHash() const
Return hash value for HashSet & HashMap.
Definition: StringHash.h:100
bool forceUpdate_
Force update flag (ignore animation LOD momentarily).
Definition: BillboardSet.h:215
bool InitializeResourceCache(const VariantMap ¶meters, bool removeOld=true)
Reinitialize resource cache subsystem using parameters given. Implicitly called by Initialize....
Definition: Engine.cpp:321
PacketType
Packet types for outgoing buffers. Outgoing messages are grouped by their type.
Definition: Connection.h:110
virtual ~Thread()
Destruct. If running, stop and wait for thread to finish.
Definition: Thread.cpp:69
void SetScriptNetworkDataAttr(const PODVector< unsigned char > &data)
Set script network serialization attribute by calling a script function.
Definition: LuaScriptInstance.cpp:448
bool SaveXML(XMLElement &dest) const override
Save as XML data. Return true if successful.
Definition: Node.cpp:194
bool enableMassUpdate_
Mass update enable flag.
Definition: RigidBody.h:363
void SetControls(const Controls &newControls)
Set new controls.
Definition: Connection.cpp:225
SharedPtr< Texture > shapeTexture_
Spotlight attenuation texture.
Definition: Light.h:421
void SetStencilTest(bool enable, CompareMode mode=CMP_ALWAYS, StencilOp pass=OP_KEEP, StencilOp fail=OP_KEEP, StencilOp zFail=OP_KEEP, unsigned stencilRef=0, unsigned compareMask=M_MAX_UNSIGNED, unsigned writeMask=M_MAX_UNSIGNED)
Set stencil test.
Definition: OGLGraphics.cpp:1989
PhysicsWorld * GetPhysicsWorld() const
Return physics world.
Definition: CollisionShape.h:225
bool SaveXML(XMLElement &dest) const
Save as XML data. Return true if successful.
Definition: ObjectAnimation.cpp:112
Vector3 constantForce_
Particle constant force.
Definition: ParticleEffect.h:451
Color selectionColor_
Selection background color.
Definition: UISelectable.h:63
void SetCustomMaterialAttr(const ResourceRef &value)
Set custom material attribute.
Definition: StaticSprite2D.cpp:260
void ReleaseConstraint()
Release the constraint.
Definition: Constraint.cpp:347
float emitParticleTime_
Emit particle time.
Definition: ParticleEmitter2D.h:163
static void RegisterObject(Context *context)
Register object factory.
Definition: TerrainPatch.cpp:68
bool watchSubDirs_
Watch subdirectories flag.
Definition: FileWatcher.h:79
unsigned usedVertexAttributes_
Used vertex attribute location bitmask.
Definition: OGLShaderProgram.h:101
unsigned layoutNestingLevel_
Layout update nesting level to prevent endless loop.
Definition: UIElement.h:840
XMLElement CreateChild(const String &name)
Create a child element.
Definition: XMLElement.cpp:94
static Vector< Vector3 > GetCircleShape(float radius=1, size_t iterations=100, float startTheta=0, float endTheta=2 *M_PI)
Geometry Shape Helper Functions (normal defaults to (0,1,0)
Definition: CustomGeometry.cpp:207
bool Seek(unsigned sample_number) override
Seek to sample number. Return true on success.
Definition: OggVorbisSoundStream.cpp:62
bool HasProperty(const String &name) const
Return has property.
Definition: TileMapDefs2D.cpp:149
volatile signed char * GetPlayPosition() const
Return playback position.
Definition: SoundSource.h:90
WeakPtr< ShaderVariation > pixelShader_
Pixel shader.
Definition: OGLShaderProgram.h:93
T * RegisterSubsystem()
Template version of registering subsystem.
Definition: Context.h:256
const Vector2 & GetGravity() const
Return gravity.
Definition: ParticleEffect2D.h:161
bool PopulateInterpreter()
Populate the command line interpreters that could handle the console command.
Definition: Console.cpp:310
void SetQueryFilterType(unsigned queryFilterType)
Definition: CrowdAgent.cpp:419
void BuildDepthHierarchy()
Build reduced size mip levels.
Definition: OcclusionBuffer.cpp:234
bool alphaToCoverage_
Alpha-to-coverage mode.
Definition: Technique.h:188
Vector2 GetLinearVelocity() const
Definition: RigidBody2D.cpp:538
void SetVerticalScrollBarVisible(bool visible)
Definition: ScrollView.cpp:325
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:428
static Sint64 Seek(SDL_RWops *context, Sint64 offset, int whence)
Seek within the object's data.
Definition: RWOpsWrapper.h:61
unsigned totalResources_
Total resources.
Definition: Scene.h:79
void AddComponent(Component *component, unsigned id, CreateMode mode)
Add a pre-created component. Using this function from application code is discouraged,...
Definition: Node.cpp:1824
bool EndLoad() override
Finish resource loading. Always called from the main thread. Return true if successful.
Definition: TextureCube.cpp:238
Utility class for collecting used shader combinations during runtime for precaching.
Definition: ShaderPrecache.h:36
Vector< SharedPtr< Texture2D > > textures_
Glyph texture pages.
Definition: FontFace.h:110
void NodeTagRemoved(Node *node, const String &tag)
Cache node by tag if tag not zero.
Definition: Scene.cpp:974
unsigned numQueryFilterTypes_
Number of query filter types configured in the crowd. Limit to DT_CROWD_MAX_QUERY_FILTER_TYPE.
Definition: CrowdManager.h:203
bool WheelIsGrounded(int wheel) const
True if wheel touches ground (raycast hits something).
Definition: RaycastVehicle.cpp:685
ik_node_t * CreateIKNodeFromUrhoNode(const Node *node)
Creates the ik library node and sets the current rotation/position and user data correctly.
Definition: IKSolver.cpp:219
bool IsChildOf(Node *node) const
Return whether is a direct or indirect child of specified node.
Definition: Node.cpp:1383
unsigned shadersLoadedFrameNumber_
Last shaders loaded frame number.
Definition: Technique.h:184
PODVector< Billboard > & GetBillboards()
Return all billboards.
Definition: BillboardSet.h:122
CompareMode depthTestMode_
Depth compare mode.
Definition: Technique.h:180
const HashMap< StringHash, SharedPtr< Object > > & GetSubsystems() const
Return all subsystems.
Definition: Context.h:146
const ResourceRef & GetResourceRef() const
Return a resource reference or empty on type mismatch.
Definition: Variant.h:1221
void SortChildren()
Sort child elements if sorting enabled and order dirty. Called by UI.
Definition: UIElement.cpp:1788
static unsigned litAlphaPassIndex
Index for lit alpha pass. Initialized once GetPassIndex() has been called for the first time.
Definition: Technique.h:304
Texture * currentViewportTexture_
Texture containing the latest viewport texture.
Definition: View.h:342
void DrawFullscreenQuad(bool setIdentityProjection=false)
Draw a fullscreen quad. Shaders and renderstates must have been set beforehand. Quad will be drawn to...
Definition: View.cpp:2139
float GetEngineForce(int wheel) const
Get engine force for the wheel.
Definition: RaycastVehicle.cpp:575
~ResourceCache() override
Destruct. Free all resources.
Definition: ResourceCache.cpp:90
StringHash GetType() const override
Return type of the stored component.
Definition: UnknownComponent.h:41
bool SaveByteCode(Serializer &dest)
Save the script bytecode. Return true if successful.
Definition: ScriptFile.cpp:594
float GetBasePriority() const
Definition: NetworkPriority.h:58
float sortDistance_
Distance for sorting.
Definition: RibbonTrail.h:61
void AddDelayedWorldTransform(const DelayedWorldTransform &transform)
Add a delayed world transform assignment. Called by RigidBody.
Definition: PhysicsWorld.cpp:750
void SetLightingMode(PassLightingMode mode)
Definition: Technique.cpp:114
void SetSenderAndEventType(Object *sender, StringHash eventType)
Set sender and event type.
Definition: Object.h:270
bool GetRemoveOnCompletion(const String &name) const
Return whether animation auto-removes on completion, or false if no such animation.
Definition: AnimationController.cpp:563
XMLFile * GetDefaultStyle(bool recursiveUp=true) const
Return default style.
Definition: UIElement.cpp:1579
Definition: TileMapDefs2D.h:50
SharedArrayPtr< unsigned char > readBuffer_
Read buffer for the main thread.
Definition: HttpRequest.h:107
UniquePtr< b2World > world_
Box2D physics world.
Definition: PhysicsWorld2D.h:248
void FillShape(const Vector< Vector3 > &shapeList, bool connectTail=true, bool clear=true, int geomNum=0)
Fills a point List shape with triangles.
Definition: CustomGeometry.cpp:302
void DoResize(unsigned newSize)
Resize the vector and create/remove new elements as necessary.
Definition: Vector.h:582
float GetEffectiveScrollStep() const
Definition: ScrollBar.cpp:216
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:217
bool LoadAndExecute(lua_State *luaState)
Load buffer as chunk and execute. Return true if successful.
Definition: LuaFile.cpp:115
void RemoveKeyFrame(unsigned index)
Remove a keyframe at index.
Definition: Animation.cpp:77
bool deferredAmbient_
Deferred ambient pass flag. This means that the destination rendertarget is being written to at the s...
Definition: View.h:376
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:439
bool LoadXML(const XMLElement &source)
Load from XML data. Return true if successful.
Definition: ObjectAnimation.cpp:78
float simulatedPacketLoss_
Simulated packet loss probability between 0.0 - 1.0.
Definition: Network.h:180
void OnRemoveFromOctree() override
Handle removal from octree.
Definition: Zone.cpp:320
bool IsDelayedStartCalled() const
Return whether the DelayedStart() function has been called.
Definition: LogicComponent.h:86
Vector2 scaledOffset_
Point size scaled position adjustment for glyphs.
Definition: Font.h:112
HorizontalAlignment
UI element horizontal alignment.
Definition: UIElement.h:37
String GetStringCopy(const StringHash &hash) const
Return string for given StringHash. Return empty string if not found.
Definition: StringHashRegister.cpp:76
bool GetData(unsigned level, void *dest) const
Get data from a mip level. The destination buffer must be big enough. Return true if successful.
Definition: OGLTexture3D.cpp:298
void SetLinearDamping(float damping)
Definition: RigidBody.cpp:327
void OnWindowMoved()
Window was moved through user interaction. Called by Input subsystem.
Definition: OGLGraphics.cpp:2251
const String & GetSourceCode(ShaderType type) const
Return either vertex or pixel shader source code.
Definition: Shader.h:57
PODVector(const PODVector< T > &vector)
Construct from another vector.
Definition: Vector.h:717
float GetFloat() const
Return float or zero on type mismatch. Ints and doubles are converted.
Definition: Variant.h:1150
void SetSelections(const PODVector< unsigned > &indices)
Set multiple selected items. If multiselect disabled, sets only the first.
Definition: ListView.cpp:517
UI element that can be toggled between unchecked and checked state.
Definition: CheckBox.h:31
void ClientDisconnected(const SLNet::AddressOrGUID &connection)
Handle a client disconnection.
Definition: Network.cpp:323
Vector< Vector2 > points_
Points(for polygon and polyline).
Definition: TileMapDefs2D.h:239
CollisionPolygon2D(Context *context)
Construct.
Definition: CollisionPolygon2D.cpp:38
SharedPtr< LuaFile > scriptFile_
Script file.
Definition: LuaScriptInstance.h:177
Vector< SharedPtr< PackageFile > > packages_
Package files.
Definition: ResourceCache.h:256
void GetComponents(PODVector< Component * > &dest, StringHash type) const
Return components in the same scene node by type.
Definition: Component.cpp:275
void SendPackages()
Send package files to client. Called by network.
Definition: Connection.cpp:351
ColorFrame(const Color &color, float time)
Construct from a color and time.
Definition: ParticleEffect.h:61
static const Rect POSITIVE
Rect in the range (0, 0) - (1, 1).
Definition: Rect.h:274
UIComponent(Context *context)
Construct.
Definition: UIComponent.cpp:150
void OnDeviceLost() override
Mark the GPU resource destroyed on context destruction.
Definition: OGLTexture2D.cpp:42
Vector3 ProjectOntoPlane(const Vector3 &origin, const Vector3 &normal) const
Project position vector onto plane with given origin and normal.
Definition: Vector3.h:365
HashMap< StringHash, SharedPtr< Object > > subsystems_
Subsystems.
Definition: Context.h:228
void SetTextureAttr(const ResourceRef &value)
Set texture attribute.
Definition: Sprite.cpp:290
void WriteFloat(XMLElement &element, const String &name, float value) const
Write float.
Definition: ParticleEffect2D.cpp:548
int maxOccluderTriangles_
Maximum occluder triangles.
Definition: Renderer.h:631
const Vector< SharedPtr< Node > > & GetChildren() const
Return immediate child scene nodes.
Definition: Node.h:560
IntVector2 modalFrameSize_
Modal frame size, used when modal flag is set.
Definition: Window.h:187
void SetScaledGlyphOffset(const Vector2 &offset)
Definition: Font.cpp:134
bool endPointDirty_
Endpoint changed flag.
Definition: OffMeshConnection.h:96
const XPathResultSet * xpathResultSet_
XPath query result set.
Definition: XMLElement.h:320
void DrawDebugGeometry(bool depthTest)
Draw debug geometry.
Definition: CrowdAgent.cpp:164
void * ptr_
Attribute data pointer if elsewhere than in the Serializable.
Definition: Attribute.h:116
BlendMode GetBlendMode() const
Definition: ParticleEmitter2D.h:115
static bool CompareNodes(Node *&lhs, Node *&rhs)
Compare two nodes.
Definition: HashMap.h:777
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:172
Vector< ContactInfo > endContactInfos_
End contact infos.
Definition: PhysicsWorld2D.h:308
Vector< AnimationStateTrack > stateTracks_
Per-track data.
Definition: AnimationState.h:185
void ResetLodLevels()
Reset LOD levels.
Definition: StaticModel.cpp:405
Material rendering pass, which defines shaders and render state.
Definition: Technique.h:44
HashMap< const void *, SharedPtr< LuaFunction > > functionPointerToFunctionMap_
Function pointer to function map.
Definition: LuaScript.h:127
void SetExecuteConsoleCommands(bool enable)
Definition: FileSystem.cpp:361
unsigned char renderOrder_
8-bit render order modifier from material.
Definition: Batch.h:205
void SetAttributeAnimation(const String &name, ValueAnimation *attributeAnimation, WrapMode wrapMode=WM_LOOP, float speed=1.0f)
Set attribute animation.
Definition: Animatable.cpp:320
static void ClearParameterSources()
Clear all parameter sources from all shader programs by incrementing the global parameter source fram...
Definition: OGLShaderProgram.cpp:403
EventHandler * Clone() const override
Return a unique copy of the event handler.
Definition: Object.h:357
void GetChildrenWithComponentRecursive(PODVector< Node * > &dest, StringHash type) const
Return child nodes with a specific component recursively.
Definition: Node.cpp:2146
CullMode GetCullMode() const
Return culling mode.
Definition: OcclusionBuffer.h:147
bool morphsDirty_
Vertex morphs dirty flag.
Definition: AnimatedModel.h:259
float EvaluateToFloat(const XMLElement &element) const
Evaluate XPath query and expecting a float return value.
Definition: XMLElement.cpp:1171
SharedArrayPtr< int > clipBuffer_
Clipping buffer for mixing.
Definition: Audio.h:137
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:412
unsigned resolveSrcFBO_
Read frame buffer for multisampled texture resolves.
Definition: OGLGraphicsImpl.h:132
float GetMaxRadius() const
Return max radius.
Definition: ParticleEffect2D.h:209
const PODVector< Node * > & GetDependencyNodes() const
Return the depended on nodes to order network updates.
Definition: Node.h:657
PODVector< bool > buttonPress_
Button pressed on this frame.
Definition: Input.h:132
float animationLodTimer_
Animation LOD timer.
Definition: BillboardSet.h:180
void SetData(const void *data, unsigned dataSize)
Set uncompressed sound data.
Definition: Sound.cpp:236
void SetTransform(const Vector3 &position, const Quaternion &rotation)
Set offset transform.
Definition: CollisionShape.cpp:769
bool useHotSpot_
Use hot spot flag.
Definition: StaticSprite2D.h:184
unsigned activeOccluders_
Number of active occluders.
Definition: View.h:404
asIScriptModule * scriptModule_
Script module.
Definition: ScriptFile.h:134
~StringHashRegister()
Destruct.
Definition: StringHashRegister.cpp:43
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:1034
void UpdateSourceBatches() override
Update source batches.
Definition: StretchableSprite2D.cpp:150
void SetMaxAgents(unsigned maxAgents)
Definition: CrowdManager.cpp:236
bool Save(Serializer &dest) const override
Save as binary data. Return true if successful.
Definition: Node.cpp:115
void RemoveEventHandler(const String &eventName) override
Remove a scripted event handler.
Definition: LuaScript.cpp:192
void ProtrudeShape(const Vector< Vector3 > &mShapeList, const Vector< Vector3 > &mPointList, bool connectTail=false)
Definition: CustomGeometry.cpp:374
void SetCollideConnected(bool collideConnected)
Definition: Constraint2D.cpp:132
AnimationTriggerPoint()
Construct.
Definition: Animation.h:108
@ 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 RemoveUnusedBuffers()
Remove unused occlusion and screen buffers.
Definition: Renderer.cpp:1533
String GetResourceFileName(const String &name) const
Return full absolute file name of resource if possible, or empty if not found.
Definition: ResourceCache.cpp:785
void OnDrawOrderChanged() override
Handle draw order changed.
Definition: StaticSprite2D.cpp:290
void AddLine(const Vector3 &start, const Vector3 &end, const Color &color, bool depthTest=true)
Add a line.
Definition: DebugRenderer.cpp:87
HashMap< unsigned, PODVector< unsigned char > > componentLatestData_
Pending latest data for not yet received components.
Definition: Connection.h:332
bool SaveXML(XMLElement &dest) const
Save as XML data. Return true if successful.
Definition: ValueAnimation.cpp:125
void OnDeviceLost() override
Mark the GPU resource destroyed on context destruction.
Definition: OGLTexture2DArray.cpp:46
const Quaternion & GetQuaternion() const
Return quaternion or identity on type mismatch.
Definition: Variant.h:1189
HashMap< StringHash, PackageUpload > uploads_
Ongoing package send transfers.
Definition: Connection.h:328
void Reset()
Reset to null and release the weak reference.
Definition: ArrayPtr.h:346
float particleLifeSpan_
Particle lifespan.
Definition: ParticleEffect2D.h:268
nanodbc::result resultImpl_
The underlying implementation connection object.
Definition: ODBCResult.h:64
void SetMotorSpeed(float motorSpeed)
Definition: ConstraintWheel2D.cpp:114
float GetRandomRotationSpeed() const
Return random rotationspeed.
Definition: ParticleEffect.cpp:811
static void RegisterObject(Context *context)
Register object factory.
Definition: JSONFile.cpp:52
bool GetWarmStarting() const
Definition: PhysicsWorld2D.cpp:685
virtual bool Save(Serializer &dest) const
Save resource. Return true if successful.
Definition: Resource.cpp:81
Vector2 floatPosition_
Floating point position.
Definition: Sprite.h:126
bool updateInvisible_
Update when invisible flag.
Definition: RibbonTrail.h:279
TimelineKey * GetTimelineKey(Ref *ref) const
Get timeline key by ref.
Definition: SpriterInstance2D.cpp:260
String vertexShaderDefines_
Vertex shader defines.
Definition: RenderPath.h:166
void RaycastSingle(RayOctreeQuery &query) const
Return the closest drawable object by a ray query.
Definition: Octree.cpp:510
static void RegisterObject(Context *context)
Register object factory.
Definition: Camera.cpp:83
String & AppendWithFormatArgs(const char *formatString, va_list args)
Append to string using variable arguments.
Definition: Str.cpp:1087
void SetPlayPositionLockless(signed char *pos)
Set new playback position without locking the audio mutex. Called internally.
Definition: SoundSource.cpp:586
WeakPtr< UIElement > touchedElement_
Last touched UI element from screen joystick.
Definition: Input.h:75
void Raycast(PODVector< 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:497
float traveled_
The fraction of the SplinePath covered.
Definition: SplinePath.h:140
XPathResultSet()
Construct empty result set.
Definition: XMLElement.cpp:1003
void MakeSquare(float size)
Makes this custom geometry into a square shape.
Definition: CustomGeometry.cpp:485
Variant CatmullRomInterpolation(const Vector< Variant > &knots, float t) const
Perform Spline interpolation on the spline.
Definition: Spline.cpp:191
void ApplyShaderDefines(unsigned index=M_MAX_UNSIGNED)
Reapply shader defines to technique index. By default reapply all.
Definition: Material.cpp:1366
ResourceRefList GetResourceRefList() const
Return a resource reference list attribute, or empty if missing.
Definition: XMLElement.cpp:887
Connection * GetConnection(const SLNet::AddressOrGUID &connection) const
Return a client or server connection by RakNet connection address, or null if none exist.
Definition: Network.cpp:654
void BindDepthAttachment(unsigned object, bool isRenderBuffer)
Bind a framebuffer depth attachment using either extension or core functionality. Used only on OpenGL...
Definition: OGLGraphics.cpp:3310
void SetTextAttr(const String &value)
Set text attribute.
Definition: Text3D.cpp:551
void SetDefaultTextureFilterMode(TextureFilterMode mode)
Set default texture filtering mode. Called by Renderer before rendering.
Definition: OGLGraphics.cpp:1581
virtual String ToString() const
Convert custom value to string.
Definition: Variant.h:207
ResourceRef GetMaterialAttr() const
Return material attribute.
Definition: Terrain.cpp:838
void SetNumOutputs(unsigned num)
Definition: RenderPath.cpp:252
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:308
Per-user scene network replication state.
Definition: ReplicationState.h:175
Trail is consisting of series of tails. Two connected points make a tail.
Definition: RibbonTrail.h:42
VertexElement() noexcept
Default-construct.
Definition: GraphicsDefs.h:186
Geometry * GetMaxLodGeometry() const
Return max LOD geometry. Used for decals.
Definition: TerrainPatch.cpp:253
ManifoldPair()
Construct with defaults.
Definition: PhysicsWorld.h:97
void OnResize(const IntVector2 &newSize, const IntVector2 &delta) override
React to resize.
Definition: ListView.cpp:315
void SetMinOffset(const IntVector2 &offset)
Definition: UIElement.cpp:749
WeakPtr< Scene > defaultScene_
Immediate execution scene.
Definition: Script.h:135
void UpdateBatches(const FrameInfo &frame) override
Calculate distance and prepare batches for rendering. May be called from worker thread(s),...
Definition: BillboardSet.cpp:180
void PurgeCompleted(unsigned priority)
Purge completed work items which have at least the specified priority, and send completion events as ...
Definition: WorkQueue.cpp:342
Quaternion(const Matrix3 &matrix) noexcept
Construct from a rotation matrix.
Definition: Quaternion.h:132
static const Matrix3x4 IDENTITY
Identity matrix.
Definition: Matrix3x4.h:711
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:146
VertexBuffer * vertexBuffers_[MAX_VERTEX_STREAMS]
Vertex buffers in use.
Definition: Graphics.h:830
TSetFunction setFunction_
Set functor.
Definition: Serializable.h:185
void SetProjection(const Matrix4 &projection)
Definition: Camera.cpp:252
bool RemoveTag(const String &tag)
Remove tag. Return true if existed.
Definition: Node.cpp:391
unsigned GetIntFrequency() const
Return default frequency as an integer.
Definition: Sound.h:98
void LoadMultipleLanguageJSON(const JSONValue &source)
Load strings from JSONValue.
Definition: Localization.cpp:169
void SetMaxMotorTorque(float maxMotorTorque)
Definition: ConstraintWheel2D.cpp:99
bool IsNaN() const
Return whether any element is NaN.
Definition: Quaternion.h:419
const Vector4 & GetVector4() const
Return Vector4 or zero on type mismatch.
Definition: Variant.h:1186
Vector3(const float *data) noexcept
Construct from a float array.
Definition: Vector3.h:239
@ AM_NODEIDVECTOR
Attribute is a node ID vector where first element is the amount of nodes.
Definition: Attribute.h:53
const PODVector< unsigned char > & GetByteCode() const
Return shader bytecode. Stored persistently on Direct3D11 only.
Definition: ShaderVariation.h:126
PODVector< Billboard > billboards_
Billboards.
Definition: BillboardSet.h:176
bool TryAcquire()
Try to acquire the mutex without locking. Return true if successful.
Definition: Mutex.cpp:94
UIElement * GetElementEventSender() const
Get element which should send child added / removed events.
Definition: UIElement.cpp:1853
bool GetClearSelectionOnDefocus() const
Definition: ListView.h:163
bool ReloadResource(Resource *resource)
Reload a resource. Return true on success. The resource will not be removed from the cache in case of...
Definition: ResourceCache.cpp:372
void SetMaxSize(const IntVector2 &maxSize)
Definition: UIElement.cpp:625
bool batchedParameterUpdate_
Flag to suppress parameter hash and memory use recalculation when setting multiple shader parameters ...
Definition: Material.h:350
bool WriteDouble(double value)
Write a double.
Definition: Serializer.cpp:86
SharedPtr< Image > loadImage_
Image file acquired during BeginLoad.
Definition: Texture2D.h:91
T * operator->() const
Point to the node value.
Definition: List.h:100
void Join(const Vector< String > &subStrings, const String &glue)
Join substrings with a 'glue' string.
Definition: Str.cpp:566
void Raycast(PODVector< PhysicsRaycastResult > &result, const Ray &ray, float maxDistance, unsigned collisionMask=M_MAX_UNSIGNED)
Perform a physics world raycast and return all hits.
Definition: PhysicsWorld.cpp:372
unsigned short GetIncludeFlags(unsigned queryFilterType) const
Get the include flags for the specified query filter type.
Definition: CrowdManager.cpp:483
~WeakArrayPtr()
Destruct. Release the weak reference to the array.
Definition: ArrayPtr.h:258
static unsigned litBasePassIndex
Index for lit base pass. Initialized once GetPassIndex() has been called for the first time.
Definition: Technique.h:302
@ LM_VERTICAL
Layout child elements vertically and resize them to fit. Resize element if necessary.
Definition: UIElement.h:92
SharedPtr< Geometry > geometry_
Geometry.
Definition: TerrainPatch.h:118
unsigned short setTime_
Set time command.
Definition: AnimationController.h:73
HashSet & operator+=(const T &rhs)
Add-assign a value.
Definition: HashSet.h:238
void DelayedExecute(float delay, bool repeat, const String &declaration, const VariantVector ¶meters=Variant::emptyVariantVector)
Add a delay-executed method call, optionally repeating.
Definition: ScriptInstance.cpp:300
void SetSplineTension(float tension)
Definition: ValueAnimation.cpp:268
bool ProcessSource(String &code, Deserializer &source)
Process source code and include files. Return true if successful.
Definition: Shader.cpp:160
bool sourceBatchesDirty_
Source batches dirty flag.
Definition: Drawable2D.h:122
AnimatedSprite2D(Context *context)
Construct.
Definition: AnimatedSprite2D.cpp:55
VariantMap identity_
Client identify for NAT punchtrough connections.
Definition: Network.h:194
unsigned loadedNodes_
Loaded root-level nodes.
Definition: Scene.h:81
XMLElement xmlElement_
Current XML element for XML mode.
Definition: Scene.h:67
PODVector< T > operator+(const T &rhs) const
Add an element.
Definition: Vector.h:762
void SetMaxRadiusVariance(float maxRadiusVariance)
Set max radius variance.
Definition: ParticleEffect2D.cpp:424
unsigned char adaptiveDivs
adaptive
Definition: CrowdManager.h:54
void SetScreenJoystickVisible(SDL_JoystickID id, bool enable)
Definition: Input.cpp:1169
void SetGBufferShaderParameters(const IntVector2 &texSize, const IntRect &viewRect)
Set G-buffer offset and inverse size shader parameters. Called by Batch and internally by View.
Definition: View.cpp:770
SharedArrayPtr< unsigned char > inputBuffer_
Decompression input buffer for compressed file loading.
Definition: File.h:136
virtual void FixedPostUpdate(float timeStep)
Called on physics post-update, fixed timestep.
Definition: LogicComponent.cpp:63
VertexElementType
Arbitrary vertex declaration element datatypes.
Definition: GraphicsDefs.h:155
Color(unsigned color, const ChannelMask &mask=ABGR)
Construct from 32-bit integer. Default format is 0xAABBGGRR.
Definition: Color.h:102
void Clear()
Clear by removing all variables and XPath query object.
Definition: XMLElement.cpp:1154
void RemoveEventReceiver(Object *receiver, Object *sender, StringHash eventType)
Remove event receiver from specific events.
Definition: Context.cpp:447
virtual UpdateGeometryType GetUpdateGeometryType()
Return whether a geometry update is necessary, and if it can happen in a worker thread.
Definition: Drawable.h:138
PODVector< DebugTriangle > triangles_
Triangles rendered with depth test.
Definition: DebugRenderer.h:182
SDL_RWops ops_
SDL RWOps structure associated with the object.
Definition: RWOpsWrapper.h:117
SharedPtr< IndexBuffer > indexBuffer_
Shared index buffer.
Definition: Terrain.h:292
void ResetTarget()
Reset any target request for the specified agent. Note that the agent will continue to move into the ...
Definition: CrowdAgent.cpp:358
WeakPtr< TileMap2D > tileMap_
Tile map.
Definition: TileMapLayer2D.h:122
void SetTexture(Texture2D *texture)
Definition: SpriteSheet2D.cpp:91
bool uiRendered_
Flag for UI already being rendered this frame.
Definition: UI.h:454
bool assignBonesPending_
Bone nodes assignment pending flag.
Definition: DecalSet.h:260
EventHandler * FindSpecificEventHandler(Object *sender, EventHandler **previous=nullptr) const
Find the first event handler with specific sender.
Definition: Object.cpp:479
float GetMinRadius() const
Return min radius.
Definition: ParticleEffect2D.h:215
const RenderPathCommand * passCommand_
Pointer to the current commmand if it contains shader parameters to be set for a render pass.
Definition: View.h:437
unsigned char setWeightRev_
Set weight command revision.
Definition: AnimationController.h:79
void SetName(const String &name)
Change the file name. Used by the resource system.
Definition: File.cpp:414
void ApplyMorph(VertexBuffer *buffer, void *destVertexData, unsigned morphRangeStart, const VertexBufferMorph &morph, float weight)
Apply a vertex morph.
Definition: AnimatedModel.cpp:1386
unsigned fragmentSize_
Clip buffer size in samples.
Definition: Audio.h:145
void SetMaxTorque(float maxTorque)
Definition: ConstraintFriction2D.cpp:84
bool osShapeDirty_
OS cursor shape needs update flag.
Definition: Cursor.h:148
Manifold pointers stored during collision processing.
Definition: PhysicsWorld.h:94
unsigned char drawableFlags_
Drawable flags to include.
Definition: OctreeQuery.h:67
void HandleBeginFrame(StringHash eventType, VariantMap &eventData)
Handle frame begin event.
Definition: UI.cpp:2039
unsigned litAlphaPassIndex_
Index of the litalpha pass.
Definition: View.h:431
void AddRef()
Add a weak reference to the array pointed to.
Definition: ArrayPtr.h:398
float ProjectOntoAxis(const Vector3 &axis) const
Project vector onto axis.
Definition: Vector4.h:180
void CreateInstancingBuffer()
Create instancing vertex buffer.
Definition: Renderer.cpp:1879
ConstIterator & operator--()
Predecrement the pointer.
Definition: List.h:147
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:38
void Merge(const BoundingBox &box)
Merge another bounding box.
Definition: BoundingBox.h:201
virtual void OnIndentSet()
React to indent change.
Definition: UIElement.h:202
static StringHashRegister * GetGlobalStringHashRegister()
Get global StringHashRegister. Use for debug purposes only. Return nullptr if URHO3D_HASH_DEBUG is of...
Definition: StringHash.cpp:84
void CalculateBoundingBox()
Recalculate the local-space bounding box.
Definition: DecalSet.cpp:1002
void SetTargetPosition(const Vector3 &targetPosition)
Definition: IKEffector.cpp:118
unsigned NumBuckets() const
Return number of buckets.
Definition: HashBase.h:130
SharedArrayPtr< float > heightData_
Height data.
Definition: Terrain.h:296
bool GetLightPrepassSupport() const
Definition: Graphics.h:453
void SetScale(float scale)
Set uniform scaling elements.
Definition: Matrix2.h:147
IntVector2 disabledOffset_
Offset to image rectangle when disabled.
Definition: BorderImage.h:145
bool sendEvent_
Whether to send event on completion.
Definition: WorkQueue.h:60
int mouseMoveWheel_
Mouse wheel movement since last frame.
Definition: Input.h:442
unsigned GetNumDragElements() const
Return the number of currently dragged elements.
Definition: UI.h:189
Quaternion lastRotation_
Last interpolated rotation from the simulation.
Definition: RigidBody.h:351
Vector< PerThreadSceneResult > sceneResults_
Per-thread geometries, lights and Z range collection results.
Definition: View.h:390
String lastUsedFilter_
Filter used to get the file list.
Definition: FileSelector.h:205
Matrix2 Scaled(const Vector2 &scale) const
Return scaled by a vector.
Definition: Matrix2.h:174
const FrameInfo & GetFrameInfo() const
Return information of the frame being rendered.
Definition: View.h:148
FaceCameraMode GetFaceCameraMode() const
Definition: BillboardSet.h:146
VariantVector GetAnimationStatesAttr() const
Return animation states attribute.
Definition: AnimatedModel.cpp:877
Iterator Insert(const Iterator &dest, const ConstIterator &start, const ConstIterator &end)
Insert a vector partially by iterators.
Definition: Vector.h:913
bool IsTypeOf(StringHash type) const
Check current type is type of specified type.
Definition: Object.cpp:45
void QueueUpdate()
Queue manual update of the viewport(s).
Definition: RenderSurface.cpp:72
void HandleUIMouseDoubleClick(StringHash eventType, VariantMap &eventData)
Handle global UI mouse doubleclick.
Definition: ListView.cpp:1107
void SetRawIndexData(const SharedArrayPtr< unsigned char > &data, unsigned indexSize)
Override raw index data to be returned for CPU-side operations.
Definition: Geometry.cpp:170
void SetVertexCount(unsigned count)
Definition: CollisionPolygon2D.cpp:55
SharedPtr< Texture2D > renderTexture_
Renderable texture.
Definition: View3D.h:94
const VariantMap & GetVars() const
Return all user variables.
Definition: UIElement.h:690
unsigned numCompressedLevels_
Number of compressed mip levels.
Definition: Image.h:235
void RemoveTextureFrame(unsigned index)
Remove texture frame at index.
Definition: ParticleEffect.cpp:696
@ AM_LATESTDATA
Attribute should use latest data grouping instead of delta update in network replication.
Definition: Attribute.h:45
HashSet< String > includeFiles_
Encountered include files during script file loading.
Definition: ScriptFile.h:140
bool scaled_
Scale affects billboard scale flag.
Definition: ParticleEffect.h:435
unsigned long long GetUInt64(const String &name) const
Return an unsigned long long integer attribute, or zero if missing.
Definition: XMLElement.cpp:812
Union for the possible variant values. Objects exceeding the VARIANT_VALUE_SIZE are allocated on the ...
Definition: Variant.h:282
Scene * scene_
Scene which will be used for NAT punchtrough connections.
Definition: Network.h:192
OctreeQuery(PODVector< Drawable * > &result, unsigned char drawableFlags, unsigned viewMask)
Construct with query parameters.
Definition: OctreeQuery.h:44
float & operator[](unsigned index)
Return mutable value by index.
Definition: Vector4.h:168
const Vector< SharedPtr< PackageFile > > & GetPackageFiles() const
Definition: ResourceCache.h:170
virtual bool OnDragDropTest(UIElement *source)
React to drag and drop test. Return true to signal that the drop is acceptable.
Definition: UIElement.cpp:452
void SetNavigationPushiness(NavigationPushiness val)
Definition: CrowdAgent.cpp:463
void ReleaseResources(StringHash type, bool force=false)
Release all resources of a specific type.
Definition: ResourceCache.cpp:261
void SetSourcePositionVariance(const Vector2 &sourcePositionVariance)
Set source position variance.
Definition: ParticleEffect2D.cpp:304
Vector< SharedPtr< Image > > loadImages_
Face image files acquired during BeginLoad.
Definition: TextureCube.h:90
bool TryGetValue(const T &key, U &out) const
Try to copy value to output. Return true if was found.
Definition: HashMap.h:567
FlagSet & operator&=(const Enum value)
Bitwise AND against Enum value.
Definition: FlagSet.h:76
SharedArrayPtr< unsigned char > GetShadowDataShared() const
Return shared array pointer to the CPU memory shadow data.
Definition: VertexBuffer.h:116
bool EndLoad() override
Finish resource loading. Always called from the main thread. Return true if successful.
Definition: TmxFile2D.cpp:451
bool SetUInt64(const String &name, unsigned long long value)
Set an unsigned long long integer attribute.
Definition: XMLElement.cpp:372
XMLElement & operator=(const XMLElement &rhs)
Assignment operator.
Definition: XMLElement.cpp:84
ResourceRef GetMaterialAttr() const
Get material attribute.
Definition: BorderImage.cpp:237
static void RegisterObject(Context *context)
Register object factory.
Definition: UIComponent.cpp:177
bool FilterImplicitAttributes(XMLElement &dest) const override
Filter implicit attributes in serialization process.
Definition: ProgressBar.cpp:120
void HandleBeginFrame(StringHash eventType, VariantMap &eventData)
Handle begin frame event.
Definition: Network.cpp:974
bool WriteMatrix4(const Matrix4 &value)
Write a Matrix4.
Definition: Serializer.cpp:164
BatchQueue shadowBatches_
Shadow caster draw calls.
Definition: Batch.h:284
String psExtraDefines_
Pixel shader extra defines.
Definition: Batch.h:269
void * lockScratchData_
Scratch buffer for fallback locking.
Definition: IndexBuffer.h:116
static void SetMainThread()
Set the current thread as the main thread.
Definition: Thread.cpp:132
void SetSortValue(float value)
Set sorting value.
Definition: Drawable.cpp:291
void ApplyToModel()
Apply animation to a skeleton. Transform changes are applied silently, so the model needs to dirty it...
Definition: AnimationState.cpp:455
const IntVector2 & GetViewPosition() const
Definition: ScrollView.h:104
void SetType(JSONValueType valueType, JSONNumberType numberType=JSONNT_NAN)
Set value type and number type, internal function.
Definition: JSONValue.cpp:344
bool Create() override
Create the GPU texture.
Definition: OGLTexture2DArray.cpp:419
RenderSurfaceUpdateMode GetUpdateMode() const
Definition: RenderSurface.h:98
bool geometryTypeUpdate_
Update billboard geometry type.
Definition: BillboardSet.h:217
void SetNumColorFrames(unsigned number)
Definition: ParticleEffect.cpp:646
PODVector< unsigned char > GetDecalsAttr() const
Return decals attribute.
Definition: DecalSet.cpp:602
bool directoryMode_
Directory mode flag.
Definition: FileSelector.h:207
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:1549
void SendPackageError(const String &name)
Send an error reply for a package download.
Definition: Connection.cpp:1567
void HandleFocused(StringHash eventType, VariantMap &eventData)
Handle being focused.
Definition: LineEdit.cpp:637
Definition: Sphere.h:36
@ TM_BREADTH_FIRST
Traverse through children having same priority first and recurse into their children before traversin...
Definition: UIElement.h:99
void SetWheelRestLength(int wheel, float length)
Get wheel rest length.
Definition: RaycastVehicle.cpp:650
String declaration_
Function declaration.
Definition: ScriptEventListener.h:46
float GetBeginTime() const
Return begin time.
Definition: ValueAnimation.h:129
void HandleSliderPaged(StringHash eventType, VariantMap &eventData)
Handle slider touch and click on "paging" area.
Definition: ScrollBar.cpp:295
float GetBufferLength() const
Return length of buffered (unplayed) sound data in seconds.
Definition: BufferedSoundStream.cpp:123
void SetAnisotropicFriction(const Vector3 &friction)
Definition: RigidBody.cpp:383
unsigned cursorPosition_
Text edit cursor position.
Definition: LineEdit.h:158
void Compact()
Reallocate so that no extra memory is used.
Definition: Str.cpp:472
JSONValue(bool value)
Construct with a boolean.
Definition: JSONValue.h:83
ScriptInstance(Context *context)
Construct.
Definition: ScriptInstance.cpp:65
T RoundToNearestMultiple(T x, T multiple)
Round value to nearest multiple.
Definition: MathDefs.h:241
unsigned vertexCount_
Number of vertices.
Definition: Model.h:46
void SetDrawShape(bool drawShape)
Definition: PhysicsWorld2D.cpp:347
void MarkNetworkUpdate() override
Mark for attribute check on the next network update.
Definition: Component.cpp:99
RigidBody2D * body_
Rigid body that was hit.
Definition: PhysicsWorld2D.h:53
void RemoveAllGestures()
Remove all in-memory gestures.
Definition: Input.cpp:1261
VariantVector GetVariantVector() const
Return a variant vector.
Definition: JSONValue.cpp:605
void RemoveConstraint(Constraint *constraint)
Remove a constraint. Called by Constraint.
Definition: PhysicsWorld.cpp:745
short ReadShort()
Read a 16-bit integer.
Definition: Deserializer.cpp:77
void Insert(unsigned pos, const String &str)
Insert a string.
Definition: Str.cpp:334
HashMap< unsigned, SharedPtr< PropertySet2D > > gidToPropertySetMapping_
Gid to tile property set mapping.
Definition: TmxFile2D.h:224
Technique * GetTechnique(Drawable *drawable, Material *material)
Return material technique, considering the drawable's LOD distance.
Definition: View.cpp:2813
static void RegisterObject(Context *context)
Register object factory. Drawable must be registered first.
Definition: AnimatedModel.cpp:102
void SetMouseGrabbed(bool grab, bool suppressEvent=false)
Set whether the mouse is currently being grabbed by an operation.
Definition: Input.cpp:811
bool animationOrderDirty_
Animation order dirty flag.
Definition: AnimatedModel.h:257
HashMap< Camera *, WeakPtr< View > > preparedViews_
Prepared views by culling camera.
Definition: Renderer.h:595
void AddViewBatch(ViewBatchInfo2D &viewBatchInfo, Material *material, unsigned indexStart, unsigned indexCount, unsigned vertexStart, unsigned vertexCount, float distance)
Add view batch.
Definition: Renderer2D.cpp:492
static unsigned basePassIndex
Index for base pass. Initialized once GetPassIndex() has been called for the first time.
Definition: Technique.h:292
void SetKey(Key key, Scancode scancode, bool newState)
Handle a key change.
Definition: Input.cpp:1774
const Vector< VAnimKeyFrame > & GetKeyFrames() const
Return all key frames.
Definition: ValueAnimation.h:138
TextureCube * GetFaceSelectCubeMap() const
Return the shadowed pointlight face selection cube map.
Definition: Renderer.h:442
float GetMobileShadowBiasMul() const
Definition: Renderer.h:390
unsigned auxViewFrameNumber_
Last auxiliary view rendered frame number.
Definition: Material.h:336
ObjectFactory(Context *context)
Construct.
Definition: Object.h:211
void GetEventFrames(float beginTime, float endTime, PODVector< const VAnimEventFrame * > &eventFrames) const
Return all event frames between time.
Definition: ValueAnimation.cpp:361
unsigned Write(const void *data, unsigned size) override
Write bytes to the file. Return number of bytes actually written.
Definition: File.cpp:315
ClearTargetFlags clearFlags_
Clear flags. Affects clear command only.
Definition: RenderPath.h:178
void SetGravity(const Vector2 &gravity)
Set gravity.
Definition: ParticleEffect2D.cpp:339
T GetMetadata(const StringHash &key) const
Get attribute metadata of specified type.
Definition: Attribute.h:96
UpdateGeometryType GetUpdateGeometryType() override
Return whether a geometry update is necessary, and if it can happen in a worker thread.
Definition: Text3D.cpp:173
Definition: ParticleEffect.h:45
Vector< IndexBufferDesc > loadIBData_
Index buffer data for asynchronous loading.
Definition: Model.h:238
Vector(const Vector< T > &vector)
Copy-construct from another vector.
Definition: Vector.h:77
void RemovePackageFile(PackageFile *package, bool releaseResources=true, bool forceRelease=false)
Remove a package file. Optionally release the resources loaded from it.
Definition: ResourceCache.cpp:209
bool HasEventHandler(const String &eventName) const override
Return whether has subscribed to an event.
Definition: LuaScript.cpp:227
T * GetChildStaticCast(unsigned index) const
Template version of returning child element by index using static cast.
Definition: UIElement.h:939
void OnDragMove(const IntVector2 &position, const IntVector2 &screenPosition, const IntVector2 &deltaPos, MouseButtonFlags buttons, QualifierFlags qualifiers, Cursor *cursor) override
React to mouse drag motion.
Definition: Button.cpp:141
void SendEvent(StringHash eventType, Args... args)
Send event with variadic parameter pairs to all subscribers. The parameter pairs is a list of paramID...
Definition: Object.h:142
void SetBasePass(unsigned batchIndex)
Set base pass flag for a batch.
Definition: Drawable.h:273
void SetViewPosition(const IntVector2 &position)
Definition: ScrollView.cpp:301
bool printing_
Flag when printing messages to prevent endless loop.
Definition: Console.h:210
~ConstantBuffer() override
Destruct.
Definition: ConstantBuffer.cpp:40
const Vector3 & GetEmitterSize() const
Definition: ParticleEffect.h:299
Iterator(Node *ptr)
Construct with a node pointer.
Definition: HashSet.h:70
void OnMarkedDirty(Node *node) override
Handle node transform being dirtied.
Definition: RigidBody2D.cpp:587
void SetVertexData(VertexBuffer *dest, const PODVector< float > &vertexData)
Upload UI geometry into a vertex buffer.
Definition: UI.cpp:980
Variant GetVariant() const
Return a variant attribute, or empty if missing.
Definition: XMLElement.cpp:847
void Define(const BoundingBox &box)
Define from another bounding box.
Definition: BoundingBox.h:146
float SaturationHSL() const
Return saturation as defined for HSL.
Definition: Color.cpp:135
void SetAnchor(const Vector2 &anchor)
Definition: ConstraintWeld2D.cpp:56
void ProcessLights()
Get lit geometries and shadowcasters for visible lights.
Definition: View.cpp:977
StringHash() noexcept
Construct with zero value.
Definition: StringHash.h:37
PODVector< Light * > lights_
Per-pixel lights affecting this drawable.
Definition: Drawable.h:413
PODVector< UIBatch > batches_
UI rendering batches.
Definition: UI.h:296
void OnWorldBoundingBoxUpdate() override
Recalculate the world-space bounding box.
Definition: Light.cpp:542
virtual void OnWorldBoundingBoxUpdate()=0
Recalculate the world-space bounding box.
const String & GetTypeName() const
Return type name.
Definition: Object.h:57
void LimitLights()
Sort and limit per-pixel lights to maximum allowed. Convert extra lights into vertex lights.
Definition: Drawable.cpp:322
const PODVector< VertexElement > & GetElements() const
Definition: VertexBuffer.h:88
int maxSubSteps_
Maximum number of simulation substeps per frame. 0 (default) unlimited, or negative values for adapti...
Definition: PhysicsWorld.h:358
ConstraintPrismatic2D(Context *context)
Construct.
Definition: ConstraintPrismatic2D.cpp:37
FontHintLevel fontHintLevel_
FreeType hinting level (default is FONT_HINT_LEVEL_NORMAL).
Definition: UI.h:448
volatile float timePosition_
Playback time position.
Definition: SoundSource.h:203
@ AM_EDIT
Attribute shown only in the editor, but not serialized.
Definition: Attribute.h:37
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:356
static unsigned GetLuminanceAlphaFormat()
Return the API-specific luminance alpha texture format.
Definition: OGLGraphics.cpp:2569
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:541
void UpdateSourceBatches() override
Update source batches.
Definition: StaticSprite2D.cpp:295
void RecreateFixture()
Recreate fixture.
Definition: CollisionEdge2D.cpp:88
const IntVector2 & GetScreenPosition() const override
Update and return screen position.
Definition: Sprite.cpp:89
PODVector< float > & GetLodErrors()
Return geometrical error array.
Definition: TerrainPatch.h:101
void SetTextureName(TextureUnit unit, const String &name)
Definition: RenderPath.cpp:236
void SetUseTextureRect(bool useTextureRect)
Definition: StaticSprite2D.cpp:199
bool borderless_
Whether to hide window borders. Window is always borderless in fullscreen.
Definition: Graphics.h:86
IntVector2 SumTouchPositions(UI::DragData *dragData, const IntVector2 &oldSendPos)
Sum touch positions and return the begin position ready to send.
Definition: UI.cpp:2137
static void RegisterObject(Context *context)
Register object factory. Drawable2D must be registered first.
Definition: StaticSprite2D.cpp:62
void SetCullMode(CullMode mode)
Set culling mode.
Definition: OcclusionBuffer.cpp:134
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:701
unsigned char ReadUByte()
Read an 8-bit unsigned integer.
Definition: Deserializer.cpp:112
bool resetViews_
Flag for views needing reset.
Definition: Renderer.h:673
ResourceRef(StringHash type)
Construct with type only and empty id.
Definition: Variant.h:95
virtual void UpdateBatches(const FrameInfo &frame)
Calculate distance and prepare batches for rendering. May be called from worker thread(s),...
Definition: Drawable.cpp:134
void HandleRootElementResized(StringHash eventType, VariantMap &eventData)
Handle UI root resize.
Definition: Console.cpp:525
bool recreateShape_
Recreate collision shape flag.
Definition: CollisionShape.h:331
float GetKerning(unsigned c, unsigned d) const
Return the kerning for a character and the next character.
Definition: FontFace.cpp:67
WeakPtr< RigidBody > hullBody_
Hull RigidBody.
Definition: RaycastVehicle.h:195
void ProcessClickEnd(const IntVector2 &windowCursorPos, MouseButton button, MouseButtonFlags buttons, QualifierFlags qualifiers, Cursor *cursor, bool cursorVisible)
Handle button or touch end.
Definition: UI.cpp:1517
RenderSurface * substituteRenderTarget_
Substitute rendertarget for deferred rendering. Allocated if necessary.
Definition: View.h:334
bool EndsWith(const String &str, bool caseSensitive=true) const
Return whether ends with a string.
Definition: Str.cpp:717
void HandleAttributeAnimationUpdate(StringHash eventType, VariantMap &eventData)
Handle attribute animation update event.
Definition: Node.cpp:2261
T & operator[](unsigned index)
Return element at index.
Definition: Vector.h:194
bool HasElement(VertexElementSemantic semantic, unsigned char index=0) const
Return whether has a specified element semantic.
Definition: VertexBuffer.h:97
Vector< SharedPtr< PackageFile > > requiredPackageFiles_
Required package files for networking.
Definition: Scene.h:321
void SetOcclusionLodLevel(unsigned level)
Definition: Terrain.cpp:221
void SetVertexShaderDefines(const String &defines)
Definition: Material.cpp:935
bool allowInstancing_
Allow instancing flag.
Definition: View.h:85
void PatchRemove(const pugi::xpath_node &original) const
Remove a node or attribute in the Patch.
Definition: XMLFile.cpp:262
Vector3 GetDisplayDPI(int monitor=0) const
Definition: Graphics.cpp:330
bool IsTypeOf() const
Check current type is type of specified class type.
Definition: Object.h:52
Vector< WeakPtr< UIElement > > altTargets_
Alternative targets. Primarily targets parent.
Definition: ToolTip.h:65
void OnSetEnabled() override
Handle enabled/disabled state change.
Definition: Constraint.cpp:126
unsigned GetFreeComponentID(CreateMode mode)
Get free component ID, either non-local or local.
Definition: Scene.cpp:874
HashMap< StringHash, MaterialShaderParameter > shaderParameters_
Shader parameters.
Definition: Material.h:318
ParticleEmitter2D(Context *context)
Construct.
Definition: ParticleEmitter2D.cpp:45
Vector< SourceBatch2D > sourceBatches_
Source batches.
Definition: Drawable2D.h:120
const JSONArray & GetArray() const
Return JSON array value.
Definition: JSONValue.h:216
void SetShapeTextureAttr(const ResourceRef &value)
Set shape texture attribute.
Definition: Light.cpp:526
int GetMipsToSkip(MaterialQuality quality) const
Definition: Texture.cpp:124
Variant(const Quaternion &value)
Construct from a quaternion.
Definition: Variant.h:398
static void RegisterObject(Context *context)
Register object factory.
Definition: Sprite2D.cpp:49
Vector(const std::initializer_list< T > &list)
Aggregate initialization constructor.
Definition: Vector.h:95
void SetTransform2D(const Vector2 &position, float rotation)
Set both position and rotation in parent space as an atomic operation (for Urho2D).
Definition: Node.h:178
Node * FindNode(const T &key, unsigned hashKey, Node *&previous) const
Find a node and the previous node from the buckets. Do not call if the buckets have not been allocate...
Definition: HashMap.h:642
unsigned char * GetShadowData() const
Return CPU memory shadow data.
Definition: VertexBuffer.h:113
void SetScale(const Vector3 &scale)
Set scaling elements.
Definition: Matrix4.h:504
Vector< AttributeInfo > attributeInfos_
Attributes, including script object variables.
Definition: LuaScriptInstance.h:181
Color modalShadeColor_
Modal shade color, used when modal flag is set.
Definition: Window.h:183
bool RemoveChild(const XMLElement &element)
Remove a child element. Return true if successful.
Definition: XMLElement.cpp:147
void SetAutoDisableThreshold(float amount)
Definition: ScrollView.h:100
RenderSurface * depthStencil_
Depth-stencil surface in use.
Definition: Graphics.h:848
float rotationEnd_
Rotation end.
Definition: ParticleEffect2D.h:326
b2RevoluteJointDef jointDef_
Box2D joint def.
Definition: ConstraintRevolute2D.h:98
XPathResultSet Select(const String &query, pugi::xpath_variable_set *variables=nullptr) const
Select elements/attributes using XPath query.
Definition: XMLElement.cpp:245
unsigned mipsToSkip_[MAX_TEXTURE_QUALITY_LEVELS]
Mip levels to skip when loading per texture quality setting.
Definition: Texture.h:263
Matrix2(const float *data) noexcept
Construct from a float array.
Definition: Matrix2.h:57
bool perInstance_
Per-instance flag.
Definition: GraphicsDefs.h:218
HashMap< Pair< StringHash, StringHash >, BackgroundLoadItem > backgroundLoadQueue_
Resources that are queued for background loading.
Definition: BackgroundLoader.h:84
const JSONValue & Get(const String &key) const
Return JSON value with key.
Definition: JSONValue.cpp:276
void ApplyOriginalPoseToScene()
Definition: IKSolver.cpp:441
bool bufferSizeDirty_
Buffers need resize flag.
Definition: BillboardSet.h:211
bool CheckVisibility(Drawable2D *drawable) const
Check visibility.
Definition: Renderer2D.cpp:267
bool LoadChunk(lua_State *luaState)
Load buffer as chunk. Return true if the resource is successfully loaded as a Lua function on top of ...
Definition: LuaFile.cpp:87
RenderSurface * depthAttachment_
Bound depth/stencil attachment.
Definition: OGLGraphicsImpl.h:91
Quaternion(float angle) noexcept
Construct from an angle (in degrees, for Urho2D).
Definition: Quaternion.h:102
StoredLogMessage(const String &message, int level, bool error)
Construct with parameters.
Definition: Log.h:57
void RemoveConstraint2D(Constraint2D *constraint)
Remove constraint.
Definition: RigidBody2D.cpp:500
static void RegisterObject(Context *context)
Register object factory. Drawable2D must be registered first.
Definition: ParticleEffect2D.cpp:109
void SetPosition(const Vector3 &position)
Definition: RigidBody.cpp:226
HashMap< String, CursorShapeInfo > shapeInfos_
Shape definitions.
Definition: Cursor.h:144
void StoreResourceDependency(Resource *resource, const String &dependency)
Store a dependency for a resource. If a dependency file changes, the resource will be reloaded.
Definition: ResourceCache.cpp:884
CompareMode GetDepthTest() const
Return depth compare mode.
Definition: Graphics.h:565
unsigned GetTouchIndexFromID(int touchID)
Get the index of a touch based on the touch ID.
Definition: Input.cpp:1681
void DrawDebugGeometry()
Add debug geometry to the debug renderer.
Definition: PhysicsWorld2D.cpp:335
float Distance(const Vector3 &point) const
Return distance of a point to the frustum, or 0 if inside.
Definition: Frustum.h:162
PODVector< Drawable * > nonThreadedGeometries_
Geometry objects that will be updated in the main thread.
Definition: View.h:396
Vector3 previousPosition_
Agent's previous position used to check for position changes.
Definition: CrowdAgent.h:263
const HashMap< StringHash, ShaderParameter > & GetParameters() const
Return all parameter definitions. Not applicable on OpenGL, where this information is contained in Sh...
Definition: ShaderVariation.h:120
void ResetCachedState()
Reset cached rendering state.
Definition: OGLGraphics.cpp:3164
Definition: Str.h:579
bool BeginLoad(Deserializer &source) override
Load resource from stream. May be called from a worker thread. Return true if successful.
Definition: JSONFile.cpp:114
btCollisionConfiguration * collisionConfig_
Override for the collision configuration (default btDefaultCollisionConfiguration).
Definition: PhysicsWorld.h:118
const String & GetTypeName(StringHash objectType) const
Return object type name from hash, or empty if unknown.
Definition: Context.cpp:382
HashMap< unsigned, FontGlyph > glyphMapping_
Glyph mapping.
Definition: FontFace.h:106
void UpdateNodeIds()
Update the Node IDs of the Control Points.
Definition: SplinePath.cpp:327
@ ASYNC_LOADING
In progress of calling BeginLoad() in a worker thread.
Definition: Resource.h:46
Vector< SharedPtr< VertexBuffer > > vertexBuffers_
Vertex buffers.
Definition: Geometry.h:130
HashMap< StringHash, SharedPtr< ShaderVariation > > vsVariations_
Vertex shader variations.
Definition: Shader.h:75
float rotatePerSecond_
Rotate per second.
Definition: ParticleEffect2D.h:316
PODVector< UIElement * > GetSelectedItems() const
Definition: ListView.cpp:897
bool Contains(const String &key) const
Return whether contains a pair with key.
Definition: JSONValue.cpp:296
ShaderProgram * GetShaderProgram() const
Definition: OGLGraphics.cpp:2152
unsigned GetNumAnimations() const
Definition: AnimationSet2D.cpp:156
static unsigned char * GetImageData(Deserializer &source, int &width, int &height, unsigned &components)
Decode an image using stb_image.
Definition: Image.cpp:2339
CollisionGeometryDataCache convexCache_
Cache for convex geometry data by model and LOD level.
Definition: PhysicsWorld.h:346
bool usedResolve_
Flag for scene being resolved from the backbuffer.
Definition: View.h:439
bool SetData(const void *data)
Set all data in the buffer.
Definition: OGLVertexBuffer.cpp:81
void UpdateCursor()
Update cursor position and restart cursor blinking.
Definition: LineEdit.cpp:592
HashMap< SLNet::AddressOrGUID, SharedPtr< Connection > > clientConnections_
Server's client connections.
Definition: Network.h:168
const PODVector< Light * > & GetLights() const
Return lights.
Definition: View.h:169
RefCount * refCount_
Pointer to the reference count structure.
Definition: RefCounted.h:88
void SetOcclusionLodLevelAttr(unsigned value)
Set occlusion LOD level attribute.
Definition: Terrain.cpp:828
void DisableLayoutUpdate()
Disable automatic layout update. Should only be used if there are performance problems.
Definition: UIElement.cpp:1207
Application(Context *context)
Construct. Parse default engine parameters from the command line, and create the engine in an uniniti...
Definition: Application.cpp:50
WeakPtr< CrowdManager > crowdManager_
Crowd manager.
Definition: CrowdAgent.h:235
T * Next(T *element) const
Return next element, or null if no more elements.
Definition: LinkedList.h:184
Pass * GetPass(unsigned index, const String &passName) const
Return pass by technique index and pass name.
Definition: Material.cpp:1191
WeakPtr< TerrainPatch > west_
West neighbor patch.
Definition: TerrainPatch.h:132
Vector< SharedPtr< Node > > shadowCameraNodes_
Reusable scene nodes with shadow camera components.
Definition: Renderer.h:569
bool parametersDirty_
Parameters dirty flag.
Definition: Texture.h:271
InterpMethod interpolationMethod_
Interpolation method.
Definition: ValueAnimation.h:159
bool LoadJSON(const JSONValue &source) override
Load from JSON data. Return true if successful.
Definition: Animatable.cpp:123
MaterialQuality textureQuality_
Texture quality level.
Definition: Renderer.h:611
float GetAngle() const
Return angle.
Definition: ParticleEffect2D.h:155
void SetVertices(const PODVector< Vector2 > &vertices)
Set vertices.
Definition: CollisionPolygon2D.cpp:74
IntVector2 viewPosition_
Current view offset from the top-left corner.
Definition: ScrollView.h:184
virtual bool SaveJSON(JSONValue &dest) const
Save as JSON data. Return true if successful.
Definition: Serializable.cpp:549
virtual bool SaveDefaultAttributes() const
Return whether should save default-valued attributes into XML. Default false.
Definition: Serializable.h:79
void Invoke(VariantMap &eventData) override
Invoke event handler function.
Definition: Object.h:320
const RenderPathCommand * forwardLightsCommand_
Pointer to the forwardlights command if any.
Definition: View.h:435
float GetMaxEmissionRate() const
Definition: ParticleEffect.h:331
float touchDistanceSum_
Distance moved with touch scrolling.
Definition: ScrollView.h:214
unsigned tailColumn_
Number of columns for every tails.
Definition: RibbonTrail.h:265
bool GetKeyFrameIndex(float time, unsigned &index) const
Return keyframe index based on time and previous index. Return false if animation is empty.
Definition: Animation.cpp:92
void AddRigidBody(RigidBody2D *rigidBody)
Add rigid body.
Definition: PhysicsWorld2D.cpp:430
void SetImageBorder(const IntRect &rect)
Definition: BorderImage.cpp:105
float snapThreshold_
Motion smoothing snap threshold.
Definition: Scene.h:353
float RandomNormal(float meanValue, float variance)
Return a random normal distributed number with the given mean value and variance.
Definition: MathDefs.h:328
void Update(float timeStep) override
Perform UI element update.
Definition: ScrollView.cpp:110
void Clear(const Color &color)
Clear the image with a color.
Definition: Image.cpp:1215
ShaderParameterGroup
Shader parameter groups for determining need to update. On APIs that support constant buffers,...
Definition: GraphicsDefs.h:307
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:741
static bool IsMainThread()
Return whether is executing in the main thread.
Definition: Thread.cpp:150
void HandleSDLEvent(void *sdlEvent)
Handle SDL event.
Definition: Input.cpp:1862
bool AddScriptSection(asIScriptEngine *engine, Deserializer &source)
Add a script section, checking for includes recursively. Return true if successful.
Definition: ScriptFile.cpp:705
unsigned nonModalBatchSize_
Non-modal batch size (used internally for rendering).
Definition: UI.h:456
Constraint2D(Context *context)
Construct.
Definition: Constraint2D.cpp:41
void OnNodeSet(Node *node) override
Handle node being assigned.
Definition: Drawable.cpp:360
void SetDrawJoint(bool drawJoint)
Definition: PhysicsWorld2D.cpp:356
LinkedList< T > & operator=(const LinkedList< T > &list)=delete
Non-assignable.
void AddComponent(unsigned oldID, Component *component)
Remember a created component.
Definition: SceneResolver.cpp:51
VariantVector GetNodeAnimationStatesAttr() const
Return node animation states attribute.
Definition: AnimationController.cpp:823
float GetDampingRatio() const
Definition: ConstraintWheel2D.h:91
void ProcessRemoteEvent(int msgID, MemoryBuffer &msg)
Process a remote event message from the client or server. Called by Network.
Definition: Connection.cpp:1018
SDL_JoystickID AddScreenJoystick(XMLFile *layoutFile=nullptr, XMLFile *styleFile=nullptr)
Add screen joystick.
Definition: Input.cpp:984
bool WriteVariantData(const Variant &value)
Write a variant without the type information.
Definition: Serializer.cpp:247
void SetMasterGain(const String &type, float gain)
Definition: Audio.cpp:162
float scaleX_
X scaling for viewport transform.
Definition: OcclusionBuffer.h:215
void SetAttributeAnimationSpeed(const String &name, float speed)
Set attribute animation speed.
Definition: Animatable.cpp:399
void SetUVTransform(const Vector2 &offset, float rotation, const Vector2 &repeat)
Set texture coordinate transform.
Definition: Material.cpp:1043
FocusParameters shadowFocus_
Shadow map focus parameters.
Definition: Light.h:415
void ProcessControls(int msgID, MemoryBuffer &msg)
Process a Controls message from the client. Called by Network.
Definition: Connection.cpp:959
HiresTimer()
Construct. Get the starting high-resolution clock value.
Definition: Timer.cpp:215
void setWorldTransform(const btTransform &worldTrans) override
Definition: RigidBody.cpp:162
SharedPtr< XMLFile > loadXMLFile_
XML file used while loading.
Definition: SpriteSheet2D.h:92
virtual void Start()
Setup after engine initialization and before running the main loop. Call ErrorExit() to terminate wit...
Definition: Application.h:47
IntVector2 pressedOffset_
Pressed image offset.
Definition: Button.h:105
float GetFadeTarget(const String &name) const
Return animation fade target weight.
Definition: AnimationController.cpp:539
virtual const Vector< AttributeInfo > * GetAttributes() const
Return attribute descriptions, or null if none defined.
Definition: Serializable.cpp:283
void Transform(const Matrix3 &transform)
Transform with a 3x3 matrix.
Definition: BoundingBox.cpp:116
CompareMode stencilTestMode_
Stencil test compare mode.
Definition: Graphics.h:880
bool GetAlwaysUpdateOwner() const
Definition: NetworkPriority.h:70
Vector3 GetPoint(float theta, float phi) const
Return point on the sphere.
Definition: Sphere.h:200
Iterator Insert(const T &key)
Insert a key. Return an iterator to it.
Definition: HashSet.h:286
bool dynamicInstancing_
Dynamic instancing flag.
Definition: Renderer.h:663
Vector< PODVector< unsigned > > geometryBoneMappings_
Geometry bone mappings.
Definition: Model.h:226
String SubstringUTF8(unsigned pos) const
Return a UTF8 substring from position to end.
Definition: Str.cpp:864
bool Test(const Integer flags) const
Return true if specified bits are set.
Definition: FlagSet.h:220
void Render()
Update vertex buffer and render all debug lines. The viewport and rendertarget should be set before.
Definition: DebugRenderer.cpp:488
bool SetStartBone(const String &name, const String &startBoneName)
Set animation start bone. Return true on success.
Definition: AnimationController.cpp:311
static String ToString(const T &value)
Convert type to string.
Definition: Variant.h:222
void SetAlgorithm(Algorithm algorithm)
Selects the solver algorithm. Default is FABRIK. Note that this may not be the most efficient algorit...
Definition: IKSolver.cpp:114
void SetColorWrite(bool enable)
Set color write on/off.
Definition: OGLGraphics.cpp:1773
unsigned totalDataSize_
Total data size in the package using each entry's actual size if it is a compressed package file.
Definition: PackageFile.h:104
bool GetInterceptNetworkUpdate(const String &attributeName) const
Return whether an attribute's network updates are being intercepted.
Definition: Serializable.cpp:1001
void * instancingData_
Per-instance data. If not null, must contain enough data to fill instancing buffer.
Definition: Batch.h:96
~PhysicsWorld2D() override
Destruct.
Definition: PhysicsWorld2D.cpp:66
void FromAxes(const Vector3 &xAxis, const Vector3 &yAxis, const Vector3 &zAxis)
Define from orthonormal axes.
Definition: Quaternion.cpp:95
unsigned GetDataSize(int width, int height) const
Return data size in bytes for a rectangular region.
Definition: Texture.cpp:150
unsigned RemoveWorkItems(const Vector< SharedPtr< WorkItem > > &items)
Remove a number of work items before they have started executing. Return the number of items successf...
Definition: WorkQueue.cpp:197
StaticModelGroup(Context *context)
Construct.
Definition: StaticModelGroup.cpp:49
bool Initialize(const VariantMap ¶meters)
Initialize engine using parameters given and show the application window. Return true if successful.
Definition: Engine.cpp:163
bool FilterImplicitAttributes(XMLElement &dest) const override
Filter implicit attributes in serialization process.
Definition: ListView.cpp:936
float nearSplit_
Directional light cascade near split distance.
Definition: Batch.h:286
ResourceWithMetadata(Context *context)
Construct.
Definition: Resource.h:127
void MakeShape(const Vector< Urho3D::Vector3 > &pointList, bool connectTail=true)
Draws a shape generated by connecting the points in the input vector (the end point will connect to t...
Definition: CustomGeometry.cpp:280
virtual IntVector2 ElementToScreen(const IntVector2 &position)
Convert element coordinates to screen coordinates.
Definition: UIElement.cpp:467
LockState lockState_
Buffer locking state.
Definition: VertexBuffer.h:167
void DefineSplit(const Matrix4 &projection, float near, float far)
Define a split (limited) frustum from a projection matrix, with near & far distances specified.
Definition: Frustum.cpp:151
WeakPtr< Scene > scene_
Extra weak pointer to scene to allow for cleanup in case the world is destroyed before other componen...
Definition: PhysicsWorld.h:330
void SetShaderParameterAnimation(const String &name, ValueAnimation *animation, WrapMode wrapMode=WM_LOOP, float speed=1.0f)
Set shader parameter animation.
Definition: Material.cpp:984
T * GetCustomPtr()
Return a pointer to a modifiable custom variant value or null on type mismatch.
Definition: Variant.h:1368
void HandleAttributeAnimationUpdate(StringHash eventType, VariantMap &eventData)
Handle scene attribute animation update event.
Definition: Component.cpp:283
const VariantMap & GetVars() const
Return all user variables.
Definition: Node.h:609
void * GetShaderResourceView() const
Return shader resource view. Only used on Direct3D11.
Definition: Texture.h:184
unsigned FloatToRawIntBits(float value)
Return a representation of the specified floating-point value as a single format bit layout.
Definition: MathDefs.h:113
Context * GetContext() const
Return execution context.
Definition: Object.h:221
b2WheelJointDef jointDef_
Box2D joint def.
Definition: ConstraintWheel2D.h:98
SharedPtr< XMLFile > defaultStyle_
Default style file.
Definition: UIElement.h:921
void SetChildOffset(const IntVector2 &offset)
Set child offset.
Definition: UIElement.cpp:1800
bool SetVector2(const String &name, const Vector2 &value)
Set a Vector2 attribute.
Definition: XMLElement.cpp:523
Definition: Animation.h:67
bool GetShadowCompare() const
Return whether shadow compare is enabled. Not used on Direct3D9.
Definition: Texture.h:115
bool RemoveChildren(const String &name=String::EMPTY)
Remove child elements of certain name, or all child elements if name is empty. Return true if success...
Definition: XMLElement.cpp:171
void UpdateShape()
Update the collision shape after attribute changes.
Definition: CollisionShape.cpp:1001
Vector3 HeightMapToWorld(const IntVector2 &pixelPosition) const
Convert heightmap pixel position to world position.
Definition: Terrain.cpp:636
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:388
void Release() override
Release the buffer.
Definition: OGLConstantBuffer.cpp:35
RenderSurface(Texture *parentTexture)
Construct with parent texture.
Definition: OGLRenderSurface.cpp:45
void Initialize()
Initialize when screen mode initially set.
Definition: UI.cpp:938
const void * indexData_
Index data pointer. Null if using non-indexed geometry.
Definition: OcclusionBuffer.h:74
HashMap< String, SharedPtr< Sprite2D > > spriteMapping_
Sprite mapping.
Definition: SpriteSheet2D.h:88
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:80
static bool IsZero(const T &value)
Check whether the value is zero.
Definition: Variant.h:220
unsigned capacity_
Capacity, zero if buffer not allocated.
Definition: Str.h:553
unsigned Write(const void *data, unsigned size) override
Write bytes to the buffer. Return number of bytes actually written.
Definition: VectorBuffer.cpp:72
void StopWatching()
Stop watching the directory.
Definition: FileWatcher.cpp:191
void ResetDependencies(Resource *resource)
Reset dependencies for a resource.
Definition: ResourceCache.cpp:896
CompareMode GetStencilTestMode() const
Return stencil compare mode.
Definition: Graphics.h:586
void RecreateFixture()
Recreate fixture.
Definition: CollisionPolygon2D.cpp:111
IntVector3(const int *data) noexcept
Construct from an int array.
Definition: Vector3.h:52
bool SaveGestures(Serializer &dest)
Save all in-memory touch gestures. Return true if successful.
Definition: Input.cpp:1226
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:187
void OnSetEnabled() override
Update the owning mesh when enabled status has changed.
Definition: Obstacle.cpp:62
HashMap< int, int > touchIDMap_
Mapping of touch indices.
Definition: Input.h:426
void UpdateCachedGeometryShape(CollisionGeometryDataCache &cache)
Update cached geometry collision shape.
Definition: CollisionShape.cpp:1098
void Commit()
Update vertex buffer and calculate the bounding box. Call after finishing defining geometry.
Definition: CustomGeometry.cpp:612
String loadingPercentStyle_
ProgressBar text style.
Definition: ProgressBar.h:109
HashMap< StringHash, Variant > masterGain_
Master gain by sound source type.
Definition: Audio.h:155
const PODVector< unsigned char > & Serialize(VectorBuffer &buffer) const
Write contact info to buffer.
Definition: PhysicsWorld2D.cpp:849
UniquePtr< VariantMap > instanceDefaultValues_
Attribute default value at each instance level.
Definition: Serializable.h:150
String ToString(const String &indentation="\t") const
Serialize the XML content to a string.
Definition: XMLFile.cpp:183
const IntVector3 & GetIntVector3() const
Return an IntVector3 or empty on type mismatch.
Definition: Variant.h:1263
bool delayedStartCalled_
Flag for delayed start.
Definition: LogicComponent.h:112
Vector2 WorldToScreenPoint(const Vector3 &worldPos) const
Convert a world space point to normalized screen coordinates (0 - 1).
Definition: Camera.cpp:410
void ReleaseObject()
Release the script object.
Definition: ScriptInstance.cpp:587
void ResetRenderTarget(unsigned index)
Reset specific rendertarget.
Definition: OGLGraphics.cpp:1621
PODVector< unsigned char > GetVerticesAttr() const
Return vertices attribute.
Definition: CollisionChain2D.cpp:109
HashMap< String, JSONValue > JSONObject
JSON object type.
Definition: JSONValue.h:67
void SetTangentialAcceleration(float tangentialAcceleration)
Set tangential acceleration.
Definition: ParticleEffect2D.cpp:349
void AddTriangle(const Vector3 &v1, const Vector3 &v2, const Vector3 &v3, const Color &color, bool depthTest=true)
Add a solid triangle.
Definition: DebugRenderer.cpp:103
EventHandler * Clone() const override
Return a unique copy of the event handler.
Definition: Object.h:327
LogicComponent(Context *context)
Construct.
Definition: LogicComponent.cpp:36
Definition: RaycastVehicle.h:33
void SetAutoRemoveMode(AutoRemoveMode mode)
Definition: ParticleEmitter.cpp:312
float animationLodTimer_
Animation LOD timer.
Definition: RibbonTrail.h:216
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:119
const String & GetString(const String &defaultValue=String::EMPTY) const
Return string value. The 'defaultValue' may potentially be returned as is, so it is the responsibilit...
Definition: JSONValue.h:212
float distance_
Distance from ray origin.
Definition: OctreeQuery.h:217
void SetMaxMotorForce(float maxMotorForce)
Definition: ConstraintPrismatic2D.cpp:144
Variant GetVectorVariant(const String &name) const
Return a float, Vector or Matrix attribute as Variant.
Definition: XMLElement.cpp:970
Variant(const VariantMap &value)
Construct from a variant map.
Definition: Variant.h:458
bool neighborsDirty_
Terrain neighbor attributes dirty flag.
Definition: Terrain.h:374
const String & GetClassName() const
Return class name.
Definition: ScriptInstance.h:127
WindowModeParams secondaryWindowMode_
Secondary window mode to be applied on Graphics::ToggleFullscreen.
Definition: Graphics.h:776
PODVector< Constraint * > constraints_
Constraints in the world.
Definition: PhysicsWorld.h:336
bool Save(Serializer &dest) const override
Save resource. Return true if successful.
Definition: Animation.cpp:229
PODVector< Constraint * > constraints_
Constraints that refer to this rigid body.
Definition: RigidBody.h:333
PODVector< Vector3 > geometryCenters_
Geometry centers.
Definition: Model.h:228
const CustomVariantValue * GetCustomVariantValuePtr() const
Return const pointer to custom variant value.
Definition: Variant.h:1299
SharedArrayPtr< signed char > data_
Compressed sound data.
Definition: OggVorbisSoundStream.h:52
bool GetNodesWithTag(PODVector< Node * > &dest, const String &tag) const
Get nodes with specific tag from the whole scene, return false if empty.
Definition: Scene.cpp:720
float GetMaxRotationSpeed() const
Definition: ParticleEffect.h:371
Texture * GetParentTexture() const
Definition: RenderSurface.h:116
Mutex resourceMutex_
Mutex for thread-safe access to the resource directories, resource packages and resource dependencies...
Definition: ResourceCache.h:248
float GetMaxSideSlipSpeed() const
Definition: RaycastVehicle.cpp:363
float GetRadialAccelVariance() const
Return radial acceleration variance.
Definition: ParticleEffect2D.h:170
bool LoadWav(Deserializer &source)
Load WAV format sound data.
Definition: Sound.cpp:134
b2World * GetWorld()
Return the Box2D physics world.
Definition: PhysicsWorld2D.h:228
void SetAngleAttenuation(float innerAngle, float outerAngle)
Set angle attenuation parameters.
Definition: SoundSource3D.cpp:112
void BeginBlock(const char *name)
Begin timing a profiling block.
Definition: Profiler.h:184
PODVector< const SourceBatch2D * > sourceBatches_
Source batches.
Definition: Renderer2D.h:57
static void RegisterObject(Context *context)
Register object factory.
Definition: SplinePath.cpp:55
IndexBuffer * indexBuffer_
Index buffer in use.
Definition: Graphics.h:832
const T & operator*() const
Dereference the key.
Definition: HashSet.h:109
Vector3 lastPosition_
Last interpolated position from the simulation.
Definition: RigidBody.h:349
KeyValue * operator->() const
Point to the pair.
Definition: HashMap.h:149
void Update(float timeStep)
Update the UI logic. Called by HandlePostUpdate().
Definition: UI.cpp:317
void GetBatches(PODVector< UIBatch > &batches, PODVector< float > &vertexData, UIElement *element, IntRect currentScissor)
Generate batches from an UI element recursively. Skip the cursor element.
Definition: UI.cpp:1168
void GetDrawablesOnlyInternal(RayOctreeQuery &query, PODVector< Drawable * > &drawables) const
Return drawable objects only for a threaded ray query, called internally.
Definition: Octree.cpp:284
HashMap< unsigned long long, unsigned > screenBufferAllocations_
Current screen buffer allocations by resolution and format.
Definition: Renderer.h:585
Physics constraint component. Connects two rigid bodies together, or one rigid body to a static point...
Definition: Constraint.h:48
Plane() noexcept
Construct a degenerate plane with zero normal and parameter.
Definition: Plane.h:36
ConstantBuffer * GetOrCreateConstantBuffer(ShaderType type, unsigned index, unsigned size)
Definition: OGLGraphics.cpp:2336
BoundingBox ReadBoundingBox()
Read a bounding box.
Definition: Deserializer.cpp:240
@ SMOOTH_ROTATION
Ongoing rotation smoothing.
Definition: SmoothedTransform.h:39
static void RegisterObject(Context *context)
Register object factory.
Definition: AnimationController.cpp:63
void CreateGeometries()
Create light volume geometries.
Definition: Renderer.cpp:1766
void Prepare(View *view, Camera *camera, bool setModelTransform, bool allowDepthWrite) const
Prepare for rendering.
Definition: Batch.cpp:178
void Unlock()
Unlock the buffer and apply changes to the GPU buffer.
Definition: OGLVertexBuffer.cpp:207
SharedPtr< Sprite2D > sprite_
Sprite.
Definition: ParticleEffect2D.h:260
void MarkNetworkUpdate() override
Mark for attribute check on the next network update.
Definition: Scene.cpp:199
IntVector2 tempPacketCounter_
Temporary variable to hold packet count in the next second, x - packets in, y - packets out.
Definition: Connection.h:364
void SetMaterialQuality(MaterialQuality quality)
Definition: Renderer.cpp:342
bool operator==(const WeakPtr< U > &rhs) const
Test for equality with another weak pointer.
Definition: Ptr.h:430
WeakPtr< Camera > cullCamera_
Culling camera pointer.
Definition: Viewport.h:117
SharedPtr< ShaderPrecache > shaderPrecache_
Shader precache utility.
Definition: Graphics.h:912
float maxAgentRadius_
The maximum radius of any agent that will be added to the crowd.
Definition: CrowdManager.h:201
int refs_
Reference count. If below zero, the object has been destroyed.
Definition: RefCounted.h:53
void ResetEmissionTimer()
Reset the emission period timer.
Definition: ParticleEmitter.cpp:318
void SetVelocityIterations(int velocityIterations)
Definition: PhysicsWorld2D.cpp:420
const String & GetLoadingPercentStyle() const
Returns the loading percent style.
Definition: ProgressBar.h:85
HashMap< StringHash, Vector< SharedPtr< ShaderVariation > > > extraPixelShaders_
Pixel shaders with extra defines from the renderpath.
Definition: Technique.h:210
btCompoundShape * GetParentCompoundShape()
Find the parent rigid body component and return its compound collision shape.
Definition: CollisionShape.cpp:993
static void SetActive(bool newActive)
Activate the event profiler to collect information. This incurs slight performance hit on each SendEv...
Definition: EventProfiler.h:72
DirtyBits(const DirtyBits &bits)
Copy-construct.
Definition: ReplicationState.h:55
unsigned mask_
Flags mask to represent properties of this mesh.
Definition: OffMeshConnection.h:98
WeakPtr< Node > node_
Scene node pointer.
Definition: AnimationState.h:63
~ScriptInstance() override
Destruct.
Definition: ScriptInstance.cpp:71
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:438
void OnMarkedDirty(Node *node) override
Handle node transform being dirtied.
Definition: Obstacle.cpp:122
XMLElement GetChild(const String &name=String::EMPTY) const
Return child element, or null if missing.
Definition: XMLElement.cpp:605
Animation * GetAnimation() const
Definition: AnimationState.h:112
void OnDeviceReset() override
Recreate the GPU resource and restore data if applicable.
Definition: OGLConstantBuffer.cpp:53
String GetTextAttr() const
Return text attribute.
Definition: Text3D.cpp:556
HashSet< Drawable * > maxLightsDrawables_
Drawables that limit their maximum light count.
Definition: View.h:407
void RemoveGPUObject(GPUObject *object)
Remove a GPU object. Called by GPUObject.
Definition: Graphics.cpp:392
float shadowNearSplits_[MAX_LIGHT_SPLITS]
Shadow camera near splits (directional lights only).
Definition: View.h:72
void UpdateText(bool onResize=false)
Update text when text, font or spacing changed.
Definition: Text.cpp:487
void HandlePostUpdate(StringHash eventType, VariantMap &eventData)
Handle the logic post update event.
Definition: LuaScriptInstance.cpp:677
static void FreeImageData(unsigned char *pixelData)
Free an image file's pixel data.
Definition: Image.cpp:2348
void SetCollisionEventMode(CollisionEventMode mode)
Definition: RigidBody.cpp:510
Node * GetChild(unsigned index) const
Return child scene node by index.
Definition: Node.cpp:1302
Vector< String > xmlAttributes_
XML format attribute data (as strings).
Definition: UnknownComponent.h:97
unsigned GetXPathResultIndex() const
Return current result index.
Definition: XMLElement.h:305
void TestDrawables(Drawable **start, Drawable **end, bool inside) override
Intersection test for drawables.
Definition: OctreeQuery.cpp:84
virtual CustomVariantValue * Clone() const
Clone.
Definition: Variant.h:196
Color finishColorVariance_
Finish color variance.
Definition: ParticleEffect2D.h:292
bool FilterButtonImplicitAttributes(XMLElement &dest, const String &name) const
Filter implicit attributes in serialization process for internal button.
Definition: ScrollBar.cpp:252
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:1564
bool HasParameter(StringHash param) const
Return whether uses a shader parameter.
Definition: OGLShaderProgram.cpp:333
bool GetBool(const String &name) const
Return bool attribute, or false if missing.
Definition: XMLElement.cpp:754
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:118
bool Load(const XMLElement &source)
Load resource from XMLElement synchronously. Return true if successful.
Definition: ParticleEffect.cpp:132
void ResetDeepEnabled()
Reset enabled state to the node's remembered state prior to calling SetDeepEnabled.
Definition: Node.cpp:725
void SetAnchor(const Vector2 &anchor)
Definition: ConstraintWheel2D.cpp:61
void SetParticlesAttr(const VariantVector &value)
Set particles attribute.
Definition: ParticleEmitter.cpp:369
bool SetAutoFade(const String &name, float fadeOutTime)
Set animation autofade at end (non-looped animations only). Zero time disables. Return true on succes...
Definition: AnimationController.cpp:416
bool SaveXML(XMLElement &dest) const override
Save as XML data. Return true if successful.
Definition: Component.cpp:77
const TypeInfo * GetTypeInfo() const
Return type info of objects created by this factory.
Definition: Object.h:224
bool IsDirty() const
Return whether transform has changed and world transform needs recalculation.
Definition: Node.h:554
void HandleTerrainCreated(StringHash eventType, VariantMap &eventData)
Update terrain collision shape from the terrain component.
Definition: CollisionShape.cpp:1200
bool IsNaN() const
Return whether any element is NaN.
Definition: Matrix3x4.h:669
void InsertCommand(unsigned index, const RenderPathCommand &command)
Insert a command at a position.
Definition: RenderPath.cpp:479
pugi::xpath_query * GetXPathQuery() const
Return pugixml xpath_query.
Definition: XMLElement.h:406
CustomVariantValueImpl< T > MakeCustomValue(const T &value)
Make custom variant value.
Definition: Variant.h:276
const Vector2 & GetMaxParticleSize() const
Definition: ParticleEffect.h:339
Vector2 ownerBodyAnchor_
Owner body anchor.
Definition: ConstraintDistance2D.h:85
bool AddResourceDir(const String &pathName, unsigned priority=PRIORITY_LAST)
Add a resource load directory. Optional priority parameter which will control search order.
Definition: ResourceCache.cpp:98
Per-user component network replication state.
Definition: ReplicationState.h:145
const VariantVector & GetControlPointIdsAttr() const
Return Control Point Node IDs attribute.
Definition: SplinePath.h:113
bool BeginLoadJSON(Deserializer &source)
Helper function for loading JSON files.
Definition: Material.cpp:327
void SetUseFixtureMass(bool useFixtureMass)
Definition: RigidBody2D.cpp:169
Vector3 GetAnisotropicFriction() const
Definition: RigidBody.cpp:668
unsigned profilerMaxDepth_
Profiler max block depth.
Definition: DebugHud.h:141
Iterator Insert(const ConstIterator &it)
Insert a key by iterator. Return iterator to the value.
Definition: HashSet.h:334
const String & GetPackageCacheDir() const
Definition: Network.h:140
SharedPtr< Geometry > maxLodGeometry_
Geometry that is locked to the max LOD level. Used for decals.
Definition: TerrainPatch.h:120
bool PlayExclusive(const String &name, unsigned char layer, bool looped, float fadeTime=0.0f)
Play an animation, set full target weight and fade out all other animations on the same layer....
Definition: AnimationController.cpp:197
String GetKeyName(Key key) const
Return name of key from keycode.
Definition: Input.cpp:1314
String vertexShaderDefines_
Vertex shader defines.
Definition: Material.h:322
void SetRotation(const Quaternion &rotation)
Definition: CollisionShape.cpp:759
void SortFrontToBack()
Sort instanced and non-instanced draw calls front to back.
Definition: Batch.cpp:746
void UpdateAttributeDefaultValue(StringHash objectType, const char *name, const Variant &defaultValue)
Update object attribute's default value.
Definition: Context.cpp:234
HashMap< Camera *, Matrix3x4 > customWorldTransforms_
Custom world transform per camera.
Definition: Skybox.h:53
int ReadInt(const XMLElement &element, const String &name) const
Read integer.
Definition: ParticleEffect2D.cpp:520
SharedPtr< Resource > resource_
Resource.
Definition: BackgroundLoader.h:43
void Update(float constant, float squaredSnapThreshold)
Update smoothing.
Definition: SmoothedTransform.cpp:51
bool reuseShadowMaps_
Shadow map reuse flag.
Definition: Renderer.h:661
void OnDragBegin(const IntVector2 &position, const IntVector2 &screenPosition, MouseButtonFlags buttons, QualifierFlags qualifiers, Cursor *cursor) override
React to mouse drag begin.
Definition: Slider.cpp:113
void * GetResolveTexture() const
Return resolve texture. Only used on Direct3D11.
Definition: Texture.h:190
void SetRotationEndVariance(float rotationEndVariance)
Set rotation end variance.
Definition: ParticleEffect2D.cpp:469
void DeleteChild(unsigned index)
Delete child octant.
Definition: Octree.cpp:127
CustomGeometry(Context *context)
Construct.
Definition: CustomGeometry.cpp:47
CollisionEventMode collisionEventMode_
Collision event signaling mode.
Definition: RigidBody.h:347
void RemoveAllEventHandlers() override
Remove all scripted event handlers.
Definition: LuaScript.cpp:213
UIElement * separatorLayout_
Separator layout.
Definition: FileSelector.h:195
bool SetVector4(const String &name, const Vector4 &value)
Set a Vector4 attribute.
Definition: XMLElement.cpp:533
void OnSetAttribute(const AttributeInfo &attr, const Variant &src) override
Handle attribute write access.
Definition: ScriptInstance.cpp:92
Component * SafeCreateComponent(const String &typeName, StringHash type, CreateMode mode, unsigned id)
Create component, allowing UnknownComponent if actual type is not supported. Leave typeName empty if ...
Definition: Node.cpp:2062
void ApplyImpulse(const Vector3 &impulse)
Apply impulse to center of mass.
Definition: RigidBody.cpp:543
HashSet< unsigned > receivedFragments_
Already received fragments.
Definition: Connection.h:76
unsigned obstacleId_
Id received from tile cache.
Definition: Obstacle.h:94
void ReleaseModule()
Release the script module.
Definition: ScriptFile.cpp:955
bool WriteInt(int value)
Write a 32-bit integer.
Definition: Serializer.cpp:41
float GetAnimationLodBias() const
Definition: AnimatedModel.h:128
bool DrawOcclusion(OcclusionBuffer *buffer) override
Draw to occlusion buffer. Return true if did not run out of triangles.
Definition: CustomGeometry.cpp:164
void * Lock(unsigned start, unsigned count, bool discard=false)
Lock the buffer for write-only editing. Return data pointer if successful. Optionally discard data ou...
Definition: OGLIndexBuffer.cpp:162
Vector< Billboard * > sortedBillboards_
Billboard pointers for sorting.
Definition: BillboardSet.h:227
bool sendEventOnFailure_
Whether to send failure event.
Definition: BackgroundLoader.h:49
bool IsConnected() const
Return true when the connection object is connected to the associated database.
Definition: ODBCConnection.h:56
void UpdateLayout()
Manually update layout. Should not be necessary in most cases, but is provided for completeness.
Definition: UIElement.cpp:1095
int finishBackgroundResourcesMs_
How many milliseconds maximum per frame to spend on finishing background loaded resources.
Definition: ResourceCache.h:272
Physics simulation world component. Should be added only to the root scene node.
Definition: PhysicsWorld.h:128
void SetCcdMotionThreshold(float threshold)
Definition: RigidBody.cpp:429
Vector3 vertices_[NUM_FRUSTUM_VERTICES]
Frustum vertices.
Definition: Frustum.h:184
void SetParameters(XMLFile *file)
Set additional parameters from an XML file.
Definition: Texture.cpp:171
SharedPtr< RenderPath > defaultRenderPath_
Default renderpath.
Definition: Renderer.h:545
void SetMotorSpeed(float motorSpeed)
Definition: ConstraintPrismatic2D.cpp:159
ResourceRef GetRampTextureAttr() const
Return ramp texture attribute.
Definition: Light.cpp:532
void SetResolveDirty(bool enable)
Set or clear the need resolve flag. Called internally by Graphics.
Definition: Texture.h:200
void SetAutoVisibleOnError(bool enable)
Definition: Console.h:63
void AssignBoneNodes()
Assign skeleton and animation bone node references as a postprocess. Called by ApplyAttributes.
Definition: AnimatedModel.cpp:979
unsigned GetChecksum() override
Return a checksum of the file contents using the SDBM hash algorithm.
Definition: File.cpp:355
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:573
void GetCollidingBodies(PODVector< RigidBody * > &result) const
Return colliding rigid bodies from the last simulation step. Only returns collisions that were sent a...
Definition: RigidBody.cpp:703
Vector3 GetRawNormal(int x, int z) const
Get slope-based terrain normal at position.
Definition: Terrain.cpp:1342
float DistanceToPoint(const Vector3 &point) const
Calculate distance to another position vector.
Definition: Vector3.h:385
UpdateGeometryType GetUpdateGeometryType() override
Return whether a geometry update is necessary, and if it can happen in a worker thread.
Definition: BillboardSet.cpp:245
Variant(const IntRect &value)
Construct from an integer rect.
Definition: Variant.h:476
long long GetInt64(const String &name) const
Return a long long integer attribute, or zero if missing.
Definition: XMLElement.cpp:817
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:453
void ResetJoysticks()
Setup internal joystick structures.
Definition: Input.cpp:1558
WeakPtr< TerrainPatch > north_
North neighbor patch.
Definition: TerrainPatch.h:128
Definition: Light.h:121
Color hoverColor_
Hover background color.
Definition: UISelectable.h:65
JSONValue(double value)
Construct with a double.
Definition: JSONValue.h:107
HashMap< SDL_JoystickID, JoystickState > joysticks_
Opened joysticks.
Definition: Input.h:430
void SetMaterialAttr(const ResourceRef &value)
Set material attribute.
Definition: RibbonTrail.cpp:864
PODVector< Light * > vertexLights_
Per-vertex lights.
Definition: Batch.h:307
float GetAttributeAnimationSpeed(const String &name) const
Definition: ObjectAnimation.cpp:247
void SetShapeType(ShapeType type)
Definition: CollisionShape.cpp:727
const SpatialInfo & GetSpatialInfo() const
Return root spatial info.
Definition: SpriterInstance2D.h:74
void CalculateViewport()
Calculate viewport transform.
Definition: OcclusionBuffer.cpp:578
2D prismatic constraint component.
Definition: ConstraintPrismatic2D.h:31
static void RegisterObject(Context *context)
Register object factory. drawable2d must be registered first.
Definition: ParticleEmitter2D.cpp:61
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:74
Intersection TestOctant(const BoundingBox &box, bool inside) override
Intersection test for an octant.
Definition: OctreeQuery.cpp:32
ShaderProgram * shaderProgram_
Shader program in use.
Definition: OGLGraphicsImpl.h:152
static void LoadShaders(Graphics *graphics, Deserializer &source)
Load shaders from an XML file.
Definition: ShaderPrecache.cpp:107
String ToString(const String &indendation="\t") const
Save to a string.
Definition: JSONFile.cpp:241
UpdateGeometryType GetUpdateGeometryType() override
Return whether a geometry update is necessary, and if it can happen in a worker thread.
Definition: TerrainPatch.cpp:155
void DrawDebugGeometry(DebugRenderer *debug, bool depthTest) override
Add debug geometry to the debug renderer.
Definition: TileMapLayer2D.cpp:58
float animationLodBias_
Animation LOD bias.
Definition: BillboardSet.h:178
Vector2 linearOffset_
Linear offset.
Definition: ConstraintMotor2D.h:86
unsigned GetNumAnimationStates() const
Definition: AnimatedModel.h:114
bool SaveJPG(const String &fileName, int quality) const
Save in JPG format with specified quality. Return true if successful.
Definition: Image.cpp:1306
HashMap< unsigned, Component * > replicatedComponents_
Replicated components by ID.
Definition: Scene.h:309
bool ReadLatestDataUpdate(Deserializer &source)
Read and apply a network latest data update. Return true if attributes were changed.
Definition: Serializable.cpp:862
bool assignBonesPending_
Bone nodes assignment pending flag.
Definition: AnimatedModel.h:269
static const StringHash P_VECTOR_STRUCT_ELEMENTS("VectorStructElements")
Names of vector struct elements. StringVector.
void SetLowerAngle(float lowerAngle)
Definition: ConstraintRevolute2D.cpp:86
PODVector< unsigned char > byteCode_
Shader bytecode. Needed for inspecting the input signature and parameters. Not used on OpenGL.
Definition: ShaderVariation.h:168
Node * ReserveNode(const T &value)
Reserve a node with initial value.
Definition: List.h:482
void HandleRenderUpdate(StringHash eventType, VariantMap &eventData)
Handle render update event.
Definition: UI.cpp:2054
Vector< SourceBatch > batches_
Draw call source data.
Definition: Drawable.h:359
int scriptObjectRef_
Lua reference to script object.
Definition: LuaScriptInstance.h:183
Terrain * GetOwner() const
Return owner terrain.
Definition: TerrainPatch.cpp:268
bool GetQualifierDown(Qualifier qualifier) const
Definition: Input.cpp:1364
static HashMap< String, unsigned > passIndices
Pass index assignments.
Definition: Technique.h:319
Definition: Skeleton.h:47
void SetTargetWorldPosition(const Vector3 &position)
Definition: SmoothedTransform.cpp:128
void DrawDebugGeometry(DebugRenderer *debug, bool depthTest) override
Visualize the component as debug geometry.
Definition: Light.cpp:236
void PatchAdd(const pugi::xml_node &patch, pugi::xpath_node &original) const
Add an node in the Patch.
Definition: XMLFile.cpp:228
pugi::xpath_variable_set * GetXPathVariableSet() const
Return pugixml xpath_variable_set.
Definition: XMLElement.h:409
static void RegisterObject(Context *context)
Register object factory.
Definition: ScriptInstance.cpp:76
static void RegisterObject(Context *context)
Register object factory.
Definition: AnimatedSprite2D.cpp:72
unsigned GetNumInstances() const
Return the combined amount of instances.
Definition: Batch.cpp:891
CollisionEdge2D(Context *context)
Construct.
Definition: CollisionEdge2D.cpp:38
HashMap< StringHash, ShaderParameter > shaderParameters_
Shader parameters.
Definition: OGLShaderProgram.h:95
const Quaternion & GetTargetRotation() const
Definition: SmoothedTransform.h:77
@ DD_SOURCE_AND_TARGET
Drag and drop source and target.
Definition: UIElement.h:113
Node * GetObjectNode(unsigned index) const
Return object node (for object group only).
Definition: TileMapLayer2D.cpp:319
void SetCullMode(CullMode mode)
Set hardware culling mode.
Definition: OGLGraphics.cpp:1786
StringHash ReadStringHash()
Read a 32-bit StringHash.
Definition: Deserializer.cpp:271
@ FM_NOTFOCUSABLE
Is not focusable and does not affect existing focus.
Definition: UIElement.h:75
void SetPatchSizeAttr(int value)
Set patch size attribute.
Definition: Terrain.cpp:804
unsigned boundVBO_
Currently bound vertex buffer object.
Definition: OGLGraphicsImpl.h:128
SharedArrayPtr< unsigned char > data_
Vertex data.
Definition: Model.h:76
PListValueMap & ConvertToValueMap()
Convert to value map (internal use only).
Definition: PListFile.cpp:252
ShaderType GetShaderType() const
Return shader type.
Definition: ShaderVariation.h:105
float GetMinRotationSpeed() const
Definition: ParticleEffect.h:367
PrimitiveType primitiveType_
Primitive type.
Definition: Geometry.h:134
void ReleaseRef()
Release the weak reference. Delete the Refcount structure if necessary.
Definition: Ptr.h:520
4x4 matrix for arbitrary linear transforms including projection.
Definition: Matrix4.h:38
HashMap< StringHash, SharedPtr< ShaderParameterAnimationInfo > > shaderParameterAnimationInfos_
Shader parameters animation infos.
Definition: Material.h:320
SharedPtr< Text > modeText_
Rendering mode text.
Definition: DebugHud.h:129
bool mouseMoveScaled_
Whether mouse move is accumulated in backbuffer scale or not (when using events directly).
Definition: Input.h:476
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:104
void ReleaseFontFaces()
Force release of font faces when global font properties change.
Definition: UI.cpp:1335
bool NotNull() const
Check if the pointer is not null.
Definition: ArrayPtr.h:376
UIElement * GetDragElement(unsigned index)
Return the drag element at index.
Definition: UI.cpp:911
void OnSetEnabled() override
Handle enabled/disabled state change.
Definition: RigidBody.cpp:137
void OnSetEnabled() override
Handle enabled/disabled state change.
Definition: ScriptInstance.cpp:227
void ProcessItems(unsigned threadIndex)
Process work items until shut down. Called by the worker threads.
Definition: WorkQueue.cpp:307
SharedArrayPtr< unsigned char > GetShadowDataShared() const
Return shared array pointer to the CPU memory shadow data.
Definition: IndexBuffer.h:91
bool scrollTouchDown_
Used to trigger scroll smoothing when false.
Definition: ScrollView.h:206
void AddWeight(float delta)
Modify blending weight.
Definition: AnimationState.cpp:245
bool subpixel_
Use subpixel glyph positioning?
Definition: FontFaceFreeType.h:65
const T * operator->() const
Point to the key.
Definition: HashSet.h:168
unsigned GetNumAttributes() const
Definition: Serializable.cpp:988
void DefineShape(const String &shape, Image *image, const IntRect &imageRect, const IntVector2 &hotSpot)
Define a shape.
Definition: Cursor.cpp:137
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:400
void SetTextureEdgeOffset(float offset)
Definition: Sprite2D.cpp:133
bool RemoveTag(const String &tag)
Remove specific tag. Return true if existed.
Definition: UIElement.cpp:1485
Definition: Serializer.h:45
void ProcessRayQuery(const RayOctreeQuery &query, PODVector< RayQueryResult > &results) override
Process octree raycast. May be called from a worker thread.
Definition: DecalSet.cpp:210
Definition: Deserializer.h:34
void HandleScenePostUpdate(StringHash eventType, VariantMap &eventData)
Handle scene post-update event.
Definition: DecalSet.cpp:1159
Variant BezierInterpolation(const Vector< Variant > &knots, float t) const
Perform Bezier interpolation on the spline.
Definition: Spline.cpp:143
SLNet::RakNetGUID * remoteGUID_
Remote GUID information.
Definition: Network.h:202
void SetScale(float scale)
Set uniform scaling elements.
Definition: Matrix3.h:185
OctreeQueryResult()
Construct with defaults.
Definition: OctreeQuery.h:164
unsigned SystemCommandAsync(const String &commandLine)
Run a program using the command interpreter asynchronously. Return a request ID or M_MAX_UNSIGNED if ...
Definition: FileSystem.cpp:395
int velocityIterations_
Velocity iterations.
Definition: PhysicsWorld2D.h:252
virtual void OnAttributeAnimationAdded()=0
Handle attribute animation added.
bool operator!=(const HashMap< T, U > &rhs) const
Test for inequality with another hash map.
Definition: HashMap.h:313
void ResetRenderTargets()
Reset all rendertargets, depth-stencil surface and viewport.
Definition: OGLGraphics.cpp:1613
void Init()
Init the vehicle component after creation.
Definition: RaycastVehicle.cpp:282
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
SharedPtr< RigidBody2D > bodyB_
Rigid body B.
Definition: PhysicsWorld2D.h:287
SharedPtr< Sprite2D > sprite_
Sprite (for tile).
Definition: TileMapDefs2D.h:243
LineEdit * GetFileNameEdit() const
Definition: FileSelector.h:107
const String & GetPath() const
Return the path being watched, or empty if not watching.
Definition: FileWatcher.h:62
void AdjustScreenMode(int &newWidth, int &newHeight, ScreenModeParams ¶ms, bool &maximize) const
Adjust parameters according to the platform. Fill in missing paramters and resolve possible conflicts...
Definition: Graphics.cpp:490
void Disconnect(DbConnection *connection)
Disconnect a database connection. The connection object pointer should not be used anymore after this...
Definition: Database.cpp:78
PackageDownload()
Construct with defaults.
Definition: Connection.cpp:58
float shadowFarSplits_[MAX_LIGHT_SPLITS]
Shadow camera far splits (directional lights only).
Definition: View.h:74
const KeyValue & operator*() const
Dereference the pair.
Definition: HashMap.h:214
unsigned numPrimitives_
Number of primitives this frame.
Definition: Graphics.h:814
ConstraintWeld2D(Context *context)
Construct.
Definition: ConstraintWeld2D.cpp:37
void Define(const Vector4 &plane)
Define from a 4-dimensional vector, where the w coordinate is the plane parameter.
Definition: Plane.h:83
String vertexShaderName_
Vertex shader name.
Definition: Technique.h:192
Node * CloneRecursive(Node *parent, SceneResolver &resolver, CreateMode mode)
Clone node recursively.
Definition: Node.cpp:2181
PODVector< CollisionShape * > collisionShapes_
Collision shapes in the world.
Definition: PhysicsWorld.h:334
void SetCommand(unsigned index, const RenderPathCommand &command)
Definition: RenderPath.cpp:466
bool WritePackedQuaternion(const Quaternion &value)
Write a quaternion with each component packed in 16 bits.
Definition: Serializer.cpp:142
HashMap< unsigned long long, LightBatchQueue > vertexLightQueues_
Per-vertex light queues.
Definition: View.h:417
@ FONT_HINT_LEVEL_LIGHT
Light hinting. FreeType will pixel-align fonts vertically, but not horizontally.
Definition: UI.h:42
ResourceRef GetZoneTextureAttr() const
Return zone texture attribute.
Definition: Zone.cpp:224
void OnWorldBoundingBoxUpdate() override
Recalculate the world-space bounding box.
Definition: ParticleEmitter2D.cpp:194
bool GetExecuteConsoleCommands() const
Definition: FileSystem.h:87
bool GetUseClipPlane() const
Return whether a custom clipping plane is in use.
Definition: Graphics.h:607
SharedPtr< StaticModel > model_
Model created by this component. If node already has StaticModel then this will be null.
Definition: UIComponent.h:74
void Clear()
Clear mainline key and timeline keys.
Definition: SpriterInstance2D.cpp:296
bool FromString(const String &source)
Deserialize from a string. Return true if successful.
Definition: XMLFile.cpp:162
bool WriteMatrix3(const Matrix3 &value)
Write a Matrix3.
Definition: Serializer.cpp:154
SharedPtr< VertexBuffer > vertexBuffer_
Vertex buffer.
Definition: CustomGeometry.h:179
Marks the root or "beginning" of an IK chain or multiple IK chains. The solving algorithm can be set ...
Definition: IKSolver.h:42
void HandleListViewKey(StringHash eventType, VariantMap &eventData)
Handle a key press from the listview.
Definition: DropDownList.cpp:330
void RemoveRigidBody(RigidBody *body)
Remove a rigid body. Called by RigidBody.
Definition: PhysicsWorld.cpp:723
SharedArrayPtr< unsigned char > readBuffer_
Read buffer for Android asset or compressed file loading.
Definition: File.h:134
bool SetColor(const String &name, const Color &value)
Set a color attribute.
Definition: XMLElement.cpp:347
bool Save(Serializer &dest) const override
Save resource. Return true if successful.
Definition: LuaFile.cpp:76
int strokeThickness_
Text effect stroke thickness.
Definition: Text.h:275
void SetMaxRotation(float rotation)
Definition: ParticleEffect.cpp:565
bool executeConsoleCommands_
Flag for executing engine console commands as script code. Default to true.
Definition: LuaScript.h:125
void SetRotationSilent(const Quaternion &rotation)
Set position in parent space silently without marking the node & child nodes dirty....
Definition: Node.h:678
JSONValue(float value)
Construct with a float.
Definition: JSONValue.h:101
Variant SplineInterpolation(unsigned index1, unsigned index2, float scaledTime) const
Spline interpolation.
Definition: ValueAnimation.cpp:437
void PrepareDraw()
Process dirtied state before draw.
Definition: OGLGraphics.cpp:2826
bool connectPending_
Connection pending flag.
Definition: Connection.h:354
void DrawDebugGeometry(DebugRenderer *debug, bool depthTest) override
Visualize the component as debug geometry.
Definition: PhysicsWorld.cpp:229
void MarkTextDirty()
Mark text & geometry dirty.
Definition: Text3D.cpp:531
void SetTypeName(const String &typeName)
Initialize the type name. Called by Node when loading.
Definition: UnknownComponent.cpp:242
Vector< LightBatchQueue > lightQueues_
Per-pixel light queues.
Definition: View.h:415
SharedPtr< SpriteSheet2D > spriteSheet_
Sprite sheet.
Definition: AnimationSet2D.h:119
String(const wchar_t *str)
Construct from a null-terminated wide character array.
Definition: Str.h:107
unsigned char * buffer_
Pointer to the memory area.
Definition: MemoryBuffer.h:59
ValueAnimationInfo(ValueAnimation *animation, WrapMode wrapMode, float speed)
Construct without target object.
Definition: ValueAnimationInfo.cpp:34
void AddTextureFrame(const TextureFrame &textureFrame)
Add a texture frame sorted in the correct position based on time.
Definition: ParticleEffect.cpp:691
static const Vector2 & GetPixelUVOffset()
Return UV offset required for pixel perfect rendering.
Definition: Graphics.h:693
static void RegisterObject(Context *context)
Register object factory.
Definition: Shader.cpp:79
void SetRollingFriction(float friction)
Definition: RigidBody.cpp:392
float GetSpeedVariance() const
Return speed variance.
Definition: ParticleEffect2D.h:146
WrapMode wrapMode_
Wrap mode.
Definition: ValueAnimationInfo.h:90
float animationLodBias_
Animation LOD bias.
Definition: ParticleEffect.h:441
Vector2 ReadVector2(const XMLElement &element, const String &name) const
Read Vector2.
Definition: ParticleEffect2D.cpp:536
void RemoveAgentFromCrowd()
Remove agent from crowd.
Definition: CrowdAgent.cpp:317
Variant(const char *value)
Construct from a C string.
Definition: Variant.h:416
void AddEventHandler(const String &eventName, int index) override
Add a scripted event handler by function at the given stack index.
Definition: LuaScript.cpp:158
b2JointDef * GetJointDef() override
Return joint def.
Definition: ConstraintGear2D.cpp:103
virtual void TestDrawables(Drawable **start, Drawable **end, bool inside)=0
Intersection test for drawables.
bool fullscreen_
Whether to use fullscreen mode.
Definition: Graphics.h:84
VariantVector GetBillboardsAttr() const
Return billboards attribute.
Definition: BillboardSet.cpp:432
Subsystem for file and directory operations and access control.
Definition: FileSystem.h:42
const Color & GetColorAttr() const
Get color attribute. Uses just the top-left color.
Definition: Text3D.h:220
void HandleMouseWheel(StringHash eventType, VariantMap &eventData)
Handle mouse wheel event.
Definition: UI.cpp:1839
void SetForceGL2(bool enable)
Set forced use of OpenGL 2 even if OpenGL 3 is available. Must be called before setting the screen mo...
Definition: OGLGraphics.cpp:537
AsyncLoadState
Asynchronous loading state of a resource.
Definition: Resource.h:39
void ValidateShadowBias()
Validate shadow bias.
Definition: Light.h:399
unsigned basePassIndex_
Index of the opaque forward base pass.
Definition: View.h:423
const String & GetAnimation() const
Definition: AnimatedSprite2D.h:95
MouseMode mouseMode_
Determines the mode of mouse behaviour.
Definition: Input.h:458
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:592
const BoundingBox & GetWorldBoundingBox()
Definition: Drawable.cpp:253
virtual bool SaveXML(XMLElement &dest) const
Save as XML data. Return true if successful.
Definition: Serializable.cpp:507
XPathResultSet Evaluate(const XMLElement &element) const
Definition: XMLElement.cpp:1194
int simulatedLatency_
Simulated latency (send delay) in milliseconds.
Definition: Network.h:178
const Vector< SharedPtr< VertexBuffer > > & GetMorphVertexBuffers() const
Return all morph vertex buffers.
Definition: AnimatedModel.h:138
void RemoveEventHandlersExcept(const Vector< String > &exceptionNames) override
Remove all scripted event handlers, except those listed.
Definition: LuaScript.cpp:218
void SetUseDerivedOpacity(bool enable)
Definition: UIElement.cpp:882
bool SetBoundingBox(const BoundingBox &value)
Set a BoundingBox attribute.
Definition: XMLElement.cpp:325
const PODVector< unsigned char > & GetNetAnimationsAttr() const
Return animations attribute for network replication.
Definition: AnimationController.cpp:761
void HandleScriptEvent(StringHash eventType, VariantMap &eventData)
Handle an event in script.
Definition: ScriptInstance.cpp:932
void Reset()
Reset the particle emitter completely. Removes current particles, sets emitting state on,...
Definition: ParticleEmitter.cpp:331
void UpdateMainlineKey()
Update mainline key.
Definition: SpriterInstance2D.cpp:238
void UpdateBuffers()
Rewrite decal vertex and index buffers.
Definition: DecalSet.cpp:1011
void OnHover(const IntVector2 &position, const IntVector2 &screenPosition, MouseButtonFlags buttons, QualifierFlags qualifiers, Cursor *cursor) override
React to mouse hover.
Definition: Slider.cpp:84
VariantVector ReadVariantVector()
Read a variant vector.
Definition: Deserializer.cpp:398
@ AM_COMPONENTID
Attribute is a component ID and may need rewriting.
Definition: Attribute.h:51
void UnsubscribeFromEvent(StringHash eventType)
Unsubscribe from an event.
Definition: Object.cpp:198
void UpdateProjection() const
Recalculate projection matrix.
Definition: Camera.cpp:648
SharedPtr< Node > nodeA_
Node A.
Definition: PhysicsWorld2D.h:289
const PListValueVector & GetValueVector() const
Return value vector.
Definition: PListFile.cpp:247
SharedArrayPtr< float > heightData_
Height data. On LOD level 0 the original height data will be used.
Definition: CollisionShape.h:131
String NormalizeDefines(const String &defines)
Sort the defines and strip extra spaces to prevent creation of unnecessary duplicate shader variation...
Definition: Shader.cpp:208
TextureFrame()
Construct with default values.
Definition: ParticleEffect.h:91
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 short GetExcludeFlags(unsigned queryFilterType) const
Get the exclude flags for the specified query filter type.
Definition: CrowdManager.cpp:492
static void RegisterObject(Context *context)
Register object factory.
Definition: Terrain.cpp:120
void SortFrontToBack2Pass(PODVector< Batch * > &batches)
Sort batches front to back while also maintaining state sorting.
Definition: Batch.cpp:782
bool autoResolve_
Multisampling autoresolve flag.
Definition: Texture.h:273
const String & GetTextureUnitName(TextureUnit unit)
Return texture unit name by index.
Definition: OGLGraphics.cpp:2166
bool Contains(const T &key) const
Return whether contains a pair with key.
Definition: HashMap.h:557
Variant(const StringVector &value)
Construct from a string vector.
Definition: Variant.h:464
void Define(const Vector3 &min, const Vector3 &max)
Define from minimum and maximum vectors.
Definition: BoundingBox.h:158
HashMap< unsigned, SharedPtr< Sprite2D > > spriterFileSprites_
Spriter sprites.
Definition: AnimationSet2D.h:121
Vector< VertexBufferDesc > loadVBData_
Vertex buffer data for asynchronous loading.
Definition: Model.h:236
@ UPDATE_ACTIVE_POSE
Should be enabled if you are using IK on an animated model, along with disabling USE_ORIGINAL_POSE.
Definition: IKSolver.h:129
void PushInt(int value)
Push int to stack.
Definition: LuaFunction.cpp:102
PackageFile(Context *context)
Construct.
Definition: PackageFile.cpp:32
Iterator Erase(const Iterator &start, const Iterator &end)
Erase a range by iterators. Return iterator to the next element.
Definition: Vector.h:966
float GetMaxForce() const
Definition: ConstraintFriction2D.h:59
Vector2 size_
Size (for rectangle and ellipse).
Definition: TileMapDefs2D.h:237
unsigned litBasePassIndex_
Index of the litbase pass.
Definition: View.h:429
AutoRemoveMode GetAutoRemoveMode() const
Definition: ParticleEmitter.h:113
unsigned stencilRef_
Stencil test reference value.
Definition: Graphics.h:888
SharedPtr< UIElement > contentElement_
Content element.
Definition: ScrollView.h:176
void AssignBoneNodes()
Find bones after loading.
Definition: DecalSet.cpp:1105
void SetDefaultStyle(XMLFile *style)
Definition: FileSelector.cpp:143
void ProcessShadowCasters(LightQueryResult &query, const PODVector< Drawable * > &drawables, unsigned splitIndex)
Process shadow casters' visibilities and build their combined view- or projection-space bounding box.
Definition: View.cpp:2379
Iterator DoInsertElements(unsigned pos, RandomIteratorT start, RandomIteratorT end, Tag)
Insert elements into the vector using copy or move constructor.
Definition: Vector.h:615
PODVector< Vector2 > vertices_
Vertices.
Definition: CollisionPolygon2D.h:75
VertexBuffer(Context *context, bool forceHeadless=false)
Construct. Optionally force headless (no GPU-side buffer) operation.
Definition: VertexBuffer.cpp:36
void AddRef()
Add a weak reference to the object pointed to.
Definition: Ptr.h:510
static void RegisterObject(Context *context)
Register object factory.
Definition: TileMapLayer2D.cpp:46
static unsigned GetRGFloat16Format()
Return the API-specific RG 16-bit float texture format.
Definition: OGLGraphics.cpp:2625
void SetCustomMaterial(Material *customMaterial)
Definition: StaticSprite2D.cpp:225
void AddLayer(unsigned index, TmxLayer2D *layer)
Add layer at index, if index > number of layers then append to end.
Definition: TmxFile2D.cpp:542
const Vector< PODVector< unsigned > > & GetGeometryBoneMappings() const
Return geometery bone mappings.
Definition: Model.h:194
void SetHovering(bool enable)
Set hovering state.
Definition: UIElement.cpp:1810
T * Detach()
Detach pointer from UniquePtr without destroying.
Definition: Ptr.h:635
PODVector< T > & operator+=(const T &rhs)
Add-assign an element.
Definition: Vector.h:748
unsigned occlusionLodLevel_
LOD level used for occlusion.
Definition: Terrain.h:336
BiasParameters(float constantBias, float slopeScaledBias, float normalOffset=0.0f)
Construct with initial values.
Definition: Light.h:62
bool elementEventSender_
Flag whether node should send child added / removed events by itself.
Definition: UIElement.h:927
void OnSetEditable() override
React to editable status change.
Definition: DropDownList.cpp:149
void DrawTransform(const b2Transform &xf) override
Draw a transform. Choose your own length scale.
Definition: PhysicsWorld2D.cpp:264
Weak pointer template class with intrusive reference counting. Does not keep the object pointed to al...
Definition: Ptr.h:263
bool LoadByteCode(const String &binaryShaderName)
Load bytecode from a file. Return true if successful.
Definition: OGLShaderVariation.cpp:199
void HandleRenderUpdate(StringHash eventType, VariantMap &eventData)
Handle render update in case of headless execution.
Definition: Octree.cpp:578
Frustum GetViewSpaceSplitFrustum(float nearClip, float farClip) const
Return split frustum in view space.
Definition: Camera.cpp:360
Vector3 otherPosition_
Constraint other body position.
Definition: Constraint.h:212
WeakPtr< Image > windowIcon_
Window icon image.
Definition: Graphics.h:769
void SetEmitting(bool enable)
Definition: ParticleEmitter2D.cpp:168
void PurgePool()
Purge the pool to reduce allocation where its unneeded.
Definition: WorkQueue.cpp:368
void SetEngineForce(int wheel, float force)
Set engine force for the wheel.
Definition: RaycastVehicle.cpp:569
void OnServerConnected(const SLNet::AddressOrGUID &address)
Handle server connection.
Definition: Network.cpp:988
bool WriteVariantMap(const VariantMap &value)
Write a variant map.
Definition: Serializer.cpp:353
Intersection IsInside(const Vector3 &point) const
Test if a point is inside.
Definition: Sphere.h:157
void SetWorldDirection(const Vector3 &direction)
Definition: Node.cpp:523
void OnMarkedDirty(Node *node) override
Handle node transform being dirtied.
Definition: CollisionShape.cpp:947
Polyhedron Transformed(const Matrix3 &transform) const
Return transformed with a 3x3 matrix.
Definition: Polyhedron.cpp:257
void SetInstanceDefault(bool enable)
Set instance-level default flag.
Definition: Serializable.h:90
bool Contains(const String &str, bool caseSensitive=true) const
Return whether contains a specific occurrence of a string.
Definition: Str.h:447
Frustum GetSplitFrustum(float nearClip, float farClip) const
Return frustum split by custom near and far clip distances.
Definition: Camera.cpp:310
const T * operator->() const
Point to the key.
Definition: HashSet.h:106
ConstIterator(const Iterator &rhs)
Construct from a non-const iterator.
Definition: HashMap.h:168
BoxOctreeQuery(PODVector< Drawable * > &result, const BoundingBox &box, unsigned char drawableFlags=DRAWABLE_ANY, unsigned viewMask=DEFAULT_VIEWMASK)
Construct with bounding box and query parameters.
Definition: OctreeQuery.h:122
TmxFile2D * GetTmxFile() const
Return tmx file.
Definition: TmxFile2D.cpp:50
const Vector3 & GetGeometryCenter(unsigned index) const
Definition: Model.h:188
PODVector< unsigned char > binaryAttributes_
Binary attributes.
Definition: UnknownComponent.h:99
void SetMouseMode(MouseMode mode, bool suppressEvent=false)
Set the mouse mode.
Definition: Input.cpp:848
IntVector3 coordinateSystem_
Coordinate system.
Definition: RaycastVehicle.h:199
void SetModelAttr(const ResourceRef &value)
Set model attribute.
Definition: StaticModel.cpp:373
unsigned vertexCount_
Number of vertices.
Definition: CollisionShape.h:117
unsigned passIndex_
Scene pass index. Filled by View.
Definition: RenderPath.h:158
File opened either through the filesystem or from within a package file.
Definition: File.h:62
unsigned lastUpdateFrameNumber_
Rendering framenumber on which was last updated.
Definition: RibbonTrail.h:267
const PODVector< Drawable * > & GetOccluders() const
Return occluder objects.
Definition: View.h:166
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:411
void HandleHeightMapReloadFinished(StringHash eventType, VariantMap &eventData)
Handle heightmap image reload finished.
Definition: Terrain.cpp:1440
float GetSortValue() const
Return sorting value.
Definition: Drawable.h:292
U & operator[](const T &key)
Index the map. Create a new pair if key not found.
Definition: HashMap.h:331
float GetAnimationLodBias() const
Definition: BillboardSet.h:154
static void RegisterObject(Context *context)
Register object factory. Drawable must be registered first.
Definition: Zone.cpp:69
static void RegisterObject(Context *context)
Register object factory.
Definition: ConstraintRope2D.cpp:47
void SetScreenKeyboardVisible(bool enable)
Definition: Input.cpp:1180
bool autoSize_
Auto-size (reduce resolution when far away) flag.
Definition: Light.h:144
bool toggleFullscreen_
Fullscreen toggle flag.
Definition: Input.h:448
void SetTextureParametersDirty()
Definition: OGLGraphics.cpp:1601
HashMap< String, PListValue > PListValueMap
PList value map.
Definition: PListFile.h:50
float GetAngularVelocity() const
Return angular velocity.
Definition: RigidBody2D.cpp:543
EventHandler(Object *receiver, void *userData=nullptr)
Construct with specified receiver and userdata.
Definition: Object.h:259
void AllocateNetworkState()
Allocate network attribute state.
Definition: Serializable.cpp:712
unsigned g_
Green channel mask. If zero, green channel is set to 0.
Definition: Color.h:42
bool nonUniform_
Non-uniform focusing flag.
Definition: Light.h:142
void SetShadowNearFarRatio(float nearFarRatio)
Definition: Light.cpp:347
Vector2 ConvertPosition(const Vector2 &position) const
Convert tmx position to Urho position.
Definition: TileMapDefs2D.cpp:50
void CleanupConnection(Connection *connection)
Clean up all references to a network connection that is about to be removed.
Definition: Scene.cpp:1111
void SetDeepEnabled(bool enable)
Set enabled state on self and child elements. Elements' own enabled state is remembered (IsEnabledSel...
Definition: UIElement.cpp:893
void HandleFileSelected(StringHash eventType, VariantMap &eventData)
Handle file selected from the list.
Definition: FileSelector.cpp:403
bool HasProperty(const String &name) const
Return has property.
Definition: TileMapDefs2D.cpp:208
float GetMaxRadiusVariance() const
Return max radius variance.
Definition: ParticleEffect2D.h:212
ConstIterator End() const
Return const iterator to the end.
Definition: Vector.h:1128
void SetWorldPosition2D(float x, float y)
Set position in world space (for Urho2D).
Definition: Node.h:201
long long GetUSec(bool reset)
Return elapsed microseconds and optionally reset.
Definition: Timer.cpp:220
Vector< Vector< SharedPtr< Geometry > > > geometries_
Geometries.
Definition: Model.h:224
void CreateQuadsFromBuffer(const Vector< Vector3 > &pointList, size_t zIterations, size_t thetaIterations, bool connectTail=false)
Helper Function Creating 3D Meshes (connectTail = true), connect the endLinePoint to the start)
Definition: CustomGeometry.cpp:422
bool FilterImplicitAttributes(XMLElement &dest) const override
Filter implicit attributes in serialization process.
Definition: ScrollBar.cpp:221
ResourceRouter * GetResourceRouter(unsigned index) const
Return a resource router by index.
Definition: ResourceCache.cpp:800
bool SetIntRect(const String &name, const IntRect &value)
Set an IntRect attribute.
Definition: XMLElement.cpp:382
float GetEndTime() const
Return end time.
Definition: ValueAnimation.h:132
@ CA_STATE_WALKING
The agent is traversing a normal navigation mesh polygon.
Definition: CrowdAgent.h:54
Shader * GetOwner() const
Return the owner resource.
Definition: ShaderVariation.cpp:75
void OnWorldBoundingBoxUpdate() override
Recalculate the world-space bounding box.
Definition: Zone.cpp:247
const Vector2 & GetPosition() const
Definition: TileMapDefs2D.h:192
float GetUpperTranslation() const
Definition: ConstraintPrismatic2D.h:86
WeakPtr< UIElement > focusElement_
Currently focused element.
Definition: UI.h:400
bool retryCreation_
Shape creation retry flag if attributes initially set without scene.
Definition: CollisionShape.h:333
void SetRadialAcceleration(float radialAcceleration)
Set radial acceleration.
Definition: ParticleEffect2D.cpp:344
void Draw(PrimitiveType type, unsigned vertexStart, unsigned vertexCount)
Draw non-indexed geometry.
Definition: OGLGraphics.cpp:844
HashSet(HashSet< T > &&set) noexcept
Move-construct from another hash set.
Definition: HashSet.h:192
void SetDefaultTechnique(Technique *technique)
Definition: Renderer.cpp:306
KeyValue(const T &first, const U &second)
Construct with key and value.
Definition: HashMap.h:54
VariantMap & GetIdentity()
Return client identity.
Definition: Connection.h:181
int GetCategoryBits() const
Definition: CollisionShape2D.h:83
Definition: OctreeQuery.h:140
const PODVector< Light * > & GetVertexLights() const
Return per-vertex lights.
Definition: Drawable.h:304
unsigned GetVertexCount() const
Definition: CollisionChain2D.h:61
unsigned intervalCount_
Calls during current profiler interval.
Definition: Profiler.h:163
HashMap< unsigned, SharedPtr< Texture2D > > depthTextures_
Map for additional depth textures, to emulate Direct3D9 ability to mix render texture and backbuffer ...
Definition: OGLGraphicsImpl.h:150
void AddColorFrame(const ColorFrame &colorFrame)
Add a color frame sorted in the correct position based on time.
Definition: ParticleEffect.cpp:616
bool SetResourceRefList(const ResourceRefList &value)
Set a resource reference list attribute.
Definition: XMLElement.cpp:455
const String & GetCompilerOutput() const
Return compile error/warning string.
Definition: ShaderVariation.h:132
WeakPtr< UIElement > doubleClickElement_
UI element last clicked for tracking double clicks.
Definition: UI.h:460
bool EnterFile()
Enter a directory or confirm a file. Return true if a directory entered.
Definition: FileSelector.cpp:347
bool IsNaN() const
Return whether any component is NaN.
Definition: Vector3.h:419
Matrix3x4 transforms_
Transform matrices for position and orientation.
Definition: RibbonTrail.h:239
unsigned drawCount_
Index or vertex count.
Definition: OcclusionBuffer.h:80
bool discardLock_
Discard lock flag. Used by OpenGL only.
Definition: VertexBuffer.h:179
const Vector< SharedPtr< Component > > & GetComponents() const
Return all components.
Definition: Node.h:592
float GetFinishParticleSizeVariance() const
Return finish particle size variance.
Definition: ParticleEffect2D.h:200
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: OGLTexture2DArray.cpp:103
bool updateInvisible_
Update animation when invisible flag.
Definition: AnimatedModel.h:253
SharedPtr< BorderImage > background_
Background.
Definition: Console.h:166
void SetPriority(int priority)
Set thread priority. The thread must have been started first.
Definition: Thread.cpp:118
bool IsFixedScreenSize() const
Definition: ParticleEffect.h:287
ScriptInstanceMethod
Inbuilt scripted component methods.
Definition: ScriptInstance.h:41
int GetLevelDepth(unsigned level) const
Return mip level depth, or 0 if level does not exist.
Definition: Texture.cpp:143
Vector< WeakPtr< Constraint2D > > constraints_
Constraints.
Definition: RigidBody2D.h:209
unsigned shaderParameterHash_
Shader parameter hash value.
Definition: Material.h:338
String vertexShaderDefineExcludes_
Vertex shader define excludes.
Definition: Technique.h:200
void EndDumpShaders()
End dumping shader variations names.
Definition: Graphics.cpp:366
Vector< SharedPtr< VertexBuffer > > morphVertexBuffers_
Morph vertex buffers.
Definition: AnimatedModel.h:225
float GetMotorSpeed() const
Definition: ConstraintWheel2D.h:83
void DrawDebugGeometry(DebugRenderer *debug, bool depthTest)
Draw bounds to the debug graphics recursively.
Definition: Octree.cpp:207
Variant(const PODVector< unsigned char > &value)
Construct from a buffer.
Definition: Variant.h:422
bool subscribed_
Subscribed to scene update events flag.
Definition: ScriptInstance.h:210
Variant(const VariantVector &value)
Construct from a variant vector.
Definition: Variant.h:452
void ReleaseSDL()
Indicate that you are done with using SDL. Must be called after using RequireSDL().
Definition: Context.cpp:283
IntVector2 ReadIntVector2()
Read an IntVector2.
Definition: Deserializer.cpp:145
void SetCone(float diameter, float height, const Vector3 &position=Vector3::ZERO, const Quaternion &rotation=Quaternion::IDENTITY)
Set as a cone.
Definition: CollisionShape.cpp:654
CompressedFormat GetCompressedFormat() const
Definition: Image.h:186
bool paused_
Paused flag. Indicates the queue mutex being locked to prevent worker threads using up CPU time.
Definition: WorkQueue.h:145
Vector3 GetPosition() const
Get the parent Node's last position on the spline.
Definition: SplinePath.h:91
void EndContact(b2Contact *contact) override
Called when two fixtures cease to touch.
Definition: PhysicsWorld2D.cpp:121
static const ResourceRef emptyResourceRef
Empty resource reference.
Definition: Variant.h:1390
pugi::xml_node_struct * GetNode() const
Return pugixml xml_node_struct.
Definition: XMLElement.h:296
void ErrorExit(const String &message=String::EMPTY)
Show an error message (last log message if empty), terminate the main loop, and set failure exit code...
Definition: Application.cpp:110
String Reverse() const
Return string which has specific hash value. Return first string if many (in order of calculation)....
Definition: StringHash.cpp:100
@ USE_FIXEDPOSTUPDATE
Bitmask for using the physics post-update event.
Definition: LogicComponent.h:44
unsigned customGeometryID_
CustomGeometry component ID. 0 if not creating the convex hull / triangle mesh from a CustomGeometry.
Definition: CollisionShape.h:327
unsigned scriptNestingLevel_
Current script execution nesting level.
Definition: Script.h:147
void OnResize(const IntVector2 &newSize, const IntVector2 &delta) override
React to resize.
Definition: ProgressBar.cpp:71
UIElement * CreateChild(StringHash type, const String &name=String::EMPTY, unsigned index=M_MAX_UNSIGNED)
Create and add a child element and return it.
Definition: UIElement.cpp:1271
void UpdatePanelSize()
Resize panel based on scrollbar visibility.
Definition: ScrollView.cpp:432
bool GetScissorTest() const
Return whether scissor test is enabled.
Definition: Graphics.h:580
Definition: Attribute.h:121
const void * instancingData_
Instancing data buffer.
Definition: Batch.h:128
void SetTranslation(const Vector3 &translation)
Set translation elements.
Definition: Matrix4.h:482
static void RegisterObject(Context *context)
Register object factory.
Definition: ConstraintFriction2D.cpp:46
bool WriteStringVector(const StringVector &value)
Write a variant vector.
Definition: Serializer.cpp:344
bool recreateTerrain_
Terrain needs regeneration flag.
Definition: Terrain.h:372
void SetOrderInLayer(int orderInLayer)
Definition: Drawable2D.cpp:88
void PushVariant(const Variant &variant, const char *asType=nullptr)
Push variant to stack.
Definition: LuaFunction.cpp:144
~Graphics() override
Destruct. Release the Direct3D11 device and close the window.
Definition: OGLGraphics.cpp:322
EventHandler * FindEventHandler(StringHash eventType, EventHandler **previous=nullptr) const
Find the first event handler with no specific sender.
Definition: Object.cpp:461
void DisableMassUpdate()
Disable mass update. Call this to optimize performance when adding or editing multiple collision shap...
Definition: RigidBody.cpp:588
float Luma() const
Return the 'grayscale' representation of RGB values, as used by JPEG and PAL/NTSC among others.
Definition: Color.h:176
bool IsSimulating() const
Return whether is currently inside the Bullet substep loop.
Definition: PhysicsWorld.h:300
UniquePtr< btTriangleInfoMap > infoMap_
Bullet triangle info map.
Definition: CollisionShape.h:88
static unsigned GetSystemTime()
Get system time as milliseconds.
Definition: Timer.cpp:162
Vector3 Normalized() const
Return normalized to unit length.
Definition: Vector3.h:425
void UpdateResourceGroup(StringHash type)
Update a resource group. Recalculate memory use and release resources if over memory budget.
Definition: ResourceCache.cpp:1033
void HandleMouseButtonDown(StringHash eventType, VariantMap &eventData)
Handle mouse button down event.
Definition: UI.cpp:1759
const char * GetCString(const char *defaultValue="") const
Return C string value. Default to empty string literal.
Definition: JSONValue.h:214
ConstantBuffer * constantBuffers_[MAX_SHADER_PARAMETER_GROUPS *2]
Currently bound constant buffers.
Definition: OGLGraphicsImpl.h:144
void SetWorldTransform2D(const Vector2 &position, float rotation, float scale)
Set position, rotation, and uniform scale in world space as an atomic operation (for Urho2D).
Definition: Node.h:243
void SetVariantValue(const Variant &variant, Context *context=nullptr)
Set variant value, context must provide for resource ref.
Definition: JSONValue.cpp:406
Octant * GetOrCreateChild(unsigned index)
Return or create a child octant.
Definition: Octree.cpp:99
static const unsigned MAX_LOAD_FACTOR
Maximum load factor.
Definition: HashBase.h:106
void CalculateLength()
Calculate the length of the SplinePath. Used for movement calculations.
Definition: SplinePath.cpp:341
void SetTileLayer(const TmxTileLayer2D *tileLayer)
Set tile layer.
Definition: TileMapLayer2D.cpp:338
bool focusOnShow_
Flag for automatically focusing the line edit on showing the console.
Definition: Console.h:212
CustomVariantValueImpl(const T &value)
Construct from value.
Definition: Variant.h:234
unsigned drawBuffers_
Draw buffer bits.
Definition: OGLGraphicsImpl.h:95
Variant(const char *type, const char *value)
Construct from type and value.
Definition: Variant.h:537
void HandleDefocused(StringHash eventType, VariantMap &eventData)
Handle being defocused.
Definition: LineEdit.cpp:650
void OnSetEnabled() override
Handle enabled/disabled state change.
Definition: CollisionShape2D.cpp:65
void ValidatePosition()
Validate window position.
Definition: Window.cpp:403
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:226
WeakPtr< UIElement > rootElement_
UIElement to be rendered into texture.
Definition: UI.h:292
unsigned Seek(unsigned position) override
Set position from the beginning of the stream. Not supported.
Definition: HttpRequest.cpp:270
String GetVarNamesAttr() const
Return node user variable reverse mappings.
Definition: Scene.cpp:1076
void * lockScratchData_
Scratch buffer for fallback locking.
Definition: VertexBuffer.h:173
Graphics * GetGraphics() const
Return the graphics subsystem associated with this GPU object.
Definition: GPUObject.cpp:73
void GetBatchesWithOffset(IntVector2 &offset, PODVector< UIBatch > &batches, PODVector< float > &vertexData, IntRect currentScissor)
Get UI rendering batches with a specified offset. Also recurse to child elements.
Definition: UIElement.cpp:1832
void Draw(View *view, Camera *camera, bool markToStencil, bool usingLightOptimization, bool allowDepthWrite) const
Draw.
Definition: Batch.cpp:848
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:78
float slopeScaledBias_
Slope scaled bias.
Definition: Light.h:75
void SetFrequencyHz(float frequencyHz)
Definition: ConstraintWheel2D.cpp:129
BorderImage(Context *context)
Construct.
Definition: BorderImage.cpp:38
SceneResolver resolver_
Node and component ID resolver for asynchronous loading.
Definition: Scene.h:317
void DefineTangent(const Vector4 &tangent)
Define a vertex tangent.
Definition: CustomGeometry.cpp:577
WeakPtr< RigidBody2D > ownerBody_
Owner body.
Definition: Constraint2D.h:103
void RemoveEventHandlersExcept(const PODVector< StringHash > &exceptions) override
Remove all scripted event handlers, except those listed.
Definition: ScriptInstance.cpp:401
void SetInstancingData(void *lockedData, unsigned stride, unsigned &freeIndex)
Pre-set instance data of all groups. The vertex buffer must be big enough to hold all data.
Definition: Batch.cpp:842
void GetDerivedComponents(PODVector< T * > &dest, bool recursive=false, bool clearVector=true) const
Return components derived from class.
Definition: Node.h:829
unsigned position_
Byte position in the front most buffer.
Definition: BufferedSoundStream.h:64
IntVector2 hoverOffset_
Offset to image rectangle on hover.
Definition: BorderImage.h:143
void SetEnableLimit(bool enableLimit)
Definition: ConstraintRevolute2D.cpp:71
TextureUnit GetTextureUnit(const String &name)
Return texture unit index by name.
Definition: OGLGraphics.cpp:2157
static void RegisterObject(Context *context)
Register object factory.
Definition: CollisionPolygon2D.cpp:46
void ProcessPackageInfo(int msgID, MemoryBuffer &msg)
Process a SyncPackagesInfo message from server.
Definition: Connection.cpp:1630
bool AddPackageFile(PackageFile *package, unsigned priority=PRIORITY_LAST)
Add a package file for loading resources from. Optional priority parameter which will control search ...
Definition: ResourceCache.cpp:136
String ReadFileID()
Read a four-letter file ID.
Definition: Deserializer.cpp:263
void SetInactiveTime(float time)
Definition: ParticleEffect.cpp:515
AttributeModeFlags mode_
Attribute mode: whether to use for serialization, network replication, or both.
Definition: Attribute.h:112
void SetResolveDirty(bool enable)
Set or clear the need resolve flag. Called internally by Graphics.
Definition: RenderSurface.h:138
unsigned GetNumAreas(unsigned queryFilterType) const
Definition: CrowdManager.cpp:448
bool IsAtEnd(const String &name) const
Return whether an animation is at its end. Will return false if the animation is not active at all.
Definition: AnimationController.cpp:472
static const unsigned FLIP_HORIZONTAL
Tile flipping flags.
Definition: TileMapDefs2D.h:127
Vector2 GetMassCenter() const
Definition: CollisionShape2D.cpp:277
void SetRotation(const Quaternion &rotation)
Definition: Connection.cpp:237
const Vector2 & GetAxis() const
Definition: ConstraintPrismatic2D.h:74
unsigned capacity_
Number of nodes in this block.
Definition: Allocator.h:45
Matrix3x4 GetMatrix3x4(const String &name) const
Return a Matrix3x4 attribute, or zero matrix if missing.
Definition: XMLElement.cpp:980
ConstraintMotor2D(Context *context)
Construct.
Definition: ConstraintMotor2D.cpp:37
Vector3 targetPosition_
Requested target position.
Definition: CrowdAgent.h:239
bool IsInf() const
Return whether any component is Inf.
Definition: Vector4.h:198
PODVector< StaticModelGeometryData > geometryData_
Extra per-geometry data.
Definition: StaticModel.h:126
void SetTextAlignment(HorizontalAlignment align)
Definition: Text3D.cpp:254
const PODVector< unsigned char > & GetBinaryAttributes() const
Return the binary attributes. Empty when loaded with XML serialization.
Definition: UnknownComponent.h:71
float GetMobileShadowBiasAdd() const
Definition: Renderer.h:394
const nanodbc::result & GetResultImpl() const
Return the underlying implementation result object.
Definition: ODBCResult.h:54
Matrix2(float v00, float v01, float v10, float v11) noexcept
Construct from values.
Definition: Matrix2.h:47
Matrix4(const float *data) noexcept
Construct from a float array.
Definition: Matrix4.h:145
asIScriptEngine * GetScriptEngine() const
Return the AngelScript engine.
Definition: Script.h:86
void ResetUpdateQueued()
Reset update queued flag. Called internally.
Definition: RenderSurface.cpp:77
ResourceRef GetCustomMaterialAttr() const
Return custom material attribute.
Definition: StaticSprite2D.cpp:266
void SetFaceCameraMode(FaceCameraMode mode)
Definition: BillboardSet.cpp:314
CollisionBox2D(Context *context)
Construct.
Definition: CollisionBox2D.cpp:37
void OnSetEnabled() override
Handle enabled/disabled state change.
Definition: Terrain.cpp:172
void ValidateShadowFocus()
Validate shadow focus.
Definition: Light.h:395
void DecDrawableCount()
Decrease drawable object count recursively and remove octant if it becomes empty.
Definition: Octree.h:122
SpatialInfo spatialInfo_
Root spatial info.
Definition: SpriterInstance2D.h:103
unsigned GetNumGeometries(bool allViews=false) const
Definition: Renderer.cpp:573
float GetSpeed() const
Return speed.
Definition: ParticleEffect2D.h:143
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
void ProcessSceneUpdate(int msgID, MemoryBuffer &msg)
Process a scene update message from the server. Called by Network.
Definition: Connection.cpp:588
void ValidateShadowCascade()
Validate shadow cascade.
Definition: Light.h:397
void RemoveAllAttributes()
Template version of removing all object attributes.
Definition: Context.h:269
void ApplyAttributes() override
Apply attribute changes that can not be applied immediately. Called after scene load or a network upd...
Definition: Constraint.cpp:100
bool BeginLoad(Deserializer &source) override
Load resource from stream. May be called from a worker thread. Return true if successful.
Definition: Model.cpp:75
static void RegisterObject(Context *context)
Register object factory.
Definition: Octree.cpp:329
const ProfilerBlock * GetRootBlock()
Return the root profiling block.
Definition: Profiler.h:217
bool inverseWorldDirty_
Inverse transform dirty flag.
Definition: Zone.h:164
bool IsSixteenBit() const
Return whether data is sixteen bit.
Definition: SoundStream.h:63
void SetCullMode(CullMode mode, Camera *camera)
Set cull mode while taking possible projection flipping into account.
Definition: Renderer.cpp:1332
SharedPtr< LuaScriptEventInvoker > eventInvoker_
Procedural event invoker.
Definition: LuaScript.h:121
static unsigned GetDepthStencilFormat()
Return the API-specific hardware depth-stencil texture format.
Definition: OGLGraphics.cpp:2673
Vector< SharedPtr< Material > > materials_
Materials.
Definition: Renderer2D.h:63
void GetScriptAttributes()
Find script object attributes.
Definition: LuaScriptInstance.cpp:524
void SetFinishParticleSize(float finishParticleSize)
Set finish particle size.
Definition: ParticleEffect2D.cpp:399
void SetTargetName(const String &nodeName)
Sets the name of the target node. The node doesn't necessarily have to exist in the scene graph....
Definition: IKEffector.cpp:105
PODVector< VertexElement > vertexElements_
Vertex declaration.
Definition: Model.h:72
ShaderParameterAnimationInfo * GetShaderParameterAnimationInfo(const String &name) const
Return shader parameter animation info.
Definition: Material.cpp:1313
IntVector2(int x, int y) noexcept
Construct from coordinates.
Definition: Vector2.h:43
static unsigned GetMaxBones()
Return maximum number of supported bones for skinning.
Definition: OGLGraphics.cpp:2109
void ApplyValue(const Variant &newValue) override
Apply new animation value to the target object. Called by Update().
Definition: Animatable.cpp:53
Definition: AbstractFile.h:33
bool Defined() const
Return true if this bounding box is defined via a previous call to Define() or Merge().
Definition: BoundingBox.h:258
ShaderProgramMap shaderPrograms_
Linked shader programs.
Definition: OGLGraphicsImpl.h:154
bool WriteNetID(unsigned value)
Write a 24-bit network object ID.
Definition: Serializer.cpp:394
void SetOrthoSizeAttr(float orthoSize)
Set orthographic size attribute without forcing the aspect ratio.
Definition: Camera.cpp:608
void SetPlaceholderText(const String &text)
Definition: DropDownList.cpp:188
void SetMobileShadowBiasAdd(float add)
Definition: Renderer.cpp:502
void SetControlledNode(Node *controlled)
Definition: SplinePath.cpp:193
const Rect & GetLightScissor(Light *light, Camera *camera)
Return a scissor rectangle for a light.
Definition: Renderer.cpp:1451
void SetMobileShadowBiasMul(float mul)
Definition: Renderer.cpp:497
Variant GetVariantValue(VariantType type) const
Return a variant with type.
Definition: JSONValue.cpp:489
void AddWheel(Node *wheelNode, Vector3 wheelDirection, Vector3 wheelAxle, float restLength, float wheelRadius, bool frontWheel)
Add a wheel. All parameters are relative to RigidBody / node.
Definition: RaycastVehicle.cpp:378
void SetMaxMotorTorque(float maxMotorTorque)
Definition: ConstraintRevolute2D.cpp:146
RenderPathCommand * GetCommand(unsigned index)
Return command at index, or null if does not exist.
Definition: RenderPath.h:261
static const Color TRANSPARENT_BLACK
Transparent black color (black with no alpha).
Definition: Color.h:285
void SetString(const String &value)
Set string.
Definition: PListFile.cpp:156
float GetWheelSkidInfo(int wheel) const
Sliding factor 0 <= x <= 1.
Definition: RaycastVehicle.cpp:671
const unsigned * GetConstantBufferSizes() const
Return constant buffer data sizes.
Definition: ShaderVariation.h:135
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:155
bool Save(Serializer &dest) const override
Save as binary data. Return true if successful.
Definition: UnknownComponent.cpp:175
Data structured used to hold data of UI elements that are rendered to texture.
Definition: UI.h:289
float velocityMin_
Particle velocity minimum.
Definition: ParticleEffect.h:471
PODVector< Matrix3x4 > skinMatrices_
Skinning matrices.
Definition: DecalSet.h:240
bool GetEnableLimit() const
Definition: ConstraintRevolute2D.h:71
void BroadcastRemoteEvent(StringHash eventType, bool inOrder, const VariantMap &eventData=Variant::emptyVariantMap)
Broadcast a remote event to all client connections.
Definition: Network.cpp:535
Iterator Insert(const Iterator &dest, const ConstIterator &start, const ConstIterator &end)
Insert a vector partially by iterators.
Definition: Vector.h:324
SharedPtr< CollisionGeometryData > geometry_
Shared geometry data.
Definition: CollisionShape.h:311
HashMap< StringHash, PackageDownload > downloads_
Waiting or ongoing package file receive transfers.
Definition: Connection.h:326
void SetMaterial(Material *material)
Definition: BillboardSet.cpp:255
bool GetForceGL2() const
Return whether OpenGL 2 use is forced. Effective only on OpenGL.
Definition: Graphics.h:420
void RemoveSoundSource(SoundSource *soundSource)
Remove a sound source. Called by SoundSource.
Definition: Audio.cpp:232
void UpdateSourceBatchesSpriter()
Update vertices for spriter animation.
Definition: AnimatedSprite2D.cpp:421
float minRadiusVariance_
Min radius variance.
Definition: ParticleEffect2D.h:314
static const Variant & GetParameter(const VariantMap ¶meters, const String ¶meter, const Variant &defaultValue=Variant::EMPTY)
Get an engine startup parameter, with default value if missing.
Definition: Engine.cpp:968
bool GetAutoDisableChildren() const
Definition: ScrollView.h:152
bool SavePNG(const String &fileName) const
Save in PNG format. Return true if successful.
Definition: Image.cpp:1272
void SetRootBoneIndex(unsigned index)
Set root bone's index.
Definition: Skeleton.cpp:115
void SetView(Camera *camera)
Set camera view to render from.
Definition: OcclusionBuffer.cpp:115
void EndThreadedUpdate()
End a threaded update. Notify components that marked themselves for delayed dirty processing.
Definition: Scene.cpp:819
void ReleaseShaders()
Reset all shader pointers.
Definition: Material.cpp:1136
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:279
const Vector< PODVector< unsigned > > & GetGeometryBoneMappings() const
Return per-geometry bone mappings.
Definition: AnimatedModel.h:173
const char & At(unsigned index) const
Return const char at index.
Definition: Str.h:327
bool alphaToCoverage_
Alpha-to-coverage flag.
Definition: Material.h:340
void OnWorldBoundingBoxUpdate() override
Recalculate the world-space bounding box.
Definition: Text3D.cpp:516
void SetScissorTest(bool enable, const Rect &rect=Rect::FULL, bool borderInclusive=true)
Set scissor test.
Definition: OGLGraphics.cpp:1868
void FromHSL(float h, float s, float l, float a=1.0f)
Set RGBA values from specified HSL values and alpha.
Definition: Color.cpp:94
Spline for creating smooth movement based on Speed along a set of Control Points modified by the Inte...
Definition: SplinePath.h:39
void SetWheelSuspensionStiffness(int wheel, float stiffness)
Set suspension stiffness for particular wheel.
Definition: RaycastVehicle.cpp:452
void SetTargetRotationEuler(const Vector3 &targetRotation)
Required for the editor, sets the target rotation in euler angles.
Definition: IKEffector.cpp:146
void SubscribeToEvent(StringHash eventType, EventHandler *handler)
Subscribe to an event that can be sent by any sender.
Definition: Object.cpp:142
void FromEulerAngles(float x, float y, float z)
Define from Euler angles (in degrees). Equivalent to Y*X*Z.
Definition: Quaternion.cpp:49
Vector2 otherBodyAnchor_
Other body anchor.
Definition: ConstraintRope2D.h:74
float GetRotationStartVariance() const
Return rotation start variance.
Definition: ParticleEffect2D.h:233
ObserverPositionSendMode
Send modes for observer position/rotation. Activated by the client setting either position or rotatio...
Definition: Connection.h:102
unsigned GetTarget() const
Return surface's OpenGL target.
Definition: RenderSurface.h:128
Vector< String > resourceDirs_
Resource load directories.
Definition: ResourceCache.h:252
unsigned lockCount_
Lock number of vertices.
Definition: VertexBuffer.h:171
PODVector< SpatialTimelineKey * > timelineKeys_
Current timeline keys.
Definition: SpriterInstance2D.h:109
unsigned GetMaxTriangles() const
Return maximum number of triangles.
Definition: OcclusionBuffer.h:144
static bool active
Profiler active. Default false.
Definition: EventProfiler.h:89
void Resize(unsigned newSize, const T &value)
Resize the vector and fill new elements with default value.
Definition: Vector.h:427
float GetFrequencyHz() const
Definition: ConstraintWeld2D.h:59
ObjectAnimation * GetObjectAnimation() const
Definition: Animatable.cpp:423
void ApplyEffect()
Apply not continuously updated values such as the material, the number of particles and sorting mode ...
Definition: ParticleEmitter.cpp:338
unsigned Seek(unsigned position) override
Set position from the beginning of the memory area. Return actual new position.
Definition: MemoryBuffer.cpp:78
void SetDistanceFactor(float factor)
Definition: NetworkPriority.cpp:67
PODVector< Drawable * > & result_
Result vector reference.
Definition: OctreeQuery.h:65
void DrawDebugGeometry(DebugRenderer *debug, bool depthTest) override
Visualize the component as debug geometry.
Definition: RigidBody.cpp:199
PODVector< unsigned char > GetScriptDataAttr() const
Get script file serialization attribute by calling a script function.
Definition: LuaScriptInstance.cpp:467
FlagSet operator^(const Enum value) const
Bitwise XOR against Enum value.
Definition: FlagSet.h:142
void SetRotatePerSecondVariance(float rotatePerSecondVariance)
Set rotate per second variance.
Definition: ParticleEffect2D.cpp:444
void SetRectangle(const IntRect &rectangle)
Definition: Sprite2D.cpp:118
bool internalEdge_
Use internal edge utility flag.
Definition: PhysicsWorld.h:368
bool boneBoundingBoxDirty_
Bone bounding box dirty flag.
Definition: AnimatedModel.h:263
Light * firstLight_
First per-pixel light added this frame.
Definition: Drawable.h:411
int GetWidth() const
Return the current width.
Definition: AreaAllocator.h:47
void * mutex_
Mutex for the event, necessary for pthreads-based implementation.
Definition: Condition.h:53
UIElement * commandLine_
Container for the command line.
Definition: Console.h:170
~PhysicsWorld() override
Destruct.
Definition: PhysicsWorld.cpp:175
T * Reserve(const T &object)
Reserve and copy-construct an object.
Definition: Allocator.h:105
const Variant & GetVar(StringHash key) const
Return a user variable.
Definition: Node.cpp:1395
bool GetAutoReloadResources() const
Definition: ResourceCache.h:200
virtual ~DbConnection() override
Destruct.
Definition: ODBCConnection.cpp:53
static void EncodeUTF8(char *&dest, unsigned unicodeChar)
Encode Unicode character to UTF8. Pointer will be incremented.
Definition: Str.cpp:895
Console * CreateConsole()
Create the console and return it. May return null if engine configuration does not allow creation (he...
Definition: Engine.cpp:526
void RecreateJoint()
Recreate joint.
Definition: Constraint2D.cpp:180
float clearDepth_
Clear depth. Affects clear command only.
Definition: RenderPath.h:182
ScreenModeParams screenParams_
Screen mode parameters.
Definition: Graphics.h:784
void Draw(View *view, Camera *camera, bool allowDepthWrite) const
Prepare and draw.
Definition: Batch.cpp:668
VertexBuffer * GetInstancingBuffer() const
Return the instancing vertex buffer.
Definition: Renderer.h:448
void DrawDebugGeometry(DebugRenderer *debug, bool depthTest) override
Visualize the component as debug geometry.
Definition: CollisionShape.cpp:508
void DrawTriangles()
Draw submitted batches. Uses worker threads if enabled during SetSize().
Definition: OcclusionBuffer.cpp:200
HashMap & Populate(const T &key, const U &value)
Populate the map using variadic template. This handles the base case.
Definition: HashMap.h:355
void GetChildrenWithTag(PODVector< Node * > &dest, const String &tag, bool recursive=false) const
Return child scene nodes with a specific tag.
Definition: Node.cpp:1279
bool EndLoad() override
Finish resource loading. Always called from the main thread. Return true if successful.
Definition: Texture2DArray.cpp:125
Sprite2D * GetSprite(const String &name) const
Return sprite.
Definition: SpriteSheet2D.cpp:116
void Erase(unsigned pos, unsigned length=1)
Erase a range of JSON values.
Definition: JSONValue.cpp:226
int unusedStreamSize_
Unused stream bytes from previous frame.
Definition: SoundSource.h:207
PODVector< Vector3 > clippedVertices_
Internal vector for clipped vertices.
Definition: Polyhedron.h:116
const String & GetPixelShaderDefineExcludes() const
Definition: Technique.h:155
unsigned char setWeight_
Set weight command.
Definition: AnimationController.h:75
void Update(const FrameInfo &frame) override
Update before octree reinsertion. Is called from a worker thread.
Definition: AnimatedModel.cpp:228
void HandleSceneSubsystemUpdate(StringHash eventType, VariantMap &eventData)
Handle the scene subsystem update event, step simulation here.
Definition: PhysicsWorld.cpp:791
void CopyBaseAttributes()
Template version of copying base class attributes to derived class.
Definition: Context.h:271
static const StringVector emptyStringVector
Empty string vector.
Definition: Variant.h:1398
unsigned viewMask_
Drawable layers to include.
Definition: OctreeQuery.h:69
const Vector< Bone > & GetBones() const
Return all bones.
Definition: Skeleton.h:110
static void RegisterObject(Context *context)
Register object factory.
Definition: OffMeshConnection.cpp:54
void DumpResources(bool dumpFileName=false)
Dump information of all resources to the log.
Definition: Engine.cpp:618
void OnScreenModeChanged()
Called when screen mode is successfully changed by the backend.
Definition: Graphics.cpp:569
void HandleKeyDown(StringHash eventType, VariantMap &eventData)
Handle keypress event.
Definition: UI.cpp:1955
void GetBatches(PODVector< UIBatch > &batches, PODVector< float > &vertexData, const IntRect ¤tScissor) override
Return UI rendering batches.
Definition: Sprite.cpp:110
static unsigned GetRGBA16Format()
Return the API-specific RGBA 16-bit texture format.
Definition: OGLGraphics.cpp:2589
void SetOtherBodyAnchor(const Vector2 &anchor)
Definition: ConstraintDistance2D.cpp:71
Connection * GetServerConnection() const
Definition: Network.cpp:668
bool AddManualResource(Resource *resource)
Add a manually created resource. Must be uniquely named within its type.
Definition: ResourceCache.cpp:162
BoundingBox lastWorldBoundingBox_
Last world-space bounding box.
Definition: Zone.h:172
RayOctreeQuery(PODVector< RayQueryResult > &result, const Ray &ray, RayQueryLevel level=RAY_TRIANGLE, float maxDistance=M_INFINITY, unsigned char drawableFlags=DRAWABLE_ANY, unsigned viewMask=DEFAULT_VIEWMASK)
Construct with ray and query parameters.
Definition: OctreeQuery.h:232
Iterator Insert(const Iterator &dest, const T *start, const T *end)
Insert elements.
Definition: Vector.h:927
bool ignoreTransformChanges_
Internal flag to ignore transform changes because it came from us, used in OnCrowdAgentReposition().
Definition: CrowdAgent.h:269
void SetBonesEnabledAttr(const VariantVector &value)
Set bones' animation enabled attribute.
Definition: AnimatedModel.cpp:806
Helper class used for StringHash reversing.
Definition: StringHashRegister.h:35
void ProcessUnknownMessage(int msgID, MemoryBuffer &msg)
Process unknown message. All unknown messages are forwarded as an events.
Definition: Connection.cpp:1644
static void Sleep(unsigned mSec)
Sleep for a number of milliseconds.
Definition: Timer.cpp:180
HttpRequest(const String &url, const String &verb, const Vector< String > &headers, const String &postData)
Construct with parameters.
Definition: HttpRequest.cpp:39
unsigned activeTexture_
Active texture unit.
Definition: OGLGraphicsImpl.h:116
SharedPtr< Material > material_
Material that is set to the model.
Definition: UIComponent.h:70
IntVector2 packetCounter_
Packet count in the last second, x - packets in, y - packets out.
Definition: Connection.h:366
Vector< VariantVector > rows_
Fetched rows from the resultset.
Definition: ODBCResult.h:68
unsigned vertexCount_
Number of used vertices.
Definition: Geometry.h:142
bool updateEnabled_
Automatic simulation update enabled flag.
Definition: PhysicsWorld2D.h:264
unsigned GetTarget() const
Return texture's target. Only used on OpenGL.
Definition: Texture.h:193
unsigned Count() const
Return number of set bits.
Definition: ReplicationState.h:112
void OnSceneSet(Scene *scene) override
Handle scene being assigned.
Definition: ParticleEmitter.cpp:438
void HandleLineEditKey(StringHash eventType, VariantMap &eventData)
Handle unhandled key on the line edit for scrolling the history.
Definition: Console.cpp:402
void VerifyChildAlignment()
Verify that child elements have proper alignment for layout mode.
Definition: UIElement.cpp:2228
Debug geometry rendering component. Should be added only to the root scene node.
Definition: DebugRenderer.h:91
void AllocateBuckets(unsigned size, unsigned numBuckets)
Allocate bucket head pointers + room for size and bucket count variables.
Definition: HashBase.cpp:30
void SetNumTextureFrames(unsigned number)
Definition: ParticleEffect.cpp:721
WeakArrayPtr< T > & operator=(const SharedArrayPtr< T > &rhs)
Assign from a shared array pointer.
Definition: ArrayPtr.h:264
Intersection IsInside(const IntVector2 &point) const
Test whether a point is inside.
Definition: Rect.h:420
Vector< ContactInfo > beginContactInfos_
Begin contact infos.
Definition: PhysicsWorld2D.h:306
virtual void OnKey(Key key, MouseButtonFlags buttons, QualifierFlags qualifiers)
React to a key press.
Definition: UIElement.h:188
unsigned ToHash() const
Return hash value for HashSet & HashMap.
Definition: Vector4.h:213
unsigned loadByteCodeSize_
Byte code size for asynchronous loading.
Definition: ScriptFile.h:154
HashMap< unsigned short, unsigned short > geometryRemapping_
Geometry remapping table for 2-pass state and distance sort.
Definition: Batch.h:254
void FixInterpolation()
Fix interpolation by copying data from loop start to loop end (looped), or adding silence (oneshot)....
Definition: Sound.cpp:295
void ResetSilent()
Reset all animating bones to initial positions without marking the nodes dirty. Requires the node dir...
Definition: Skeleton.cpp:138
bool GetLineAntiAlias() const
Return whether line antialiasing is enabled.
Definition: Graphics.h:574
const String & GetString() const
Return string.
Definition: PListFile.cpp:207
ConstraintGear2D(Context *context)
Construct.
Definition: ConstraintGear2D.cpp:37
void SetEnabled(const String &tag, bool active)
Enable/disable commands and rendertargets by tag.
Definition: RenderPath.cpp:363
const Vector3 & GetMinDirection() const
Definition: ParticleEffect.h:303
virtual void GetDependencyNodes(PODVector< Node * > &dest)
Return the depended on nodes to order network updates.
Definition: Component.cpp:112
void SetLinearOffset(const Vector2 &linearOffset)
Definition: ConstraintMotor2D.cpp:59
void SetLayoutBorder(const IntRect &border)
Definition: UIElement.cpp:1066
unsigned GetNumActiveOccluders() const
Return number of occluders that were actually rendered. Occluders may be rejected if running out of t...
Definition: View.h:178
SharedPtr< Texture2D > CreateFaceTexture()
Create a texture for font rendering.
Definition: FontFace.cpp:98
bool Erase(const T &key)
Erase a key. Return true if was found.
Definition: HashSet.h:340
Vector< WeakPtr< View > > views_
Views that have been processed this frame.
Definition: Renderer.h:593
SharedPtr< Texture2D > loadTexture_
Texture used while loading.
Definition: Sprite2D.h:117
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:561
PODVector< InstanceData > instances_
Instance data.
Definition: Batch.h:172
static unsigned GetReadableDepthFormat()
Return the API-specific readable hardware depth format, or 0 if not supported.
Definition: OGLGraphics.cpp:2682
bool SetBool(const String &name, bool value)
Set a bool attribute.
Definition: XMLElement.cpp:320
SmoothedTransform(Context *context)
Construct.
Definition: SmoothedTransform.cpp:35
void DrawDebugGeometry(DebugRenderer *debug, bool depthTest) override
Draw the agents' pathing debug data.
Definition: CrowdManager.cpp:134
void SetAutoReloadResources(bool enable)
Definition: ResourceCache.cpp:441
JSONValue & operator[](unsigned index)
Return JSON value at index.
Definition: JSONValue.cpp:186
T * Buffer() const
Return the buffer with right type.
Definition: Vector.h:1160
LightBatchQueue * GetLightQueue() const
Return light queue. Called by View.
Definition: Light.h:369
void SetData(const unsigned char *pixelData)
Set new image data.
Definition: Image.cpp:961
bool operator==(const UniquePtr< U > &rhs) const
Test for equality with another unique pointer.
Definition: Ptr.h:622
unsigned CountSetBits(unsigned value)
Count the number of set bits in a mask.
Definition: MathDefs.h:298
void RegisterPath(const String &pathName)
Register a path as allowed to access. If no paths are registered, all are allowed....
Definition: FileSystem.cpp:759
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:177
void ReplaceUTF8(unsigned index, unsigned unicodeChar)
Replace Unicode character at index from UTF8 content.
Definition: Str.cpp:830
BlendMode blendMode_
Blend mode.
Definition: ParticleEffect2D.h:320
GlyphLocation(float x, float y, const FontGlyph *glyph)
Construct.
Definition: Text.h:60
virtual bool Compare(const CustomVariantValue &rhs) const
Compare to another custom value.
Definition: Variant.h:203
void SetOtherConstraint(Constraint2D *constraint)
Definition: ConstraintGear2D.cpp:70
void Clear(ClearTargetFlags flags, const Color &color=Color(0.0f, 0.0f, 0.0f, 0.0f), float depth=1.0f, unsigned stencil=0)
Clear any or all of rendertarget, depth buffer and stencil buffer.
Definition: OGLGraphics.cpp:640
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:848
const String & GetTextureName(TextureUnit unit) const
Definition: RenderPath.cpp:288
HashMap< StringHash, SharedPtr< Resource > > resources_
Resources.
Definition: ResourceCache.h:58
void SetDampingRatio(float dampingRatio)
Definition: ConstraintWheel2D.cpp:144
ConstIterator & operator++()
Preincrement the pointer.
Definition: HashMap.h:181
bool Connect(const String &address, unsigned short port, Scene *scene, const VariantMap &identity=Variant::emptyVariantMap)
Connect to a server using UDP protocol. Return true if connection process successfully started.
Definition: Network.cpp:369
float offsetY_
Y offset for viewport transform.
Definition: OcclusionBuffer.h:221
float tangentialAccelVariance_
Tangential acceleration variance.
Definition: ParticleEffect2D.h:284
const SDL_GLContext & GetGLContext()
Return the GL Context.
Definition: OGLGraphicsImpl.h:108
bool sortOrderDirty_
Child priority sorting dirty flag.
Definition: UIElement.h:917
Rect(const float *data) noexcept
Construct from a float array.
Definition: Rect.h:64
void QueueRenderSurface(RenderSurface *renderTarget)
Queue a render surface's viewports for rendering. Called by the surface, or by View.
Definition: Renderer.cpp:792
unsigned frameNumber_
Shader parameter source framenumber.
Definition: OGLShaderProgram.h:109
void GetEventFrames(float beginTime, float endTime, PODVector< const VAnimEventFrame * > &eventFrames)
Return event frames.
Definition: ValueAnimationInfo.cpp:157
bool IsDragging() const
Return whether a drag is in progress.
Definition: UI.h:257
void SetDefines(const String &defines)
Set defines.
Definition: OGLShaderVariation.cpp:193
PhysicsWorld * GetPhysicsWorld() const
Return physics world.
Definition: Constraint.h:115
void UpdateProgressBar()
Update ProgressBar knob position & size.
Definition: ProgressBar.cpp:140
bool Create()
Compile the shader. Return true if successful.
Definition: OGLShaderVariation.cpp:90
void AddEventReceiver(Object *receiver, StringHash eventType)
Add event receiver.
Definition: Context.cpp:406
virtual StringHash GetType() const =0
const Vector< WeakPtr< Component > > GetListeners() const
Return listener components.
Definition: Node.h:603
DebugTriangle(const Vector3 &v1, const Vector3 &v2, const Vector3 &v3, unsigned color)
Construct with start and end positions and color.
Definition: DebugRenderer.h:72
const TmxLayer2D * tmxLayer_
Tmx layer.
Definition: TileMapLayer2D.h:124
int Compare(const String &str, bool caseSensitive=true) const
Return comparison result with a string.
Definition: Str.cpp:723
void SetContinuousPhysics(bool enable)
Definition: PhysicsWorld2D.cpp:398
void OnNodeSet(Node *node) override
Handle node being assigned.
Definition: CollisionShape2D.cpp:288
long GetNumAffectedRows() const
Return number of affected rows by the DML query or -1 if the number of affected rows is not available...
Definition: ODBCResult.h:51
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
void ProcessClickBegin(const IntVector2 &windowCursorPos, MouseButton button, MouseButtonFlags buttons, QualifierFlags qualifiers, Cursor *cursor, bool cursorVisible)
Handle button or touch begin.
Definition: UI.cpp:1435
bool SetSize(int size, unsigned format, TextureUsage usage=TEXTURE_STATIC, int multiSample=1)
Set size, format, usage and multisampling parameter for rendertargets. Note that cube textures always...
Definition: TextureCube.cpp:258
float angleVariance_
Angle variance.
Definition: ParticleEffect2D.h:274
void UpdateSpriterAnimation(float timeStep)
Update spriter animation.
Definition: AnimatedSprite2D.cpp:414
void UpdateBatches(const FrameInfo &frame) override
Calculate distance and prepare batches for rendering. May be called from worker thread(s),...
Definition: Renderer2D.cpp:117
const Variant & GetVar(const StringHash &key) const
Return a user variable.
Definition: UIElement.cpp:1695
void SetShadowMapFilter(Object *instance, ShadowMapFilter functionPtr)
Definition: Renderer.cpp:435
HashSet< Technique * > shaderErrorDisplayed_
Techniques for which missing shader error has been displayed.
Definition: Renderer.h:599
const String & GetProperty(const String &name) const
Return property.
Definition: TileMapDefs2D.cpp:180
PODVector< Drawable * > rayQueryDrawables_
Ray query temporary list of drawables.
Definition: Octree.h:218
virtual IntVector2 ScreenToElement(const IntVector2 &screenPosition)
Convert screen coordinates to element coordinates.
Definition: UIElement.cpp:462
HashMap< StringHash, Vector< SharedPtr< ShaderVariation > > > extraVertexShaders_
Vertex shaders with extra defines from the renderpath.
Definition: Technique.h:208
float fontSubpixelThreshold_
Maxmimum font size for subpixel glyph positioning and oversampling (default is 12).
Definition: UI.h:450
void ProcessDragCancel()
Handle clean up on a drag cancel.
Definition: UI.cpp:2110
Geometry * GetLightGeometry(Light *light)
Return volume geometry for a light.
Definition: Renderer.cpp:816
VariantMap & GetEventDataMap()
Return a preallocated map for event data. Used for optimization to avoid constant re-allocation of ev...
Definition: Context.cpp:241
Variant(VariantType type, const String &value)
Construct from type and value.
Definition: Variant.h:531
GraphicsImpl * GetImpl() const
Return graphics implementation, which holds the actual API-specific resources.
Definition: Graphics.h:339
const Vector< AttributeInfo > * GetAttributes() const override
Return attribute descriptions, or null if none defined.
Definition: LuaScriptInstance.h:78
SharedPtr< Technique > defaultTechnique_
Default non-textured material technique.
Definition: Renderer.h:547
static Sprite2D * LoadFromResourceRef(Object *object, const ResourceRef &value)
Load sprite from ResourceRef.
Definition: Sprite2D.cpp:203
void DrawDebugGeometry(DebugRenderer *debug, bool depthTest) override
Visualize the component as debug geometry.
Definition: Octree.cpp:341
void Define(const Vector3 &normal, const Vector3 &point)
Define from a normal vector and a point on the plane.
Definition: Plane.h:75
IntVector2 GetDesktopResolution(int monitor) const
Definition: Graphics.cpp:303
void OnMarkedDirty(Node *node) override
Handle node transform being dirtied.
Definition: Drawable.cpp:374
float GetStartParticleSize() const
Return start particle size.
Definition: ParticleEffect2D.h:191
void RemoveInstanceDefault()
Remove instance's default values if they are set previously.
Definition: Serializable.cpp:670
void ApplySceneToOriginalPose()
Definition: IKSolver.cpp:453
bool operator==(const ListIteratorBase &rhs) const
Test for equality with another iterator.
Definition: ListBase.h:69
void SetNumLevels(unsigned levels)
Set number of requested mip levels. Needs to be called before setting size.
Definition: Texture.cpp:66
float GetHeight(const Vector3 &worldPosition) const
Return height at world coordinates.
Definition: Terrain.cpp:555
AutoRemoveMode GetAutoRemoveMode() const
Definition: SoundSource.h:118
@ LOAD_SCENE_AND_RESOURCES
Default mode: preload resources used by the scene first, then load the scene content.
Definition: Scene.h:53
PhysicsWorld2D(Context *context)
Construct.
Definition: PhysicsWorld2D.cpp:49
void FromString(const String &type, const String &value)
Set from typename and value strings. Pointers will be set to null, and VariantBuffer or VariantMap ty...
Definition: Variant.cpp:255
ParticleEmitter(Context *context)
Construct.
Definition: ParticleEmitter.cpp:46
void OnDeviceLost() override
Mark the GPU resource destroyed on graphics context destruction.
Definition: OGLShaderVariation.cpp:50
bool useRendererStats_
Show 3D geometry primitive/batch count flag.
Definition: DebugHud.h:145
Matrix3x4(const Vector3 &translation, const Quaternion &rotation, const Vector3 &scale) noexcept
Construct from translation, rotation and nonuniform scale.
Definition: Matrix3x4.h:164
float ProjectOntoAxis(const Vector3 &axis) const
Project direction vector onto axis.
Definition: Vector3.h:362
void CalculateBoundingBox()
Calculate local-space bounding box.
Definition: DecalSet.cpp:147
const Vector2 & GetVertex2() const
Definition: CollisionEdge2D.h:58
Vector3 cachedWorldScale_
Cached world scale for determining if the constraint position needs update.
Definition: Constraint.h:216
void RemoveEventHandlers() override
Remove all scripted event handlers.
Definition: ScriptFile.cpp:249
CollisionGeometryDataCache & GetConvexCache()
Return convex collision geometry cache.
Definition: PhysicsWorld.h:288
Vector3 directionMin_
Particle direction minimum.
Definition: ParticleEffect.h:447
bool Erase(const T &key)
Erase a pair by key. Return true if was found.
Definition: HashMap.h:407
Quaternion GetTargetWorldRotation() const
Definition: SmoothedTransform.cpp:152
const Matrix3x4 & GetMatrix3x4() const
Return a Matrix3x4 or identity on type mismatch.
Definition: Variant.h:1281
void SetLogStatistics(bool enable)
Definition: Connection.cpp:249
void SetVerticalAlignment(VerticalAlignment align)
Definition: Text3D.cpp:247
const wchar_t & At(unsigned index) const
Return const char at index.
Definition: Str.h:611
unsigned GetDefaultTextureAnisotropy() const
Return default texture max. anisotropy level.
Definition: Graphics.h:535
const HashMap< Pair< unsigned char, unsigned char >, unsigned > & GetVertexAttributes() const
Return semantic to vertex attributes location mappings used by the shader.
Definition: OGLShaderProgram.h:71
void SetMaterialsAttr(const ResourceRefList &value)
Set materials attribute.
Definition: StaticModel.cpp:379
void SetTargetPosition(const Vector3 &position)
Definition: SmoothedTransform.cpp:99
bool CheckViewportRead(const RenderPathCommand &command)
Check if a command reads the destination render target.
Definition: View.cpp:1905
void Release()
Stop sound output and release the sound buffer.
Definition: Audio.cpp:316
float minPriority_
Minimum priority.
Definition: NetworkPriority.h:81
~Time() override
Destruct. Reset the low-resolution timer period if set.
Definition: Timer.cpp:67
void SetCapsule(float diameter, float height, const Vector3 &position=Vector3::ZERO, const Quaternion &rotation=Quaternion::IDENTITY)
Set as a capsule.
Definition: CollisionShape.cpp:637
void SetClipPlane(bool enable, const Plane &clipPlane=Plane::UP, const Matrix3x4 &view=Matrix3x4::IDENTITY, const Matrix4 &projection=Matrix4::IDENTITY)
Set a custom clipping plane. The plane is specified in world space, but is dependent on the view and ...
Definition: OGLGraphics.cpp:1957
bool SetSize(unsigned vertexCount, const PODVector< VertexElement > &elements, bool dynamic=false)
Set size, vertex elements and dynamic mode. Previous data will be lost.
Definition: VertexBuffer.cpp:74
float GetRadialAcceleration() const
Return radial acceleration.
Definition: ParticleEffect2D.h:164
void OnSetEnabled() override
Handle enabled/disabled state change. Changes update event subscription.
Definition: LogicComponent.cpp:46
String GetAppPreferencesDir(const String &org, const String &app) const
Return the application preferences directory.
Definition: FileSystem.cpp:742
LinkedList(const std::initializer_list< T > &list)
Aggregate initialization constructor.
Definition: LinkedList.h:62
int occlusionBufferSize_
Occlusion buffer width.
Definition: Renderer.h:633
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:182
void SetKnots(const Vector< Variant > &knots)
Set the knots of the spline.
Definition: Spline.h:95
Defines one or more vertex buffers, an index buffer and a draw range.
Definition: Geometry.h:38
String GetEffectivePixelShaderDefines() const
Return the effective pixel shader defines, accounting for excludes. Called internally by Renderer.
Definition: Technique.cpp:198
static const TypeInfo * GetTypeInfoStatic()
Return type info static.
Definition: Object.h:105
Timer packetCounterTimer_
Packet count timer which resets every 1s.
Definition: Connection.h:368
void SetInterpolation(bool enable)
Definition: PhysicsWorld.cpp:346
const Matrix3 & GetMatrix3() const
Return a Matrix3 or identity on type mismatch.
Definition: Variant.h:1275
virtual void OnDragBegin(const IntVector2 &position, const IntVector2 &screenPosition, MouseButtonFlags buttons, QualifierFlags qualifiers, Cursor *cursor)
React to mouse drag begin.
Definition: UIElement.cpp:426
PODVector< Drawable2D * > drawables_
Drawables.
Definition: Renderer2D.h:122
virtual void OnDragEnd(const IntVector2 &position, const IntVector2 &screenPosition, MouseButtonFlags dragButtons, MouseButtonFlags releaseButtons, Cursor *cursor)
React to mouse drag end.
Definition: UIElement.cpp:438
void SetScrollSnapEpsilon(float snap)
Definition: ScrollView.h:92
b2Joint * GetJoint() const
Return Box2D joint.
Definition: Constraint2D.h:82
void SetMorphWeight(unsigned index, float weight)
Set vertex morph weight by index.
Definition: AnimatedModel.cpp:552
String depthStencilName_
Depth-stencil output name.
Definition: RenderPath.h:176
TerrainPatch(Context *context)
Construct.
Definition: TerrainPatch.cpp:48
void IncDrawableCount()
Increase drawable object count recursively.
Definition: Octree.h:114
virtual bool HasMutableGlyphs() const
Return if font face uses mutable glyphs.
Definition: FontFace.h:80
void PushUserType(const T *userType)
Push user type to stack.
Definition: LuaFunction.h:68
ListView * rowContainer_
Container for text rows.
Definition: Console.h:168
bool IsVisible(const BoundingBox &worldSpaceBox) const
Test a bounding box for visibility. For best performance, build depth hierarchy first.
Definition: OcclusionBuffer.cpp:336
unsigned GetDataSize() const
Return total sound data size.
Definition: Sound.h:87
CrowdAgentRequestedTarget GetRequestedTargetType() const
Definition: CrowdAgent.h:154
@ FONT_HINT_LEVEL_NONE
Completely disable font hinting. Output will be blurrier but more "correct".
Definition: UI.h:39
T & operator[](unsigned index)
Return element at index.
Definition: Vector.h:812
Matrix4 GetMatrix4(const String &name) const
Return a Matrix4 attribute, or zero matrix if missing.
Definition: XMLElement.cpp:985
bool Equals(const Vector2 &rhs) const
Test for equality with another vector with epsilon.
Definition: Vector2.h:327
RefCounted()
Construct. Allocate the reference count structure and set an initial self weak reference.
Definition: RefCounted.cpp:32
virtual unsigned Write(const void *data, unsigned size)=0
Write bytes to the stream. Return number of bytes actually written.
static unsigned GetRGBFormat()
Return the API-specific RGB texture format.
Definition: OGLGraphics.cpp:2579
unsigned char GetDrawableFlags() const
Return drawable flags.
Definition: Drawable.h:196
void SetWheelSkidInfoCumulative(int wheel, float skid)
Set cumulative skid info.
Definition: RaycastVehicle.cpp:368
bool BeginLoad(Deserializer &source) override
Load resource from stream. May be called from a worker thread. Return true if successful.
Definition: TmxFile2D.cpp:393
void HandlePostUpdate(StringHash eventType, VariantMap &eventData)
Handle logic post-update event.
Definition: UIElement.cpp:2238
WeakPtr< SpriteSheet2D > spriteSheet_
Sprite sheet.
Definition: Sprite2D.h:115
void OnSetEnabled() override
Handle enabled/disabled state change.
Definition: RibbonTrail.cpp:164
bool GetScancodePress(Scancode scancode) const
Definition: Input.cpp:1349
void SetWarmStarting(bool enable)
Definition: PhysicsWorld2D.cpp:393
void SetAttachedConstraint(Constraint2D *constraint)
Set attached constriant (for gear).
Definition: Constraint2D.cpp:143
void OnNodeSet(Node *node) override
Destroys and creates the tree.
Definition: IKSolver.cpp:526
void SetTerrain(unsigned lodLevel=0)
Set as a terrain. Only works if the same scene node contains a Terrain component.
Definition: CollisionShape.cpp:707
static void RegisterObject(Context *context)
Register object factory.
Definition: ConstraintRevolute2D.cpp:45
VerticalAlignment GetVerticalAlignment() const
Definition: UIElement.cpp:1507
float CalculateScaledTime(float currentTime, bool &finished) const
Calculate scaled time.
Definition: ValueAnimationInfo.cpp:128
SharedPtr< XMLFile > LoadTSXFile(const String &source)
Load TSX file.
Definition: TmxFile2D.cpp:597
void ApplyForceToCenter(const Vector2 &force, bool wake)
Apply force to center.
Definition: RigidBody2D.cpp:335
unsigned long long memoryBudget_
Memory budget.
Definition: ResourceCache.h:54
Vector2 patchWorldOrigin_
Origin of patches on the XZ-plane.
Definition: Terrain.h:318
void SetObjectAnimationAttr(const ResourceRef &value)
Set object animation attribute.
Definition: Animatable.cpp:452
bool SetDouble(const String &name, double value)
Set a double attribute.
Definition: XMLElement.cpp:357
void Release() override
Release the texture.
Definition: OGLTexture2D.cpp:72
void * face_
FreeType face. Non-null after creation only in dynamic mode.
Definition: FontFaceFreeType.h:61
Node * Instantiate(Deserializer &source, const Vector3 &position, const Quaternion &rotation, CreateMode mode=REPLICATED)
Instantiate scene content from binary data. Return root node if successful.
Definition: Scene.cpp:528
void SetScriptFileAttr(const ResourceRef &value)
Set script file attribute.
Definition: LuaScriptInstance.cpp:758
void SetAllowSleep(bool allowSleep)
Definition: RigidBody2D.cpp:217
void RemoveObjectAnimation()
Remove object animation. Same as calling SetObjectAnimation with a null pointer.
Definition: Animatable.cpp:413
static bool IsReplicatedID(unsigned id)
Return whether the specified id is a replicated id.
Definition: Scene.h:254
void SetObstacleAvoidanceType(unsigned obstacleAvoidanceType)
Definition: CrowdAgent.cpp:436
float emissionTime_
Emission time.
Definition: ParticleEmitter2D.h:161
void HandleMouseVisibleChanged(StringHash eventType, VariantMap &eventData)
Handle operating system mouse cursor visibility change event.
Definition: Cursor.cpp:306
asIScriptFunction * GetMethod(asIScriptObject *object, const String &declaration)
Return an object method by declaration.
Definition: ScriptFile.cpp:625
void AddItem(UIElement *item)
Add item to the end of the list.
Definition: DropDownList.cpp:154
void UpdateInternalLayout()
Manually update layout on internal elements.
Definition: ListView.cpp:324
void PreloadResources(File *file, bool isSceneFile)
Preload resources from a binary scene or object prefab file.
Definition: Scene.cpp:1291
virtual bool Load(Deserializer &source)
Load from binary data. Return true if successful.
Definition: Serializable.cpp:293
LuaFunction * GetScriptObjectFunction(const String &functionName) const
Return script object's funcition.
Definition: LuaScriptInstance.cpp:753
static void RegisterObject(Context *context)
Register object factory.
Definition: View3D.cpp:64
void RemoveEventHandlersExcept(const Vector< String > &exceptionNames) override
Remove all scripted event handlers, except those listed.
Definition: LuaScriptInstance.cpp:361
UniquePtr< Spriter::SpriterData > spriterData_
Spriter data.
Definition: AnimationSet2D.h:113
SharedPtr< Connection > serverConnection_
Client's server connection.
Definition: Network.h:166
float timeToLiveMin_
Particle time to live minimum.
Definition: ParticleEffect.h:467
void SetCommandInterpreter(const String &interpreter)
Definition: Console.h:67
SharedPtr< UIElement > placeholder_
Selected item placeholder element.
Definition: DropDownList.h:119
void SetGlobalVar(StringHash key, const Variant &value)
Definition: Object.cpp:416
bool sendFinishedEvent_
Whether finished event should be sent on playback stop.
Definition: SoundSource.h:160
unsigned glType_
Parameter OpenGL type.
Definition: ShaderVariation.h:69
IntVector2 mouseMove_
Mouse movement since last frame.
Definition: Input.h:440
void GetChildrenWithTag(PODVector< UIElement * > &dest, const String &tag, bool recursive=false) const
Return child elements with a specific tag either recursively or non-recursively.
Definition: UIElement.cpp:1706
bool IsShadowCasterVisible(Drawable *drawable, BoundingBox lightViewBox, Camera *shadowCamera, const Matrix3x4 &lightView, const Frustum &lightViewFrustum, const BoundingBox &lightViewFrustumBox)
Check visibility of one shadow caster.
Definition: View.cpp:2455
constexpr RandomAccessIterator()
Construct.
Definition: Iter.h:34
void FinishLoading(Deserializer *source)
Finish loading. Sets the scene filename and checksum.
Definition: Scene.cpp:1272
void SetRotationWeight(float weight)
Sets how much influence the target rotation should have on the solution. A value of 1 means to match ...
Definition: IKEffector.cpp:189
bool GetAutoClearForces() const
Definition: PhysicsWorld2D.cpp:700
void SetRotationStartVariance(float rotationStartVariance)
Set rotation start variance.
Definition: ParticleEffect2D.cpp:459
void SetUseHotSpot(bool useHotSpot)
Definition: StaticSprite2D.cpp:177
unsigned textureTypes_[MAX_TEXTURE_UNITS]
OpenGL texture types in use.
Definition: OGLGraphicsImpl.h:140
int GetEffectStrokeThickness() const
Definition: Text3D.cpp:438
void SetTargetWorldRotation(const Quaternion &rotation)
Definition: SmoothedTransform.cpp:136
Vector3 GetTargetWorldPosition() const
Definition: SmoothedTransform.cpp:144
void OnNodeSetEnabled(Node *point) override
Listener to manage Control Point enabling.
Definition: SplinePath.cpp:304
void UpdateQueuedViewport(unsigned index)
Update a queued viewport for rendering.
Definition: Renderer.cpp:1475
void SetAnimationLodBias(float lodBias)
Definition: ParticleEffect.cpp:475
void SetTimerPeriod(unsigned mSec)
Set the low-resolution timer period in milliseconds. 0 resets to the default period.
Definition: Timer.cpp:144
void Update(float timeStep) override
Perform UI element update.
Definition: LineEdit.cpp:101
bool hasOrthoCamera_
Whether was last rendered from an ortho camera.
Definition: BillboardSet.h:221
void HandleNeighborTerrainCreated(StringHash eventType, VariantMap &eventData)
Handle neighbor terrain geometry being created. Update the edge patch neighbors as necessary.
Definition: Terrain.cpp:1445
void ReleaseResource(StringHash type, const String &name, bool force=false)
Release a resource by name.
Definition: ResourceCache.cpp:246
unsigned collisionLayer_
Collision layer.
Definition: RigidBody.h:343
long long intervalMaxTime_
Maximum time during current profiler interval.
Definition: Profiler.h:161
BoundingBox boundingBox_
Local-space bounding box.
Definition: Drawable.h:357
void HandleInterpreterSelected(StringHash eventType, VariantMap &eventData)
Handle interpreter being selected on the drop down list.
Definition: Console.cpp:355
const dtCrowdAgent * GetDetourCrowdAgent() const
Get internal Detour crowd agent.
Definition: CrowdAgent.cpp:645
const String & GetPlaceholderText() const
Definition: DropDownList.cpp:223
bool operator==(const ScreenModeParams &rhs) const
Compare for equality with another parameter set.
Definition: Graphics.h:118
MaterialQuality GetTextureQuality() const
Definition: Renderer.h:322
void SetMaxOffset(const IntVector2 &offset)
Definition: UIElement.cpp:759
IntRect(const int *data) noexcept
Construct from an int array.
Definition: Rect.h:311
float GetNextTimeStep() const
Get timestep of the next frame. Updated by ApplyFrameLimit().
Definition: Engine.h:85
btCompoundShape * GetCompoundShape() const
Return Bullet compound collision shape.
Definition: RigidBody.h:186
bool sortThisFrame_
Sorting flag. Triggers a vertex buffer rewrite for each view this billboard set is rendered from.
Definition: BillboardSet.h:219
ResourceRefList ReadResourceRefList()
Read a resource reference list.
Definition: Deserializer.cpp:292
void UpdateOccluders(PODVector< Drawable * > &occluders, Camera *camera)
Query for occluders as seen from a camera.
Definition: View.cpp:2171
Vector2 sizeMax_
Particle size maximum.
Definition: ParticleEffect.h:465
float Distance(const Vector3 &point) const
Return distance of a point from the ray.
Definition: Ray.h:77
RaycastVehicle(Urho3D::Context *context)
Construct.
Definition: RaycastVehicle.cpp:139
btDiscreteDynamicsWorld * GetWorld()
Return the Bullet physics world.
Definition: PhysicsWorld.h:279
bool Fade(const String &name, float targetWeight, float fadeTime)
Fade animation to target weight. Return true on success.
Definition: AnimationController.cpp:255
void StopAsyncLoading()
Stop asynchronous loading.
Definition: Scene.cpp:516
bool IsCompiled() const
Return whether script compiled successfully.
Definition: ScriptFile.h:114
void Clone(void *dest) const override
Placement clone.
Definition: Variant.h:255
static void RegisterObject(Context *context)
Register object factory.
Definition: ConstraintWeld2D.cpp:45
TerrainPatch * GetWestPatch() const
Return west neighbor patch.
Definition: TerrainPatch.h:95
unsigned shadowMapFormat_
Shadow map depth texture format.
Definition: Graphics.h:826
unsigned readPosition_
Read buffer read cursor.
Definition: HttpRequest.h:109
RenderSurface * GetRenderTarget() const
Return the rendertarget. 0 if using the backbuffer.
Definition: View.h:151
BiasParameters shadowBias_
Shadow depth bias parameters.
Definition: Light.h:411
void SetHorizontalScrollBarVisible(bool visible)
Definition: ScrollView.cpp:319
TileMapLayer2D * GetLayer(unsigned index) const
Return tile map layer at index.
Definition: TileMap2D.cpp:159
bool IsEof() const override
Return whether all response data has been read.
Definition: HttpRequest.cpp:275
VectorBuffer attrBuffer_
Attribute buffer.
Definition: AnimatedModel.h:241
void SetLinearFactor(const Vector3 &factor)
Definition: RigidBody.cpp:309
TextureFilterMode textureFilterMode_
Texture filtering mode.
Definition: Renderer.h:609
void ProcessHover(const IntVector2 &windowCursorPos, MouseButtonFlags buttons, QualifierFlags qualifiers, Cursor *cursor)
Handle button or touch hover.
Definition: UI.cpp:1346
bool IsFadingIn(const String &name) const
Return whether an animation is fading in.
Definition: AnimationController.cpp:449
void RemoveKnot(unsigned index)
Remove the knot at the specific index.
Definition: Spline.h:108
void OnNodeSet(Node *node) override
Handle scene node being assigned at creation.
Definition: SmoothedTransform.cpp:160
SharedArrayPtr< unsigned char > morphData_
Morphed vertices. Stored packed as <index, data> pairs.
Definition: Model.h:50
HashSet< StringHash > pausedSoundTypes_
Paused sound types.
Definition: Audio.h:157
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:815
Vector2 invTextureSize_
Inverse texture size.
Definition: UIBatch.h:85
OcclusionBuffer(Context *context)
Construct.
Definition: OcclusionBuffer.cpp:54
Vector< Bone > & GetModifiableBones()
Return modifiable bones.
Definition: Skeleton.h:113
bool EndLoad() override
Finish resource loading. Always called from the main thread. Return true if successful.
Definition: Sprite2D.cpp:81
PacketType GetPacketType(bool reliable, bool inOrder)
Get packet type based on the message parameters.
Definition: Connection.cpp:97
void SetSkeleton(const Skeleton &skeleton)
Set skeleton.
Definition: Model.cpp:602
String & operator+=(const String &rhs)
Add-assign a string.
Definition: Str.h:202
const Variant & GetMetadata(const String &name) const
Definition: Resource.cpp:152
FontFace * GetFaceBitmap(float pointSize)
Return bitmap font face. Called internally. Return null on error.
Definition: Font.cpp:234
void UpdateBatches(const FrameInfo &frame) override
Calculate distance and prepare batches for rendering. May be called from worker thread(s),...
Definition: Light.cpp:221
FontFace * GetFaceFreeType(float pointSize)
Return font face using FreeType. Called internally. Return null on error.
Definition: Font.cpp:223
IntVector2 numVertices_
Terrain size in vertices.
Definition: Terrain.h:322
void SetFinishBackgroundResourcesMs(int ms)
Definition: ResourceCache.h:138
unsigned lastUpdateFrameNumber_
Rendering framenumber on which was last updated.
Definition: ParticleEmitter.h:154
Vector2 textureUV_
Hit texture position.
Definition: OctreeQuery.h:215
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:349
int GetHeight() const
Return the current height.
Definition: AreaAllocator.h:50
AnimationKeyFrame * GetKeyFrame(unsigned index)
Return keyframe at index, or null if not found.
Definition: Animation.cpp:87
WindowDragMode GetDragMode(const IntVector2 &position) const
Identify drag mode (move/resize).
Definition: Window.cpp:320
bool WriteUShort(unsigned short value)
Write a 16-bit unsigned integer.
Definition: Serializer.cpp:66
SharedPtr< ListView > listView_
Listview element.
Definition: DropDownList.h:117
Definition: Ray.h:38
b2JointDef * GetJointDef() override
Return joint def.
Definition: ConstraintFriction2D.cpp:99
unsigned char GetLayer(const String &name) const
Return animation blending layer.
Definition: AnimationController.cpp:483
Viewport * GetViewport(unsigned index) const
Definition: RenderSurface.cpp:107
std::function< void(StringHash, VariantMap &)> function_
Class-specific pointer to handler function.
Definition: Object.h:364
void ToggleSelection(unsigned index)
Toggle selection of an item.
Definition: ListView.cpp:643
void setSpatialInfo(const SpatialInfo &spatialInfo)
Set root spatial info.
Definition: SpriterInstance2D.cpp:115
Viewport * GetViewportForScene(Scene *scene, unsigned index) const
Return nth backbuffer viewport associated to a scene. Index 0 returns the first.
Definition: Renderer.cpp:542
float scaleY_
Y scaling for viewport transform.
Definition: OcclusionBuffer.h:217
WeakPtr< TerrainPatch > south_
South neighbor patch.
Definition: TerrainPatch.h:130
static unsigned GetFloat16Format()
Return the API-specific single channel 16-bit float texture format.
Definition: OGLGraphics.cpp:2643
Vector4 clipPlane_
Current custom clip plane in post-projection space.
Definition: Graphics.h:894
void RemoveAllAnimationStates()
Remove all animations.
Definition: AnimatedModel.cpp:530
void RemoveEventSender(Object *sender)
Remove event handlers related to a specific sender.
Definition: Object.cpp:515
void BlitFramebuffer(Texture *source, RenderSurface *destination, bool depthWrite)
Blit the viewport from one surface to another.
Definition: View.cpp:2100
void * MapBuffer(unsigned start, unsigned count, bool discard)
Map the GPU buffer into CPU memory. Not used on OpenGL.
Definition: OGLVertexBuffer.cpp:268
void SetFinishColor(const Color &finishColor)
Set finish color.
Definition: ParticleEffect2D.cpp:374
static void RegisterObject(Context *context)
Register object factory.
Definition: Node.cpp:77
SharedPtr< View > view_
Internal rendering structure.
Definition: Viewport.h:123
void OnDeviceReset() override
Recreate the GPU resource and restore data if applicable.
Definition: OGLTextureCube.cpp:60
String connectionString_
The connection string for SQLite3 is using the URI format described in https://www....
Definition: ODBCConnection.h:63
virtual void UpdateGeometry(const FrameInfo &frame)
Prepare geometry for rendering.
Definition: Drawable.h:135
void Unlock()
Unlock the buffer and apply changes to the GPU buffer.
Definition: OGLIndexBuffer.cpp:204
void PushTouchIndex(int touchID)
Push a touch index back into the list of available when finished with it.
Definition: Input.cpp:1704
SharedPtr< VertexBuffer > instancingBuffer_
Instance stream vertex buffer.
Definition: Renderer.h:557
void Update(float timeStep) override
Perform UI element update.
Definition: Slider.cpp:74
void OnDeviceReset() override
Recreate the GPU resource and restore data if applicable.
Definition: OGLTexture2D.cpp:53
static void RegisterObject(Context *context)
Register object factory.
Definition: ParticleEmitter.cpp:63
void SetKeyFrame(unsigned index, const AnimationKeyFrame &keyFrame)
Definition: Animation.cpp:52
Vector< String > GetAttributeNames() const
Return names of all attributes.
Definition: XMLElement.cpp:736
bool threadedOcclusion_
Threaded occlusion rendering flag.
Definition: Renderer.h:667
HashMap< StringHash, SharedPtr< EventReceiverGroup > > eventReceivers_
Event receivers for non-specific events.
Definition: Context.h:234
void LoadInfo(const XMLElement &element)
Load layer info.
Definition: TmxFile2D.cpp:69
void SetProfilerInterval(float interval)
Definition: DebugHud.cpp:250
float HitDistance(const Plane &plane) const
Return hit distance to a plane, or infinity if no hit.
Definition: Ray.cpp:56
ConstraintWheel2D(Context *context)
Construct.
Definition: ConstraintWheel2D.cpp:37
bool drawDebug_
Draw debug geometry flag. Copied from the viewport.
Definition: View.h:384
Variant(const StringHash &value)
Construct from a string hash (convert to integer).
Definition: Variant.h:356
IntRect shadowViewport_
Shadow map viewport.
Definition: Batch.h:282
void Invoke(VariantMap &eventData) override
Invoke event handler function.
Definition: Object.h:351
long long ReadInt64()
Read a 64-bit integer.
Definition: Deserializer.cpp:63
void SetBlendMode(BlendMode blendMode)
Definition: StaticSprite2D.cpp:118
bool EndLoad() override
Finish resource loading. Always called from the main thread. Return true if successful.
Definition: Texture3D.cpp:141
void Release() override
Release shader program.
Definition: OGLShaderProgram.cpp:88
void ReAddBodyToWorld()
Readd rigid body to the physics world to clean up internal state like stale contacts.
Definition: RigidBody.cpp:582
static void RegisterObject(Context *context)
Register object factory.
Definition: ConstraintGear2D.cpp:44
EventReceiverGroup()
Construct.
Definition: Context.h:37
void GetFrustumSize(Vector3 &near, Vector3 &far) const
Return frustum near and far sizes.
Definition: Camera.cpp:465
bool SetLastModifiedTime(const String &fileName, unsigned newTime)
Set a file's last modified time as seconds since 1.1.1970. Return true on success.
Definition: FileSystem.cpp:767
WeakPtr< TerrainPatch > east_
East neighbor patch.
Definition: TerrainPatch.h:134
void MarkTerrainDirty()
Mark terrain dirty.
Definition: Terrain.h:289
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:1164
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
HashMap< unsigned long long, FrameBufferObject > frameBuffers_
Map for FBO's per resolution and format.
Definition: OGLGraphicsImpl.h:138
const String & GetProperty(const String &name) const
Return property value (use for script).
Definition: TmxFile2D.cpp:62
unsigned GetFreeNodeID(CreateMode mode)
Get free node ID, either non-local or local.
Definition: Scene.cpp:842
Template wrapper class for using Serializer / Deserializer or their subclasses through SDL's RWOps st...
Definition: RWOpsWrapper.h:33
bool sRGB_
sRGB sampling/writing mode flag.
Definition: RenderPath.h:94
PODVector< unsigned char > buffer_
Dynamic data buffer.
Definition: VectorBuffer.h:72
bool SetSize(unsigned size)
Set size and create GPU-side buffer. Return true on success.
Definition: OGLConstantBuffer.cpp:59
float GetDistance(const Vector3 &worldPos) const
Return distance to position. In orthographic mode uses only Z coordinate.
Definition: Camera.cpp:487
SharedPtr< SoundStream > GetDecoderStream() const
Return a new instance of a decoder sound stream. Used by compressed sounds.
Definition: Sound.cpp:313
ShaderVariation * GetVertexShader() const
Return current vertex shader.
Definition: Graphics.h:515
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:147
void RemoveInstanceNode(Node *node)
Remove an instance scene node.
Definition: StaticModelGroup.cpp:288
static unsigned GetLinearDepthFormat()
Return the API-specific linear depth texture format.
Definition: OGLGraphics.cpp:2661
ResourceRef GetParticleEffectAttr() const
Return particle model attr.
Definition: ParticleEmitter2D.cpp:156
btCollisionShape * GetCollisionShape() const
Return Bullet collision shape.
Definition: CollisionShape.h:219
bool SetSize(unsigned layers, int width, int height, unsigned format, TextureUsage usage=TEXTURE_STATIC)
Set layers, size, format and usage. Set layers to zero to leave them unchanged. Return true if succes...
Definition: Texture2DArray.cpp:153
OcclusionBuffer * GetOcclusionBuffer() const
Return the last used software occlusion buffer.
Definition: View.h:175
void SetTextureUnitMappings()
Initialize texture unit mappings.
Definition: OGLGraphics.cpp:3229
PackageUpload()
Construct with defaults.
Definition: Connection.cpp:65
Text * okButtonText_
OK button text.
Definition: FileSelector.h:185
const Vector< Vector< SharedPtr< Geometry > > > & GetGeometries() const
Return geometry pointers.
Definition: Model.h:178
bool GetNextChange(String &dest)
Return a file change (true if was found, false if not).
Definition: FileWatcher.cpp:334
float GetMaxZ() const
Return the maximum view-space depth.
Definition: Drawable.h:313
static const IntVector3 RIGHT_FORWARD_UP
(0, 2, 1) coordinate system.
Definition: RaycastVehicle.h:181
MaterialQuality GetMaterialQuality() const
Definition: Renderer.h:326
void SetRenderTargets(RenderPathCommand &command)
Set rendertargets for current render command.
Definition: View.cpp:1729
bool Execute(const String &line)
Compile and execute a line of script in immediate mode.
Definition: Script.cpp:233
void HandleFileDoubleClicked(StringHash eventType, VariantMap &eventData)
Handle file doubleclicked from the list (enter directory / OK the file selection).
Definition: FileSelector.cpp:416
void ResetWheels()
Sets node initial positions.
Definition: RaycastVehicle.cpp:708
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:107
bool WriteStringHash(const StringHash &value)
Write a 32-bit StringHash.
Definition: Serializer.cpp:201
ConstIterator Begin() const
Return const iterator to the beginning.
Definition: Str.h:386
void SetMaxAgentRadius(float maxAgentRadius)
Definition: CrowdManager.cpp:246
void Clear()
Remove all buffered audio data.
Definition: BufferedSoundStream.cpp:102
void SetOwner(Terrain *terrain)
Set owner terrain.
Definition: TerrainPatch.cpp:214
bool WriteMatrix3x4(const Matrix3x4 &value)
Write a Matrix3x4.
Definition: Serializer.cpp:159
unsigned lastSize_
Last size of the shared pool.
Definition: WorkQueue.h:151
void AddDrawable(Drawable *drawable)
Add a drawable object to this octant.
Definition: Octree.h:58
void SetViewport(unsigned index, Viewport *viewport)
Definition: RenderSurface.cpp:47
void SetEmitterSize(const Vector3 &size)
Definition: ParticleEffect.cpp:485
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:294
void CalculateFixedScreenSize(const FrameInfo &frame)
Recalculate camera facing and fixed screen size.
Definition: Text3D.cpp:741
void ChangeValue(float delta)
Change slider current value by a delta.
Definition: ScrollBar.cpp:176
HeightfieldData(Terrain *terrain, unsigned lodLevel)
Construct from a terrain.
Definition: CollisionShape.cpp:317
int GetPositionAttr() const
Return sound position attribute.
Definition: SoundSource.cpp:503
static void RegisterObject(Context *context)
Register object factory. Drawable must be registered first.
Definition: StaticModel.cpp:56
bool IsEmpty() const
Return whether the batch group is empty.
Definition: Batch.h:245
IntVector2 WorldToScreenPoint(const Vector3 &worldPos) const
Convert a world space point to normalized screen coordinates.
Definition: Viewport.cpp:165
Quaternion(const Quaternion &quat) noexcept
Copy-construct from another quaternion.
Definition: Quaternion.h:53
Variant defaultValue_
Default value for network replication.
Definition: Attribute.h:110
SharedPtr< IndexBuffer > indexBuffer_
Index buffer.
Definition: BillboardSet.h:207
VertexLightVSVariation
Per-vertex light vertex shader variations.
Definition: Renderer.h:78
void ConstructBatch(UIBatch &pageBatch, const PODVector< GlyphLocation > &pageGlyphLocation, float dx=0, float dy=0, Color *color=nullptr, float depthBias=0.0f)
Construct batch.
Definition: Text.cpp:789
const IntRect & GetViewRect() const
Return view rectangle.
Definition: View.h:157
CustomVariantValue(const std::type_info &typeInfo)
Construct from type info.
Definition: Variant.h:176
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:390
Quaternion otherRotation_
Constraint other body axis.
Definition: Constraint.h:214
unsigned PopTouchIndex()
Used internally to return and remove the next available touch index.
Definition: Input.cpp:1694
void SetIndirectionTextureData()
Create point light shadow indirection texture data.
Definition: Renderer.cpp:1834
unsigned occlusionLodLevel_
Occlusion LOD level.
Definition: StaticModel.h:132
void SetVerticesAttr(const PODVector< unsigned char > &value)
Set vertices attribute.
Definition: CollisionPolygon2D.cpp:82
void UpdateMasterGain()
Update the effective master gain. Called internally and by Audio when the master gain changes.
Definition: SoundSource.cpp:460
constexpr RandomAccessConstIterator(const RandomAccessIterator< T > &rhs)
Construct from a non-const iterator.
Definition: Iter.h:142
PODVector< Drawable * > threadedDrawableUpdates_
Drawable objects that were inserted during threaded update phase.
Definition: Octree.h:214
String commandInterpreter_
Last used command interpreter.
Definition: Console.h:178
UniquePtr< Mutex > mutex_
Mutex.
Definition: StringHashRegister.h:61
bool BeginLoadFromPListFile(Deserializer &source)
Begin load from PList file.
Definition: SpriteSheet2D.cpp:125
~FontFaceFreeType() override
Destruct.
Definition: FontFaceFreeType.cpp:85
FillMode GetFillMode() const
Return polygon fill mode.
Definition: Graphics.h:571
void CopySelectedItemsToClipboard() const
Copy selected items to system clipboard. Currently only applicable to Text items.
Definition: ListView.cpp:911
void OnSceneSet(Scene *scene) override
Handle scene being assigned.
Definition: Drawable2D.cpp:107
bool IsInstanceOf() const
Check current instance is type of specified class.
Definition: Object.h:111
float Distance(const Vector3 &point) const
Return distance of a point to the surface, or 0 if inside.
Definition: Sphere.h:196
Vector< WeakPtr< CollisionShape2D > > collisionShapes_
Collision shapes.
Definition: RigidBody2D.h:207
String shaderCacheDir_
Cache directory for Direct3D binary shaders.
Definition: Graphics.h:904
void HandleScriptEvent(StringHash eventType, VariantMap &eventData)
Handle an event in script.
Definition: ScriptFile.cpp:1055
unsigned GetLodLevel() const
Return current LOD level.
Definition: TerrainPatch.h:107
List< StoredLogMessage > threadMessages_
Log messages from other threads.
Definition: Log.h:126
bool RemoveSwap(const T &value)
Erase an element by value by swapping with the last element. Return true if was found and erased.
Definition: Vector.h:1014
void HandleFileListKey(StringHash eventType, VariantMap &eventData)
Handle file list key pressed.
Definition: FileSelector.cpp:425
Quaternion rotation_
Offset rotation.
Definition: CollisionShape.h:319
bool otherBodyNodeIDDirty_
Other body node ID dirty flag.
Definition: Constraint2D.h:111
void BanAddress(const String &address)
Ban specific IP addresses.
Definition: Network.cpp:649
SDL_JoystickID OpenJoystick(unsigned index)
Open a joystick and return its ID. Return -1 if no joystick.
Definition: Input.cpp:1268
Vector< Pair< int, String > > pendingRows_
Pending log message rows.
Definition: Console.h:183
void Update(float timeStep) override
Update sound source.
Definition: SoundSource3D.cpp:98
static void RegisterObject(Context *context)
Register object factory.
Definition: XMLFile.cpp:74
unsigned b_
Blue channel mask. If zero, blue channel is set to 0.
Definition: Color.h:44
UIElement * fileNameLayout_
Filename and filter layout.
Definition: FileSelector.h:193
~OggVorbisSoundStream() override
Destruct.
Definition: OggVorbisSoundStream.cpp:50
const Vector2 & GetOwnerBodyAnchor() const
Definition: ConstraintRope2D.h:55
bool ignoreEvents_
Ignore scrollbar events flag. Used to prevent possible endless loop when resizing.
Definition: ScrollView.h:198
PODVector< Drawable * > shadowCasters_
Shadow casters.
Definition: View.h:62
float startScale_
Scale for start of trails.
Definition: RibbonTrail.h:257
void OnAttributeAnimationRemoved() override
Handle attribute animation removed.
Definition: UIElement.cpp:1884
static unsigned DecodeUTF8(const char *&src)
Decode Unicode character from UTF8. Pointer will be incremented.
Definition: Str.cpp:943
PODVector< Particle > particles_
Particles.
Definition: ParticleEmitter.h:146
static bool supported
High-resolution timer support flag.
Definition: Timer.h:72
static Vector3 posAdjust
Position adjustment vector for pixel-perfect rendering. Initialized by UI.
Definition: UIBatch.h:100
bool etc2TextureSupport_
ETC2 format support flag.
Definition: Graphics.h:802
void SetParticleEffectAttr(const ResourceRef &value)
Set particle model attr.
Definition: ParticleEmitter2D.cpp:150
const String & GetTypeName() const override
Return type name of the stored component.
Definition: UnknownComponent.h:44
const Quaternion & GetTargetRotation() const
Definition: IKEffector.cpp:126
bool useScreenKeyboard_
Flag for showing the on-screen keyboard on focusing a LineEdit.
Definition: UI.h:442
unsigned Read(void *dest, unsigned size) override
Read bytes from the file. Return number of bytes actually read.
Definition: File.cpp:158
const Vector3 & GetConstantForce() const
Definition: ParticleEffect.h:311
void(* workFunction_)(const WorkItem *, unsigned)
Work function. Called with the work item and thread index (0 = main thread) as parameters.
Definition: WorkQueue.h:50
HashMap< int, PODVector< Light * > > shadowMapAllocations_
Shadow map allocations by resolution.
Definition: Renderer.h:577
void SetLineAntiAlias(bool enable)
Set line antialiasing on/off.
Definition: OGLGraphics.cpp:1854
float GetMorphWeight(unsigned index) const
Return vertex morph weight by index.
Definition: AnimatedModel.cpp:630
PODVector< IntVector3 > GetResolutions(int monitor) const
Definition: Graphics.cpp:245
void SetLinearDamping(float linearDamping)
Definition: RigidBody2D.cpp:187
SharedPtr< Resource > GetTempResource(StringHash type, const 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:658
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:119
Definition: OctreeQuery.h:118
float edgeOffset_
Offset to fix texture edge bleeding.
Definition: Sprite2D.h:119
void SetGroupIndex(int groupIndex)
Definition: CollisionShape2D.cpp:120
HashMap< WeakPtr< UIElement >, DragData * >::Iterator DragElementErase(HashMap< WeakPtr< UIElement >, DragData * >::Iterator i)
Remove drag data and return next iterator.
Definition: UI.cpp:2091
Vector3 cachedWorldScale_
Cached world scale for determining if the collision shape needs update.
Definition: CollisionShape.h:323
~ShaderVariation() override
Destruct.
Definition: ShaderVariation.cpp:65
Vector2 GetRandomSize() const
Return random size.
Definition: ParticleEffect.cpp:796
void AddPolyhedron(const Polyhedron &poly, const Color &color, bool depthTest=true)
Add a polyhedron.
Definition: DebugRenderer.cpp:245
Vector4 ClipEdge(const Vector4 &v0, const Vector4 &v1, float d0, float d1) const
Clip an edge.
Definition: OcclusionBuffer.cpp:563
bool GetEnableMotor() const
Definition: ConstraintRevolute2D.h:83
CustomVariantValueImpl< T > ClassName
This class name.
Definition: Variant.h:230
void CheckTextureBudget(StringHash type)
Check whether texture memory budget has been exceeded. Free unused materials in that case to release ...
Definition: Texture.cpp:273
const TmxTileLayer2D * tileLayer_
Tile layer.
Definition: TileMapLayer2D.h:126
void SetUpperTranslation(float upperTranslation)
Definition: ConstraintPrismatic2D.cpp:114
bool GetDrawCenterOfMass() const
Definition: PhysicsWorld2D.h:197
void SetWorldRotation(const Quaternion &rotation)
Definition: Node.cpp:518
float maxSideSlipSpeed_
Side slip speed threshold.
Definition: RaycastVehicle.h:211
HashMap< String, TextureUnit > textureUnits_
Texture unit mappings.
Definition: Graphics.h:844
RefCount * RefCountPtr() const
Return pointer to RefCount structure.
Definition: ArrayPtr.h:388
Matrix4 ReadMatrix4()
Read a Matrix4.
Definition: Deserializer.cpp:226
ResourceRef GetMaterialAttr() const
Return material attribute.
Definition: DecalSet.cpp:597
const Color & GetStartColor() const
Return start color.
Definition: ParticleEffect2D.h:176
void CleanupConnection(Connection *connection)
Clean up all references to a network connection that is about to be removed.
Definition: Node.cpp:1773
virtual void OnSetAttribute(const AttributeInfo &attr, const Variant &src)
Handle attribute write access. Default implementation writes to the variable at offset,...
Definition: Serializable.cpp:65
void SetMassCenter(const Vector2 ¢er)
Definition: RigidBody2D.cpp:155
b2JointDef * GetJointDef() override
Return joint def.
Definition: ConstraintMotor2D.cpp:134
Vector< SharedPtr< ShaderVariation > > pixelShaders_
Pixel shaders.
Definition: Technique.h:206
static unsigned GetAlphaFormat()
Return the API-specific alpha texture format.
Definition: OGLGraphics.cpp:2549
MouseButtonFlags mouseButtonPress_
Mouse buttons' pressed state.
Definition: Input.h:434
PODVector< float > lastTimeSteps_
Previous timesteps for smoothing.
Definition: Engine.h:147
unsigned Seek(unsigned position) override
Set position from the beginning of the file.
Definition: File.cpp:273
StringHash vsExtraDefinesHash_
Hash for vertex shader extra defines.
Definition: Batch.h:271
void SetDefaultTextureAnisotropy(unsigned level)
Set default texture anisotropy level. Called by Renderer before rendering.
Definition: OGLGraphics.cpp:1590
void EnableMassUpdate()
Re-enable mass update and recalculate the mass/inertia by calling UpdateMass(). Call when collision s...
Definition: RigidBody.cpp:593
bool sRGBSupport_
sRGB conversion on read support flag.
Definition: Graphics.h:810
BatchQueue litBaseBatches_
Lit geometry draw calls, base (replace blend mode).
Definition: Batch.h:301
bool scrollBarsAutoVisible_
Automatically show/hide scrollbars flag.
Definition: ScrollView.h:196
SharedPtr< RenderPath > Clone()
Clone the rendering path.
Definition: RenderPath.cpp:313
BlendMode GetBlendMode() const
Return blend mode.
Definition: ParticleEffect2D.h:227
bool Contains(const T &key) const
Return whether contains a key.
Definition: HashSet.h:490
void UpdateTimelineKeys()
Update timeline keys.
Definition: SpriterInstance2D.cpp:201
Iterator & operator++()
Preincrement the pointer.
Definition: HashMap.h:119
SharedPtr< TextureCube > faceSelectCubeMap_
Face selection cube map for shadowed pointlights.
Definition: Renderer.h:565
void OnTextInput(const String &text) override
React to text input event.
Definition: LineEdit.cpp:432
void SetViewPositionAttr(const IntVector2 &value)
Set view position attribute.
Definition: ScrollView.cpp:373
static float ConvertLinearToGamma(float value)
Convert single component of the color from linear to gamma space.
Definition: Color.h:202
bool Equals(const Matrix2 &rhs) const
Test for equality with another matrix with epsilon.
Definition: Matrix2.h:185
void HandleCancelPressed(StringHash eventType, VariantMap &eventData)
Handle cancel button pressed.
Definition: FileSelector.cpp:474
const PODVector< unsigned char > & GetNetRotationAttr() const
Return network rotation attribute.
Definition: Node.cpp:1517
static void RegisterObject(Context *context)
Register object factory.
Definition: Constraint.cpp:82
const Matrix3x4 & GetVolumeTransform(Camera *camera)
Return light volume model transform.
Definition: Light.cpp:493
bool Remove(const T &value)
Erase an element by value. Return true if was found and erased.
Definition: Vector.h:1001
VariantMap previousVars_
Previous user variables.
Definition: ReplicationState.h:132
ResourceRef GetTextureAttr() const
Return texture attribute.
Definition: Sprite.cpp:296
bool returnFailedResources_
Return failed resources flag.
Definition: ResourceCache.h:266
void Define(float min, float max)
Define from minimum and maximum floats (all dimensions same).
Definition: BoundingBox.h:165
bool framesDirty_
Coordinate frames dirty flag.
Definition: Constraint.h:232
void SetStartColorVariance(const Color &startColorVariance)
Set start color variance.
Definition: ParticleEffect2D.cpp:369
void Set(const String &key, const JSONValue &value)
Set JSON value with key.
Definition: JSONValue.cpp:268
bool SetIntVector2(const String &name, const IntVector2 &value)
Set an IntVector2 attribute.
Definition: XMLElement.cpp:387
void SetOwnerBodyAnchor(const Vector2 &anchor)
Definition: ConstraintDistance2D.cpp:60
unsigned areaId_
Area id to be used for this off mesh connection's internal poly.
Definition: OffMeshConnection.h:100
bool updateInvisible_
Update when invisible flag.
Definition: ParticleEffect.h:431
float GetScrollDeceleration() const
Definition: ScrollView.h:144
void SetInterpolationMethod(InterpMethod method)
Definition: ValueAnimation.cpp:255
void GetChildrenRecursive(PODVector< UIElement * > &dest) const
Return child elements recursively.
Definition: UIElement.cpp:2055
StencilOp GetStencilZFail() const
Return stencil operation to do if depth compare fails.
Definition: Graphics.h:595
float dragBeginInterval_
Seconds from mouse button down to begin a drag if there has been no movement exceeding pixel threshol...
Definition: UI.h:420
HashMap< Pair< unsigned char, unsigned char >, unsigned > vertexAttributes_
Vertex attributes.
Definition: OGLShaderProgram.h:99
EventProfiler(Context *context)
Construct.
Definition: EventProfiler.cpp:34
bool operator==(const WeakArrayPtr< T > &rhs) const
Test for equality with another weak array pointer.
Definition: ArrayPtr.h:334
SharedPtr< Material > customMaterial_
Custom material.
Definition: StaticSprite2D.h:196
void ProcessRayQuery(const RayOctreeQuery &query, PODVector< RayQueryResult > &results) override
Process octree raycast. May be called from a worker thread.
Definition: StaticModel.cpp:74
void SetNumGeometries(unsigned num)
Set number of geometries.
Definition: StaticModel.cpp:365
Variant GetInstanceDefault(const String &name) const
Get instance-level default value.
Definition: Serializable.cpp:1027
unsigned GetNumParticles() const
Definition: ParticleEffect.h:267
void DelayedMarkedDirty(Component *component)
Add a component to the delayed dirty notify queue. Is thread-safe.
Definition: Scene.cpp:836
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:634
UniquePtr< btTypedConstraint > constraint_
Bullet constraint.
Definition: Constraint.h:204
const Vector2 & GetLinearOffset() const
Definition: ConstraintMotor2D.h:61
void AllocateView()
Allocate the view structure. Called by Renderer.
Definition: Viewport.cpp:214
Vector< WeakPtr< Node > > instanceNodes_
Instance nodes.
Definition: StaticModelGroup.h:88
MutexLock(Mutex &mutex)
Construct and acquire the mutex.
Definition: Mutex.cpp:106
void ApplyAttributes() override
Apply attribute changes that can not be applied immediately.
Definition: Text3D.cpp:107
WrapMode GetAttributeAnimationWrapMode(const String &name) const
Definition: ObjectAnimation.cpp:241
WeakPtr< Node > node_
Link to the actual node.
Definition: ReplicationState.h:161
void SetMinVelocity(float velocity)
Definition: ParticleEffect.cpp:550
void PreloadResourcesXML(const XMLElement &element)
Preload resources from an XML scene or object prefab file.
Definition: Scene.cpp:1367
IntRect border_
The border, represented by the number of pixels from each side.
Definition: StretchableSprite2D.h:52
static void RegisterObject(Context *context)
Register object factory. Drawable2D must be registered first.
Definition: StretchableSprite2D.cpp:127
void ResetShadowMapAllocations()
Reset shadow map allocation counts.
Definition: Renderer.cpp:1566
HashSet< StringHash > allowedRemoteEvents_
Allowed remote events.
Definition: Network.h:170
int GetFinishBackgroundResourcesMs() const
Definition: ResourceCache.h:212
static float ConvertGammaToLinear(float value)
Convert single component of the color from gamma to linear space.
Definition: Color.h:191
void SetModalShadeColor(const Color &color)
Definition: Window.cpp:300
bool IsA(const String &className) const
Check if the object is derived from a class.
Definition: ScriptInstance.cpp:416
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
static void RegisterObject(Context *context)
Registers this class as an object factory.
Definition: IKEffector.cpp:62
void RemoveFromOctree()
Remove from octree.
Definition: Drawable.cpp:407
const Vector2 & GetAnchor() const
Definition: ConstraintRevolute2D.h:67
bool IsCustomType() const
Return true if specified custom type is stored in the variant.
Definition: Variant.h:1321
IntVector2 ElementToScreen(const IntVector2 &position) override
Convert element coordinates to screen coordinates.
Definition: Sprite.cpp:103
static void RegisterObject(Context *context)
Register object factory.
Definition: SmoothedTransform.cpp:46
bool searchPackagesFirst_
Search priority flag.
Definition: ResourceCache.h:268
bool readSyncNeeded_
Synchronization needed before read -flag.
Definition: File.h:148
bool HasProperty(const String &name) const
Return has property (use for script).
Definition: TmxFile2D.cpp:55
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:484
HashMap< UIElement *, RenderToTextureData > renderToTexture_
Elements that should be rendered to textures.
Definition: UI.h:482
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:36
Definition: AnimationController.h:38
void SetLinearVelocity(const Vector3 &velocity)
Definition: RigidBody.cpp:298
void SetFocusElement(UIElement *element, bool byKey=false)
Set focused UI element.
Definition: UI.cpp:179
void SetTransform(const Vector3 &position, const Quaternion &rotation)
Set rigid body position and rotation in world space as an atomic operation.
Definition: RigidBody.cpp:275
void ReleaseRef()
Release the weak reference. Delete the Refcount structure if necessary.
Definition: ArrayPtr.h:408
Variant(const Matrix4 &value)
Construct from a Matrix4.
Definition: Variant.h:512
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
ConstIterator Find(const T &value) const
Return const iterator to value, or to the end if not found.
Definition: Vector.h:1101
Vector2 ownerBodyAnchor_
Owner body anchor.
Definition: ConstraintRope2D.h:72
AnimationSet2D * GetAnimationSet() const
Definition: AnimatedSprite2D.cpp:196
void SetShadowBias(const BiasParameters ¶meters)
Definition: Light.cpp:365
void DrawDebugGeometry(DebugRenderer *debug, bool depthTest) override
Draw the Debug Geometry.
Definition: SplinePath.cpp:116
static void RegisterObject(Context *context)
Register object factory.
Definition: DecalSet.cpp:180
Variant(unsigned long long value)
Construct from unsigned integer.
Definition: Variant.h:350
SharedPtr< BorderImage > knob_
ProgressBar knob.
Definition: ProgressBar.h:103
bool BeginLoadFromJSONFile(Deserializer &source)
Begin load from JSON file.
Definition: SpriteSheet2D.cpp:271
Node * GetInstanceNode(unsigned index) const
Definition: StaticModelGroup.cpp:316
HashMap< StringHash, HashMap< StringHash, String > > strings_
Storage strings: <Language <StringId, Value> >.
Definition: Localization.h:78
void RemoveEventHandler(const String &eventName) override
Remove a scripted event handler.
Definition: LuaScriptInstance.cpp:335
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: OGLTextureCube.cpp:110
static void RegisterObject(Context *context)
Register object factory.
Definition: ListView.cpp:191
Vector3 ToHSV() const
Return HSV color-space representation as a Vector3; the RGB values are clipped before conversion but ...
Definition: Color.cpp:65
RigidBody2D * GetRigidBody(const Vector2 &point, unsigned collisionMask=M_MAX_UNSIGNED)
Return rigid body at point.
Definition: PhysicsWorld2D.cpp:606
TraversalMode GetTraversalMode() const
Definition: UIElement.h:752
static const VariantMap emptyVariantMap
Empty variant map.
Definition: Variant.h:1394
void SetShadowSoftness(float shadowSoftness)
Definition: Renderer.cpp:414
const Vector2 & GetCenter() const
Definition: CollisionCircle2D.h:58
void GetBatches(PODVector< UIBatch > &batches, PODVector< float > &vertexData, const IntRect ¤tScissor) override
Return UI rendering batches.
Definition: DropDownList.cpp:87
const Matrix3x4 & GetInverseWorldTransform() const
Definition: Zone.cpp:178
void RemoveChildren(bool removeReplicated, bool removeLocal, bool recursive)
Remove child scene nodes that match criteria.
Definition: Node.cpp:886
void HandleRenderSurfaceUpdate(StringHash eventType, VariantMap &eventData)
Handle render surface update event.
Definition: Texture2D.cpp:184
unsigned GetIndex() const
Return pass index. This is used for optimal render-time pass queries that avoid map lookups.
Definition: Technique.h:100
bool GetReverseCulling() const
Return whether to reverse culling; affected by vertical flipping and reflection.
Definition: Camera.h:232
void SetMaxTorque(float maxTorque)
Definition: ConstraintMotor2D.cpp:104
unsigned GetAuxViewFrameNumber() const
Return last auxiliary view rendered frame number.
Definition: Material.h:271
void AddLight(Light *light)
Add a per-pixel light affecting the object this frame.
Definition: Drawable.h:316
Variant(const CustomVariantValueImpl< T > &value)
Construct from custom value.
Definition: Variant.h:519
void Insert(const Iterator &dest, const ConstIterator &start, const ConstIterator &end)
Insert elements by iterators.
Definition: List.h:298
void ClearScriptMethods()
Clear supported script methods.
Definition: ScriptInstance.cpp:612
bool SetDataRange(const void *data, unsigned start, unsigned count, bool discard=false)
Set a data range in the buffer. Optionally discard data outside the range.
Definition: OGLIndexBuffer.cpp:113
Rect GetRect(const String &name) const
Return a Rect attribute, or default if missing.
Definition: XMLElement.cpp:842
float particleLifespanVariance_
Particle lifespan variance.
Definition: ParticleEffect2D.h:270
SharedArrayPtr< unsigned char > httpReadBuffer_
Read buffer for the worker thread.
Definition: HttpRequest.h:105
ConstIterator(const Iterator &rhs)
Construct from a non-const iterator.
Definition: HashSet.h:125
Vector2 otherBodyGroundAnchor_
Other body ground anchor.
Definition: ConstraintPulley2D.h:89
void GetVector2MinMax(const XMLElement &element, Vector2 &minValue, Vector2 &maxValue)
Read a Vector2 range from an XML element.
Definition: ParticleEffect.cpp:836
void OnResize(const IntVector2 &newSize, const IntVector2 &delta) override
React to resize.
Definition: ScrollBar.cpp:113
void SetDeepEnabled(bool enable)
Set enabled state on self and child nodes. Nodes' own enabled state is remembered (IsEnabledSelf) and...
Definition: Node.cpp:720
bool EndLoad() override
Finish resource loading. Always called from the main thread. Return true if successful.
Definition: AnimationSet2D.cpp:144
Internal structure for 3D rendering work. Created for each backbuffer and texture viewport,...
Definition: View.h:110
const IntVector2 & GetIntVector2() const
Return an IntVector2 or empty on type mismatch.
Definition: Variant.h:1257
IntVector2 doubleClickFirstPos_
Screen position of first mouse click for double click distance checking.
Definition: UI.h:462
Definition: Resource.h:55
DropDownList * GetFilterList() const
Definition: FileSelector.h:111
const PODVector< Vector2 > & GetVertices() const
Return vertices.
Definition: CollisionChain2D.h:67
EventHandler * eventHandler_
Active event handler. Not stored in a stack for performance reasons; is needed only in esoteric cases...
Definition: Context.h:242
unsigned GetShaderParameterHash() const
Return shader parameter hash value. Used as an optimization to avoid setting shader parameters unnece...
Definition: Material.h:285
bool bufferDirty_
Vertex buffer needs rewrite / resizing flag.
Definition: DecalSet.h:254
void EraseSwap(unsigned pos, unsigned length=1)
Erase a range of elements by swapping elements from the end of the array.
Definition: Vector.h:978
void SetObjectAttributeAnimation(const String &name, ValueAnimation *attributeAnimation, WrapMode wrapMode, float speed)
Set object attribute animation internal.
Definition: Animatable.cpp:473
float delay_
Delay in seconds for notifying changes.
Definition: FileWatcher.h:77
void FindZone(Drawable *drawable)
Find and set a new zone for a drawable when it has moved.
Definition: View.cpp:2780
Ray Transformed(const Matrix3x4 &transform) const
Return transformed by a 3x4 matrix. This may result in a non-normalized direction.
Definition: Ray.cpp:462
bool ProcessMessage(int msgID, MemoryBuffer &buffer)
Process a message from the server or client. Called by Network.
Definition: Connection.cpp:448
unsigned numIndices_
Indices in the current decals.
Definition: DecalSet.h:244
unsigned GetNumTextureFrames() const
Definition: ParticleEffect.h:396
void SaveByteCode(const String &binaryShaderName)
Save bytecode to a file.
Definition: OGLShaderVariation.cpp:202
void SendClientUpdate()
Send latest controls from the client. Called by Network.
Definition: Connection.cpp:281
bool Expired() const
Return whether the array has expired. If null pointer, always return true.
Definition: ArrayPtr.h:385
SharedPtr< Texture2D > texture_
Texture that UIElement will be rendered into.
Definition: UIComponent.h:72
unsigned startIndex_
Instance stream start index, or M_MAX_UNSIGNED if transforms not pre-set.
Definition: Batch.h:174
ProfilerBlock(ProfilerBlock *parent, const char *name)
Construct with the specified parent block and name.
Definition: Profiler.h:38
Quaternion(float w, float x, float y, float z) noexcept
Construct from values.
Definition: Quaternion.h:68
void UpdateAnimation(const FrameInfo &frame)
Recalculate animations. Called from Update().
Definition: AnimatedModel.cpp:1255
bool IsAnimatedNetworkAttribute(const AttributeInfo &attrInfo) const
Is animated network attribute.
Definition: Animatable.cpp:533
SharedPtr< Technique > original_
Original technique, in case the material adds shader compilation defines. The modified clones are req...
Definition: Material.h:68
Matrix3x4 GetEffectiveWorldTransform() const
Definition: Camera.cpp:574
bool WriteShort(short value)
Write a 16-bit integer.
Definition: Serializer.cpp:46
void SetPressedChildOffset(const IntVector2 &offset)
Definition: Button.cpp:167
bool markToStencil_
Mark to stencil flag.
Definition: RenderPath.h:192
void HandleBeginFrame(StringHash eventType, VariantMap &eventData)
Handle begin frame event. Automatic resource reloads and the finalization of background loaded resour...
Definition: ResourceCache.cpp:1073
void CreateObject()
(Re)create the script object and check for supported methods if successfully created.
Definition: ScriptInstance.cpp:563
void ThreadFunction() override
Directory watching loop.
Definition: FileWatcher.cpp:237
Vector3 previousOffset_
Previous offset to camera for determining whether sorting is necessary.
Definition: RibbonTrail.h:271
void OnSceneSet(Scene *scene) override
Handle scene being assigned.
Definition: LuaScriptInstance.cpp:501
void SetAnimationName(const String &name)
Definition: Animation.cpp:289
Integer & AsInteger()
Return underlying integer (non-constant).
Definition: FlagSet.h:229
Timer lastHeardTimer_
Last heard timer, resets when new packet is incoming.
Definition: Connection.h:370
const String & GetDefines() const
Return defines.
Definition: ShaderVariation.h:129
unsigned char * GetData()
Return memory area.
Definition: MemoryBuffer.h:52
Iterator Erase(const Iterator &it)
Erase a pair by iterator. Return iterator to the next pair.
Definition: HashMap.h:429
void CleanupFramebuffers()
Clean up all framebuffers. Called when destroying the context. Used only on OpenGL.
Definition: OGLGraphics.cpp:3138
Vector3 GetTargetRotationEuler() const
Required for the editor, get the target rotation in euler angles.
Definition: IKEffector.cpp:140
void SetHeight(float height)
Scale UI to the specified height in pixels.
Definition: UI.cpp:751
StringHash GetNameHash() const
Return name hash.
Definition: Resource.h:94
void SetMaterial(Material *material)
Definition: ParticleEffect.cpp:440
bool GetBool(bool defaultValue=false) const
Return boolean value.
Definition: JSONValue.h:202
Vector2 vsmShadowParams_
Shadow parameters when VSM is used, they help to reduce light bleeding.
Definition: Renderer.h:621
void PostStep(float timeStep)
Trigger update after each physics simulation step.
Definition: PhysicsWorld.cpp:818
bool IsEmpty()
Return true if there are no drawable objects in this octant and child octants.
Definition: Octree.h:96
const Vector2 & GetOtherBodyAnchor() const
Definition: ConstraintRope2D.h:59
bool Equals(const Matrix3x4 &rhs) const
Test for equality with another matrix with epsilon.
Definition: Matrix3x4.h:636
float maxRadiusVariance_
Max radius variance.
Definition: ParticleEffect2D.h:310
asIScriptObject * GetObject() const
Get the asIScriptObject to call the method on, can be null.
Definition: ScriptFile.h:169
void SetButtonTexts(const String &okText, const String &cancelText)
Set button texts.
Definition: FileSelector.cpp:187
void DrawSegment(const b2Vec2 &p1, const b2Vec2 &p2, const b2Color &color) override
Draw a line segment.
Definition: PhysicsWorld2D.cpp:258
void ApplyStyleRecursive(UIElement *element)
Recursively apply style to a child element hierarchy when adding to an element.
Definition: UIElement.cpp:2066
void SetEffect(ParticleEffect *effect)
Definition: ParticleEmitter.cpp:263
bool IsCompleting() const
Return whether the queue is currently completing work in the main thread.
Definition: WorkQueue.h:110
static void RegisterObject(Context *context)
Register object factory.
Definition: PhysicsWorld2D.cpp:73
const Vector< SharedPtr< IndexBuffer > > & GetIndexBuffers() const
Return index buffers.
Definition: Model.h:167
SharedArrayPtr< unsigned char > shadowData_
Shadow data.
Definition: VertexBuffer.h:155
void ApplyAttributes() override
Apply attribute changes that can not be applied immediately. Called after scene load or a network upd...
Definition: OffMeshConnection.cpp:66
LuaFunction * scriptObjectMethods_[MAX_LUA_SCRIPT_OBJECT_METHODS]
Script object method.
Definition: LuaScriptInstance.h:185
FaceCameraMode faceCameraMode_
Text rotation mode in relation to the camera.
Definition: Text3D.h:251
void SetVerticalAlignment(VerticalAlignment align)
Definition: UIElement.cpp:709
void OnObjectAnimationAdded(ObjectAnimation *objectAnimation)
Handle object animation added.
Definition: Animatable.cpp:481
bool Save(Serializer &dest) const override
Save resource. Return true if successful.
Definition: ParticleEffect.cpp:320
void MarkReplicationDirty()
Mark node dirty in scene replication states.
Definition: Node.cpp:1788
unsigned SystemRunAsync(const String &fileName, const Vector< String > &arguments)
Run a specific program asynchronously. Return a request ID or M_MAX_UNSIGNED if failed....
Definition: FileSystem.cpp:416
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:671
PODVector< unsigned char > GetDelayedCallsAttr() const
Return delayed method calls attribute.
Definition: ScriptInstance.cpp:489
CompareMode depthTestMode_
Depth compare mode.
Definition: Graphics.h:868
void UpdateEventSubscription()
Subscribe/unsubscribe to update events based on current enabled state and update event mask.
Definition: LogicComponent.cpp:106
void Transform(const Matrix3 &transform)
Transform with a 3x3 matrix.
Definition: Plane.cpp:35
void SetEnabledRecursive(bool enable)
Set enabled state on self and child nodes. Unlike SetDeepEnabled this does not remember the nodes' ow...
Definition: Node.cpp:733
void SetMaterial(Material *material)
Set material.
Definition: TerrainPatch.cpp:227
void HandleItemFocusChanged(StringHash eventType, VariantMap &eventData)
Handle global focus change to check whether an invisible item was focused.
Definition: ListView.cpp:1130
void MarkNeighborsDirty()
Mark neighbors dirty.
Definition: Terrain.h:287
void SetThreadedOcclusion(bool enable)
Definition: Renderer.cpp:517
static const Vector2 pixelUVOffset
Pixel perfect UV offset.
Definition: Graphics.h:919
ObserverPositionSendMode sendMode_
Send mode for the observer position & rotation.
Definition: Connection.h:350
int monitor_
Monitor for fullscreen mode. Has no effect in windowed mode.
Definition: Graphics.h:99
void OnSetEnabled() override
Handle enabled/disabled state change.
Definition: Drawable.cpp:108
void HandleExitRequested(StringHash eventType, VariantMap &eventData)
Handle exit requested event. Auto-exit if enabled.
Definition: Engine.cpp:975
Variant(unsigned value)
Construct from unsigned integer.
Definition: Variant.h:344
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
virtual bool Assign(const CustomVariantValue &rhs)
Assign value.
Definition: Variant.h:194
void SetAnimationLodBias(float bias)
Definition: BillboardSet.cpp:340
IntRect(int left, int top, int right, int bottom) noexcept
Construct from coordinates.
Definition: Rect.h:302
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:445
Definition: Object.h:83
unsigned GetGPUObjectName() const
Return the object name. Applicable only on OpenGL.
Definition: GPUObject.h:65
unsigned batchUpdatedFrameNumber_
Batch updated frame number.
Definition: Renderer2D.h:55
static const JSONArray emptyArray
Empty JSON array.
Definition: JSONValue.h:287
float sizeMul_
Particle size multiplicative parameter.
Definition: ParticleEffect.h:485
void SetCheckedOffset(const IntVector2 &offset)
Definition: CheckBox.cpp:106
static void RegisterObject(Context *context)
Register object factory.
Definition: Technique.cpp:253
void OnResize(const IntVector2 &newSize, const IntVector2 &delta) override
React to resize.
Definition: ScrollView.cpp:263
const Variant & GetGlobalVar(StringHash key) const
Definition: Object.cpp:406
void GetDrawables()
Query the octree for drawable objects.
Definition: View.cpp:792
void AddItem(UIElement *item)
Add item to the end of the list.
Definition: ListView.cpp:345
void RemoveEventSender(Object *sender)
Remove an event sender from all receivers. Called on its destruction.
Definition: Context.cpp:422
bool operator==(const List< T > &rhs) const
Test for equality with another list.
Definition: List.h:241
bool IsDown(unsigned button) const
Check if a button is held down.
Definition: Controls.h:52
bool shadersDirty_
Shaders need reloading flag.
Definition: Renderer.h:669
const String & GetVertexShaderDefines() const
Definition: Technique.h:143
bool Load(Deserializer &source) override
Load from binary data. Removes all existing child nodes and components first. Return true if successf...
Definition: Scene.cpp:114
EventHandler * GetEventHandler() const
Return active event handler. Null outside event handling.
Definition: Object.cpp:431
void ConfigureNetworkSimulator()
Reconfigure network simulator parameters on all existing connections.
Definition: Network.cpp:1025
CrowdManager(Context *context)
Construct.
Definition: CrowdManager.cpp:77
Vector3 Column(unsigned j) const
Return matrix column.
Definition: Matrix3.h:272
String GetScancodeName(Scancode scancode) const
Return name of key from scancode.
Definition: Input.cpp:1329
bool GetExecuteConsoleCommands() const
Return whether is executing engine console commands as script code.
Definition: Script.h:97
Vector3 position_
Observer position for interest management.
Definition: Connection.h:346
bool GetAutoResolve() const
Return multisampling autoresolve mode.
Definition: RenderSurface.cpp:102
static unsigned GetTimeSinceEpoch()
Get system time as seconds since 1.1.1970.
Definition: Timer.cpp:167
bool operator!=(const WeakArrayPtr< T > &rhs) const
Test for inequality with another weak array pointer.
Definition: ArrayPtr.h:337
void SetUseRendererStats(bool enable)
Definition: DebugHud.cpp:255
void HandleSceneUpdate(StringHash eventType, VariantMap &eventData)
Handle scene update event.
Definition: ScriptInstance.cpp:838
void getWorldTransform(btTransform &worldTrans) const override
Definition: RigidBody.cpp:147
LuaFunction * GetFunction(int index)
Return Lua function at the given stack index.
Definition: LuaScript.cpp:425
ScreenModeParams screenParams_
Screen mode parameters.
Definition: Graphics.h:135
BlendMode blendMode_
Blend mode.
Definition: ParticleEmitter2D.h:157
void OnNodeSet(Node *node) override
Handle node being assigned.
Definition: RigidBody2D.cpp:548
Vector2 otherBodyAnchor_
Other body anchor.
Definition: ConstraintPulley2D.h:93
lua_State * luaState_
Lua state.
Definition: LuaScriptInstance.h:173
Vector3 previousPosition_
Previous position of tail.
Definition: RibbonTrail.h:245
RenderSurface * renderTarget_
Destination color rendertarget.
Definition: View.h:332
~AutoProfileBlock()
Destruct. End the profiling block.
Definition: Profiler.h:245
RenderSurface * lastCustomDepthSurface_
Last used custom depth render surface.
Definition: View.h:340
float GetTime(const String &name) const
Return animation time position.
Definition: AnimationController.cpp:501
Texture * viewportTextures_[MAX_VIEWPORT_TEXTURES]
Texture(s) for sampling the viewport contents. Allocated if necessary.
Definition: View.h:336
void SetNodeIDsAttr(const VariantVector &value)
Set node IDs attribute.
Definition: StaticModelGroup.cpp:321
float GetDelay() const
Return the delay in seconds for notifying file changes.
Definition: FileWatcher.h:65
float GetLodDistance() const
Return LOD scaled distance from camera.
Definition: Drawable.h:289
void SetupLightVolumeBatch(Batch &batch)
Set up a light volume rendering batch.
Definition: View.cpp:3003
ScrollBar * GetHorizontalScrollBar() const
Definition: ScrollView.h:112
static void RegisterObject(Context *context)
Register object factory.
Definition: DropDownList.cpp:71
unsigned GetFormat(CompressedFormat format) const
Return hardware format for a compressed image format, or 0 if unsupported.
Definition: OGLGraphics.cpp:2064
Text * cancelButtonText_
Cancel button text.
Definition: FileSelector.h:189
RigidBody2D(Context *context)
Construct.
Definition: RigidBody2D.cpp:50
void OnSetEnabled() override
Handle enabled/disabled state change.
Definition: CrowdAgent.cpp:154
unsigned gBufferPassIndex_
Index of the GBuffer pass.
Definition: View.h:421
const TextureFrame * GetTextureFrame(unsigned index) const
Return a texture animation frame, or null if outside range.
Definition: ParticleEffect.cpp:785
static void RegisterObject(Context *context)
Register object factory.
Definition: Cursor.cpp:102
void RemoveComponent(Component *component)
Remove a component from this node.
Definition: Node.cpp:1004
File * SearchResourceDirs(const String &name)
Search FileSystem for file.
Definition: ResourceCache.cpp:1101
Vector< SharedPtr< Component > > components_
Components.
Definition: Node.h:747
bool RecordGesture()
Begin recording a touch gesture. Return true if successful. The E_GESTURERECORDED event (which contai...
Definition: Input.cpp:1214
virtual void GetBatches(PODVector< UIBatch > &batches, PODVector< float > &vertexData, const IntRect ¤tScissor)
Return UI rendering batches.
Definition: UIElement.cpp:343
void GetBatches(PODVector< UIBatch > &batches, PODVector< float > &vertexData, const IntRect ¤tScissor) override
Return UI rendering batches.
Definition: CheckBox.cpp:59
Definition: OctreeQuery.h:96
unsigned GetNumRenderTargets() const
Definition: RenderPath.h:254
ValueAnimation * GetAnimation() const
Return animation.
Definition: ValueAnimationInfo.h:66
Entity * GetEntity() const
Return current entity.
Definition: SpriterInstance2D.h:70
void SetIKEffectorNode(ik_node_t *effectorNode)
Intended to be used only by IKSolver.
Definition: IKEffector.cpp:325
double GetDouble() const
Return double or zero on type mismatch. Ints and floats are converted.
Definition: Variant.h:1165
List< WorkItem * > queue_
Work item prioritized queue for worker threads. Pointers are guaranteed to be valid (point to workIte...
Definition: WorkQueue.h:137
Vector2 layoutFlexScale_
Layout flex scale.
Definition: UIElement.h:836
void MoveRange(unsigned dest, unsigned src, unsigned count)
Move a range of elements within the vector.
Definition: Vector.h:1164
void GetScriptMethods()
Check for supported script methods.
Definition: ScriptInstance.cpp:626
float lastScaledTime_
Last scaled time.
Definition: ValueAnimationInfo.h:96
bool IsWheelHandler() const override
Return whether the element could handle wheel input.
Definition: ScrollView.h:58
HashMap< String, String > appStats_
Hashmap containing application specific stats.
Definition: DebugHud.h:137
void SetTextureAttr(const ResourceRef &value)
Set texture attribute.
Definition: BorderImage.cpp:220
static void RegisterObject(Context *context)
Register object factory. Drawable must be registered first.
Definition: Light.cpp:120
void OnWindowResized()
Window was resized through user interaction. Called by Input subsystem.
Definition: OGLGraphics.cpp:2209
bool tripleBuffer_
Whether the triple bufferization is used.
Definition: Graphics.h:95
void EndFrame()
End profiling frame and update interval and total values.
Definition: Profiler.h:91
bool LoadXML(const XMLElement &source) override
Load from XML data. Return true if successful.
Definition: UnknownComponent.cpp:107
void SetMinParticleSize(const Vector2 &size)
Definition: ParticleEffect.cpp:530
void SetUTF8FromLatin1(const char *str)
Construct UTF8 content from Latin1.
Definition: Str.cpp:733
void CleanupShaderPrograms(ShaderVariation *variation)
Clean up shader parameters when a shader variation is released or destroyed.
Definition: OGLGraphics.cpp:2322
const Color & GetStartColorVariance() const
Return start color variance.
Definition: ParticleEffect2D.h:179
void BuildHull(const PODVector< Vector3 > &vertices)
Build the convex hull from vertices.
Definition: CollisionShape.cpp:282
static void ConstructElements(T *dest, unsigned count)
Construct elements using default ctor.
Definition: Vector.h:544
void SetLinearRestThreshold(float threshold)
Definition: RigidBody.cpp:318
IntVector2 Max() const
Return right-bottom corner position.
Definition: Rect.h:457
DropDownList * interpreters_
Interpreter drop down list.
Definition: Console.h:172
void GetResources(PODVector< Resource * > &result, StringHash type) const
Return all loaded resources of a specific type.
Definition: ResourceCache.cpp:720
void SetConstantForce(const Vector3 &force)
Definition: ParticleEffect.cpp:500
Vector< UIElement * > dragElementsConfirmed_
Confirmed drag elements cache.
Definition: UI.h:476
unsigned queryFilterType_
Agent's query filter type, it is an index to the query filter buffer configured in Detour crowd manag...
Definition: CrowdAgent.h:255
float lastTimeStep_
Last scene timestep.
Definition: ParticleEmitter.h:152
StringVector columns_
Column headers from the resultset.
Definition: ODBCResult.h:66
b2RopeJointDef jointDef_
Box2D joint def.
Definition: ConstraintRope2D.h:70
const Vector< AnimationTriggerPoint > & GetTriggers() const
Return animation trigger points.
Definition: Animation.h:194
void ApplyForce(const Vector2 &force, const Vector2 &point, bool wake)
Apply force.
Definition: RigidBody2D.cpp:329
PODVector< ProfilerBlock * > children_
Child blocks.
Definition: Profiler.h:151
void OnDeviceLost()
Mark the GPU resource destroyed on graphics context destruction. Only used on OpenGL.
Definition: OGLRenderSurface.cpp:88
int dragElementsCount_
Number of elements in dragElements_.
Definition: UI.h:470
Matrix3 ToMatrix3() const
Return the combined rotation and scaling matrix.
Definition: Matrix4.h:520
bool deferredSupport_
Deferred rendering support flag.
Definition: Graphics.h:794
bool SetScreenMode(int width, int height, const ScreenModeParams ¶ms, bool maximize=false)
Definition: OGLGraphics.cpp:332
void SetHoverColor(const Color &color)
Definition: UISelectable.cpp:64
InterpolationMode GetInterpolationMode() const
Definition: SplinePath.h:80
Crowd manager scene component. Should be added only to the root scene node.
Definition: CrowdManager.h:60
void ApplyNodeWorldScale() override
Apply node world scale.
Definition: CollisionEdge2D.cpp:83
const Vector2 & GetVertex(unsigned index) const
Return vertex.
Definition: CollisionChain2D.h:64
void GetChildrenWithTagRecursive(PODVector< UIElement * > &dest, const String &tag) const
Return child elements with a specific tag recursively.
Definition: UIElement.cpp:1730
void SetSerializeParticles(bool enable)
Definition: ParticleEmitter.cpp:306
DebugRenderer(Context *context)
Construct.
Definition: DebugRenderer.cpp:50
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:125
float GetFinishParticleSize() const
Return finish particle size.
Definition: ParticleEffect2D.h:197
bool WriteBoundingBox(const BoundingBox &value)
Write a bounding box.
Definition: Serializer.cpp:174
BatchGroup(const Batch &batch)
Construct from a batch.
Definition: Batch.h:143
void BeginContact(b2Contact *contact) override
Called when two fixtures begin to touch.
Definition: PhysicsWorld2D.cpp:107
float doubleClickInterval_
Seconds between clicks to register a double click.
Definition: UI.h:418
void UpdatePatchLod(TerrainPatch *patch)
Update patch based on LOD and neighbor LOD.
Definition: Terrain.cpp:763
void OnNodeSet(Node *node) override
Handle node being assigned.
Definition: Text3D.cpp:508
HashMap< String, String > nameToValueMapping_
Property name to property value mapping.
Definition: TileMapDefs2D.h:123
void SetNumBillboards(unsigned num)
Definition: BillboardSet.cpp:261
virtual void OnSetEditable()
React to editable status change.
Definition: UIElement.h:199
unsigned totalSize_
Package file total size.
Definition: PackageFile.h:102
void DefineSprite(const String &name, const IntRect &rectangle, const Vector2 &hotSpot=Vector2(0.5f, 0.5f), const IntVector2 &offset=IntVector2::ZERO)
Define sprite.
Definition: SpriteSheet2D.cpp:97
T * GetParentDerivedComponent(bool fullTraversal=false) const
Return first component derived from class in the parent node, or if fully traversing then the first n...
Definition: Node.h:812
UniquePtr< btBroadphaseInterface > broadphase_
Bullet collision broadphase.
Definition: PhysicsWorld.h:324
const XPathResultSet * GetXPathResultSet() const
Return XPath query result set.
Definition: XMLElement.h:299
bool operator!=(const PODVector< T > &rhs) const
Test for inequality with another vector.
Definition: Vector.h:795
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:1724
unsigned GetStencilWriteMask() const
Return stencil write bitmask.
Definition: Graphics.h:604
const String & GetStartBoneName(const String &name) const
Return animation start bone name, or empty string if no such animation.
Definition: AnimationController.cpp:495
SLNet::SystemAddress * natPunchServerAddress_
NAT punchtrough server information.
Definition: Network.h:196
void SetLayer(unsigned char layer)
Definition: AnimationState.cpp:364
bool LoadJSON(const JSONValue &source)
Load from JSON data. Return true if successful.
Definition: ObjectAnimation.cpp:131
void SetNodeAnimationStatesAttr(const VariantVector &value)
Set node animation states attribute.
Definition: AnimationController.cpp:712
WeakPtr(const WeakPtr< U > &rhs) noexcept
Copy-construct from another weak pointer allowing implicit upcasting.
Definition: Ptr.h:298
void SetBidirectional(bool enabled)
Definition: OffMeshConnection.cpp:95
RenderPath * GetDefaultRenderPath() const
Definition: Renderer.cpp:559
void SendInputFocusEvent()
Send an input focus or window minimization change event.
Definition: Input.cpp:1737
b2GearJointDef jointDef_
Box2D joint def.
Definition: ConstraintGear2D.h:70
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:304
@ SMOOTH_POSITION
Ongoing position smoothing.
Definition: SmoothedTransform.h:37
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:76
unsigned Read(void *dest, unsigned size) override
Read bytes from the memory area. Return number of bytes actually read.
Definition: MemoryBuffer.cpp:62
void SetDampingRatio(float dampingRatio)
Definition: ConstraintWeld2D.cpp:82
void SetLayoutFlexScale(const Vector2 &scale)
Definition: UIElement.cpp:1072
UniquePtr< btCollisionShape > shape_
Bullet collision shape.
Definition: CollisionShape.h:313
ShaderVariation * pixelShader_
Pixel shader in use.
Definition: Graphics.h:840
Material * GetMaterial(unsigned index=0) const
Definition: CustomGeometry.cpp:723
bool WriteVLE(unsigned value)
Write a variable-length encoded unsigned integer, which can use 29 bits maximum.
Definition: Serializer.cpp:365
bool HasEventHandler(StringHash eventType) const override
Return whether has subscribed to an event.
Definition: ScriptFile.cpp:273
void Commit()
Mark for bounding box and vertex buffer update. Call after modifying the billboards.
Definition: BillboardSet.cpp:346
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
static const VariantVector emptyVariantVector
Empty variant vector.
Definition: Variant.h:1396
void UpdateWheelTransform(int wheel, bool interpolated)
Update transform for particular wheel.
Definition: RaycastVehicle.cpp:410
float mobileShadowBiasAdd_
Mobile platform shadow depth bias addition.
Definition: Renderer.h:639
void OnAttributeAnimationRemoved() override
Handle attribute animation removed.
Definition: Component.cpp:232
const PODVector< unsigned char > & GetNetParentAttr() const
Return network parent attribute.
Definition: Node.cpp:1524
void DrawCircle(const b2Vec2 ¢er, float32 radius, const b2Color &color) override
Draw a circle.
Definition: PhysicsWorld2D.cpp:212
void SetSearchPackagesFirst(bool value)
Definition: ResourceCache.h:134
void RemoveManualDrawable(Drawable *drawable)
Remove a manually added drawable.
Definition: Octree.cpp:485
StringHash hash_
Animation resource name hash.
Definition: AnimationController.h:59
Vector< SharedPtr< ShaderVariation > > vertexShaders_
Vertex shaders.
Definition: Technique.h:204
void OnSceneSet(Scene *scene) override
Handle node being assigned.
Definition: RibbonTrail.cpp:420
ConstantBuffer * bufferPtr_
Constant buffer pointer. Defined only in shader programs.
Definition: ShaderVariation.h:77
virtual void OnMarkedDirty(Node *node)
Handle scene node transform dirtied.
Definition: Component.cpp:246
void * GetReadOnlyView() const
Return Direct3D11 read-only depth-stencil view. May be null if not applicable. Not valid on OpenGL.
Definition: RenderSurface.h:125
SharedPtr< VertexBuffer > debugVertexBuffer_
UI debug geometry vertex buffer.
Definition: UI.h:412
static void RegisterObject(Context *context)
Register object factory.
Definition: BillboardSet.cpp:110
void SetMaxForce(float maxForce)
Definition: ConstraintMotor2D.cpp:89
Vector(const T *data, unsigned size)
Construct with initial data.
Definition: Vector.h:71
virtual void OnSceneSet(Scene *scene)
Handle scene being assigned. This may happen several times during the component's lifetime....
Definition: Component.cpp:242
void SetEmitting(bool enable)
Definition: ParticleEmitter.cpp:293
bool enableAnchor_
Use min/max anchor & min/max offset for position & size instead of setting explicitly.
Definition: UIElement.h:897
bool nodeIDsDirty_
Whether nodes have been manipulated by the API and node ID attribute should be refreshed.
Definition: StaticModelGroup.h:98
ResourceRef GetSoundAttr() const
Return sound attribute.
Definition: SoundSource.cpp:498
static ResourceRef SaveToResourceRef(Sprite2D *sprite)
Save sprite to ResourceRef.
Definition: Sprite2D.cpp:190
bool Merge(const UIBatch &batch)
Merge with another batch.
Definition: UIBatch.cpp:405
HashMap< String, SharedPtr< AttributeAnimationInfo > > attributeAnimationInfos_
Attribute animation infos.
Definition: Animatable.h:159
TerrainPatch * GetEastPatch() const
Return east neighbor patch.
Definition: TerrainPatch.h:98
bool SetString(const String &name, const String &value)
Set a string attribute.
Definition: XMLElement.cpp:407
bool worldBoundingBoxDirty_
Bounding box dirty flag.
Definition: Drawable.h:363
void PreloadResourcesJSON(const JSONValue &value)
Preload resources from a JSON scene or object prefab file.
Definition: Scene.cpp:1447
bool ResizeInstancingBuffer(unsigned numInstances)
Ensure sufficient size of the instancing vertex buffer. Return true if successful.
Definition: Renderer.cpp:1346
void UpdateGeometry(const FrameInfo &frame) override
Prepare geometry for rendering. Called from a worker thread if possible (no GPU update).
Definition: Renderer2D.cpp:129
PODVector< SoundSource * > soundSources_
Sound sources.
Definition: Audio.h:159
void OnSetEnabled() override
Handle enabled/disabled state change.
Definition: Constraint2D.cpp:74
bool completing_
Completing work in the main thread flag.
Definition: WorkQueue.h:147
unsigned char * GetModifiableData()
Return non-const data.
Definition: VectorBuffer.h:65
void OnWorldBoundingBoxUpdate() override
Recalculate the world-space bounding box.
Definition: TerrainPatch.cpp:273
float operator[](unsigned index) const
Return const value by index.
Definition: Vector4.h:165
void SetVSMShadowParameters(float minVariance, float lightBleedingReduction)
Set shadow parameters when VSM is used, they help to reduce light bleeding. LightBleeding must be in ...
Definition: Renderer.cpp:419
bool IsSet(unsigned index) const
Return if bit is set.
Definition: ReplicationState.h:99
void StaticCast(const WeakArrayPtr< U > &rhs)
Perform a static cast from a weak array pointer of another type.
Definition: ArrayPtr.h:349
HashMap< int, VectorBuffer > outgoingBuffer_
Outgoing packet buffer which can contain multiple messages.
Definition: Connection.h:372
static const void * globalParameterSources[MAX_SHADER_PARAMETER_GROUPS]
Remembered global shader parameter sources for constant buffer mode.
Definition: OGLShaderProgram.h:114
IntVector2 GetTotalGlyphOffset(float pointSize) const
Return the total effective offset for a point size.
Definition: Font.cpp:181
void LoadJSONFile(const String &name, const String &language=String::EMPTY)
Load strings from JSONFile. The file should be UTF8 without BOM.
Definition: Localization.cpp:155
bool BeginFrame()
Begin frame rendering. Return true if device available and can render.
Definition: OGLGraphics.cpp:587
virtual void Setup()
Setup before engine initialization. This is a chance to eg. modify the engine parameters....
Definition: Application.h:44
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
void SetIKSolver(IKSolver *solver)
Intended to be used only by IKSolver.
Definition: IKEffector.cpp:343
void Push(const JSONValue &value)
Add JSON value at end.
Definition: JSONValue.cpp:202
void draw3dText(const btVector3 &location, const char *textString) override
Draw physics debug 3D text. Not implemented.
Definition: PhysicsWorld.cpp:252
AttributeAnimationInfo * GetAttributeAnimationInfo(const String &name) const
Return attribute animation info.
Definition: Animatable.cpp:538
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:931
float GetMaxNetworkAngularVelocity() const
Return maximum angular velocity for network replication.
Definition: PhysicsWorld.h:255
void Erase(unsigned pos, unsigned length=1)
Erase a substring.
Definition: Str.cpp:392
float GetAxisPosition(unsigned index) const
Definition: Input.h:113
unsigned rawVertexSize_
Raw vertex data override size.
Definition: Geometry.h:152
static String GetTextureUnitName(TextureUnit unit)
Return name for texture unit.
Definition: Material.cpp:1232
void RemoveChild(UIElement *element, unsigned index=0)
Remove a child element. Starting search at specified index if provided.
Definition: UIElement.cpp:1343
ConstantBufferMap allConstantBuffers_
Constant buffer search map.
Definition: OGLGraphicsImpl.h:142
const Color & GetSelectionColor() const
Definition: UISelectable.h:56
unsigned char adaptiveRings
adaptive
Definition: CrowdManager.h:55
static void RegisterObject(Context *context)
Register object factory.
Definition: ProgressBar.cpp:59
void ResetBuffers()
Remove all occlusion and screen buffers.
Definition: Renderer.cpp:1905
void SetModalFrameColor(const Color &color)
Definition: Window.cpp:305
ResourceRefList(StringHash type)
Construct with type only.
Definition: Variant.h:143
bool specularLighting_
Specular lighting flag.
Definition: Renderer.h:657
float tangentialAcceleration_
Tangential acceleration.
Definition: ParticleEmitter2D.h:62
float rotatePerSecondVariance_
Rotate per second variance.
Definition: ParticleEffect2D.h:318
WeakPtr< NavigationMesh > navigationMesh_
NavigationMesh for which the crowd was created.
Definition: CrowdManager.h:195
String pixelShaderDefines_
Pixel shader defines.
Definition: Material.h:324
void SetVertexAttribDivisor(unsigned location, unsigned divisor)
Set vertex attrib divisor. No-op if unsupported. Used only on OpenGL.
Definition: OGLGraphics.cpp:3366
unsigned numShadowCameras_
Number of temporary shadow cameras in use.
Definition: Renderer.h:645
void SetOtherAxis(const Vector3 &axis)
Definition: Constraint.cpp:239
void DrawDebugGeometry(DebugRenderer *debug, bool depthTest) override
Render debug information.
Definition: Obstacle.cpp:150
Variant(RefCounted *value)
Construct from a RefCounted pointer. The object will be stored internally in a WeakPtr so that its ex...
Definition: Variant.h:494
RenderSurfaceUpdateMode updateMode_
Update mode for viewports.
Definition: RenderSurface.h:176
float compressedLength_
Compressed sound length.
Definition: Sound.h:142
Quaternion Rotation() const
Return the rotation part.
Definition: Matrix4.h:558
unsigned char blendIndices_[4]
Blend indices.
Definition: DecalSet.h:72
static void RegisterObject(Context *context)
Register object factory.
Definition: Image.cpp:261
void SetAttributeAnimationWrapMode(const String &name, WrapMode wrapMode)
Set attribute animation wrap mode.
Definition: Animatable.cpp:392
Base class for intrusively reference-counted objects. These are noncopyable and non-assignable.
Definition: RefCounted.h:59
@ IM_SPLINE
Cardinal spline interpolation, default tension value is 0.5f. For more information please refer to ht...
Definition: ValueAnimation.h:44
virtual bool SaveFile(const String &fileName) const
Definition: Resource.cpp:93
VariantMap engineParameters_
Engine parameters map.
Definition: Application.h:64
static void RegisterObject(Context *context)
Register object factory.
Definition: RigidBody.cpp:94
unsigned frameCount_
Calls on the previous frame.
Definition: Profiler.h:157
void SetRotationDecay(float decay)
A factor with which to control the target rotation influence of the next segments down the chain.
Definition: IKEffector.cpp:206
TileMapObject2D * GetObject(unsigned index) const
Return tile map object (for object group only).
Definition: TileMapLayer2D.cpp:311
void Reserve(unsigned newCapacity)
Set new capacity.
Definition: Vector.h:1065
void HandleLuaScriptEvent(StringHash eventType, VariantMap &eventData)
Handle script event in Lua script.
Definition: LuaScriptEventInvoker.cpp:58
void OnSceneSet(Scene *scene) override
Handle scene being assigned.
Definition: PhysicsWorld2D.cpp:705
void StoreShaders(ShaderVariation *vs, ShaderVariation *ps)
Collect a shader combination. Called by Graphics when shaders have been set.
Definition: ShaderPrecache.cpp:78
AnimationStateTrack()
Construct with defaults.
Definition: AnimationState.cpp:36
void ExceptionCallback(asIScriptContext *context)
Handle a script exception.
Definition: Script.cpp:311
Vector3 Project(const Vector3 &point) const
Project a point on the ray.
Definition: Ray.h:70
void UpdateGeometry(const FrameInfo &frame) override
Prepare geometry for rendering. Called from a worker thread if possible (no GPU update).
Definition: BillboardSet.cpp:225
const Vector< AttributeInfo > * GetNetworkAttributes(StringHash type) const
Return network replication attribute descriptions for an object type, or null if none defined.
Definition: Context.h:177
float GetDepthConstantBias() const
Return depth constant bias.
Definition: Graphics.h:559
float GetDuration() const
Return duration.
Definition: ParticleEffect2D.h:203
void PrepareNetworkUpdate()
Prepare network update by comparing attributes and marking replication states dirty as necessary.
Definition: Node.cpp:1685
static void ClearGlobalParameterSource(ShaderParameterGroup group)
Clear a global parameter source when constant buffers change.
Definition: OGLShaderProgram.cpp:415
void CleanupGeometryCache()
Clean up the geometry cache.
Definition: PhysicsWorld.cpp:771
IntVector2 dragBeginCursor_
Mouse position at drag begin.
Definition: Window.h:173
void PrepareViewRender()
Prepare for rendering of a new view.
Definition: Renderer.cpp:1526
unsigned LoadGestures(Deserializer &source)
Load touch gestures from a file. Return number of loaded gestures, or 0 on failure.
Definition: Input.cpp:1238
Viewport(Context *context)
Construct with defaults.
Definition: Viewport.cpp:39
SharedPtr< Node > rootNode_
Root node for tile map layer.
Definition: TileMap2D.h:87
String GetUserDocumentsDir() const
Definition: FileSystem.cpp:723
Vector< SharedPtr< IndexBuffer > > indexBuffers_
Index buffers.
Definition: Model.h:222
SharedPtr< Text > memoryText_
Memory stats text.
Definition: DebugHud.h:135
Sprite2D * GetTileSprite() const
Definition: TileMapDefs2D.cpp:203
static unsigned GetPassIndex(const String &passName)
Return a pass type index by name. Allocate new if not used yet.
Definition: Technique.cpp:529
const PODVector< unsigned > & GetSelections() const
Definition: ListView.h:138
void UpdateCollisions()
Refresh collisions only without updating dynamics.
Definition: PhysicsWorld.cpp:308
bool BeginLoad(Deserializer &source) override
Load resource from stream. May be called from a worker thread. Return true if successful.
Definition: Image.cpp:266
void OnSceneLoadFailed()
Handle scene load failure on the server or client.
Definition: Connection.cpp:1574
WeakPtr< Node > endPoint_
Endpoint node.
Definition: OffMeshConnection.h:88
unsigned GetNumNetworkComponents() const
Return number of non-local components.
Definition: Node.cpp:1335
float GetOccluderSizeThreshold() const
Definition: Renderer.h:382
const JSONObject & GetObject() const
Return JSON object value.
Definition: JSONValue.h:218
bool SetAttribute(unsigned index, const Variant &value)
Definition: Serializable.cpp:588
void SetNetAnimationsAttr(const PODVector< unsigned char > &value)
Set animations attribute for network replication.
Definition: AnimationController.cpp:612
TerrainPatch * GetNeighborPatch(int x, int z) const
Return patch by patch coordinates including neighbor terrains.
Definition: Terrain.cpp:541
void OnMarkedDirty(Node *node) override
Handle node transform being dirtied.
Definition: Drawable2D.cpp:125
unsigned colorIndex_
Current color animation index.
Definition: ParticleEmitter.h:48
const PODVector< Vector3 > & GetGeometryCenters() const
Return geometry center points.
Definition: Model.h:181
void RemoveDrawable(Drawable2D *drawable)
Remove Drawable2D.
Definition: Renderer2D.cpp:235
bool Erase(T *element)
Erase an element. Return true if successful.
Definition: LinkedList.h:119
void SetHorizontalAlignment(HorizontalAlignment align)
Definition: UIElement.cpp:676
void PrecalculateLevels()
Precalculate the mip levels. Used by asynchronous texture loading.
Definition: Image.cpp:2289
void SetVar(StringHash key, const Variant &value)
Set a user variable.
Definition: UIElement.cpp:1439
bool hardwareShadowSupport_
Hardware shadow map depth compare support flag.
Definition: Graphics.h:806
dtCrowd * GetCrowd() const
Get the internal detour crowd component.
Definition: CrowdManager.h:182
LuaScriptEventInvoker(Context *context)
Construct.
Definition: LuaScriptEventInvoker.cpp:34
void SetAnimationAttr(const String &name)
Definition: AnimatedSprite2D.cpp:227
Vector< SharedPtr< Node > > nodes_
Tile node or image nodes.
Definition: TileMapLayer2D.h:136
SharedPtr< IndexBuffer > indexBuffer_
Index buffer.
Definition: DecalSet.h:234
void SetAsyncLoadState(AsyncLoadState newState)
Set the asynchronous loading state. Called by ResourceCache. Resources in the middle of asynchronous ...
Definition: Resource.cpp:115
void OnKey(Key key, MouseButtonFlags buttons, QualifierFlags qualifiers) override
React to a key press.
Definition: Button.cpp:147
void SetAngularRestThreshold(float threshold)
Definition: RigidBody.cpp:356
const Vector2 & GetMinParticleSize() const
Definition: ParticleEffect.h:335
SharedPtr< Texture2D > defaultLightRamp_
Default range attenuation texture.
Definition: Renderer.h:561
char * buffer_
String buffer, point to &endZero if buffer is not allocated.
Definition: Str.h:555
const Vector2 & GetAnchor() const
Definition: ConstraintWeld2D.h:55
void ScrollSmooth(float timeStep)
Handle the scroll smoothing.
Definition: ScrollView.cpp:624
void ReleaseFaces()
Release font faces and recreate them next time when requested. Called when font textures lost or glob...
Definition: Font.cpp:187
void ExecuteRenderPathCommands()
Execute render commands.
Definition: View.cpp:1450
void SetProjectionOffset(const Vector2 &offset)
Definition: Camera.cpp:209
void SetBoundingBox(const BoundingBox &box)
Set local-space bounding box.
Definition: TerrainPatch.cpp:232
View * GetView() const
Return the internal rendering structure. May be null if the viewport has not been rendered yet.
Definition: Viewport.cpp:132
const Vector2 & GetAnchor() const
Definition: ConstraintPrismatic2D.h:70
Matrix3 RotationMatrix() const
Return the rotation matrix with scaling removed.
Definition: Matrix3x4.h:591
KeyValue & operator*() const
Dereference the pair.
Definition: HashMap.h:152
Vector4(const float *data) noexcept
Construct from a float array.
Definition: Vector4.h:65
void SetOwnerConstraint(Constraint2D *constraint)
Definition: ConstraintGear2D.cpp:53
void PostUpdate(float timeStep) override
Perform variable step post-update.
Definition: RaycastVehicle.cpp:303
bool OnDragDropFinish(UIElement *source) override
React to drag and drop finish. Return true to signal that the drop was accepted.
Definition: LineEdit.cpp:178
Object animation class, an object animation include one or more attribute animations and theirs wrap ...
Definition: ObjectAnimation.h:37
Iterator DoEraseElements(unsigned pos, unsigned count)
Erase elements from the vector.
Definition: Vector.h:663
void Initialize(const BoundingBox &box)
Initialize bounding box.
Definition: Octree.cpp:221
IntVector2 dragBeginSize_
Original size at drag begin.
Definition: Window.h:177
static const unsigned MIN_CAPACITY
Initial dynamic allocation size.
Definition: Str.h:518
bool HasTag(const String &tag) const
Return whether has a specific tag.
Definition: Node.cpp:1378
Vertex element description for arbitrary vertex declarations.
Definition: GraphicsDefs.h:183
void FindPath(PODVector< 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:405
void NodeRemoved(Node *node)
Node removed. Remove from ID map.
Definition: Scene.cpp:979
void RemoveAllMetadata()
Remove all metadata variables.
Definition: Resource.cpp:146
float GetDampingForce() const
Definition: ParticleEffect.h:315
void SetTraversalMode(TraversalMode traversalMode)
Definition: UIElement.cpp:1449
Vector< WeakPtr< TerrainPatch > > patches_
Terrain patches.
Definition: Terrain.h:302
void SetShaderCacheDir(const String &path)
Definition: Graphics.cpp:378
void SetModel(Model *model, bool createBones=true)
Set model.
Definition: AnimatedModel.cpp:332
unsigned char setTimeRev_
Set time command revision.
Definition: AnimationController.h:77
static void RegisterObject(Context *context)
Register object factory.
Definition: ConstraintMotor2D.cpp:46
void OnSetEnabled() override
Handle enabled/disabled state change.
Definition: CollisionShape.cpp:503
void ToggleEnabled(const String &tag)
Toggle enabled state of commands and rendertargets by tag.
Definition: RenderPath.cpp:412
StringVector ReadStringVector()
Read a string vector.
Definition: Deserializer.cpp:406
bool SetMatrix3(const String &name, const Matrix3 &value)
Set a Matrix3 attribute.
Definition: XMLElement.cpp:548
@ TM_DEPTH_FIRST
Traverse through each child and its children immediately after in sequence.
Definition: UIElement.h:101
float GetMinZ() const
Return the minimum view-space depth.
Definition: Drawable.h:310
void Remove(Object *object)
Remove receiver. Leave holes during send, which requires later cleanup.
Definition: Context.cpp:86
WeakArrayPtr(const WeakArrayPtr< T > &rhs)
Copy-construct from another weak array pointer.
Definition: ArrayPtr.h:242
void AttemptNATPunchtrough(const String &guid, Scene *scene, const VariantMap &identity=Variant::emptyVariantMap)
Attempt to connect to NAT server.
Definition: Network.cpp:492
void SetTexture(TextureUnit unit, Texture *texture)
Definition: Material.cpp:1032
void SetOtherBodyGroundAnchor(const Vector2 &groundAnchor)
Definition: ConstraintPulley2D.cpp:75
bool textSelectable_
Text selectable flag.
Definition: LineEdit.h:172
VertexElementSemantic semantic_
Semantic of element.
Definition: GraphicsDefs.h:214
Color(float r, float g, float b) noexcept
Construct from RGB values and set alpha fully opaque.
Definition: Color.h:75
static JSONNumberType GetNumberTypeFromName(const String &typeName)
Return a number type from name; NaN if unrecognized.
Definition: JSONValue.cpp:643
String GetAttributeUpper(const String &name) const
Return attribute in lowercase, or empty if missing.
Definition: XMLElement.cpp:726
const TmxImageLayer2D * imageLayer_
Image layer.
Definition: TileMapLayer2D.h:130
void SetClipPlaneAttr(const Vector4 &value)
Set clipping plane attribute.
Definition: Camera.cpp:621
BlendMode GetBlendMode() const
Return blending mode.
Definition: Graphics.h:547
bool SetWeight(const String &name, float weight)
Set animation weight. Return true on success.
Definition: AnimationController.cpp:359
Polyhedron(const Vector< PODVector< Vector3 > > &faces)
Construct from a list of faces.
Definition: Polyhedron.h:52
Vector< String > languages_
Language names.
Definition: Localization.h:74
bool CreateRenderBuffer(unsigned width, unsigned height, unsigned format, int multiSample)
Create renderbuffer that cannot be sampled as a texture. Only used on OpenGL.
Definition: OGLRenderSurface.cpp:52
unsigned long long GetBufferHash(unsigned streamIndex)
Return buffer hash for building vertex declarations. Used internally.
Definition: VertexBuffer.h:119
void AddTags(const String &tags, char separator=';')
Add tags with the specified separator (; by default).
Definition: Node.cpp:378
PODVector< unsigned > layerMemoryUse_
Memory use per layer.
Definition: Texture2DArray.h:93
Color finishColor_
Finish color.
Definition: ParticleEffect2D.h:290
unsigned Read(void *dest, unsigned size) override
Read response data from the HTTP connection and return number of bytes actually read....
Definition: HttpRequest.cpp:209
unsigned enabledVertexAttributes_
Enabled vertex attributes bitmask.
Definition: OGLGraphicsImpl.h:118
void SetPositionAttr(int value)
Set sound position attribute.
Definition: SoundSource.cpp:492
bool sRGBWriteSupport_
sRGB conversion on write support flag.
Definition: Graphics.h:812
void SetSoundAttr(const ResourceRef &value)
Set sound attribute.
Definition: SoundSource.cpp:466
float speedVariance_
Speed variance.
Definition: ParticleEffect2D.h:266
HashSet< Pair< ShaderVariation *, ShaderVariation * > > usedPtrCombinations_
Already encountered shader combinations, pointer version for fast queries.
Definition: ShaderPrecache.h:58
void Replace(char replaceThis, char replaceWith, bool caseSensitive=true)
Replace all occurrences of a character.
Definition: Str.cpp:230
~Audio() override
Destruct. Terminate the audio thread and free the audio buffer.
Definition: Audio.cpp:69
void AddReplicationState(ComponentReplicationState *state)
Add a replication state that is tracking this component.
Definition: Component.cpp:160
bool scaled_
Scale affects billboard scale flag.
Definition: BillboardSet.h:184
unsigned writePosition_
Read buffer write cursor.
Definition: HttpRequest.h:111
@ TARGET_ROTATIONS
When enabled, the effector will try to match the target's rotation as well as the effectors position....
Definition: IKSolver.h:85
bool SaveGesture(Serializer &dest, unsigned gestureID)
Save a specific in-memory touch gesture to a file. Return true if successful.
Definition: Input.cpp:1232
virtual void OnAttributeAnimationRemoved()=0
Handle attribute animation removed.
float scrollSnapEpsilon_
Scroll snap epsilon.
Definition: ScrollView.h:204
const Variant & GetShaderParameter(const String &name) const
Definition: RenderPath.cpp:293
virtual void ProcessRayQuery(const RayOctreeQuery &query, PODVector< RayQueryResult > &results)
Process octree raycast. May be called from a worker thread.
Definition: Drawable.cpp:118
bool IsValid() const
Return animation is valid.
Definition: ValueAnimation.cpp:334
unsigned historyRows_
Command history maximum rows.
Definition: Console.h:189
void SetPosition(const Vector3 &position)
Definition: Connection.cpp:230
ConstraintPulley2D(Context *context)
Construct.
Definition: ConstraintPulley2D.cpp:37
const PListValueMap & GetRoot() const
Return root.
Definition: PListFile.h:159
void UnregisterAllVars()
Clear all registered node user variable hash reverse mappings.
Definition: Scene.cpp:701
bool GetScrollBarsAutoVisible() const
Definition: ScrollView.h:124
void SetSpriteTextureEdgeOffset(float offset)
Definition: TmxFile2D.cpp:590
SharedPtr< IndexBuffer > indexBuffer_
Index buffer.
Definition: Renderer2D.h:118
void SetVerticesAttr(const PODVector< unsigned char > &value)
Set vertices attribute.
Definition: CollisionChain2D.cpp:95
void RecreateFixture()
Recreate fixture.
Definition: CollisionBox2D.cpp:110
CullMode shadowCullMode_
Culling mode for shadow rendering.
Definition: Material.h:328
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:127
void SetVertices(const Vector2 &vertex1, const Vector2 &vertex2)
Set vertices.
Definition: CollisionEdge2D.cpp:71
Vector< Variant > previousValues_
Previous network attribute values.
Definition: ReplicationState.h:128
WeakPtr< Scene > scene_
Extra weak pointer to scene to allow for cleanup in case the world is destroyed before other componen...
Definition: PhysicsWorld2D.h:257
PODVector< unsigned > morphRangeCounts_
Vertex buffer morph range vertex count.
Definition: Model.h:234
void Push(const Vector< T > &vector)
Add another vector at the end.
Definition: Vector.h:275
Context * GetContext() const
Return execution context.
Definition: Object.h:148
Quaternion Normalized() const
Return normalized to unit length.
Definition: Quaternion.h:339
void ProcessRayQuery(const RayOctreeQuery &query, PODVector< RayQueryResult > &results) override
Process octree raycast. May be called from a worker thread.
Definition: RibbonTrail.cpp:128
static const IntVector3 FORWARD_UP_RIGHT
(2, 1, 0) coordinate system.
Definition: RaycastVehicle.h:189
bool GetUsedVertexRange(unsigned start, unsigned count, unsigned &minVertex, unsigned &vertexCount)
Return used vertex range from index range.
Definition: IndexBuffer.cpp:92
BoneCollisionShapeFlags collisionMask_
Supported collision types.
Definition: Skeleton.h:77
Matrix3(const float *data) noexcept
Construct from a float array.
Definition: Matrix3.h:68
void SetTechnique(unsigned index, Technique *tech, MaterialQuality qualityLevel=QUALITY_LOW, float lodDistance=0.0f)
Set technique.
Definition: Material.cpp:926
IntVector2 absoluteOffset_
Absolute position adjustment for glyphs.
Definition: Font.h:110
void SetMouseModeAbsolute(SDL_bool enable)
Set SDL mouse mode absolute.
Definition: Input.cpp:829
unsigned shadersChangedFrameNumber_
Frame number on which shaders last changed.
Definition: Renderer.h:651
CursorShapeInfo()
Construct with defaults.
Definition: Cursor.h:58
const String & GetName() const override
Return the pipe name.
Definition: NamedPipe.h:58
Iterator Insert(const Pair< T, U > &pair)
Insert a pair. Return an iterator to it.
Definition: HashMap.h:369
void CleanupConnection(Connection *connection)
Clean up all references to a network connection that is about to be removed.
Definition: Component.cpp:214
bool SaveJSON(Serializer &dest, const String &indentation="\t") const
Save to a JSON file. Return true if successful.
Definition: Scene.cpp:285
bool WriteVariantVector(const VariantVector &value)
Write a variant vector.
Definition: Serializer.cpp:335
XMLElement GetRoot(const String &name=String::EMPTY)
Return the root element, with optionally specified name. Return null element if not found.
Definition: XMLFile.cpp:171
bool SetInt64(const String &name, long long value)
Set a long long integer attribute.
Definition: XMLElement.cpp:377
void OnSetAttribute(const AttributeInfo &attr, const Variant &src) override
Handle attribute write access.
Definition: LuaScriptInstance.cpp:95
bool discardLock_
Discard lock flag. Used by OpenGL only.
Definition: IndexBuffer.h:122
RenderSurface * GetRenderSurfaceFromTexture(Texture *texture, CubeMapFace face=FACE_POSITIVE_X)
Helper function to get the render surface from a texture. 2D textures will always return the first fa...
Definition: View.cpp:3155
bool blockEvents_
Block object from sending and receiving any events.
Definition: Object.h:201
virtual bool BeginLoad(Deserializer &source)
Load resource from stream. May be called from a worker thread. Return true if successful.
Definition: Resource.cpp:69
ShadowMapFilter shadowMapFilter_
Function pointer of shadow map filter.
Definition: Renderer.h:581
bool HasPass(unsigned passIndex) const
Return whether has a pass.
Definition: Technique.h:254
Entity * entity_
Current entity.
Definition: SpriterInstance2D.h:97
float rotationMax_
Particle rotation angle maximum.
Definition: ParticleEffect.h:477
void OnAttributeAnimationAdded() override
Handle attribute animation added.
Definition: Component.cpp:226
const Controls & GetControls() const
Return the client controls of this connection.
Definition: Connection.h:188
TextureAddressMode GetAddressMode(TextureCoordinate coord) const
Definition: Texture.h:108
String soundType_
SoundSource type, determines the master gain group.
Definition: SoundSource.h:146
void ApplyAngularImpulse(float impulse, bool wake)
Apply angular impulse.
Definition: RigidBody2D.cpp:359
bool SetKeyFrame(float time, const Variant &value)
Set key frame.
Definition: ValueAnimation.cpp:274
VariantMap metadata_
Animation metadata variables.
Definition: Resource.h:155
void SetGravity(const Vector2 &gravity)
Definition: PhysicsWorld2D.cpp:408
void SetRadius(float radius)
Definition: CollisionCircle2D.cpp:58
void UpdateSourceBatches() override
Handle update vertices.
Definition: AnimatedSprite2D.cpp:233
PODVector< Matrix3x4 > worldTransforms_
World transforms of valid (existing and visible) instances.
Definition: StaticModelGroup.h:90
void SetMotorSpeed(float motorSpeed)
Definition: ConstraintRevolute2D.cpp:131
void SetDrawRect(const Rect &rect)
Definition: StaticSprite2D.cpp:98
unsigned FindItem(UIElement *item) const
Return index of item, or M_MAX_UNSIGNED If not found.
Definition: ListView.cpp:845
bool WriteLine(const String &value)
Write a text line. Char codes 13 & 10 will be automatically appended.
Definition: Serializer.cpp:399
bool HasEventHandlers() const
Return whether has subscribed to any event.
Definition: Object.h:170
void OnAttributeAnimationAdded() override
Handle attribute animation added.
Definition: UIElement.cpp:1878
bool Execute(const String &declaration, const VariantVector ¶meters=Variant::emptyVariantVector, Variant *functionReturn=nullptr, bool unprepare=true)
Query for a function by declaration and execute if found.
Definition: ScriptFile.cpp:293
void SetAngularDamping(float angularDamping)
Definition: RigidBody2D.cpp:202
bool Save(Serializer &dest) const override
Save to binary data. Return true if successful.
Definition: Scene.cpp:141
void AddNode(unsigned oldID, Node *node)
Remember a created node.
Definition: SceneResolver.cpp:45
bool animationDirty_
Animation dirty flag.
Definition: AnimatedModel.h:255
BoundingBox(const Vector3 &min, const Vector3 &max) noexcept
Construct from minimum and maximum vectors.
Definition: BoundingBox.h:69
void HandleUpdate(StringHash eventType, VariantMap &eventData)
Handle the logic update event.
Definition: LuaScriptInstance.cpp:656
NavigationMesh * GetNavigationMesh() const
Definition: CrowdManager.h:136
void SetMaxForce(float maxForce)
Definition: ConstraintMouse2D.cpp:72
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:398
Vector< SharedPtr< DbConnection > > connections_
Active database connections.
Definition: Database.h:74
void DrawPoint(const b2Vec2 &p, float32 size, const b2Color &color) override
Draw a point.
Definition: PhysicsWorld2D.cpp:233
RenderSurface * GetDepthStencil(int width, int height, int multiSample, bool autoResolve)
Allocate a depth-stencil surface that does not need to be readable. Should only be called during actu...
Definition: Renderer.cpp:1089
pugi::xpath_node_set * GetXPathNodeSet() const
Return pugixml xpath_node_set.
Definition: XMLElement.h:356
ScriptFile * GetScriptFile() const
Return script file.
Definition: ScriptInstance.h:121
bool suppressNextMouseMove_
Next mouse move suppress flag.
Definition: Input.h:474
const IntRect & GetScissorRect() const
Return scissor rectangle coordinates.
Definition: Graphics.h:583
void UpdateSlider()
Update slider knob position & size.
Definition: Slider.cpp:227
Vector< SharedPtr< VertexBuffer > > vertexBuffers_
Vertex buffers.
Definition: Model.h:220
void SetAllowSleeping(bool enable)
Definition: PhysicsWorld2D.cpp:388
bool Exists(const String &name) const
Return whether a file exists in the resource directories or package files. Does not check manually ad...
Definition: ResourceCache.cpp:732
int refreshRate_
Refresh rate. 0 to pick automatically.
Definition: Graphics.h:101
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:350
PhysicsWorld(Context *context)
Construct.
Definition: PhysicsWorld.cpp:147
void ReleaseShaders()
Reset shader pointers.
Definition: Technique.cpp:171
SharedPtr< VertexBuffer > vertexBuffer_
Vertex buffer.
Definition: DecalSet.h:232
SLNet::RakPeerInterface * rakPeerClient_
SLikeNet peer instance for client connection.
Definition: Network.h:164
void Push(const PODVector< T > &vector)
Add another vector at the end.
Definition: Vector.h:850
unsigned ToHash() const
Return hash value for HashSet & HashMap.
Definition: Pair.h:71
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:447
Rect Projected(const Matrix4 &projection) const
Return projected by a 4x4 projection matrix.
Definition: BoundingBox.cpp:170
bool LoadRaw(Deserializer &source)
Load raw sound data.
Definition: Sound.cpp:216
BoundingBox boneBoundingBox_
Bounding box calculated from bones.
Definition: AnimatedModel.h:239
asIScriptObject * GetScriptObject() const
Return script object.
Definition: ScriptInstance.h:124
const String & GetSource() const
Return source.
Definition: TmxFile2D.h:142
void SetRadius(float radius)
Definition: OffMeshConnection.cpp:89
virtual b2JointDef * GetJointDef()
Return joint def.
Definition: Constraint2D.h:90
virtual void ApplyNodeWorldScale()=0
Apply Node world scale.
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:249
Template implementation of the variant attribute accessor.
Definition: Serializable.h:159
~CollisionShape2D() override
Destruct.
Definition: CollisionShape2D.cpp:46
bool HasTag(const String &tag) const
Return whether element is tagged by a specific tag.
Definition: UIElement.cpp:1701
int SystemRun(const String &fileName, const Vector< String > &arguments)
Run a specific program, block until it exits and return the exit code. Will fail if any allowed paths...
Definition: FileSystem.cpp:384
Depth bias parameters. Used both by lights (for shadow mapping) and materials.
Definition: Light.h:56
BoundingBox worldBoundingBox_
World-space bounding box.
Definition: Drawable.h:355
Zone * GetZone(Drawable *drawable)
Return the drawable's zone, or camera zone if it has override mode enabled.
Definition: View.h:282
bool lineAntiAlias_
Line antialiasing flag.
Definition: Material.h:342
virtual void Update(float timeStep)
Called on scene update, variable timestep.
Definition: LogicComponent.cpp:51
bool SetMatrix4(const String &name, const Matrix4 &value)
Set a Matrix4 attribute.
Definition: XMLElement.cpp:558
void ProcessNode(unsigned nodeID)
Process a node for sending a network update. Recurses to process depended on node(s) first.
Definition: Connection.cpp:1199
virtual void DrawDebugGeometry(DebugRenderer *debug, bool depthTest)
Visualize the component as debug geometry.
Definition: Component.cpp:116
void LoadSingleLanguageJSON(const JSONValue &source, const String &language=String::EMPTY)
Load strings from JSONValue for specific language.
Definition: Localization.cpp:217
HashSet< unsigned > nodesToProcess_
Node ID's to process during a replication update.
Definition: Connection.h:334
bool Load(Deserializer &source)
Read from a stream. Return true if successful.
Definition: Skeleton.cpp:40
b2ChainShape chainShape_
Chain shape.
Definition: CollisionChain2D.h:79
bool IsInf(T value)
Check whether a floating point value is positive or negative infinity.
Definition: MathDefs.h:124
void HandleBeginFrame(StringHash eventType, VariantMap &eventData)
Handle frame start event. Purge completed work from the main thread queue, and perform work if no thr...
Definition: WorkQueue.cpp:401
const Vector2 & GetProjectionOffset() const
Definition: Camera.h:210
static void RegisterObject(Context *context)
Register object factory.
Definition: Animation.cpp:122
String metadata_
Command/pass metadata.
Definition: RenderPath.h:160
bool vsync_
Whether the vertical synchronization is used.
Definition: Graphics.h:93
Vector< WeakPtr< Node > > controlPoints_
Control Points for the SplinePath.
Definition: SplinePath.h:148
void ParseParameters(unsigned char *bufData, unsigned bufSize)
Inspect the constant parameters and input layout (if applicable) from the shader bytecode.
Definition: OGLShaderVariation.cpp:201
float minAngle_
Minimal angle between billboard normal and look-at direction.
Definition: BillboardSet.h:192
Vector2 WorldToLocal2D(const Vector2 &vector) const
Convert a world space position or rotation to local space (for Urho2D).
Definition: Node.cpp:1216
unsigned timeStepSmoothing_
How many frames to average for the smoothed timestep.
Definition: Engine.h:151
Vector< asIScriptContext * > scriptFileContexts_
Script function/method execution contexts.
Definition: Script.h:137
bool Assign(const CustomVariantValue &rhs) override
Assign value.
Definition: Variant.h:243
void CalculateLayout(PODVector< int > &positions, PODVector< int > &sizes, const PODVector< int > &minSizes, const PODVector< int > &maxSizes, const PODVector< float > &flexScales, int targetSize, int begin, int end, int spacing)
Calculate child widths/positions in the layout.
Definition: UIElement.cpp:2094
PODVector< unsigned > morphRangeStarts_
Vertex buffer morph range start.
Definition: Model.h:232
void SetFixedScreenSize(bool enable)
Definition: BillboardSet.cpp:308
SharedPtr< JSONFile > loadJSONFile_
JSON file used while loading.
Definition: SpriteSheet2D.h:94
static const JSONObject emptyObject
Empty JSON object.
Definition: JSONValue.h:289
unsigned loadedResources_
Loaded resources.
Definition: Scene.h:77
bool IsInside(const Vector3 &point) const
Check whether a point is inside.
Definition: Zone.cpp:211
String defines_
Defines to use in compiling.
Definition: ShaderVariation.h:172
bool HasComponent(StringHash type) const
Return whether has a specific component.
Definition: Node.cpp:1363
void CopySelectedRows() const
Copy selected rows to system clipboard.
Definition: Console.cpp:300
JSONValue & operator=(bool rhs)
Assign from a boolean.
Definition: JSONValue.cpp:59
Vector2 TileIndexToPosition(int x, int y) const
Convert tile index to position.
Definition: TileMap2D.cpp:167
Constraint2D * GetOtherConstraint() const
Definition: ConstraintGear2D.h:59
void SetBoundingBox(const BoundingBox &box)
Set local-space bounding box.
Definition: StaticModel.cpp:359
void SetEffectShadowOffset(const IntVector2 &offset)
Definition: Text.cpp:389
HashSet< StringHash > dirtyVars_
Dirty user vars.
Definition: ReplicationState.h:165
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:138
void ResetSuspension()
Reset all suspension.
Definition: RaycastVehicle.cpp:404
void SetDefaultColor()
Restore UI element's default color.
Definition: UIBatch.cpp:64
SphereOctreeQuery(PODVector< Drawable * > &result, const Sphere &sphere, unsigned char drawableFlags=DRAWABLE_ANY, unsigned viewMask=DEFAULT_VIEWMASK)
Construct with sphere and query parameters.
Definition: OctreeQuery.h:100
static void RegisterObject(Context *context)
Register object factory.
Definition: ScriptFile.cpp:109
void AddSelection(unsigned index)
Add item to the selection, multiselect mode only.
Definition: ListView.cpp:588
PODVector< UIBatch > debugDrawBatches_
UI rendering batches for debug draw.
Definition: UI.h:302
const Vector< SharedPtr< VertexBuffer > > & GetVertexBuffers() const
Return vertex buffers.
Definition: Model.h:164
bool IsInsideLocal(const Vector3 &point) const
Determines if the given local space point is within the model geometry.
Definition: StaticModel.cpp:338
Component * GetComponent(StringHash type) const
Return component in the same scene node by type. If there are several, returns the first.
Definition: Component.cpp:265
void ApplyWorldTransform(const Vector3 &newWorldPosition, const Quaternion &newWorldRotation)
Apply new world transform after a simulation step. Called internally.
Definition: RigidBody.cpp:711
SharedPtr< JSONFile > loadJSONFile_
JSON file used while loading.
Definition: Material.h:354
PODVector< unsigned > printText_
Text modified into printed form.
Definition: Text.h:287
Vector(unsigned size, const T &value)
Construct with initial size and default value.
Definition: Vector.h:63
void DrawDebugGeometry(DebugRenderer *debug, bool depthTest) override
Visualize the component as debug geometry.
Definition: SoundSource3D.cpp:73
@ USE_ORIGINAL_POSE
Choose between using the original pose or the active pose as a basis for a solution.
Definition: IKSolver.h:148
void SetScale(const Vector3 &scale)
Set scaling elements.
Definition: Matrix3.h:177
bool IsInside(const Vector3 &point) const
Determines if the given world space point is within the model geometry.
Definition: StaticModel.cpp:329
Component * GetComponent(StringHash type, bool recursive=false) const
Return component by type. If there are several, returns the first.
Definition: Node.cpp:1401
int GetInt() const
Return int or zero on type mismatch. Floats and doubles are converted.
Definition: Variant.h:1088
void SetPositionSilent(const Vector3 &position)
Set position in parent space silently without marking the node & child nodes dirty....
Definition: Node.h:675
void SetAnchor(const Vector2 &anchor)
Definition: ConstraintFriction2D.cpp:57
Vector3 Column(unsigned j) const
Return matrix column.
Definition: Matrix3x4.h:666
void HandleMessageAcknowledged(StringHash eventType, VariantMap &eventData)
Handle events that dismiss the message box.
Definition: MessageBox.cpp:136
void DrawDebugGeometry()
Add debug geometry to the debug renderer.
Definition: TileMap2D.cpp:103
void SetFixedSize(const IntVector2 &size)
Set fixed size.
Definition: UIElement.cpp:647
void SetObstacleAvoidanceParams(unsigned obstacleAvoidanceType, const CrowdObstacleAvoidanceParams ¶ms)
Set the params for the specified obstacle avoidance type.
Definition: CrowdManager.cpp:379
HashMap< StringHash, PODVector< Node * > > taggedNodes_
Cached tagged nodes by tag.
Definition: Scene.h:313
Vector3 SignedScale(const Matrix3 &rotation) const
Return the scaling part with the sign. Reference rotation matrix is required to avoid ambiguity.
Definition: Matrix3.h:203
SharedPtr< Geometry > spotLightGeometry_
Spot light volume geometry.
Definition: Renderer.h:553
TileMapLayer2D(Context *context)
Construct.
Definition: TileMapLayer2D.cpp:39
Mutex gpuObjectMutex_
Mutex for accessing the GPU objects vector from several threads.
Definition: Graphics.h:761
unsigned GetMorphRangeStart(unsigned bufferIndex) const
Return vertex buffer morph range start.
Definition: Model.cpp:773
const TmxLayer2D * GetTmxLayer() const
Return tmx layer.
Definition: TileMapLayer2D.h:72
Vector3 worldPosition_
New world position.
Definition: PhysicsWorld2D.h:64
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:70
float GetMobileNormalOffsetMul() const
Definition: Renderer.h:398
void RemoveAllInstanceNodes()
Remove all instance scene nodes.
Definition: StaticModelGroup.cpp:303
static Matrix3x4 GetFullscreenQuadTransform(Camera *camera)
Return a transform for deferred fullscreen quad (directional light) rendering.
Definition: Light.cpp:644
Sphere(const Vector3 ¢er, float radius) noexcept
Construct from center and radius.
Definition: Sphere.h:50
bool InsideGeometry(const void *vertexData, unsigned vertexSize, unsigned vertexStart, unsigned vertexCount) const
Return whether ray is inside non-indexed geometry.
Definition: Ray.cpp:371
Localization subsystem. Stores all the strings in all languages.
Definition: Localization.h:32
static bool CompareNodes(Node *&lhs, Node *&rhs)
Compare two nodes.
Definition: HashSet.h:637
const VariantMap & GetGlobalVars() const
Return all global variables.
Definition: Context.h:140
bool SetRect(const String &name, const Rect &value)
Set a Rect attribute.
Definition: XMLElement.cpp:397
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
void HandleTextInput(StringHash eventType, VariantMap &eventData)
Handle text input event.
Definition: UI.cpp:2030
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:97
UIElement * GetElementAt(const IntVector2 &position, bool enabledOnly=true)
Return UI element at global screen coordinates. By default returns only input-enabled elements.
Definition: UI.cpp:815
WeakPtr< Graphics > graphics_
Graphics subsystem.
Definition: Renderer.h:543
RenderSurface * GetRenderSurface() const
Definition: Texture2D.h:78
String Replaced(char replaceThis, char replaceWith, bool caseSensitive=true) const
Return a string with all occurrences of a character replaced.
Definition: Str.cpp:294
float MaxRGB() const
Return the largest value of the RGB components.
Definition: Color.cpp:197
void SetSubStepping(bool enable)
Definition: PhysicsWorld2D.cpp:403
unsigned GetNumBackgroundLoadResources() const
Definition: ResourceCache.cpp:711
String factory class that manages the string constants the script engine uses.
Definition: Addons.h:310
void UnmapBuffer()
Unmap the GPU buffer. Not used on OpenGL.
Definition: OGLIndexBuffer.cpp:271
SharedPtr< RenderPath > renderPath_
Rendering path.
Definition: Viewport.h:121
unsigned profilerInterval_
Profiler accumulation interval.
Definition: DebugHud.h:143
static VariantMap ParseParameters(const Vector< String > &arguments)
Parse the engine startup parameters map from command line arguments.
Definition: Engine.cpp:797
WeakPtr< ScriptFile > defaultScriptFile_
Immediate execution script file.
Definition: Script.h:133
void SetViewport(const IntRect &rect)
Set viewport.
Definition: OGLGraphics.cpp:1721
Vector< AnimationTriggerPoint > triggers_
Animation trigger points.
Definition: Animation.h:213
float startParticleSizeVariance_
Start particle size variance.
Definition: ParticleEffect2D.h:298
WeakPtr< Object > target_
Target object.
Definition: ValueAnimationInfo.h:86
virtual void Clone(void *dest) const
Placement clone.
Definition: Variant.h:198
const Vector3 & GetVector3() const
Return Vector3 or zero on type mismatch.
Definition: Variant.h:1183
SharedPtr< ParticleEffect2D > effect_
Particle effect.
Definition: ParticleEmitter2D.h:153
void GetChildrenWithTagRecursive(PODVector< Node * > &dest, const String &tag) const
Return child nodes with a specific tag recursively.
Definition: Node.cpp:2169
Technique * GetTechnique(unsigned index) const
Definition: Material.cpp:1186
SharedPtr< Geometry > occlusionGeometry_
Geometry that is used for occlusion.
Definition: TerrainPatch.h:122
void SetMaxRotationSpeed(float speed)
Definition: ParticleEffect.cpp:575
void RemoveDrawable(Drawable *drawable, bool resetOctant=true)
Remove a drawable object from this octant.
Definition: Octree.h:66
float timeToLive_
Maximum time to live in seconds (0 = infinite).
Definition: DecalSet.h:93
void Raise() const
Raises window if it was minimized.
Definition: Graphics.cpp:353
bool dragSlider_
Internal flag of whether the slider is being dragged.
Definition: Slider.h:119
const PODVector< unsigned char > & GetBuffer() const
Return the buffer.
Definition: VectorBuffer.h:68
void HandleEffectReloadFinished(StringHash eventType, VariantMap &eventData)
Handle live reload of the particle effect.
Definition: ParticleEmitter.cpp:613
Texture * parentTexture_
Parent texture.
Definition: RenderSurface.h:142
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:810
b2PolygonShape polygonShape_
Polygon shape.
Definition: CollisionPolygon2D.h:73
void SetQueryFilterTypesAttr(const VariantVector &value)
Set all the query filter types configured in the crowd based on the corresponding attribute.
Definition: CrowdManager.cpp:280
bool networkUpdate_
Network update queued flag.
Definition: Component.h:150
LoopMode2D GetLoopMode() const
Definition: AnimatedSprite2D.h:98
Sprite2D * GetSprite() const
Return sprite.
Definition: ParticleEffect2D.h:137
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
unsigned poolSize_
Database connection pool size. Default to 0 when using ODBC 3.0 or later as ODBC 3....
Definition: Database.h:72
void SetNumViewports(unsigned num)
Definition: RenderSurface.cpp:42
NodeReplicationState * nodeState_
Parent node replication state.
Definition: ReplicationState.h:148
~ShaderParameterAnimationInfo() override
Destruct.
float elapsedTime_
Amount of time that has elapsed while moving.
Definition: SplinePath.h:138
unsigned instancingVertexAttributes_
Vertex attribute instancing bitmask for keeping track of divisors.
Definition: OGLGraphicsImpl.h:122
void PushLuaTable(const char *tableName)
Push Lua table to stack. When the specified table is not found then a nil is pushed instead.
Definition: LuaFunction.cpp:151
Component that drives an AnimatedModel's animations.
Definition: AnimationController.h:85
unsigned GetDummyColorFormat() const
Return dummy color texture format for shadow maps. Is "NULL" (consume no video memory) if supported.
Definition: Graphics.h:439
void SetShaders(ShaderVariation *vs, ShaderVariation *ps)
Set shaders.
Definition: OGLGraphics.cpp:1012
IKSolver(Context *context)
Construct an IK root component.
Definition: IKSolver.cpp:48
bool SetSize(int width, int height, unsigned format, TextureUsage usage=TEXTURE_STATIC, int multiSample=1, bool autoResolve=true)
Set size, format, usage and multisampling parameters for rendertargets. Zero size will follow applica...
Definition: Texture2D.cpp:112
void * GetOwner() const
Return owner.
Definition: ValueAnimation.h:114
void SetShadowFocus(const FocusParameters ¶meters)
Definition: Light.cpp:379
void ReleaseRef()
Decrement reference count and delete self if no more references. Can also be called outside of a Shar...
Definition: RefCounted.cpp:60
void UpdateSourceBatches() override
Update source batches.
Definition: ParticleEmitter2D.cpp:209
VectorBuffer contacts_
Temporary buffer with contact data.
Definition: PhysicsWorld2D.h:310
static void RegisterObject(Context *context)
Register object factory.
Definition: ConstraintMouse2D.cpp:45
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:358
asIScriptObject * CreateObject(const String &className, bool useInterface=false)
Create a script object. Optionally search for the first class in the module that implements the speci...
Definition: ScriptFile.cpp:524
ResourceRef GetScriptFileAttr() const
Return script file attribute.
Definition: LuaScriptInstance.cpp:764
SharedPtr< UIElement > rootModalElement_
UI root modal element.
Definition: UI.h:396
void SetStartScale(float startScale)
Definition: RibbonTrail.cpp:331
Variant(const Vector4 &value)
Construct from a Vector4.
Definition: Variant.h:392
Geometry(Context *context)
Construct with one empty vertex buffer.
Definition: Geometry.cpp:37
SharedArrayPtr< unsigned char > rawVertexData_
Raw vertex data override.
Definition: Geometry.h:148
void SetSpeedVariance(float speedVariance)
Set speed variance.
Definition: ParticleEffect2D.cpp:314
bool SetSpeed(const String &name, float speed)
Set animation speed. Return true on success.
Definition: AnimationController.cpp:346
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:102
void SetFontAttr(const ResourceRef &value)
Set font attribute.
Definition: Text3D.cpp:545
void ApplyToNodes()
Apply animation to a scene node hierarchy.
Definition: AnimationState.cpp:470
void QueueViewport(RenderSurface *renderTarget, Viewport *viewport)
Queue a viewport for rendering. Null surface means backbuffer.
Definition: Renderer.cpp:803
HashMap< StringHash, SharedPtr< ShaderVariation > > psVariations_
Pixel shader variations.
Definition: Shader.h:77
float GetFloat(float defaultValue=0.0f) const
Return float value.
Definition: JSONValue.h:208
Vector3(const Vector2 &vector, float z) noexcept
Construct from a two-dimensional vector and the Z coordinate.
Definition: Vector3.h:199
float constantDepthBias_
Depth constant bias.
Definition: Graphics.h:864
CustomVariantValue()
Construct empty.
Definition: Variant.h:180
void Translate2D(const Vector2 &delta, TransformSpace space=TS_LOCAL)
Move the scene node in the chosen transform space (for Urho2D).
Definition: Node.h:258
bool clearSelectionOnDefocus_
Clear selection on defocus flag.
Definition: ListView.h:201
Timer elapsedTime_
Elapsed time since program start.
Definition: Timer.h:125
Material * GetCustomMaterial() const
Definition: StaticSprite2D.cpp:243
void RemoveAttribute(StringHash objectType, const char *name)
Remove object attribute.
Definition: Context.cpp:222
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:521
bool Create() override
Create the GPU texture.
Definition: OGLTextureCube.cpp:433
unsigned char * GetShadowData() const
Return CPU memory shadow data.
Definition: IndexBuffer.h:88
Mutex bufferMutex_
Mutex for buffer data.
Definition: BufferedSoundStream.h:66
bool OnDragDropTest(UIElement *source) override
React to drag and drop test. Return true to signal that the drop is acceptable.
Definition: LineEdit.cpp:165
void ResetInputAccumulation()
Reset input accumulation.
Definition: Input.cpp:1568
IntVector2 dragBeginSumPos
Drag start position.
Definition: UI.h:284
Iterator & operator++()
Preincrement the pointer.
Definition: List.h:70
Vector3 Project(const Vector3 &point) const
Project a point on the plane.
Definition: Plane.h:98
bool IsInf() const
Return whether any element is Inf.
Definition: Quaternion.h:422
void SetFarDistance(float distance)
Definition: SoundSource3D.cpp:119
SharedPtr< Animation > Clone(const String &cloneName=String::EMPTY) const
Clone the animation.
Definition: Animation.cpp:374
Vector< VAnimEventFrame > eventFrames_
Event frames.
Definition: ValueAnimation.h:177
Scene * GetScene() const
Return the scene the node belongs to.
Definition: Component.cpp:155
bool Load(const unsigned char *fontData, unsigned fontDataSize, float pointSize) override
Load font face.
Definition: FontFaceFreeType.cpp:94
WeakPtr(const WeakPtr< T > &rhs) noexcept
Copy-construct from another weak pointer.
Definition: Ptr.h:281
b2JointDef * GetJointDef() override
Return joint def.
Definition: ConstraintPrismatic2D.cpp:174
AnimationState * AddAnimationState(Animation *animation)
Add an animation.
Definition: AnimatedModel.cpp:443
float rotationDelta_
Rotation delta.
Definition: ParticleEmitter2D.h:48
bool operator!=(const ScreenModeParams &rhs) const
Compare for inequality with another parameter set.
Definition: Graphics.h:124
float GetCcdMotionThreshold() const
Definition: RigidBody.cpp:693
bool logStatistics_
Show statistics flag.
Definition: Connection.h:358
bool FlipVertical()
Flip image vertically. Return true if successful.
Definition: Image.cpp:1098
Color modalFrameColor_
Modal frame color, used when modal flag is set.
Definition: Window.h:185
void SetValueType(VariantType valueType)
Definition: ValueAnimation.cpp:226
RenderSurface * GetRenderSurface() const
Definition: Texture2DArray.h:78
Vector3 GetNormal(const Vector3 &worldPosition) const
Return normal at world coordinates.
Definition: Terrain.cpp:589
KeyValue & operator=(const KeyValue &rhs)=delete
Prevent assignment.
Rotation represented as a four-dimensional normalized vector.
Definition: Quaternion.h:35
SharedPtr< T > Lock() const
Convert to a shared pointer. If expired, return a null shared pointer.
Definition: Ptr.h:391
Vector3 GetWheelPosition(int wheel)
Get wheel position relative to RigidBody.
Definition: RaycastVehicle.cpp:416
HashMap< int, SharedPtr< Texture2D > > colorShadowMaps_
Shadow map dummy color buffers by resolution.
Definition: Renderer.h:575
void OnNodeSetEnabled(Node *node) override
Handle scene node enabled status changing.
Definition: StaticModelGroup.cpp:363
bool operator!=(const UniquePtr< U > &rhs) const
Test for inequality with another unique pointer.
Definition: Ptr.h:626
Vector< AnimationControl > animations_
Animation control structures.
Definition: AnimationController.h:207
Template implementation of the event handler invoke helper (stores a function pointer of specific cla...
Definition: Object.h:305
void SetOutputFace(unsigned index, CubeMapFace face)
Definition: RenderPath.cpp:274
PODVector< Batch > volumeBatches_
Light volume draw calls.
Definition: Batch.h:309
void SetEffectDepthBias(float bias)
Set text effect Z bias. Zero by default, adjusted only in 3D mode.
Definition: Text.cpp:409
const String & GetPixelShaderDefines() const
Definition: Material.h:227
float projNearClip_
Cached actual near clip distance.
Definition: Camera.h:286
Vector3 ScreenToWorldPoint(int x, int y, float depth) const
Convert screen coordinates and depth to a world space point.
Definition: Viewport.cpp:190
~Texture2DArray() override
Destruct.
Definition: Texture2DArray.cpp:56
int maxShadowMaps_
Maximum number of shadow maps per resolution.
Definition: Renderer.h:625
unsigned char drawableFlags_
Drawable flags to include.
Definition: OctreeQuery.h:253
float setTimeTtl_
Set time command time-to-live.
Definition: AnimationController.h:69
bool DrawOcclusion(OcclusionBuffer *buffer) override
Draw to occlusion buffer. Return true if did not run out of triangles.
Definition: TerrainPatch.cpp:180
bool autoDisableChildren_
Used to determine if child elements should be disabled while touch scrolling, to prevent their trigge...
Definition: ScrollView.h:210
void SetUpdateInvisible(bool enable)
Definition: RibbonTrail.cpp:883
HashMap< int, SharedPtr< FontFace > > faces_
Created faces.
Definition: Font.h:104
void ConfigureNetworkSimulator(int latencyMs, float packetLoss)
Set network simulation parameters. Called by Network.
Definition: Connection.cpp:1176
void Release(bool clearGPUObjects, bool closeWindow)
Release/clear GPU objects and optionally close the window. Used only on OpenGL.
Definition: OGLGraphics.cpp:2351
XPathResultSet & operator=(const XPathResultSet &rhs)
Assignment operator.
Definition: XMLElement.cpp:1029
HashMap< String, asIScriptFunction * > functions_
Search cache for functions.
Definition: ScriptFile.h:144
bool IsWithinScissor(const IntRect ¤tScissor) override
Return whether is visible and inside a scissor rectangle and should be rendered.
Definition: Sprite.cpp:83
ViewOverrideFlags viewOverrideFlags_
View override flags.
Definition: Camera.h:306
void UpdateOffsets()
Update offsets of vertex elements.
Definition: VertexBuffer.cpp:92
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 MakeCircleGraph(const Vector< Pair< float, Urho3D::SharedPtr< Urho3D::Material > > > &parts, int radius=1, int iterations=300)
Produces a circle graph given a vector of paired (weights and materials)
Definition: CustomGeometry.cpp:249
static bool GetGL3Support()
Return whether is using an OpenGL 3 context. Return always false on Direct3D9 & Direct3D11.
Definition: OGLGraphics.cpp:2119
void SetSelection(unsigned start, unsigned length=M_MAX_UNSIGNED)
Set selection. When length is not provided, select until the text ends.
Definition: Text.cpp:371
bool ExecuteRawFile(const String &fileName)
Load and execute script file on file system (i.e. not from resource cache). Return true if successful...
Definition: LuaScript.cpp:298
Texture2D * GetShadowMap(Light *light, Camera *camera, unsigned viewWidth, unsigned viewHeight)
Allocate a shadow map. If shadow map reuse is disabled, a different map is returned each time.
Definition: Renderer.cpp:836
ColorFrame()
Construct with default values.
Definition: ParticleEffect.h:48
bool SetVertexBuffer(unsigned index, VertexBuffer *buffer)
Set a vertex buffer by index.
Definition: Geometry.cpp:67
float fadeStart_
The point relative to the total shadow range where shadow fade begins (0.0 - 1.0).
Definition: Light.h:114
void SetEnabledRecursive(bool enable)
Set enabled state on self and child elements. Unlike SetDeepEnabled this does not remember the elemen...
Definition: UIElement.cpp:909
Allocator template class. Allocates objects of a specific class.
Definition: Allocator.h:71
bool FilterImplicitAttributes(XMLElement &dest) const override
Filter implicit attributes in serialization process.
Definition: DropDownList.cpp:236
IntVector2 GetEffectiveRootElementSize(bool applyScale=true) const
Return effective size of the root element, according to UI scale and resolution / custom size.
Definition: UI.cpp:2171
void Sort()
Sort pairs. After sorting the map can be iterated in order until new elements are inserted.
Definition: HashMap.h:478
static void RegisterObject(Context *context)
Register object factory.
Definition: Button.cpp:53
unsigned readBufferSize_
Bytes in the current read buffer.
Definition: File.h:140
Scancode GetScancodeFromKey(Key key) const
Return scancode from keycode.
Definition: Input.cpp:1319
void CalculateAttenuation()
Calculate attenuation and panning based on current position and listener position.
Definition: SoundSource3D.cpp:149
Ray(const Vector3 &origin, const Vector3 &direction) noexcept
Construct from origin and direction. The direction will be normalized.
Definition: Ray.h:45
~RenderSurface() override
Destruct.
Definition: RenderSurface.cpp:37
float LengthSquared() const
Return squared length.
Definition: Quaternion.h:384
SharedPtr< Text > eventProfilerText_
Event profiling information text.
Definition: DebugHud.h:133
void SetUpdateEnabled(bool enable)
Definition: PhysicsWorld.cpp:341
Interface class for allowing script objects or functions to subscribe to events.
Definition: ScriptEventListener.h:52
float smoothingConstant_
Motion smoothing constant.
Definition: Scene.h:351
int SystemCommand(const String &commandLine, bool redirectStdOutToLog=false)
Run a program using the command interpreter, block until it exits and return the exit code....
Definition: FileSystem.cpp:373
Button * GetCloseButton() const
Return close button.
Definition: FileSelector.h:122
void reportErrorWarning(const char *warningString) override
Log warning from the physics engine.
Definition: PhysicsWorld.cpp:242
void Release() override
Release the texture.
Definition: OGLTexture2DArray.cpp:76
bool SetStyle(const 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:994
void PreSolve(b2Contact *contact, const b2Manifold *oldManifold) override
Called when contact is updated.
Definition: PhysicsWorld2D.cpp:134
void Commit()
Mark for bounding box and vertex buffer update. Call after modifying the trails.
Definition: RibbonTrail.cpp:889
void SetAutoClearForces(bool enable)
Definition: PhysicsWorld2D.cpp:415
SharedPtr< Texture2D > texture_
Texture that UIElement will be rendered into.
Definition: UI.h:294
HashMap< String, SharedPtr< ValueAnimationInfo > > attributeAnimationInfos_
Name to attribute animation info mapping.
Definition: ObjectAnimation.h:93
Color ReadColor(const XMLElement &element, const String &name) const
Read Color.
Definition: ParticleEffect2D.cpp:530
void UpdateElements()
Update elements to layout properly. Call this after manually adjusting the sub-elements.
Definition: FileSelector.cpp:246
pugi::xml_document * GetDocument() const
Return the pugixml document.
Definition: XMLFile.h:71
const Vector< String > & GetXMLAttributes() const
Return the XML format attributes. Empty when loaded with binary serialization.
Definition: UnknownComponent.h:68
bool WriteColor(const Color &value)
Write a color.
Definition: Serializer.cpp:169
const String & GetShaderCacheDir() const
Definition: Graphics.h:611
bool LoadColorLUT(Deserializer &source)
Load as color LUT. Return true if successful.
Definition: Image.cpp:980
TextureAddressMode addressModes_[MAX_COORDS]
Addressing mode.
Definition: Texture.h:259
bool autoResolve_
Multisampling autoresolve flag.
Definition: RenderPath.h:86
float innerAngle_
Inner angle for directional attenuation.
Definition: SoundSource3D.h:96
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:677
String pixelShaderDefines_
Pixel shader defines.
Definition: RenderPath.h:168
void SetAnimationLodBias(float bias)
Definition: RibbonTrail.cpp:877
void MarkMorphsDirty()
Mark morphs to require an update.
Definition: AnimatedModel.cpp:1100
bool operator==(const HashSet< T > &rhs) const
Test for equality with another hash set.
Definition: HashSet.h:252
bool IsLocked() const
Return whether is currently locked.
Definition: IndexBuffer.h:74
IntVector3 GetIntVector3(const String &name) const
Return an IntVector3 attribute, or default if missing.
Definition: XMLElement.cpp:832
void SetDampingRatio(float dampingRatio)
Definition: ConstraintDistance2D.cpp:97
void SetMaterialAttr(const ResourceRef &value)
Set material attribute.
Definition: Terrain.cpp:791
VertexMaskFlags elementMask_
Element mask used so far.
Definition: CustomGeometry.h:181
void FromHSV(float h, float s, float v, float a=1.0f)
Set RGBA values from specified HSV values and alpha.
Definition: Color.cpp:109
bool SetHeightMapInternal(Image *image, bool recreateNow)
Set heightmap image and optionally recreate the geometry immediately. Return true if successful.
Definition: Terrain.cpp:1416
void ReturnToPool(SharedPtr< WorkItem > &item)
Return a work item to the pool.
Definition: WorkQueue.cpp:380
String Get(const String &id)
Return a string in the current language. Returns String::EMPTY if id is empty. Returns id if translat...
Definition: Localization.cpp:130
int WeakRefs() const
Return the array's weak reference count.
Definition: ArrayPtr.h:382
EventHandlerImpl(T *receiver, HandlerFunctionPtr function, void *userData=nullptr)
Construct with receiver and function pointers and userdata.
Definition: Object.h:311
void UpdateSplineTangents() const
Update spline tangents.
Definition: ValueAnimation.cpp:489
float Angle(const Vector3 &rhs) const
Returns the angle between this vector and another vector in degrees.
Definition: Vector3.h:416
unsigned otherBodyNodeID_
Other body node ID for serialization.
Definition: Constraint2D.h:107
void SetObstacleAvoidanceTypesAttr(const VariantVector &value)
Set all the obstacle avoidance types configured in the crowd based on the corresponding attribute.
Definition: CrowdManager.cpp:349
T & operator[](const int index)
Subscript the array.
Definition: ArrayPtr.h:326
void SetSoundType(const String &type)
Definition: SoundSource.cpp:272
void SetGravityOverride(const Vector3 &gravity)
Definition: RigidBody.cpp:449
CompressedLevel GetCompressedLevel(unsigned index) const
Return a compressed mip level.
Definition: Image.cpp:1966
bool IsDataLost() const
Return true when one of the texture has a data loss.
Definition: FontFace.cpp:87
bool hasScenePasses_
Has scene passes flag. If no scene passes, view can be defined without a valid scene or camera to onl...
Definition: View.h:380
String GetPreferredResourceDir(const String &path) const
Return either the path itself or its parent, based on which of them has recognized resource subdirect...
Definition: ResourceCache.cpp:805
float speed_
The Speed of movement along the Spline.
Definition: SplinePath.h:136
HashMap< String, Variant > storedAttributes_
Storage for attributes while script object is being hot-reloaded.
Definition: ScriptInstance.h:208
unsigned GetUsedVertexAttributes() const
Return attribute location use bitmask.
Definition: OGLShaderProgram.h:74
bool GetHighDPI() const
Return whether window is high DPI.
Definition: Graphics.h:391
OggVorbisSoundStream(const Sound *sound)
Construct from an Ogg Vorbis compressed sound.
Definition: OggVorbisSoundStream.cpp:35
void SetExecuteConsoleCommands(bool enable)
Set whether to execute engine console commands as script code.
Definition: Script.cpp:278
void DestroyTree()
Destroys the solver's tree.
Definition: IKSolver.cpp:264
@ 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:366
bool EndLoadFromXMLFile()
End load from XML file.
Definition: SpriteSheet2D.cpp:225
const SLNet::AddressOrGUID & GetAddressOrGUID() const
Return the RakNet address/guid.
Definition: Connection.h:177
Variant GetVariant() const
Return a variant.
Definition: JSONValue.cpp:400
unsigned autoCompletePosition_
Command auto complete current position.
Definition: Console.h:205
String shaderExtension_
File extension for shaders.
Definition: Graphics.h:906
bool PositionToTileIndex(int &x, int &y, const Vector2 &position) const
Convert position to tile index, if out of map return false.
Definition: TileMap2D.cpp:172
void ThreadFunction() override
Resource background loading loop.
void RotateAround(const Vector3 &point, const Quaternion &delta, TransformSpace space=TS_LOCAL)
Rotate around a point in the chosen transform space.
Definition: Node.cpp:615
BoundingBox(const Sphere &sphere)
Construct from a sphere.
Definition: BoundingBox.h:116
unsigned clearStencil_
Clear stencil value. Affects clear command only.
Definition: RenderPath.h:184
bool GetAlphaToCoverage() const
Return whether alpha-to-coverage is enabled.
Definition: Graphics.h:550
void SetDampingForce(float force)
Definition: ParticleEffect.cpp:505
CollisionGeometryDataCache & GetTriMeshCache()
Return trimesh collision geometry cache.
Definition: PhysicsWorld.h:285
bool reverseCulling_
Culling reverse flag.
Definition: OcclusionBuffer.h:201
static void RegisterObject(Context *context)
Register object factory.
Definition: UnknownComponent.cpp:90
Per-object attribute state for network replication, allocated on demand.
Definition: ReplicationState.h:121
float currentTime_
Current time.
Definition: SpriterInstance2D.h:105
void WriteLatestDataUpdate(Serializer &dest, unsigned char timeStamp)
Write a latest data network update.
Definition: Serializable.cpp:797
SharedPtr< Image > ConvertToRGBA() const
Return image converted to 4-component (RGBA) to circumvent modern rendering API's not supporting e....
Definition: Image.cpp:1896
void UpdateAnimation(float timeStep)
Update animation.
Definition: AnimatedSprite2D.cpp:252
static void RegisterObject(Context *context)
Register object factory.
Definition: FileSelector.cpp:138
FileWatcher(Context *context)
Construct.
Definition: FileWatcher.cpp:52
void ResetRoot()
Reset root pointer recursively. Called when the whole octree is being destroyed.
Definition: Octree.cpp:192
static const IntVector3 FORWARD_RIGHT_UP
(2, 0, 1) coordinate system.
Definition: RaycastVehicle.h:187
CrowdAgentTargetState GetTargetState() const
Definition: CrowdAgent.cpp:497
void SetChainLength(unsigned chainLength)
Definition: IKEffector.cpp:158
SLNet::RakPeerInterface * peer_
Raknet peer object.
Definition: Connection.h:362
float setWeightTtl_
Set weight command time-to-live.
Definition: AnimationController.h:71
ShaderVariation(Shader *owner, ShaderType type)
Construct.
Definition: ShaderVariation.cpp:58
void RemoveRootBone()
Remove (old) skeleton root bone.
Definition: AnimatedModel.cpp:1075
SLNet::NatPunchthroughClient * natPunchthroughServerClient_
NAT punchtrough client for the server.
Definition: Network.h:198
bool SetVertexBuffers(const Vector< SharedPtr< VertexBuffer > > &buffers, const PODVector< unsigned > &morphRangeStarts, const PODVector< unsigned > &morphRangeCounts)
Set vertex buffers and their morph ranges.
Definition: Model.cpp:491
float period_
Period for repeating calls.
Definition: ScriptEventListener.h:40
void GetDependencyNodes(PODVector< Node * > &dest) override
Return the depended on nodes to order network updates.
Definition: Constraint.cpp:132
void RebuildTree()
Builds the solver's tree to match the scene graph's tree. If a tree already exists,...
Definition: IKSolver.cpp:272
SharedPtr< Technique > CloneWithDefines(const String &vsDefines, const String &psDefines)
Return a clone with added shader compilation defines. Called internally by Material.
Definition: Technique.cpp:497
bool GetAllowSleeping() const
Definition: PhysicsWorld2D.cpp:680
bool BuildTreeToEffector(IKEffector *effector)
Builds a chain of nodes up to the node of the specified effector component.
Definition: IKSolver.cpp:312
unsigned GetBoneIndex(const String &boneName) const
Return index of the bone by name. Return M_MAX_UNSIGNED if not found.
Definition: Skeleton.cpp:173
Object * GetSubsystem(StringHash type) const
Return subsystem by type.
Definition: Context.cpp:354
bool StartServer(unsigned short port, unsigned int maxConnections=128)
Start a server on a port using UDP protocol. Return true if successful.
Definition: Network.cpp:421
void SetTangentialAccelVariance(float tangentialAccelVariance)
Set tangential acceleration variance.
Definition: ParticleEffect2D.cpp:359
StringMap map_
Hash to string map.
Definition: StringHashRegister.h:59
IntVector3 GetIntVector3() const
Return IntVector3, for string type.
Definition: PListFile.cpp:232
String GetAnimation(unsigned index) const
Return animation name.
Definition: AnimationSet2D.cpp:167
WeakPtr< ScriptFile > scriptFile_
Script file.
Definition: ScriptInstance.h:194
SharedArrayPtr< T > Lock() const
Convert to shared array pointer. If expired, return a null shared array pointer.
Definition: ArrayPtr.h:292
void Blit(Image *dest, int x, int y, int width, int height, Image *source, int sourceX, int sourceY, int components)
Blit.
Definition: FontFaceBitmap.cpp:374
File selector's list entry (file or directory).
Definition: FileSelector.h:42
const Vector3 & GetTargetVelocity() const
Definition: CrowdAgent.h:150
void Update(const FrameInfo &frame)
Update and reinsert drawable objects.
Definition: Octree.cpp:364
unsigned size_
Parameter size. Used only on Direct3D11 to calculate constant buffer size.
Definition: ShaderVariation.h:67
Variant(const String &type, const String &value)
Construct from type and value.
Definition: Variant.h:525
void SetGravity(const Vector3 &gravity)
Definition: PhysicsWorld.cpp:320
@ USE_UPDATE
Bitmask for using the scene update event.
Definition: LogicComponent.h:38
const ShaderParameter * GetParameter(StringHash param) const
Return the info for a shader parameter, or null if does not exist.
Definition: OGLShaderProgram.cpp:338
void SetCollisionLayerAndMask(unsigned layer, unsigned mask)
Set collision group and mask.
Definition: RigidBody.cpp:499
void SetFrequencyHz(float frequencyHz)
Definition: ConstraintDistance2D.cpp:82
bool IsScreenJoystickVisible(SDL_JoystickID id) const
Definition: Input.cpp:1480
ObjectAnimation(Context *context)
Construct.
Definition: ObjectAnimation.cpp:46
void CalculateLodLevels()
Choose LOD levels based on distance.
Definition: StaticModel.cpp:420
PODVector< unsigned > selections_
Current selection.
Definition: ListView.h:189
Plane(const Vector4 &plane) noexcept
Construct from a 4-dimensional vector, where the w coordinate is the plane parameter.
Definition: Plane.h:57
void CreateFixture()
Create fixture.
Definition: CollisionShape2D.cpp:204
bool EndLoadSpriter()
Finish load scml.
Definition: AnimationSet2D.cpp:348
VariantMap * GetVariantMapPtr()
Return a pointer to a modifiable variant map or null on type mismatch.
Definition: Variant.h:1365
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:323
void SetWheelSkidInfo(int wheel, float factor)
Set sliding factor 0 <= x <= 1. The less the value, more sliding.
Definition: RaycastVehicle.cpp:664
List(const std::initializer_list< T > &list)
Aggregate initialization constructor.
Definition: List.h:191
bool Save(Serializer &dest) const override
Save resource with default indentation (one tab). Return true if successful.
Definition: XMLFile.cpp:132
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:281
IntVector2 WorldToHeightMap(const Vector3 &worldPosition) const
Convert world position to heightmap pixel position. Note that the internal height data representation...
Definition: Terrain.cpp:622
XMLElement GetOrCreateRoot(const String &name)
Get the root element if it has matching name, otherwise create it and clear the document.
Definition: XMLFile.cpp:151
int GetMonitor() const
Return the current monitor index. Effective on in fullscreen.
Definition: Graphics.h:401
Vector< Particle2D > particles_
Particles.
Definition: ParticleEmitter2D.h:167
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:1147
bool Play(const String &name, unsigned char layer, bool looped, float fadeInTime=0.0f)
Play an animation and set full target weight. Name must be the full resource name....
Definition: AnimationController.cpp:159
void SetShadowCascade(const CascadeParameters ¶meters)
Definition: Light.cpp:372
void UpdateVertexBuffer(const FrameInfo &frame)
Rewrite billboard vertex buffer.
Definition: BillboardSet.cpp:577
void OptimizeLightByScissor(Light *light, Camera *camera)
Optimize a light by scissor rectangle.
Definition: Renderer.cpp:1372
void SetEnableLimit(bool enableLimit)
Definition: ConstraintPrismatic2D.cpp:84
FlagSet & operator|=(const Enum value)
Bitwise OR against Enum value.
Definition: FlagSet.h:90
void SetSpeed(float speed)
Set speed.
Definition: ParticleEffect2D.cpp:309
int GetAgentCrowdId() const
Return the agent id.
Definition: CrowdAgent.h:168
void HandleMouseMove(StringHash eventType, VariantMap &eventData)
Handle mouse move event.
Definition: UI.cpp:1794
const Vector2 & GetOwnerBodyAnchor() const
Definition: ConstraintPulley2D.h:69
void SetAnimationTime(float time)
Set time position of all attribute animations or an object animation manually. Automatic update shoul...
Definition: Animatable.cpp:276
void AddManualDrawable(Drawable *drawable)
Add a drawable manually.
Definition: Octree.cpp:477
static void ConstructElements(T *dest, RandomIteratorT start, RandomIteratorT end, CopyTag)
Copy-construct elements.
Definition: Vector.h:552
VariantMap GetVariantMap() const
Return a variant map.
Definition: JSONValue.cpp:573
ResourceRef GetEffectAttr() const
Set particles effect attribute.
Definition: ParticleEmitter.cpp:364
float GetAutoDisableThreshold() const
Definition: ScrollView.h:156
static void RegisterObject(Context *context)
Register object factory.
Definition: Sound.cpp:79
void SetOcclusionBufferSize(int size)
Definition: Renderer.cpp:491
void MixMonoToMonoIP(Sound *sound, int *dest, unsigned samples, int mixRate)
Mix mono sample to mono buffer interpolated.
Definition: SoundSource.cpp:759
CollisionGeometryDataCache & GetGImpactTrimeshCache()
Return GImpact trimesh collision geometry cache.
Definition: PhysicsWorld.h:291
bool LookAt(const Vector3 &target, const Vector3 &up=Vector3::UP, TransformSpace space=TS_WORLD)
Look at a target position in the chosen transform space. Note that the up vector is always specified ...
Definition: Node.cpp:670
void SetSprite(Sprite2D *sprite)
Set sprite.
Definition: ParticleEffect2D.cpp:299
Crowd agent component, requires a CrowdManager component in the scene. When not set explicitly,...
Definition: CrowdAgent.h:74
Vector4 GetClipPlaneAttr() const
Return clipping plane attribute.
Definition: Camera.cpp:631
unsigned numBatches_
Number of batches this frame.
Definition: Graphics.h:816
static void RegisterObject(Context *context)
Register object factory. StaticModel must be registered first.
Definition: Skybox.cpp:46
void SetCollisionMask(unsigned mask)
Definition: RigidBody.cpp:489
ShaderVariation * GetVariation(ShaderType type, const String &defines)
Return a variation with defines. Separate multiple defines with spaces.
Definition: Shader.cpp:123
SharedPtr< Texture2D > LoadFaceTexture(const SharedPtr< Image > &image)
Load font face texture from image resource.
Definition: FontFace.cpp:109
DbResult()
Default constructor constructs an empty result object.
Definition: ODBCResult.h:39
VertexElementType type_
Data type of element.
Definition: GraphicsDefs.h:212
IntVector2 screenPosition_
Screen position.
Definition: UIElement.h:850
void DefineColor(const Color &color)
Define a vertex color.
Definition: CustomGeometry.cpp:559
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 SetNetPositionAttr(const Vector3 &value)
Set network position attribute.
Definition: Node.cpp:1456
void UnregisterAllRemoteEvents()
Unregister all remote events.
Definition: Network.cpp:608
float GetWheelRadius(int wheel) const
Get wheel radius.
Definition: RaycastVehicle.cpp:562
void RemoveAllEventHandlers() override
Remove all scripted event handlers.
Definition: LuaScriptInstance.cpp:356
void Insert(T *element)
Insert an element at the end.
Definition: LinkedList.h:103
ConstraintMouse2D(Context *context)
Construct.
Definition: ConstraintMouse2D.cpp:37
void HandleRenderSurfaceUpdate(StringHash eventType, VariantMap &eventData)
Handle render surface update event.
Definition: Texture2DArray.cpp:198
IntRect GetIntRect() const
Return IntRect, for string type.
Definition: PListFile.cpp:212
const VertexElement * GetElement(VertexElementSemantic semantic, unsigned char index=0) const
Return vertex element, or null if does not exist.
Definition: VertexBuffer.cpp:116
void GetDrawables(PODVector< Drawable2D * > &drawables, Node *node)
Get all drawables in node.
Definition: Renderer2D.cpp:387
void SetSprite(Sprite2D *sprite)
Definition: ParticleEmitter2D.cpp:108
int GetRowStartPosition(unsigned rowIndex) const
Return row start X position.
Definition: Text.cpp:763
UpdateGeometryType GetUpdateGeometryType() override
Return whether a geometry update is necessary, and if it can happen in a worker thread.
Definition: DecalSet.cpp:238
bool GetReadableDepthSupport() const
Definition: Graphics.h:468
RigidBody2D * parentRigidBody_
Parent rigid body.
Definition: PhysicsWorld2D.h:62
LuaScriptObjectMethod
Lua Script object methods.
Definition: LuaScriptInstance.h:41
AreaAllocator()
Default construct with empty size.
Definition: AreaAllocator.cpp:32
Vector< PODVector< GeometryDesc > > loadGeometries_
Geometry definitions for asynchronous loading.
Definition: Model.h:240
Vector4 GetVector(const String &name) const
Return any Vector attribute as Vector4. Missing coordinates will be zero.
Definition: XMLElement.cpp:965
void SetColor(const Color &color, bool overrideAlpha=false)
Set new color for the batch. Overrides gradient.
Definition: UIBatch.cpp:54
AnimationSet2D(Context *context)
Construct.
Definition: AnimationSet2D.cpp:104
const Vector2 & GetVector2() const
Return Vector2 or zero on type mismatch.
Definition: Variant.h:1180
Vector2 LocalToWorld2D(const Vector2 &vector) const
Convert a local space position or rotation to world space (for Urho2D).
Definition: Node.cpp:1200
SharedPtr< Material > material_
Material used for custom rendering.
Definition: BorderImage.h:151
unsigned totalFragments_
Total number of fragments.
Definition: Connection.h:98
void ApplyHeightMap()
Apply changes from the heightmap image.
Definition: Terrain.cpp:512
T & operator*() const
Dereference the array.
Definition: ArrayPtr.h:318
const Vector2 & GetSourcePositionVariance() const
Return source position variance.
Definition: ParticleEffect2D.h:140
List(List< T > &&list) noexcept
Move-construct from another list.
Definition: List.h:185
void SetClassName(const String &className)
Set class name only. Recreate object if necessary.
Definition: ScriptInstance.cpp:265
ConstIterator(Node *ptr)
Construct with a node pointer.
Definition: List.h:113
void OnMarkedDirty(Node *node) override
Handle node transform being dirtied.
Definition: LuaScriptInstance.cpp:509
unsigned GetNumTriangles() const
Return number of rendered triangles.
Definition: OcclusionBuffer.h:141
void Erase(unsigned pos, unsigned length=1)
Erase a range of elements.
Definition: Vector.h:338
VectorBuffer attrBuffer_
Attribute buffer for network updates.
Definition: Node.h:71
Queue item for background loading of a resource.
Definition: BackgroundLoader.h:40
WeakPtr< RigidBody > rigidBody_
Rigid body.
Definition: CollisionShape.h:307
int GetScriptObjectRef() const
Return Lua reference to script object.
Definition: LuaScriptInstance.h:128
const VariantVector & GetKnots() const
Return the knots of the spline.
Definition: Spline.h:81
void MarkInView(const FrameInfo &frame)
Mark in view. Also clear the light list.
Definition: Drawable.cpp:296
@ LM_HORIZONTAL
Layout child elements horizontally and resize them to fit. Resize element if necessary.
Definition: UIElement.h:90
bool optimizeBufferSize_
Optimize buffer sizes flag.
Definition: DecalSet.h:250
RefCount * RefCountPtr() const
Return pointer to the RefCount structure.
Definition: Ptr.h:501
void SetOtherBodyAnchor(const Vector2 &anchor)
Definition: ConstraintPulley2D.cpp:97
const Vector3 & GetOtherPosition() const
Definition: Constraint.h:142
void Release() override
Release buffer.
Definition: OGLVertexBuffer.cpp:56
bool GetAnisotropySupport() const
Return whether anisotropic texture filtering is supported.
Definition: Graphics.h:460
void SetMaterialAttr(const ResourceRef &value)
Set material attribute.
Definition: BorderImage.cpp:231
Sphere(const Polyhedron &poly) noexcept
Construct from a polyhedron.
Definition: Sphere.h:75
bool StartWatching(const String &pathName, bool watchSubDirs)
Start watching a directory. Return true if successful.
Definition: FileWatcher.cpp:77
unsigned maxSortedInstances_
Maximum sorted instances.
Definition: Batch.h:263
bool Append(XMLFile *file)
Append data from an XML file. Return true if successful.
Definition: RenderPath.cpp:329
void DeleteFramebuffer(unsigned fbo)
Delete a framebuffer using either extension or core functionality. Used only on OpenGL.
Definition: OGLGraphics.cpp:3267
const ProfilerBlock * GetCurrentBlock()
Return the current profiling block.
Definition: Profiler.h:215
const AnimationTrack * track_
Animation track.
Definition: AnimationState.h:59
void Update()
Poll for window messages. Called by HandleBeginFrame().
Definition: Input.cpp:406
bool relative_
Billboards relative flag.
Definition: ParticleEffect.h:433
bool Copy(const String &srcFileName, const String &destFileName)
Copy a file. Return true if successful.
Definition: FileSystem.cpp:472
void GetBatches(PODVector< UIBatch > &batches, PODVector< float > &vertexData, const IntRect ¤tScissor) override
Return UI rendering batches.
Definition: UISelectable.cpp:42
bool FilterImplicitAttributes(XMLElement &dest) const override
Filter implicit attributes in serialization process.
Definition: LineEdit.cpp:537
HashSet< StringHash > resources_
Resource name hashes left to load.
Definition: Scene.h:75
unsigned GetStencilCompareMask() const
Return stencil compare bitmask.
Definition: Graphics.h:601
RefCounted * GetPtr() const
Return a RefCounted pointer or null on type mismatch. Will return null if holding a void pointer,...
Definition: Variant.h:1269
void SetAnchor(const Vector2 &anchor)
Definition: ConstraintRevolute2D.cpp:60
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:106
const Matrix3x4 & GetView() const
Return the view transform.
Definition: DebugRenderer.h:160
UniquePtr< pugi::xpath_query > query_
Pugixml xpath_query.
Definition: XMLElement.h:415
WeakPtr< RigidBody > ownBody_
Own rigid body.
Definition: Constraint.h:200
void DrawDebugGeometry(DebugRenderer *debug, bool depthTest) override
Visualize the component as debug geometry.
Definition: Zone.cpp:93
bool useReflection_
Reflection mode enabled flag.
Definition: Camera.h:322
bool GetHorizontalScrollBarVisible() const
Definition: ScrollView.cpp:358
Vector4(float x, float y, float z, float w) noexcept
Construct from coordinates.
Definition: Vector4.h:56
void UpdateCharLocations()
Update cached character locations after text update, or when text alignment or indent has changed.
Definition: Text.cpp:679
Per-thread geometry, light and scene range collection structure.
Definition: View.h:95
bool ResolveToTexture(Texture2D *destination, const IntRect &viewport)
Resolve multisampled backbuffer to a texture rendertarget. The texture's size should match the viewpo...
Definition: OGLGraphics.cpp:692
UpdateEventFlags currentEventMask_
Current event subscription mask.
Definition: LogicComponent.h:110
void SetParticleLifeSpan(float particleLifeSpan)
Set particle lifespan.
Definition: ParticleEffect2D.cpp:319
void UpdateTargetNodePosition()
Intended to be used by IKSolver. Copies the positions/rotations of the target node into the effector.
Definition: IKEffector.cpp:247
ShaderProgram(Graphics *graphics, ShaderVariation *vertexShader, ShaderVariation *pixelShader)
Construct.
Definition: OGLShaderProgram.cpp:61
StretchableSprite2D(Context *context)
Construct.
Definition: StretchableSprite2D.cpp:122
ProgressBar(Context *context)
Construct.
Definition: ProgressBar.cpp:37
bool Delete(const String &fileName)
Delete a file. Return true if successful.
Definition: FileSystem.cpp:520
bool ambientGradient_
Ambient gradient mode flag.
Definition: Zone.h:170
void ProcessRayQuery(const RayOctreeQuery &query, PODVector< RayQueryResult > &results) override
Process octree raycast. May be called from a worker thread.
Definition: AnimatedModel.cpp:161
void SetMaxDoubleClickDistance(float distPixels)
Definition: UI.cpp:644
unsigned NextUTF8Char(unsigned &byteOffset) const
Return next Unicode character from UTF8 content and increase byte offset.
Definition: Str.cpp:812
float radius_
Agent's radius, if 0 the navigation mesh's setting will be used.
Definition: CrowdAgent.h:251
void SetNearDistance(float distance)
Definition: SoundSource3D.cpp:125
unsigned faceMemoryUse_[MAX_CUBEMAP_FACES]
Memory use per face.
Definition: TextureCube.h:88
void ClearAppStats()
Clear all application-specific stats.
Definition: DebugHud.cpp:298
long long intervalTime_
Time during current profiler interval.
Definition: Profiler.h:159
bool IsNecessary(const RenderPathCommand &command)
Check if a command is enabled and has content to render. To be called only after render update has co...
Definition: View.cpp:1899
void SetMaxNetworkAngularVelocity(float velocity)
Set maximum angular velocity for network replication.
Definition: PhysicsWorld.cpp:365
TextureFilterMode GetDefaultTextureFilterMode() const
Return default texture filtering mode.
Definition: Graphics.h:532
bool operator==(const BatchGroupKey &rhs) const
Test for equality with another batch group key.
Definition: Batch.h:208
const void * vertexData_
Vertex data pointer.
Definition: OcclusionBuffer.h:70
SharedPtr< ValueAnimation > animation_
Attribute animation.
Definition: ValueAnimationInfo.h:88
Rendering path definition. A sequence of commands (e.g. clear screen, draw objects with specific pass...
Definition: RenderPath.h:202
void SetBorder(const IntRect &border)
Definition: StretchableSprite2D.cpp:135
bool BeginLoad(Deserializer &source) override
Load resource from stream. May be called from a worker thread. Return true if successful.
Definition: XMLFile.cpp:79
void SetScale(float scale)
Set uniform scale in parent space.
Definition: Node.cpp:463
VariantVector GetAnimationsAttr() const
Return animation control structures attribute.
Definition: AnimationController.cpp:746
AnimationTriggerPoint * GetTrigger(unsigned index)
Return a trigger point by index.
Definition: Animation.cpp:418
float GetMotorSpeed() const
Definition: ConstraintPrismatic2D.h:98
void SetOptimizeBufferSize(bool enable)
Definition: DecalSet.cpp:290
bool mouseVisible_
Operating system mouse cursor visible flag.
Definition: Input.h:450
void CopyMorphVertices(void *destVertexData, void *srcVertexData, unsigned vertexCount, VertexBuffer *destBuffer, VertexBuffer *srcBuffer)
Copy morph vertices.
Definition: AnimatedModel.cpp:1181
bool SaveWEBP(const String &fileName, float compression=0.0f) const
Save in WebP format with minimum (fastest) or specified compression. Return true if successful....
Definition: Image.cpp:1381
void RestoreScriptAttributes()
Restore values of script attributes after hot reload is complete.
Definition: ScriptInstance.cpp:743
void OnSetAnimation(Animation *animation, LoopMode loopMode=Default)
Handle set animation.
Definition: SpriterInstance2D.cpp:181
void SetScriptFile(ScriptFile *scriptFile)
Set script file only. Recreate object if necessary.
Definition: ScriptInstance.cpp:240
MemoryBuffer(void *data, unsigned size)
Construct with a pointer and size.
Definition: MemoryBuffer.cpp:30
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:164
volatile signed char * position_
Playback position.
Definition: SoundSource.h:199
SharedPtr< XMLFile > loadXMLFile_
XML file used while loading.
Definition: Material.h:352
void UpdateGeometries()
Update geometries and sort batches.
Definition: View.cpp:1280
unsigned GetMaximumIterations() const
Definition: IKSolver.cpp:193
void DrawDebugGeometry(bool depthTest)
Add debug geometry to the debug renderer.
Definition: Renderer.cpp:749
Texture2D * GetDefaultLightSpot() const
Definition: Renderer.h:439
HashMap< Pair< StringHash, StringHash >, SharedPtr< Technique > > cloneTechniques_
Cached clones with added shader compilation defines.
Definition: Technique.h:316
void AddVertex(const DecalVertex &vertex)
Add a vertex.
Definition: DecalSet.cpp:131
PODVector< Pair< unsigned, unsigned > > drawRanges_
Draw ranges for different LODs and stitching combinations.
Definition: Terrain.h:304
void ChangeValue(float delta)
Change value by a delta.
Definition: ProgressBar.cpp:109
void StopLayer(unsigned char layer, float fadeOutTime=0.0f)
Stop all animations on a specific layer. Zero fadetime is instant.
Definition: AnimationController.cpp:223
void AddEventHandler(StringHash eventType, const String &handlerName) override
Add a scripted event handler.
Definition: ScriptInstance.cpp:333
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:954
void ComponentAdded(Component *component)
Component added. Add to ID map.
Definition: Scene.cpp:1012
unsigned GetFreeParticle() const
Return a free particle index.
Definition: ParticleEmitter.cpp:550
Definition: IKConstraint.h:35
float DistanceToPlane(const Vector3 &origin, const Vector3 &normal) const
Calculate distance to the plane with given origin and normal.
Definition: Vector3.h:388
ConstIterator Find(const T &key) const
Return const iterator to the key, or end iterator if not found.
Definition: HashSet.h:476
IntVector2(const float *data)
Construct from an float array.
Definition: Vector2.h:57
EventHandler11Impl(std::function< void(StringHash, VariantMap &)> function, void *userData=nullptr)
Construct with receiver and function pointers and userdata.
Definition: Object.h:343
void * GetExternalWindow() const
Return OS-specific external window handle. Null if not in use.
Definition: Graphics.h:342
bool LoadXML(const XMLElement &source) override
Load from XML data. Return true if successful.
Definition: UIElement.cpp:171
bool Remove()
Remove element from its parent.
Definition: XMLElement.cpp:142
void ComponentRemoved(Component *component)
Component removed. Remove from ID map.
Definition: Scene.cpp:1052
void HandleAttributeAnimationUpdate(StringHash eventType, VariantMap &eventData)
Update shader parameter animations.
Definition: Material.cpp:1340
void SetTarget(const Vector2 &target)
Definition: ConstraintMouse2D.cpp:57
bool DrawOcclusion(OcclusionBuffer *buffer) override
Draw to occlusion buffer. Return true if did not run out of triangles.
Definition: StaticModelGroup.cpp:226
static DBAPI GetAPI()
Return the underlying database API.
Definition: Database.cpp:41
PODVector< Component * > delayedDirtyComponents_
Delayed dirty notification queue for components.
Definition: Scene.h:329
SharedPtr< LuaScriptEventInvoker > eventInvoker_
Event invoker.
Definition: LuaScriptInstance.h:175
TechniqueEntry() noexcept
Construct with defaults.
Definition: Material.cpp:168
Texture * GetTexture(unsigned index) const
Return current texture by texture unit index.
Definition: OGLGraphics.cpp:2176
void SetExternalWindow(void *window)
Set external window handle. Only effective before setting the initial screen mode.
Definition: Graphics.cpp:65
bool fixedScreenSize_
Fixed screen size flag.
Definition: Text3D.h:255
PODVector< unsigned char > GetBuffer(const String &name) const
Return buffer attribute, or empty if missing.
Definition: XMLElement.cpp:768
void DrawTriangle2D(const Vector3 *vertices, bool clockwise, unsigned threadIndex)
Draw a clipped triangle.
Definition: OcclusionBuffer.cpp:815
int GetHatPosition(unsigned index) const
Definition: Input.h:117
int lastPatchSize_
Patch size at the time of last update.
Definition: Terrain.h:330
PODVector< DebugLine > noDepthLines_
Lines rendered without depth test.
Definition: DebugRenderer.h:180
bool WriteUInt(unsigned value)
Write a 32-bit unsigned integer.
Definition: Serializer.cpp:61
Mutex changesMutex_
Mutex for the change buffer.
Definition: FileWatcher.h:75
SharedPtr< Geometry > pointLightGeometry_
Point light volume geometry.
Definition: Renderer.h:555
virtual void Update(float timeStep)
Perform UI element update.
Definition: UIElement.cpp:339
bool GetTextureRectangle(Rect &rect, bool flipX=false, bool flipY=false) const
Return texture rectangle.
Definition: Sprite2D.cpp:167
void SetMinEmissionRate(float rate)
Definition: ParticleEffect.cpp:520
void SetAxis(const Vector2 &axis)
Definition: ConstraintPrismatic2D.cpp:73
const T & operator*() const
Dereference the key.
Definition: HashSet.h:171
void DumpProfiler()
Dump profiling information to the log.
Definition: Engine.cpp:606
ProfilerBlock * GetChild(const char *name)
Return child block with the specified name.
Definition: Profiler.h:124
unsigned GetNumChildren(bool recursive=false) const
Return number of child scene nodes.
Definition: Node.cpp:1222
RigidBody2D * rigidBody_
Rigid body.
Definition: PhysicsWorld2D.h:60
void SetFixedScreenSize(bool enable)
Definition: ParticleEffect.cpp:470
SLNet::NatPunchthroughClient * natPunchthroughClient_
NAT punchtrough client for the client.
Definition: Network.h:200
const Vector< SharedPtr< AnimationState > > & GetAnimationStates() const
Return all animation states.
Definition: AnimatedModel.h:110
const IntVector2 & GetEffectShadowOffset() const
Definition: Text3D.cpp:433
ConstantBuffer(Context *context)
Construct.
Definition: ConstantBuffer.cpp:34
bool Equals(const Matrix4 &rhs) const
Test for equality with another matrix with epsilon.
Definition: Matrix4.h:618
bool BeginLoadFromXMLFile(Deserializer &source)
Begin load from XML file.
Definition: SpriteSheet2D.cpp:197
void Update(float timeStep)
Step the simulation forward.
Definition: PhysicsWorld.cpp:256
~AnimatedModel() override
Destruct.
Definition: AnimatedModel.cpp:90
float rotationMin_
Particle rotation angle minimum.
Definition: ParticleEffect.h:475
ParticleEffect2D(Context *context)
Construct.
Definition: ParticleEffect2D.cpp:68
static void CopyChars(char *dest, const char *src, unsigned count)
Copy chars from one buffer to another.
Definition: Str.h:531
Vector3 targetVelocity_
Requested target velocity.
Definition: CrowdAgent.h:241
void ResetMorphWeights()
Reset all vertex morphs to zero.
Definition: AnimatedModel.cpp:608
void OnMarkedDirty(Node *node) override
Handle node transform being dirtied.
Definition: RigidBody.cpp:891
float slopeScaledDepthBias_
Depth slope scaled bias.
Definition: Graphics.h:866
void AddMetadata(const String &name, const Variant &value)
Definition: Resource.cpp:132
void StartNATClient()
Start NAT punchtrough client to allow remote connections.
Definition: Network.cpp:475
float GetLength(const String &name) const
Return animation length.
Definition: AnimationController.cpp:525
MouseButtonFlags GetDragButtonCombo() const
Definition: UIElement.h:707
unsigned ToHash() const
Return hash value for HashSet & HashMap.
Definition: Vector3.h:153
RenderSurface * GetRenderTarget(unsigned index) const
Return current rendertarget by index.
Definition: OGLGraphics.cpp:2181
btPersistentManifold * manifold_
Manifold without the body pointers flipped.
Definition: PhysicsWorld.h:104
bool WriteVector3(const Vector3 &value)
Write a Vector3.
Definition: Serializer.cpp:116
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:728
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:124
float cursorBlinkRate_
Cursor blink rate.
Definition: LineEdit.h:162
float shadowIntensity_
Light intensity in shadow.
Definition: Light.h:439
void ApplyTorque(float torque, bool wake)
Apply Torque.
Definition: RigidBody2D.cpp:341
void Apply()
Apply the animation at the current time position.
Definition: AnimationState.cpp:444
const String & GetVarName(StringHash hash) const
Return a node user variable name, or empty if not registered.
Definition: Scene.cpp:754
Placeholder for allowing unregistered components to be loaded & saved along with scenes.
Definition: UnknownComponent.h:31
void RebuildChainTrees()
Updates the solver's internal data structures, which is required whenever the tree is modified in any...
Definition: IKSolver.cpp:378
WrapMode GetAttributeAnimationWrapMode(const String &name) const
Return attribute animation wrap mode.
Definition: Animatable.cpp:434
int Run()
Initialize the engine and run the main loop, then return the application exit code....
Definition: Application.cpp:63
void EnableInternalLayoutUpdate()
Enable automatic layout update for internal elements.
Definition: ListView.cpp:338
bool GetSpecular() const
Return whether should render specular.
Definition: Material.h:278
void LoseFocus()
Prepare input state for application losing input focus.
Definition: Input.cpp:1614
SharedArrayPtr< unsigned char > loadByteCode_
Byte code for asynchronous loading.
Definition: ScriptFile.h:152
HashMap< StringHash, HashSet< StringHash > > dependentResources_
Dependent resources. Only used with automatic reload to eg. trigger reload of a cube texture when any...
Definition: ResourceCache.h:258
Drawable(Context *context, unsigned char drawableFlags)
Construct.
Definition: Drawable.cpp:59
LinkedList< EventHandler > eventHandlers_
Event handlers. Sender is null for non-specific handlers.
Definition: Object.h:198
SharedPtr< Text > loadingText_
ProgressBar text.
Definition: ProgressBar.h:105
UniquePtr< pugi::xpath_variable_set > variables_
Pugixml xpath_variable_set.
Definition: XMLElement.h:417
static unsigned GetExternalFormat(unsigned format)
Definition: OGLTexture.cpp:256
void GetBatches()
Construct batches from the drawable objects.
Definition: View.cpp:964
String loadSpriteName_
Sprite name acquired during BeginLoad().
Definition: ParticleEffect2D.h:330
SceneReplicationState sceneState_
Network replication state of the scene.
Definition: Connection.h:324
const Matrix4 & GetProjection() const
Return projection matrix.
Definition: OcclusionBuffer.h:132
const Vector< AttributeInfo > * GetAttributes() const override
Return attribute descriptions, or null if none defined.
Definition: UnknownComponent.h:47
bool SaveDDS(const String &fileName) const
Save in DDS format. Only uncompressed RGBA images are supported. Return true if successful.
Definition: Image.cpp:1329
void SetLayout(LayoutMode mode, int spacing=0, const IntRect &border=IntRect::ZERO)
Set layout parameters.
Definition: UIElement.cpp:1044
ShaderVariation * vertexShader_
Vertex shader in use.
Definition: Graphics.h:838
virtual void OnNodeSetEnabled(Node *node)
Handle scene node enabled status changing.
Definition: Component.cpp:250
void DelayedExecute(float delay, bool repeat, const String &declaration, const VariantVector ¶meters=Variant::emptyVariantVector)
Add a delay-executed function call, optionally repeating.
Definition: ScriptFile.cpp:491
void SetMinAnchor(const Vector2 &anchor)
Definition: UIElement.cpp:769
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:461
SharedArrayPtr< unsigned char > data_
Buffer data.
Definition: Graphics.h:73
bool IsUpdateQueued() const
Return whether manual update queued. Called internally.
Definition: RenderSurface.h:109
bool SetTime(const String &name, float time)
Set animation time position. Return true on success.
Definition: AnimationController.cpp:328
ConstIterator & operator=(const Iterator &rhs)
Assign from a non-const iterator.
Definition: HashMap.h:174
bool scrollChildrenDisable_
Used to determine if children have been disabled.
Definition: ScrollView.h:212
Vector< PODVector< CustomGeometryVertex > > & GetVertices()
Return all vertices. These can be edited; calling Commit() updates the vertex buffer.
Definition: CustomGeometry.h:153
static void RegisterObject(Context *context)
Register object factory.
Definition: CheckBox.cpp:48
const Frustum & GetFrustum() const
Return the view frustum.
Definition: DebugRenderer.h:166
void FinalizeShadowCamera(Camera *shadowCamera, Light *light, const IntRect &shadowViewport, const BoundingBox &shadowCasterBox)
Finalize shadow camera view after shadow casters and the shadow map are known.
Definition: View.cpp:2678
Camera * cullCamera_
Culling camera. Usually same as the viewport camera.
Definition: View.h:322
void Set()
Set the condition. Will be automatically reset once a waiting thread wakes up.
Definition: Condition.cpp:83
void Define(const Sphere &sphere)
Define from another sphere.
Definition: Sphere.h:90
static unsigned shadowPassIndex
Index for shadow pass. Initialized once GetPassIndex() has been called for the first time.
Definition: Technique.h:306
HashMap< StringHash, ResourceGroup > resourceGroups_
Resources by type.
Definition: ResourceCache.h:250
void SetMouseButton(MouseButton button, bool newState, int clicks)
Handle a mouse button change.
Definition: Input.cpp:1747
RenderCommandSortMode
Rendering path sorting modes.
Definition: RenderPath.h:53
float rotationEndVariance_
Rotation end variance.
Definition: ParticleEffect2D.h:328
void HandleComponentAdded(StringHash eventType, VariantMap &eventData)
Handle component added in the scene to check for late addition of the navmesh.
Definition: CrowdManager.cpp:731
void SetPatchNeighbors(TerrainPatch *patch)
Set neighbors for a patch.
Definition: Terrain.cpp:1406
bool useDrawRect_
Use draw rectangle flag.
Definition: StaticSprite2D.h:186
Variant LinearInterpolation(const Vector< Variant > &knots, float t) const
Perform linear interpolation on the spline.
Definition: Spline.cpp:231
bool StartsWith(const String &str, bool caseSensitive=true) const
Return whether starts with a string.
Definition: Str.cpp:712
void SetStartParticleSize(float startParticleSize)
Set start particle size.
Definition: ParticleEffect2D.cpp:389
void UpdateParameters()
Update dirty parameters to the texture object. Called by Graphics when assigning the texture.
Definition: OGLTexture.cpp:87
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 Vector< TechniqueEntry > & GetTechniques() const
Return all techniques.
Definition: Material.h:206
static unsigned GetRG16Format()
Return the API-specific RG 16-bit texture format.
Definition: OGLGraphics.cpp:2616
VariantType GetValueType() const
Definition: ValueAnimation.h:126
bool BeginLoad(Deserializer &source) override
Load resource from stream. May be called from a worker thread. Return true if successful.
Definition: TextureCube.cpp:84
void SetShaderParameter(const String &name, const Variant &value)
Definition: Material.cpp:953
void SetName(const String &name)
Set name.
Definition: ShaderVariation.cpp:70
float fadeTime_
Animation weight fade time, 0 if no fade.
Definition: AnimationController.h:65
EventHandler * GetEventHandler() const
Return active event handler. Set by Object. Null outside event handling.
Definition: Context.h:158
HashMap< BatchGroupKey, BatchGroup > batchGroups_
Instanced draw calls.
Definition: Batch.h:248
SharedPtr< XMLFile > loadXMLFile_
XML file used during loading.
Definition: TmxFile2D.h:216
void RemoveAutoComplete(const String &option)
Remove auto complete option.
Definition: Console.cpp:264
void SetFlip(bool flipX, bool flipY, bool swapXY=false)
Set flip.
Definition: StaticSprite2D.cpp:129
unsigned AtUTF8(unsigned index) const
Return Unicode character at index from UTF8 content.
Definition: Str.cpp:824
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:464
HashMap< Pair< Light *, Camera * >, Rect > lightScissorCache_
Cache for light scissor queries.
Definition: Renderer.h:587
float GetDepthSlopeScaledBias() const
Return depth slope scaled bias.
Definition: Graphics.h:562
void SetWorldTransform2D(const Vector2 &position, float rotation, const Vector2 &scale)
Set position, rotation, and scale in world space as an atomic opration (for Urho2D).
Definition: Node.h:249
float RollAngleoffFactor() const
Definition: SoundSource3D.h:88
void SendRemoteEvent(StringHash eventType, bool inOrder, const VariantMap &eventData=Variant::emptyVariantMap)
Send a remote event.
Definition: Connection.cpp:142
SharedPtr< ScrollBar > verticalScrollBar_
Vertical scroll bar.
Definition: ScrollView.h:180
void SetRenderPath(RenderPath *renderPath)
Definition: Viewport.cpp:94
void SetMaximumIterations(unsigned iterations)
Sets the maximum number of iterations the solver is allowed to perform before applying the result.
Definition: IKSolver.cpp:199
void TransformVertices(Decal &decal, const Matrix3x4 &transform)
Transform decal's vertices from the target geometry to the decal set local space.
Definition: DecalSet.cpp:975
WeakPtr< PhysicsWorld2D > physicsWorld_
Physics world.
Definition: RigidBody2D.h:197
void SetFixedHeightResizing(bool enable)
Definition: Window.cpp:267
virtual bool OnDragDropFinish(UIElement *source)
React to drag and drop finish. Return true to signal that the drop was accepted.
Definition: UIElement.cpp:457
void SetAngularFactor(const Vector3 &factor)
Definition: RigidBody.cpp:347
bool GetParametersDirty() const
Return whether the parameters are dirty.
Definition: OGLTexture.cpp:176
void SetContentElement(UIElement *element)
Definition: ScrollView.cpp:281
unsigned GetBufferNumBytes() const
Return amount of buffered (unplayed) sound data in bytes.
Definition: BufferedSoundStream.cpp:110
unsigned GetNumDrawables() const
Return number of drawables.
Definition: Octree.h:93
void SetSmoothingConstant(float constant)
Definition: Scene.cpp:655
bool SetNumGeometryLodLevels(unsigned index, unsigned num)
Definition: Model.cpp:556
Vector< PODVector< GlyphLocation > > pageGlyphLocations_
Glyph locations per each texture in the font.
Definition: Text.h:293
asIScriptContext * GetScriptFileContext()
Return a script function/method execution context for the current execution nesting level.
Definition: Script.cpp:407
void CleanupRenderSurface(RenderSurface *surface)
Definition: OGLGraphics.cpp:2275
virtual bool IsWheelHandler() const
Return whether the element could handle wheel input.
Definition: UIElement.h:210
Vector3 ReadVector3()
Read a Vector3.
Definition: Deserializer.cpp:173
bool Equals(const Vector4 &rhs) const
Test for equality with another vector with epsilon.
Definition: Vector4.h:189
void CenterMousePosition()
Center the mouse position.
Definition: Input.cpp:1839
void SetStartColor(const Color &color)
Definition: RibbonTrail.cpp:830
const Matrix4 & GetProjection() const
Return the projection transform.
Definition: DebugRenderer.h:163
void ResumeSoundType(const String &type)
Resume playback of specific sound type.
Definition: Audio.cpp:176
b2MotorJointDef jointDef_
Box2D joint def.
Definition: ConstraintMotor2D.h:84
void AddCross(const Vector3 ¢er, float size, const Color &color, bool depthTest=true)
Add a cross.
Definition: DebugRenderer.cpp:459
Animation * GetAnimation() const
Return current animation.
Definition: SpriterInstance2D.h:72
void SetPixelShaderDefineExcludes(const String &excludes)
Definition: Technique.cpp:165
void SetBillboardsAttr(const VariantVector &value)
Set billboards attribute.
Definition: BillboardSet.cpp:368
const HashMap< StringHash, SharedPtr< ObjectFactory > > & GetObjectFactories() const
Return all object factories.
Definition: Context.h:149
void SetBlockEvents(bool block)
Block object from sending and receiving events.
Definition: Object.h:179
static void RegisterObject(Context *context)
Register object factory.
Definition: TileMap2D.cpp:49
void OnDeviceReset() override
Recreate the GPU resource and restore data if applicable.
Definition: OGLTexture3D.cpp:50
float GetMaxTimeToLive() const
Definition: ParticleEffect.h:347
int GetInt(const String &name) const
Return an integer attribute, or zero if missing.
Definition: XMLElement.cpp:807
bool lineAntiAlias_
Line antialiasing flag.
Definition: DebugRenderer.h:196
void GetRigidBodies(PODVector< RigidBody * > &result, const Sphere &sphere, unsigned collisionMask=M_MAX_UNSIGNED)
Return rigid bodies by a sphere query.
Definition: PhysicsWorld.cpp:621
float GetEffectiveSpecularIntensity() const
Definition: Light.h:287
void ClearDrawablesZone()
Clear zone reference from drawables inside the bounding box.
Definition: Zone.cpp:325
void DrawOccluders(OcclusionBuffer *buffer, const PODVector< Drawable * > &occluders)
Draw occluders to occlusion buffer.
Definition: View.cpp:2231
HashMap< StringHash, ShaderParameter > parameters_
Shader parameters.
Definition: ShaderVariation.h:162
const FrameInfo & GetFrameInfo() const
Return the frame update parameters.
Definition: Renderer.h:451
void SendEvent(StringHash eventType)
Send event to all subscribers.
Definition: Object.cpp:293
Sprite2D * GetSprite() const
Return sprite.
Definition: TmxFile2D.cpp:371
SharedPtr< ResourceRouter > router_
AngelScript resource router.
Definition: Script.h:143
static Urho3D::StringHash GetTypeStatic()
Return static type.
Definition: UnknownComponent.h:77
ConstIterator Find(const T &value) const
Return const iterator to value, or to the end if not found.
Definition: List.h:381
TileMapObject2D * GetObject(unsigned index) const
Return tile map object at index.
Definition: TmxFile2D.cpp:327
ShapeType shapeType_
Collision shape type.
Definition: CollisionShape.h:315
MainlineKey * mainlineKey_
Current mainline key.
Definition: SpriterInstance2D.h:107
float DotProduct(const Quaternion &rhs) const
Calculate dot product.
Definition: Quaternion.h:398
Vector< RenderPathCommand > commands_
Rendering commands.
Definition: RenderPath.h:270
static void RegisterObject(Context *context)
Register object factory.
Definition: SoundSource3D.cpp:58
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:655
SharedPtr< Sound > sound_
Sound that is being played.
Definition: SoundSource.h:195
void SetVariantMap(const VariantMap &variantMap, Context *context=nullptr)
Set variant map, context must provide for resource ref.
Definition: JSONValue.cpp:566
Vector3 GetAngularVelocity() const
Definition: RigidBody.cpp:643
virtual bool EndLoad()
Finish resource loading. Always called from the main thread. Return true if successful.
Definition: Resource.cpp:75
const Vector3 & GetBaseVelocity() const
Definition: RibbonTrail.h:188
Constraint2D * GetOwnerConstraint() const
Definition: ConstraintGear2D.h:55
void SetHoverOffset(const IntVector2 &offset)
Definition: BorderImage.cpp:113
bool FilterUIStyleAttributes(XMLElement &dest, const XMLElement &styleElem) const
Filter UI-style attributes in serialization process.
Definition: UIElement.cpp:1970
bool NotNull() const
Check if the pointer is not null.
Definition: Ptr.h:646
bool positionDirty_
Screen position dirty flag.
Definition: UIElement.h:852
void OnSetEnabled() override
Handle enabled/disabled state change.
Definition: ParticleEmitter.cpp:87
void MarkPositionsDirty()
Mark vertex buffer to need an update.
Definition: RibbonTrail.cpp:895
void ResetScreenBufferAllocations()
Reset screem buffer allocation counts.
Definition: Renderer.cpp:1572
void MixStereoToMono(Sound *sound, int *dest, unsigned samples, int mixRate)
Mix stereo sample to mono buffer.
Definition: SoundSource.cpp:918
void SetPosition(const IntVector2 &position)
Definition: UIElement.cpp:525
PODVector< unsigned > unicodeText_
Text as Unicode characters.
Definition: Text.h:285
void SetWorldScale(float scale)
Set uniform scale in world space.
Definition: Node.cpp:529
void SetTextureForUpdate(Texture *texture)
Definition: OGLGraphics.cpp:1564
Mutex sceneMutex_
Mutex for the delayed dirty notification queue.
Definition: Scene.h:331
float GetMinTimeToLive() const
Definition: ParticleEffect.h:343
Vector4 Column(unsigned j) const
Return matrix column.
Definition: Matrix4.h:648
Iterator Erase(const Iterator &it)
Erase a key by iterator. Return iterator to the next key.
Definition: HashSet.h:362
Quaternion Nlerp(const Quaternion &rhs, float t, bool shortestPath=false) const
Normalized linear interpolation with another quaternion.
Definition: Quaternion.cpp:313
Vector< PODVector< Vector3 > > faces_
Polygon faces.
Definition: Polyhedron.h:108
bool sdlMouseRelative_
Flag to determine whether SDL mouse relative was used.
Definition: Input.h:463
@ AM_FILEREADONLY
Attribute is readonly. Can't be used with binary serialized objects.
Definition: Attribute.h:55
void SetFeature(Feature feature, bool enable)
Definition: IKSolver.cpp:155
static void RegisterObject(Context *context)
Register object factory.
Definition: Texture2D.cpp:55
void AddDelayedWorldTransform(const DelayedWorldTransform2D &transform)
Add a delayed world transform assignment. Called by RigidBody2D.
Definition: PhysicsWorld2D.cpp:451
UIElement * GetContentElement() const
Definition: ScrollView.h:108
void OnDeviceLost() override
Mark the buffer destroyed on graphics context destruction. May be a no-op depending on the API.
Definition: OGLIndexBuffer.cpp:36
AllContentOctreeQuery(PODVector< Drawable * > &result, unsigned char drawableFlags, unsigned viewMask)
Construct.
Definition: OctreeQuery.h:267
UniquePtr< pugi::xml_document > document_
Pugixml document.
Definition: XMLFile.h:97
SDL_JoystickID joystickID_
SDL joystick instance ID.
Definition: Input.h:122
Internal helper class for invoking event handler functions.
Definition: Object.h:255
bool operator==(const HashIteratorBase &rhs) const
Test for equality with another iterator.
Definition: HashBase.h:73
IntVector3 GetCoordinateSystem() const
Definition: RaycastVehicle.h:171
void HandleItemClicked(StringHash eventType, VariantMap &eventData)
Handle listview item click event.
Definition: DropDownList.cpp:317
Transform smoothing component for network updates.
Definition: SmoothedTransform.h:44
static void RegisterObject(Context *context)
Register object factory.
Definition: ObjectAnimation.cpp:53
Variant(const String &value)
Construct from a string.
Definition: Variant.h:410
float GetDampingRatio() const
Definition: ConstraintMouse2D.h:70
Matrix3x4(const Vector3 &translation, const Quaternion &rotation, float scale) noexcept
Construct from translation, rotation and uniform scale.
Definition: Matrix3x4.h:150
int vsmMultiSample_
Multisample level for VSM shadows.
Definition: Renderer.h:623
VertexMaskFlags elementMask_
Vertex element legacy bitmask.
Definition: VertexBuffer.h:165
@ LOAD_RESOURCES_ONLY
Preload resources used by a scene or object prefab file, but do not load any scene content.
Definition: Scene.h:49
Variant(VariantType type, const char *value)
Construct from type and value.
Definition: Variant.h:543
asIScriptContext * GetImmediateContext() const
Return immediate execution script context.
Definition: Script.h:89
void MarkOtherBodyNodeIDDirty()
Mark other body node ID dirty.
Definition: Constraint2D.h:96
SharedPtr< Image > GetNextSibling() const
Return the next sibling image of an array or cubemap.
Definition: Image.h:195
IntVector2 childOffset_
Child elements' offset. Used internally.
Definition: UIElement.h:889
static void RegisterObject(Context *context)
Register object factory.
Definition: Constraint2D.cpp:52
static unsigned CheckMaxLevels(int width, int height, unsigned requestedLevels)
Check maximum allowed mip levels for a specific texture size.
Definition: Texture.cpp:240
void SetSelectOnClickEnd(bool enable)
Definition: ListView.cpp:764
void AddWorkItem(const SharedPtr< WorkItem > &item)
Add a work item and resume worker threads.
Definition: WorkQueue.cpp:125
TerrainPatch * GetNorthPatch() const
Return north neighbor patch.
Definition: TerrainPatch.h:89
const String & GetPixelShaderDefines() const
Definition: Technique.h:147
WeakPtr< RigidBody2D > otherBody_
Other body.
Definition: Constraint2D.h:105
void InsertKeyFrame(unsigned index, const AnimationKeyFrame &keyFrame)
Insert a keyframe at index.
Definition: Animation.cpp:71
Vector3 normal_
Hit normal in world space. Negation of ray direction if per-triangle data not available.
Definition: OctreeQuery.h:213
void OnDragEnd(const IntVector2 &position, const IntVector2 &screenPosition, MouseButtonFlags dragButtons, MouseButtonFlags releaseButtons, Cursor *cursor) override
React to mouse drag end.
Definition: Window.cpp:232
void OnWorldBoundingBoxUpdate() override
Recalculate the world-space bounding box.
Definition: StaticModelGroup.cpp:368
int numDragButtons
How many buttons initiated the drag.
Definition: UI.h:276
float mobileNormalOffsetMul_
Mobile platform shadow normal offset multiplier.
Definition: Renderer.h:641
float scrollDeceleration_
Scroll deceleration.
Definition: ScrollView.h:202
float GetDistance() const
Return distance from camera.
Definition: Drawable.h:286
void SetMaterialAttr(const ResourceRef &value)
Set material attribute.
Definition: DecalSet.cpp:518
float AbsDotProduct(const Vector2 &rhs) const
Calculate absolute dot product.
Definition: Vector2.h:312
Color GetColorFromTemperature() const
Definition: Light.cpp:416
int height_
Height of the window. 0 to pick automatically.
Definition: Graphics.h:133
void PushString(const String &string)
Push string to stack.
Definition: LuaFunction.cpp:130
unsigned GetSize() const override
Get size.
Definition: Variant.h:257
float rotationStartVariance_
Rotation start variance.
Definition: ParticleEffect2D.h:324
bool enabledPrev_
Last SetEnabled flag before any SetDeepEnabled.
Definition: Node.h:725
SceneReplicationState * sceneState_
Parent scene replication state.
Definition: ReplicationState.h:159
void ApplyShadowMapFilter(View *view, Texture2D *shadowMap, float blurScale)
Apply post processing filter to the shadow map. Called by View.
Definition: Renderer.cpp:531
VariantMap ReadVariantMap()
Read a variant map.
Definition: Deserializer.cpp:414
List< Decal >::Iterator RemoveDecal(List< Decal >::Iterator i)
Remove a decal by iterator and return iterator to the next decal.
Definition: DecalSet.cpp:984
void SetDebugRenderer(DebugRenderer *debug)
Set debug renderer to use. Called both by PhysicsWorld itself and physics components.
Definition: PhysicsWorld.cpp:761
void PostUpdate(float timeStep)
Send outgoing messages after frame logic. Called by HandleRenderUpdate.
Definition: Network.cpp:914
void UpdateGeometry(const FrameInfo &frame) override
Prepare geometry for rendering. Called from a worker thread if possible (no GPU update).
Definition: RibbonTrail.cpp:397
IntVector2 hotSpot_
Hotspot for positioning and rotation.
Definition: Sprite.h:128
void RemoveControlPoint(Node *point)
Remove a Node Control Point from the SplinePath.
Definition: SplinePath.cpp:154
void PushUserType(const T *userType, const char *typeName)
Push user type to stack.
Definition: LuaFunction.h:80
void SetMaxTriangles(unsigned triangles)
Set maximum triangles to render.
Definition: OcclusionBuffer.cpp:129
Intersection IsInsideFast(const BoundingBox &box) const
Test if a bounding box is (partially) inside or outside.
Definition: Frustum.h:144
unsigned GetNumLights(bool allViews=false) const
Definition: Renderer.cpp:591
long long totalMaxTime_
All-time maximum time.
Definition: Profiler.h:167
void SetLowerTranslation(float lowerTranslation)
Definition: ConstraintPrismatic2D.cpp:99
bool bufferDirty_
Vertex buffer needs rewrite flag.
Definition: BillboardSet.h:213
void OnDeviceLost() override
Mark the GPU resource destroyed on context destruction.
Definition: OGLTexture3D.cpp:42
const Quaternion & GetRotation() const
Definition: CollisionShape.h:241
bool dirty_
Whether the Control Point IDs are dirty.
Definition: SplinePath.h:144
void HandleSelectionChanged(StringHash eventType, VariantMap &eventData)
Handle the listview selection change. Set placeholder text hidden/visible as necessary.
Definition: DropDownList.cpp:340
void SetCenter(const Vector2 ¢er)
Definition: CollisionCircle2D.cpp:69
const HashMap< String, Vector< StringHash > > & GetObjectCategories() const
Return all object categories.
Definition: Context.h:152
PODVector< UIBatch > debugDrawBatches_
UI rendering batches for debug draw.
Definition: UI.h:406
void RemoveEventHandlersExcept(const PODVector< StringHash > &exceptions) override
Remove all scripted event handlers, except those listed.
Definition: ScriptFile.cpp:261
const StringVector & GetColumns() const
Return the column headers string collection.
Definition: ODBCResult.h:57
void HandlePostUpdate(StringHash eventType, VariantMap &eventData)
Handle logic post-update event.
Definition: UI.cpp:2047
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:219
CollisionChain2D(Context *context)
Construct.
Definition: CollisionChain2D.cpp:38
IntVector2 maxSize_
Maximum size it allows to grow. It is zero when it is not allowed to grow.
Definition: AreaAllocator.h:66
bool sRGBWrite_
sRGB write mode flag.
Definition: OGLGraphicsImpl.h:160
void WriteColor(XMLElement &element, const String &name, const Color &color) const
Write Color.
Definition: ParticleEffect2D.cpp:554
const Vector< ModelMorph > & GetMorphs() const
Return all vertex morphs.
Definition: AnimatedModel.h:135
ConstIterator Begin() const
Return iterator to the beginning.
Definition: HashMap.h:606
bool hasSpriteSheet_
Has sprite sheet.
Definition: AnimationSet2D.h:115
void ApplyAttributes() override
Apply attribute changes that can not be applied immediately.
Definition: ScrollBar.cpp:96
bool Equals(const Matrix3 &rhs) const
Test for equality with another matrix with epsilon.
Definition: Matrix3.h:245
float defaultToolTipDelay_
Tooltip default display delay in seconds.
Definition: UI.h:422
float GetIntensityDivisor(float attenuation=1.0f) const
Return a divisor value based on intensity for calculating the sort value.
Definition: Light.h:372
void ClearDataLost()
Clear the data lost flag.
Definition: GPUObject.cpp:68
SharedPtr< Button > forwardButton_
Forward button.
Definition: ScrollBar.h:118
void CreateIndexData()
Create index data shared by all patches.
Definition: Terrain.cpp:1137
ValueAnimation * GetShaderParameterAnimation(const String &name) const
Return shader parameter animation.
Definition: Material.cpp:1209
void OnMarkedDirty(Node *point) override
Listener to manage Control Point movement.
Definition: SplinePath.cpp:285
HashMap< StringHash, SharedPtr< ObjectFactory > > factories_
Object factories.
Definition: Context.h:226
volatile int fractPosition_
Playback fractional position.
Definition: SoundSource.h:201
void OnSetEnabled() override
Handle enabled/disabled state change.
Definition: AnimationController.cpp:76
bool FilterAttributes(XMLElement &dest) const
Filter attributes in serialization process.
Definition: UIElement.cpp:485
void UpdateTextBatches()
Update text UI batches.
Definition: Text3D.cpp:571
void ProcessSceneLoaded(int msgID, MemoryBuffer &msg)
Process a SceneLoaded message from the client. Called by Network.
Definition: Connection.cpp:983
int tolerance_
Tolerance for the shared pool before it begins to deallocate.
Definition: WorkQueue.h:149
void ApplyTrack(AnimationStateTrack &stateTrack, float weight, bool silent)
Apply track.
Definition: AnimationState.cpp:477
float GetMaxMotorTorque() const
Definition: ConstraintRevolute2D.h:91
const PODVector< SpatialTimelineKey * > & GetTimelineKeys() const
Return animation result timeline keys.
Definition: SpriterInstance2D.h:76
Matrix3x4 worldTransform_
World-space transform matrix.
Definition: Node.h:719
EmitterType GetEmitterType() const
Definition: ParticleEffect.h:295
bool retryCreation_
Constraint creation retry flag if attributes initially set without scene.
Definition: Constraint.h:234
ConstIterator Begin() const
Return iterator to the first element.
Definition: List.h:396
FrustumOctreeQuery(PODVector< Drawable * > &result, const Frustum &frustum, unsigned char drawableFlags=DRAWABLE_ANY, unsigned viewMask=DEFAULT_VIEWMASK)
Construct with frustum and query parameters.
Definition: OctreeQuery.h:144
SharedPtr< Technique > Clone(const String &cloneName=String::EMPTY) const
Clone the technique. Passes will be deep copied to allow independent modification.
Definition: Technique.cpp:376
void SetRenderTexture(Texture2D *texture)
Set texture to which element will be rendered.
Definition: UIElement.cpp:2245
CompressedFormat compressedFormat_
Compressed format.
Definition: Image.h:243
nanodbc::connection connectionImpl_
The underlying implementation connection object.
Definition: ODBCConnection.h:65
Urho3D execution context. Provides access to subsystems, object factories and attributes,...
Definition: Context.h:66
void HandleRenderUpdate(StringHash eventType, VariantMap &eventData)
Handle render update frame event.
Definition: Network.cpp:981
bool GetQualifierPress(Qualifier qualifier) const
Definition: Input.cpp:1376
float biasAutoAdjust_
Automatic depth bias adjustment strength.
Definition: Light.h:116
b2CircleShape circleShape_
Circle shape.
Definition: CollisionCircle2D.h:67
void SetMaterialAttr(const ResourceRef &value)
Set material attribute.
Definition: Text3D.cpp:539
Vector< PListValue > PListValueVector
Vector of PList value.
Definition: PListFile.h:53
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:169
void ReleasePackageResources(PackageFile *package, bool force=false)
Release resources loaded from a package file.
Definition: ResourceCache.cpp:1003
Utility class that resolves node & component IDs after a scene or partial scene load.
Definition: SceneResolver.h:35
SoundSource(Context *context)
Construct.
Definition: SoundSource.cpp:103
void OnNodeSet(Node *node) override
Handle node being assigned.
Definition: AnimatedModel.cpp:934
void Insert(const Iterator &dest, const List< T > &list)
Insert a list at position.
Definition: List.h:288
void SetRenderTarget(unsigned index, RenderSurface *renderTarget)
Set rendertarget.
Definition: OGLGraphics.cpp:1631
HashSet< Octree * > updatedOctrees_
Octrees that have been updated during the frame.
Definition: Renderer.h:597
bool LoadTileSet(const XMLElement &element)
Load tile set.
Definition: TmxFile2D.cpp:620
void WriteVector2(XMLElement &element, const String &name, const Vector2 &value) const
Write Vector2.
Definition: ParticleEffect2D.cpp:563
void Define(const Rect &rect)
Define from a Rect.
Definition: BoundingBox.h:152
void Decompose(Vector3 &translation, Quaternion &rotation, Vector3 &scale) const
Return decomposition to translation, rotation and scale.
Definition: Matrix4.cpp:65
float radialAccelVariance_
Radial acceleration variance.
Definition: ParticleEffect2D.h:282
void BeginSendEvent(Object *sender, StringHash eventType)
Begin event send.
Definition: Context.cpp:454
Definition: Input.h:58
BoundingBox(const Rect &rect) noexcept
Construct from a rect, with the Z dimension left zero.
Definition: BoundingBox.h:62
float mobileShadowBiasMul_
Mobile platform shadow depth bias multiplier.
Definition: Renderer.h:637
VertexBuffer * GetVertexBuffer(unsigned index) const
Definition: Geometry.cpp:191
Sound source component with three-dimensional position.
Definition: SoundSource3D.h:33
void AddReplicationState(NodeReplicationState *state) override
Add a replication state that is tracking this scene.
Definition: Scene.cpp:208
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:96
Plane(const Vector3 &normal, const Vector3 &point) noexcept
Construct from a normal vector and a point on the plane.
Definition: Plane.h:51
Vector2 texCoord_
Texture coordinates.
Definition: CustomGeometry.h:41
void SetDefaultScene(Scene *scene)
Set immediate mode scene.
Definition: Script.cpp:273
void SetDragDropMode(DragAndDropModeFlags mode)
Definition: UIElement.cpp:989
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:739
HashMap< unsigned long long, Vector< SharedPtr< Texture > > > screenBuffers_
Screen buffers by resolution and format.
Definition: Renderer.h:583
void SetMinDirection(const Vector3 &direction)
Definition: ParticleEffect.cpp:490
Definition: Octree.h:40
Description of an automatically serializable variable.
Definition: Attribute.h:72
static void RegisterObject(Context *context)
Register object factory.
Definition: ToolTip.cpp:44
btCollisionConfiguration * collisionConfiguration_
Bullet collision configuration.
Definition: PhysicsWorld.h:320
void SetEntity(const String &entity)
Definition: AnimatedSprite2D.cpp:154
void SetShaderParameter(const String &name, const Variant &value)
Definition: RenderPath.cpp:498
PODVector< Object * > receivers_
Receivers. May contain holes during sending.
Definition: Context.h:56
constexpr T & operator*() const
Dereference the object.
Definition: Iter.h:49
void SetView(Camera *camera)
Set the camera viewpoint. Call before rendering, or before adding geometry if you want to use culling...
Definition: DebugRenderer.cpp:76
Pair< unsigned, bool > CheckAvailableSizeAndEof() const
Check for available read data in buffer and whether end has been reached. Must only be called when th...
Definition: HttpRequest.cpp:299
void ProcessPendingLatestData()
Process pending latest data for nodes and components.
Definition: Connection.cpp:411
RigidBody * parentRigidBody_
Parent rigid body.
Definition: PhysicsWorld.h:86
unsigned animationLodFrameNumber_
The frame number animation LOD distance was last calculated on.
Definition: AnimatedModel.h:243
void ClearDelayedExecute(const String &declaration=String::EMPTY)
Clear pending delay-executed method calls. If empty declaration given, clears all.
Definition: ScriptInstance.cpp:317
Connection(Context *context, bool isClient, const SLNet::AddressOrGUID &address, SLNet::RakPeerInterface *peer)
Construct with context, RakNet connection address and Raknet peer pointer.
Definition: Connection.cpp:71
void SetAddressMode(TextureCoordinate coord, TextureAddressMode mode)
Definition: Texture.cpp:80
void BindColorAttachment(unsigned index, unsigned target, unsigned object, bool isRenderBuffer)
Bind a framebuffer color attachment using either extension or core functionality. Used only on OpenGL...
Definition: OGLGraphics.cpp:3287
Vector3 position_
Hit position in world space.
Definition: OctreeQuery.h:211
StencilOp stencilZFail_
Stencil operation on depth fail.
Definition: Graphics.h:886
DbConnection(Context *context, const String &connectionString)
Construct.
Definition: ODBCConnection.cpp:39
UIElement * GetFocusableElement(UIElement *element)
Return the first element in hierarchy that can alter focus.
Definition: UI.cpp:1294
void FixedUpdate(float timeStep) override
Perform fixed step pre-update.
Definition: RaycastVehicle.cpp:289
void MarkAnimationOrderDirty()
Mark animation and skinning to require a forced update (blending order changed).
Definition: AnimatedModel.cpp:1091
Queue that contains both instanced and non-instanced draw calls.
Definition: Batch.h:226
Vector< ModelMorph > morphs_
Vertex morphs.
Definition: AnimatedModel.h:227
void Insert(unsigned pos, const Vector< T > &vector)
Insert another vector at position.
Definition: Vector.h:297
bool IsApplyingTransforms() const
Return whether node dirtying should be disregarded.
Definition: PhysicsWorld2D.h:234
const dtCrowdAgent * GetDetourCrowdAgent(int agent) const
Get the detour crowd agent.
Definition: CrowdManager.cpp:685
bool FileExists(const String &fileName) const
Check if a file exists.
Definition: FileSystem.cpp:593
PODVector< unsigned char > * GetBufferPtr()
Return a pointer to a modifiable buffer or null on type mismatch.
Definition: Variant.h:1353
void RemoveBodyFromWorld()
Remove the rigid body from the physics world.
Definition: RigidBody.cpp:1028
void SetRenderOrder(unsigned char order)
Definition: Material.cpp:1105
Base class for creating applications which initialize the Urho3D engine and run a main loop until exi...
Definition: Application.h:35
Network interest management settings component.
Definition: NetworkPriority.h:31
Matrix3 Scaled(const Vector3 &scale) const
Return scaled by a vector.
Definition: Matrix3.h:229
AutoProfileBlock(Profiler *profiler, const char *name)
Construct. Begin a profiling block with the specified name and optional call count.
Definition: Profiler.h:237
void SetPixelShaderDefines(const String &defines)
Definition: Material.cpp:944
void DefineTexCoord(const Vector2 &texCoord)
Define a vertex UV coordinate.
Definition: CustomGeometry.cpp:568
void HandleScrollBarVisibleChanged(StringHash eventType, VariantMap &eventData)
Handle scrollbar visibility changed.
Definition: ScrollView.cpp:538
void ApplyLimits()
Apply high and low constraint limits.
Definition: Constraint.cpp:539
bool operator!=(const WeakPtr< U > &rhs) const
Test for inequality with another weak pointer.
Definition: Ptr.h:433
VariantVector splineTangents_
Spline tangents.
Definition: ValueAnimation.h:173
virtual void DelayedStart()
Called before the first update. At this point all other components of the node should exist....
Definition: LogicComponent.h:65
Vector3 emitterSize_
Emitter size.
Definition: ParticleEffect.h:445
void RemoveCollisionShape2D(CollisionShape2D *collisionShape)
Remove collision shape.
Definition: RigidBody2D.cpp:480
const IntVector2 & GetHoverOffset() const
Definition: BorderImage.h:102
Integer AsInteger() const
Return underlying integer (constant).
Definition: FlagSet.h:226
void SetRotationStart(float rotationStart)
Set rotation start.
Definition: ParticleEffect2D.cpp:454
void HandleTouchMove(StringHash eventType, VariantMap &eventData)
Handle touch move event.
Definition: UI.cpp:1938
void UpdateBatches(const FrameInfo &frame) override
Calculate distance and prepare batches for rendering. May be called from worker thread(s),...
Definition: TerrainPatch.cpp:118
const Vector< VariantVector > & GetRows() const
Return fetched rows collection. Filtered rows are not included in the collection.
Definition: ODBCResult.h:60
HashSet< const AttributeInfo * > animatedNetworkAttributes_
Animated network attribute set.
Definition: Animatable.h:157
void CalculateFixedScreenSize(const FrameInfo &frame)
Calculate billboard scale factors in fixed screen size mode.
Definition: BillboardSet.cpp:773
FaceCameraMode faceCameraMode_
Billboard rotation mode in relation to the camera.
Definition: BillboardSet.h:190
void SetDepthStencilName(const String &name)
Definition: RenderPath.cpp:283
Object * GetTarget() const
Return target object.
Definition: ValueAnimationInfo.cpp:119
MouseButtonFlags lastMouseButtons_
Last mouse button pressed.
Definition: UI.h:428
float GetSplineTension() const
Definition: ValueAnimation.h:122
void SetCursorShape(CursorShape shape)
Set active cursor's shape.
Definition: UI.cpp:1329
IntVector3 ReadIntVector3()
Read an IntVector3.
Definition: Deserializer.cpp:152
Definition: ParticleEffect.h:88
void Raycast(RayOctreeQuery &query) const
Return drawable objects by a ray query.
Definition: Octree.cpp:501
void SetEmitterType(EmitterType2D emitterType)
Set emitter type.
Definition: ParticleEffect2D.cpp:414
void ApplyFrames()
Apply constraint frames.
Definition: Constraint.cpp:363
void SetLinkedRenderTarget(RenderSurface *renderTarget)
Definition: RenderSurface.cpp:60
virtual void OnDeviceReset()
Recreate the GPU resource and restore data if applicable.
Definition: GPUObject.cpp:60
void HandleAsyncLoadFinished(StringHash eventType, VariantMap &eventData)
Handle scene loaded event.
Definition: Connection.cpp:1187
bool enabledPrev_
Last SetEnabled flag before any SetDeepEnabled.
Definition: UIElement.h:814
void SetLanguage(int index)
Set current language.
Definition: Localization.cpp:89
void ProcessExistingNode(Node *node, NodeReplicationState &nodeState)
Process a node that the client has already received.
Definition: Connection.cpp:1298
bool GetCollideConnected() const
Definition: Constraint2D.h:76
Vector< SharedPtr< ResourceRouter > > resourceRouters_
Resource routers.
Definition: ResourceCache.h:262
HashSet< unsigned > dirtyNodes_
Dirty node IDs.
Definition: ReplicationState.h:180
Vector2 GetVSMShadowParameters() const
Definition: Renderer.h:342
void HandleUpdateSmoothing(StringHash eventType, VariantMap &eventData)
Handle smoothing update event.
Definition: SmoothedTransform.cpp:170
ScriptEventInvoker(ScriptFile *file, asIScriptObject *object=nullptr)
Constructor, will create the asILockableSharedBool if a ScriptObject is passed in.
Definition: ScriptFile.cpp:1021
void ApplyNodeWorldScale() override
Apply node world scale.
Definition: CollisionChain2D.cpp:119
static void RegisterObject(Context *context)
Registers this class as an object factory.
Definition: IKConstraint.cpp:50
String GetFullName() const
Return full shader name.
Definition: ShaderVariation.h:111
void CalculateLodErrors(TerrainPatch *patch)
Calculate LOD errors for a patch.
Definition: Terrain.cpp:1365
bool SetInt(const String &name, int value)
Set an integer attribute.
Definition: XMLElement.cpp:367
void RemoveSelection(unsigned index)
Remove item from the selection.
Definition: ListView.cpp:623
StencilOp stencilFail_
Stencil operation on fail.
Definition: Graphics.h:884
void SetLoadingPercentStyle(const String &style)
Sets the loading percent style.
Definition: ProgressBar.h:82
unsigned GetNumShadowMaps(bool allViews=false) const
Definition: Renderer.cpp:608
STL style iterator for Script dictionary class.
Definition: Addons.h:248
float HalfToFloat(unsigned short value)
Convert half float to float. From https://gist.github.com/martinkallman/5049614.
Definition: MathDefs.h:353
WeakPtr< RenderSurface > linkedDepthStencil_
Linked depth buffer.
Definition: RenderSurface.h:174
FocusParameters(bool focus, bool nonUniform, bool autoSize, float quantize, float minView)
Construct with initial values.
Definition: Light.h:127
TGetFunction getFunction_
Get functor.
Definition: Serializable.h:183
static long long GetFrequency()
Return high-resolution timer frequency if supported.
Definition: Timer.h:65
void SetFrequencyHz(float frequencyHz)
Definition: ConstraintWeld2D.cpp:67
void ProcessMove(const IntVector2 &windowCursorPos, const IntVector2 &cursorDeltaPos, MouseButtonFlags buttons, QualifierFlags qualifiers, Cursor *cursor, bool cursorVisible)
Handle mouse or touch move.
Definition: UI.cpp:1583
static void RegisterObject(Context *context)
Register object factory. Node must be registered first.
Definition: Scene.cpp:96
bool CheckAlignment() const
Check whether alignment supports moving and resizing.
Definition: Window.cpp:419
static void DestructElements(T *dest, unsigned count)
Call the elements' destructors.
Definition: Vector.h:674
static void RegisterObject(Context *context)
Register object factory. Drawable must be registered first.
Definition: Text3D.cpp:69
void TestDrawables(Drawable **start, Drawable **end, bool inside) override
Intersection test for drawables.
Definition: OctreeQuery.cpp:40
void ResetMouseMode()
Reset the last mouse mode that wasn't suppressed in SetMouseMode.
Definition: Input.cpp:923
void SetRolloffFactor(float factor)
Definition: SoundSource3D.cpp:143
unsigned inSend_
"In send" recursion counter.
Definition: Context.h:60
bool subscribedPostFixed_
Subscribed to scene post and fixed update events flag.
Definition: ScriptInstance.h:212
CrowdAgentState GetAgentState() const
Definition: CrowdAgent.cpp:491
static void RegisterObject(Context *context)
Register object factory.
Definition: Renderer2D.cpp:86
unsigned priority_
Priority. Higher value = will be completed first.
Definition: WorkQueue.h:58
static void RegisterObject(Context *context)
Register object factory.
Definition: DebugRenderer.cpp:61
void OnDoubleClick(const IntVector2 &position, const IntVector2 &screenPosition, MouseButton button, MouseButtonFlags buttons, QualifierFlags qualifiers, Cursor *cursor) override
React to mouse doubleclick.
Definition: LineEdit.cpp:132
void AdjustScissor(IntRect ¤tScissor)
Adjust scissor for rendering.
Definition: UIElement.cpp:1815
unsigned GetShadowMapFormat() const
Return shadow map depth texture format, or 0 if not supported.
Definition: Graphics.h:442
static void RegisterObject(Context *context)
Register object factory.
Definition: ScrollView.cpp:92
void UpdateGravity()
Update gravity parameters to the Bullet rigid body.
Definition: RigidBody.cpp:822
void SetAxis(const Vector2 &axis)
Definition: ConstraintWheel2D.cpp:72
void SetSpriteAttr(const ResourceRef &value)
Set sprite attribute.
Definition: StaticSprite2D.cpp:248
static void RegisterObject(Context *context)
Register object factory.
Definition: BorderImage.cpp:52
void FreeScratchBuffer(void *buffer)
Free a CPU-side scratch buffer.
Definition: Graphics.cpp:444
bool SetFont(const 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:253
void Initialize()
Initialize when screen mode initially set.
Definition: Renderer.cpp:1578
void SetMinRadius(float minRadius)
Set min radius.
Definition: ParticleEffect2D.cpp:429
asIScriptFunction * methods_[MAX_SCRIPT_METHODS]
Pointers to supported inbuilt methods.
Definition: ScriptInstance.h:200
Color LinearToGamma() const
Convert color from linear to gamma space.
Definition: Color.h:218
void SetLightQueue(LightBatchQueue *queue)
Set light queue used for this light. Called by View.
Definition: Light.cpp:639
void AddData(void *data, unsigned numBytes)
Buffer sound data. Makes a copy of it.
Definition: BufferedSoundStream.cpp:70
btPersistentManifold * flippedManifold_
Manifold with the body pointers flipped.
Definition: PhysicsWorld.h:106
String linkerOutput_
Shader link error string.
Definition: OGLShaderProgram.h:107
DbConnection * Connect(const String &connectionString)
Create new database connection. Return 0 if failed.
Definition: Database.cpp:50
Texture * textures_[MAX_TEXTURE_UNITS]
Textures in use.
Definition: Graphics.h:842
ValueAnimation(Context *context)
Construct.
Definition: ValueAnimation.cpp:49
unsigned vertexBufferUpdateFrameNumber_
Vertex buffer update frame number.
Definition: Renderer2D.h:47
void HandleTouchEnd(StringHash eventType, VariantMap &eventData)
Handle touch end event.
Definition: UI.cpp:1908
void Rotate2D(float delta, TransformSpace space=TS_LOCAL)
Rotate the scene node in the chosen transform space (for Urho2D).
Definition: Node.h:264
void SetNextTimeStep(float seconds)
Override timestep of the next frame. Should be called in between RunFrame() calls.
Definition: Engine.cpp:592
void RecreateFixture()
Recreate fixture.
Definition: CollisionCircle2D.cpp:90
Iterator Insert(const ConstIterator &it)
Insert a pair by iterator. Return iterator to the value.
Definition: HashMap.h:396
Component * GetComponent(unsigned id) const
Return component from the whole scene by ID, or null if not found.
Definition: Scene.cpp:733
float emissionRateMin_
Particles per second minimum.
Definition: ParticleEffect.h:459
void CleanupScratchBuffers()
Clean up too large scratch buffers.
Definition: Graphics.cpp:461
Geometry * GetQuadGeometry()
Return quad geometry used in postprocessing.
Definition: Renderer.cpp:831
void OnDeviceReset() override
Recreate the buffer and restore data if applicable. May be a no-op depending on the API.
Definition: OGLVertexBuffer.cpp:43
Vector< AnimationKeyFrame > keyFrames_
Keyframes.
Definition: Animation.h:101
Vector< WeakPtr< TileMapLayer2D > > layers_
Tile map layers.
Definition: TileMap2D.h:89
Vector< RenderTargetInfo > renderTargets_
Rendertargets.
Definition: RenderPath.h:268
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:1371
Vector2(const IntVector2 &vector) noexcept
Construct from an IntVector2.
Definition: Vector2.h:189
virtual void SetMaterial(Material *material)
Definition: StaticModel.cpp:275
Description of vertex buffer data for asynchronous loading.
Definition: Model.h:67
void FinishAsyncLoading()
Finish asynchronous loading.
Definition: Scene.cpp:1254
bool Load(XMLFile *file)
Clear existing data and load from an XML file. Return true if successful.
Definition: RenderPath.cpp:321
void MixMonoToStereo(Sound *sound, int *dest, unsigned samples, int mixRate)
Mix mono sample to stereo buffer.
Definition: SoundSource.cpp:677
Variant(const IntVector3 &value)
Construct from an IntVector3.
Definition: Variant.h:488
~SoundSource() override
Destruct. Remove self from the audio subsystem.
Definition: SoundSource.cpp:125
void SetNetRotationAttr(const PODVector< unsigned char > &value)
Set network rotation attribute.
Definition: Node.cpp:1465
ResourceCache * owner_
Resource cache.
Definition: BackgroundLoader.h:80
void RemoveRenderTarget(unsigned index)
Remove a rendertarget by index.
Definition: RenderPath.cpp:440
ResourceRef GetScriptFileAttr() const
Return script file attribute.
Definition: ScriptInstance.cpp:484
ResourceRef GetResourceRef() const
Return a resource reference attribute, or empty if missing.
Definition: XMLElement.cpp:873
Vector< TextureFrame > textureFrames_
Texture animation frames.
Definition: ParticleEffect.h:489
void SetPixel(int x, int y, const Color &color)
Set a 2D pixel.
Definition: Image.cpp:921
void SendCollisionEvents()
Send accumulated collision events.
Definition: PhysicsWorld.cpp:837
Node * EraseNode(Node *node)
Erase a node from the list. Return pointer to the next element, or to the end if could not erase.
Definition: HashSet.h:579
void Translate(const Vector3 &delta, TransformSpace space=TS_LOCAL)
Move the scene node in the chosen transform space.
Definition: Node.cpp:564
void ResetScene()
Reset scene, ID and owner. Called by Scene.
Definition: Node.cpp:1449
bool systemDefined_
Whether the OS cursor is system defined.
Definition: Cursor.h:88
void WriteDeltaUpdate(Serializer &dest, const DirtyBits &attributeBits, unsigned char timeStamp)
Write a delta network update according to dirty attribute bits.
Definition: Serializable.cpp:771
ResourceRef GetTmxFileAttr() const
Return tile map file attribute.
Definition: TileMap2D.cpp:183
Object * shadowMapFilterInstance_
Instance of shadow map filter.
Definition: Renderer.h:579
Object * GetSubsystem(StringHash type) const
Return subsystem by type.
Definition: Object.cpp:421
unsigned endPointID_
Endpoint node ID.
Definition: OffMeshConnection.h:90
bool GetData(unsigned level, void *dest) const
Get data from a mip level. The destination buffer must be big enough. Return true if successful.
Definition: OGLTexture2D.cpp:306
@ AM_NODEID
Attribute is a node ID and may need rewriting.
Definition: Attribute.h:49
unsigned lodLevel_
Current LOD level.
Definition: StaticModel.h:38
Hierarchical performance event profiler subsystem.
Definition: EventProfiler.h:63
unsigned hiresShadowMapFormat_
Shadow map 24-bit depth texture format.
Definition: Graphics.h:828
const HashMap< StringHash, AnimationTrack > & GetTracks() const
Return all animation tracks.
Definition: Animation.h:178
bool SetLooped(const String &name, bool enable)
Set animation looping. Return true on success.
Definition: AnimationController.cpp:394
bool SaveJSON(JSONValue &dest) const override
Save as JSON data. Return true if successful.
Definition: Component.cpp:89
unsigned numObstacleAvoidanceTypes_
Number of obstacle avoidance types configured in the crowd. Limit to DT_CROWD_MAX_OBSTAVOIDANCE_PARAM...
Definition: CrowdManager.h:207
IntRect GetCombinedScreenRect()
Definition: UIElement.cpp:1763
Definition: Plane.h:32
void NodeTagAdded(Node *node, const String &tag)
Cache node by tag if tag not zero, no checking if already added. Used internaly in Node::AddTag.
Definition: Scene.cpp:969
static String Joined(const Vector< String > &subStrings, const String &glue)
Definition: Str.cpp:1066
Tile2D * GetTile(int x, int y) const
Return tile (for tile layer only).
Definition: TileMapLayer2D.cpp:284
Quaternion ReadPackedQuaternion()
Read a quaternion with each component packed in 16 bits.
Definition: Deserializer.cpp:203
const void * parameterSources_[MAX_SHADER_PARAMETER_GROUPS]
Remembered shader parameter sources for individual uniform mode.
Definition: OGLShaderProgram.h:105
bool SetEntity(int index)
Set current entity.
Definition: SpriterInstance2D.cpp:53
void SetClearSelectionOnDefocus(bool enable)
Definition: ListView.cpp:754
Base class for collision shape geometry data.
Definition: CollisionShape.h:67
WeakPtr(WeakPtr< T > &&rhs) noexcept
Move-construct from another weak pointer.
Definition: Ptr.h:289
Geometry * GetLodGeometry(unsigned batchIndex, unsigned level) override
Return the geometry for a specific LOD level.
Definition: StaticModel.cpp:156
bool dynamic_
Vertex buffer dynamic flag.
Definition: CustomGeometry.h:187
bool Remove(const T &value)
Erase an element by value. Return true if was found and erased.
Definition: Vector.h:395
unsigned xpathResultIndex_
Current XPath query result index (used internally to advance to subsequent query result).
Definition: XMLElement.h:324
int GetPositionIterations() const
Definition: PhysicsWorld2D.h:225
void OnWorldBoundingBoxUpdate() override
Recalculate the world-space bounding box.
Definition: AnimatedModel.cpp:959
PODVector(const std::initializer_list< T > &list)
Aggregate initialization constructor.
Definition: Vector.h:722
void SetAbsoluteGlyphOffset(const IntVector2 &offset)
Definition: Font.cpp:129
void SetAnimationsAttr(const VariantVector &value)
Set animation control structures attribute.
Definition: AnimationController.cpp:594
bool HasParameter(StringHash param) const
Return whether uses a parameter. Not applicable on OpenGL, where this information is contained in Sha...
Definition: ShaderVariation.h:114
Iterator(Node *ptr)
Construct with a node pointer.
Definition: List.h:64
unsigned indexSize_
Index size in bytes.
Definition: OcclusionBuffer.h:76
unsigned totalCount_
Total accumulated calls.
Definition: Profiler.h:169
void GetBatches(PODVector< UIBatch > &batches, PODVector< float > &vertexData, const IntRect ¤tScissor) override
Return UI rendering batches.
Definition: BorderImage.cpp:70
void UpdateViewSize()
Recalculate view size, validate view position and update scrollbars.
Definition: ScrollView.cpp:458
void ResetUseTimer()
Reset last used timer.
Definition: Resource.cpp:110
void CancelUpdate(Drawable *drawable)
Cancel drawable object's update.
Definition: Octree.cpp:564
General octree query result. Used for Lua bindings only.
Definition: OctreeQuery.h:161
void RegisterFactory()
Template version of registering an object factory.
Definition: Context.h:249
float MinRGB() const
Return the smallest value of the RGB components.
Definition: Color.cpp:205
const nanodbc::connection * GetConnectionImpl() const
Return the underlying implementation connection object pointer. It is sqlite* when using SQLite3 or n...
Definition: ODBCConnection.h:53
PODVector< unsigned > printToText_
Mapping of printed form back to original char indices.
Definition: Text.h:289
Vector< DelayedCall > delayedCalls_
Delayed method calls.
Definition: ScriptInstance.h:202
int CalculateLayoutParentSize(const PODVector< int > &sizes, int begin, int end, int spacing)
Calculate layout width for resizing the parent element.
Definition: UIElement.cpp:2077
JoystickState * GetJoystickByName(const String &name)
Definition: Input.cpp:1463
ResourceRouter(Context *context)
Construct.
Definition: ResourceCache.h:74
float rolloffFactor_
Rolloff power factor.
Definition: SoundSource3D.h:100
asIScriptEngine * scriptEngine_
AngelScript engine.
Definition: Script.h:129
float timeToLiveMax_
Particle time to live maximum.
Definition: ParticleEffect.h:469
unsigned char data_[MAX_NETWORK_ATTRIBUTES/8]
Bit data.
Definition: ReplicationState.h:115
float emitRadiusDelta_
Emit radius delta.
Definition: ParticleEmitter2D.h:68
void RemoveChild(Node *node)
Remove a child scene node.
Definition: Node.cpp:866
void SetNetAngularVelocityAttr(const PODVector< unsigned char > &value)
Set network angular velocity attribute.
Definition: RigidBody.cpp:848
Per-user node network replication state.
Definition: ReplicationState.h:156
void Insert(unsigned pos, const T &value)
Insert an element at position.
Definition: Vector.h:867
void SetScriptObjectType(const String &scriptObjectType)
Set script object type.
Definition: LuaScriptInstance.cpp:408
AttributeInfo * networkAttributeInfo_
Network attribute info.
Definition: Attribute.h:132
asIScriptModule * GetScriptModule() const
Return script module.
Definition: ScriptFile.h:106
bool GetUpdateInvisible() const
Definition: ParticleEffect.h:271
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 UpdateEventSubscription()
Subscribe/unsubscribe from scene updates as necessary.
Definition: ScriptInstance.cpp:763
Intersection IsInside(const Sphere &sphere) const
Test if a sphere is inside, outside or intersects.
Definition: Frustum.h:95
void SetIdentity(const VariantMap &identity)
Assign identity. Called by Network.
Definition: Connection.cpp:220
Intersection IsInside(const BoundingBox &box) const
Test if another bounding box is inside, outside or intersects.
Definition: BoundingBox.h:295
AttributeInfo * attributeInfo_
Attribute info.
Definition: Attribute.h:130
Definition: Object.h:39
VertexMaskFlags morphElementMask_
Morph vertex element mask.
Definition: AnimatedModel.h:245
Color(const float *data) noexcept
Construct from a float array.
Definition: Color.h:93
void OnPackageDownloadFailed(const String &name)
Handle a package download failure on the client.
Definition: Connection.cpp:1585
void SetTextAttr(const String &value)
Set text attribute.
Definition: Text.cpp:454
StringHash GetStringHash() const
Return StringHash or zero on type mismatch.
Definition: Variant.h:1144
bool GetReturnFailedResources() const
Definition: ResourceCache.h:204
bool HasContent() const
Return whether has something to render.
Definition: DebugRenderer.cpp:646
unsigned historyPosition_
Command history current position.
Definition: Console.h:191
PODVector< Vector3 > outFace_
Internal vector for the new face being constructed.
Definition: Polyhedron.h:118
@ JOINT_ROTATIONS
Should be enabled if your model uses skinning or if you are generally interested in correct joint rot...
Definition: IKSolver.h:74
HandlerFunctionPtr function_
Class-specific pointer to handler function.
Definition: Object.h:334
OffMeshConnection(Context *context)
Construct.
Definition: OffMeshConnection.cpp:41
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 SetDepthStencil(RenderSurface *depthStencil)
Set depth-stencil surface.
Definition: OGLGraphics.cpp:1676
AttributeInfo(VariantType type, const char *name, const SharedPtr< AttributeAccessor > &accessor, const char **enumNames, const Variant &defaultValue, AttributeModeFlags mode)
Construct attribute.
Definition: Attribute.h:78
Definition: Component.h:48
void Compact()
Reallocate so that no extra memory is used.
Definition: Vector.h:1089
void SetMask(unsigned newMask)
Definition: OffMeshConnection.cpp:101
const VariantVector & GetVariantVector() const
Return a variant vector or empty on type mismatch.
Definition: Variant.h:1233
void SetWeight(float weight)
Sets how much influence the effector has on the solution.
Definition: IKEffector.cpp:175
Resource cache subsystem. Loads resources on demand and stores them for later access.
Definition: ResourceCache.h:84
unsigned color_
Current color. By default calculated from the element.
Definition: UIBatch.h:93
virtual bool DrawOcclusion(OcclusionBuffer *buffer)
Draw to occlusion buffer. Return true if did not run out of triangles.
Definition: Drawable.cpp:162
String animationName_
Animation name.
Definition: AnimatedSprite2D.h:144
void Insert(unsigned pos, const T &value)
Insert an element at position.
Definition: Vector.h:285
WeakPtr< T > & operator=(const SharedPtr< T > &rhs)
Assign from a shared pointer.
Definition: Ptr.h:328
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:520
unsigned GetNumObjects() const
Definition: TileMapLayer2D.cpp:303
Vector2 touchScrollSpeedMax_
Max touch scroll speed.
Definition: ScrollView.h:192
void SetMaxSuspensionTravel(int wheel, float maxSuspensionTravel)
Set maximum suspension travel value.
Definition: RaycastVehicle.cpp:606
VariantMap physicsCollisionData_
Preallocated event data map for physics collision events.
Definition: PhysicsWorld.h:350
bool EndLoad() override
Finish resource loading. Always called from the main thread. Return true if successful.
Definition: ScriptFile.cpp:151
RenderSurface * GetRenderSurface(CubeMapFace face) const
Definition: TextureCube.h:75
void SetNumBufferedRows(unsigned rows)
Definition: Console.cpp:192
const Variant & GetGlobalVar(StringHash key) const
Return global variable based on key.
Definition: Context.cpp:363
XMLFile * GetDefaultStyle() const
Definition: FileSelector.cpp:251
Node * GetNode(unsigned id) const
Return node from the whole scene by ID, or null if not found.
Definition: Scene.cpp:706
WeakPtr< Constraint2D > ownerConstraint_
Owner body constraint.
Definition: ConstraintGear2D.h:72
float rotationSpeedMax_
Particle rotation speed maximum.
Definition: ParticleEffect.h:481
Component * GetFixedUpdateSource()
Return a component from the scene root that sends out fixed update events (either PhysicsWorld or Phy...
Definition: Component.cpp:290
Definition: Skeleton.h:88
b2EdgeShape edgeShape_
Edge shape.
Definition: CollisionEdge2D.h:67
void RefreshShaderParameterHash()
Recalculate shader parameter hash.
Definition: Material.cpp:1285
void SetEffectColor(const Color &effectColor)
Definition: Text3D.cpp:298
float GetFrequencyHz() const
Definition: ConstraintDistance2D.h:69
void SetStartParticleSizeVariance(float startParticleSizeVariance)
Set start particle size variance.
Definition: ParticleEffect2D.cpp:394
WeakPtr< PhysicsWorld2D > physicsWorld_
Physics world.
Definition: Constraint2D.h:99
void SetCollisionLayer(unsigned layer)
Definition: RigidBody.cpp:479
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: OGLTexture2D.cpp:105
Dirty attribute bits structure for network replication.
Definition: ReplicationState.h:49
Vector3(float x, float y) noexcept
Construct from two-dimensional coordinates (for Urho2D).
Definition: Vector3.h:231
Node * EraseNode(Node *node)
Erase a node from the list. Return pointer to the next element, or to the end if could not erase.
Definition: HashMap.h:719
MouseMode lastMouseMode_
The last mouse mode set by SetMouseMode.
Definition: Input.h:460
DirtyBits dirtyAttributes_
Dirty attribute bits.
Definition: ReplicationState.h:163
void SetWheelRadius(int wheel, float wheelRadius)
Set wheel radius.
Definition: RaycastVehicle.cpp:555
WeakPtr< Constraint2D > attachedConstraint_
Attached constraint.
Definition: Constraint2D.h:113
SharedArrayPtr< unsigned char > shadowData_
Shadow data.
Definition: ConstantBuffer.h:66
bool BeginLoad(Deserializer &source) override
Load resource from stream. May be called from a worker thread. Return true if successful.
Definition: Animation.cpp:127
PODVector< unsigned char > GetVerticesAttr() const
Return vertices attribute.
Definition: CollisionPolygon2D.cpp:96
void SetMaxOccluderTriangles(int triangles)
Definition: Renderer.cpp:486