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"
 
bool inOrder_
In order flag.
Definition: Connection.h:64
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
TileMapLayerType2D GetType() const
Return type.
Definition: TmxFile2D.h:48
Definition: Rect.h:32
bool filtered_
Filtering flag.
Definition: RenderPath.h:92
IntVector2 ConvertSystemToUI(const IntVector2 &systemPos) const
Convert system mouse position (or offset) to scaled UI position (or offset).
Definition: UI.cpp:852
Rendering path command.
Definition: RenderPath.h:100
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
bool IsCompressed() const
Definition: Sound.h:114
TmxFile2D(Context *context)
Construct.
Definition: TmxFile2D.cpp:376
void ClearAll()
Clear all bits.
Definition: ReplicationState.h:92
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
float rowHeight_
Row height.
Definition: Text.h:283
~Controls()
Destruct.
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
bool threadedUpdate_
Threaded update flag.
Definition: Scene.h:359
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
bool error_
Error flag for raw messages.
Definition: Log.h:69
Scene * scene_
Scene to use.
Definition: View.h:316
Vector< Bone > bones_
Bones used for skinned decals.
Definition: DecalSet.h:238
ListView * GetListView() const
Definition: DropDownList.h:93
@ DD_DISABLED
Drag and drop disabled.
Definition: UIElement.h:107
SmoothingType
Definition: SmoothedTransform.h:32
AnimatedModel * GetModel() const
Definition: AnimationState.cpp:374
static unsigned GetRGFloat32Format()
Return the API-specific RG 32-bit float texture format.
Definition: OGLGraphics.cpp:2634
float GetDampingRatio() const
Definition: ConstraintWeld2D.h:63
unsigned lightMask_
Light mask.
Definition: Terrain.h:350
bool IsObject() const
Definition: JSONValue.h:199
unsigned size_
File size.
Definition: LuaFile.h:58
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
IntRect upRect_
Up button image rect.
Definition: ScrollBar.h:130
bool animated_
Animation enable flag.
Definition: Skeleton.h:75
unsigned checksum_
Scene source file checksum.
Definition: Scene.h:343
Hash map node const iterator.
Definition: HashMap.h:156
void SetNumTriggers(unsigned num)
Definition: Animation.cpp:369
const String & GetOutputName(unsigned index) const
Definition: RenderPath.cpp:299
bool Empty() const
Return whether vector is empty.
Definition: Vector.h:537
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
float width_
Width of trail.
Definition: RibbonTrail.h:249
unsigned readBufferOffset_
Read buffer position.
Definition: File.h:138
void SetCastShadows(bool enable)
Definition: Terrain.cpp:476
int GetMaxOccluderTriangles() const
Definition: Renderer.h:374
Color GetEffectiveColor() const
Definition: Light.cpp:439
T AbsMod(T x, T y)
Return always positive remainder of X/Y.
Definition: MathDefs.h:198
bool HasPendingData() const
Return whether has pending data assigned while graphics context was lost.
Definition: GPUObject.h:70
bool GetBool() const
Return boolean.
Definition: PListFile.cpp:197
SharedArrayPtr< unsigned char > shadowData_
Shadow data.
Definition: IndexBuffer.h:104
void Close()
Close the window.
Definition: OGLGraphics.cpp:548
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
IntVector2 size_
Current size.
Definition: AreaAllocator.h:64
RefCount()
Construct.
Definition: RefCounted.h:38
static const Vector2 ONE
(1,1) vector.
Definition: Vector2.h:391
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
float w_
W coordinate.
Definition: Vector4.h:231
virtual void Release()
Unconditionally release the GPU resource.
Definition: GPUObject.cpp:64
Static model component.
Definition: StaticModel.h:42
bool IsCustom() const
Return true when the variant stores custom type.
Definition: Variant.h:1347
Typed resource reference.
Definition: Variant.h:89
float animationLodBias_
Animation LOD bias.
Definition: AnimatedModel.h:247
unsigned ReadNetID()
Read a 24-bit network object ID.
Definition: Deserializer.cpp:453
void SetAmbientColor(const Color &color)
Definition: Zone.cpp:106
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
int Height() const
Definition: Rect.h:417
void HandleConsoleCommand(StringHash eventType, VariantMap &eventData)
Handle a console command event.
Definition: FileSystem.cpp:927
Mouse cursor UI element.
Definition: Cursor.h:94
@ SMOOTH_NONE
No ongoing smoothing.
Definition: SmoothedTransform.h:35
void UnregisterVar(const String &name)
Unregister a node user variable hash reverse mapping.
Definition: Scene.cpp:696
void Pop()
Remove the last element.
Definition: Vector.h:860
Controls controls_
Current controls.
Definition: Connection.h:273
BoundingBox(const Polyhedron &poly)
Construct from a polyhedron.
Definition: BoundingBox.h:108
ShaderType type_
Shader type.
Definition: ShaderVariation.h:158
Script array class.
Definition: Addons.h:46
SharedPtr< RenderSurface > renderSurfaces_[MAX_CUBEMAP_FACES]
Render surfaces.
Definition: TextureCube.h:86
VariantType
Variant's supported types.
Definition: Variant.h:41
void SetTexture(Texture *texture)
Definition: Sprite.cpp:194
MouseMode
Input Mouse Modes.
Definition: Input.h:39
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 &params)
Set default window modes. Return true if successful.
Definition: Graphics.cpp:118
void SetMinFps(int fps)
Definition: Engine.cpp:563
float GetMapWidth() const
Definition: TileMapDefs2D.cpp:35
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
ListNodeBase * prev_
Previous node.
Definition: ListBase.h:48
unsigned GetCollisionLayer() const
Definition: RigidBody.h:272
PODVector< OcclusionBatch > batches_
Submitted render jobs.
Definition: OcclusionBuffer.h:187
Named pipe for interprocess communication.
Definition: NamedPipe.h:37
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
virtual void UpdateSourceBatches()=0
Update source batches.
bool occludee_
Occludee flag.
Definition: Drawable.h:369
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
float constantBias_
Constant bias.
Definition: Light.h:73
bool GetResizePopup() const
Definition: DropDownList.h:105
unsigned GetMaxLayers() const
Definition: DynamicNavigationMesh.h:97
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
static const Vector2 RIGHT
(1,0) vector.
Definition: Vector2.h:385
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
Octree(Context *context)
Construct.
Definition: Octree.cpp:311
void SetVisible(bool enable)
Definition: UIElement.cpp:957
void SetRotation(float angle)
Definition: Sprite.cpp:185
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
Vector3 halfSize_
World bounding box half size.
Definition: Octree.h:148
StringHash psExtraDefinesHash_
Hash for pixel shader extra defines.
Definition: Batch.h:273
void CreateBody()
Create body.
Definition: RigidBody2D.cpp:365
~WString()
Destruct.
Definition: Str.cpp:1275
IntVector2 GetSize() const
Definition: Graphics.h:376
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
Static sprite component.
Definition: StaticSprite2D.h:33
void SetGeometryDataAttr(const PODVector< unsigned char > &value)
Set geometry data attribute.
Definition: CustomGeometry.cpp:734
BoundingBox GetBoundingBox() const
Definition: NavArea.h:56
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 SetToggleFullscreen(bool enable)
Definition: Input.cpp:928
void SetPressedOffset(const IntVector2 &offset)
Definition: Button.cpp:157
float erp_
Error reduction parameter.
Definition: Constraint.h:222
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
Technique(Context *context)
Construct.
Definition: Technique.cpp:240
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
static const Variant EMPTY
Empty variant.
Definition: Variant.h:1386
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
unsigned GetDragButtonCount() const
Definition: UIElement.h:711
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
MouseMode GetMouseMode() const
Definition: Input.h:341
IntRect leftRect_
Left button image rect.
Definition: ScrollBar.h:126
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
T * Get() const
Return the raw pointer.
Definition: Ptr.h:649
bool IsEmpty() const
Definition: Geometry.h:126
Rect drawRect_
Draw rectangle.
Definition: StaticSprite2D.h:192
float delay_
Delay time remaining until execution.
Definition: ScriptEventListener.h:42
3D text component.
Definition: Text3D.h:36
bool colorWrite_
Color write enable.
Definition: Graphics.h:860
Doubly-linked list template class.
Definition: List.h:32
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
TextureFilterMode filterMode_
Filtering mode.
Definition: Texture.h:257
const KeyValue * operator->() const
Point to the pair.
Definition: HashMap.h:211
~CollisionEdge2D() override
Destruct.
float value_
ProgressBar current value.
Definition: ProgressBar.h:113
constexpr RandomAccessConstIterator()
Construct.
Definition: Iter.h:130
const float * Data() const
Return float data.
Definition: Color.h:142
Camera component.
Definition: Camera.h:50
WeakPtr< Renderer2D > renderer_
Renderer2D.
Definition: Drawable2D.h:124
const StringVector & GetTags() const
Definition: UIElement.h:697
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
float fontSize_
Font size.
Definition: Text.h:255
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
bool GetInterpolation() const
Definition: Audio.h:83
void SetAutoUpdate(bool enable)
Definition: View3D.cpp:119
Vector3 ClosestPoint(const Ray &ray) const
Return closest point to another ray.
Definition: Ray.cpp:34
void SetMaxIndices(unsigned num)
Definition: DecalSet.cpp:272
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
T Tan(T angle)
Definition: MathDefs.h:158
bool GetButtonDown(unsigned index) const
Definition: Input.h:105
void FromRotationTo(const Vector3 &start, const Vector3 &end)
Define from the rotation difference between two direction vectors.
Definition: Quaternion.cpp:68
bool autoExit_
Auto-exit flag.
Definition: Engine.h:165
unsigned GetNumCommands() const
Definition: RenderPath.h:258
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
void HandlePressedReleased(StringHash eventType, VariantMap &eventData)
Handle press and release for selection and toggling popup visibility.
Definition: Menu.cpp:356
float x_
X coordinate.
Definition: Quaternion.h:470
bool RemoveWorkItem(SharedPtr< WorkItem > item)
Remove a work item before it has started executing. Return true if successfully removed.
Definition: WorkQueue.cpp:173
void SetOwner(Connection *owner)
Definition: Node.cpp:738
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 SetUseClipping(bool enable)
Definition: Camera.cpp:233
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
Animated model component.
Definition: AnimatedModel.h:36
static void RegisterObject(Context *context)
Register object factory. Drawable must be registered first.
Definition: CustomGeometry.cpp:61
bool initialized_
Initialized flag.
Definition: UI.h:434
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
void SetLightType(LightType type)
Definition: Light.cpp:271
int maxParticles_
Max particles.
Definition: ParticleEffect2D.h:294
Matrix4 GetGPUProjection() const
Definition: Camera.cpp:448
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 GetFogStart() const
Definition: Zone.h:106
float ReadFloat(const XMLElement &element, const String &name) const
Read float.
Definition: ParticleEffect2D.cpp:525
virtual bool IsWithinScissor(const IntRect &currentScissor)
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
int WeakRefs() const
Return the array's weak reference count, or 0 if the pointer is null.
Definition: ArrayPtr.h:165
void HandleTargetRotation(StringHash eventType, VariantMap &eventData)
Handle SmoothedTransform target rotation update.
Definition: RigidBody.cpp:1045
float GetERP() const
Definition: Constraint.h:162
float delay_
Delay from hover start to displaying the tooltip.
Definition: ToolTip.h:67
void AddRef()
Add a reference to the array pointed to.
Definition: ArrayPtr.h:178
List< Decal > decals_
Decals.
Definition: DecalSet.h:236
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
Octree * root_
Octree root.
Definition: Octree.h:156
float GetRatio() const
Definition: ConstraintGear2D.h:63
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
void Reset(T *ptr=nullptr)
Reset.
Definition: Ptr.h:652
Convex constructed of 6 planes.
Definition: Frustum.h:51
AnimationBlendMode GetBlendMode(const String &name) const
Return animation blending mode.
Definition: AnimationController.cpp:519
PODVector< IntVector2 > tileQueue_
Queue of tiles to be built.
Definition: DynamicNavigationMesh.h:154
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
Vector3 position_
Offset position.
Definition: CollisionShape.h:317
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
@ JSONNT_FLOAT_DOUBLE
Float or double.
Definition: JSONValue.h:59
void AddRenderTarget(const RenderTargetInfo &info)
Add a rendertarget.
Definition: RenderPath.cpp:435
~ConstraintRevolute2D() override
Destruct.
~ToolTip() override
Destruct.
void SetDefaultStyle(XMLFile *style)
Definition: DebugHud.cpp:208
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
void ShowPopup(bool enable)
Definition: Menu.cpp:291
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
String path_
The path being watched.
Definition: FileWatcher.h:71
void DrawSolidCircle(const b2Vec2 &center, float32 radius, const b2Vec2 &axis, const b2Color &color) override
Draw a solid circle.
Definition: PhysicsWorld2D.cpp:238
unsigned GetNumViews() const
Definition: Renderer.h:402
bool GetUpdateNodePosition() const
Definition: CrowdAgent.h:165
T Atan2(T y, T x)
Definition: MathDefs.h:174
void SetKnot(const Variant &knot, unsigned index)
Set the value of an existing knot.
Definition: Spline.cpp:104
WString()
Construct empty.
Definition: Str.cpp:1237
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
View(Context *context)
Construct.
Definition: View.cpp:282
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
Vector3 EulerAngles() const
Definition: Quaternion.cpp:177
NavigationPushiness GetNavigationPushiness() const
Definition: CrowdAgent.h:200
LineEdit * GetPathEdit() const
Definition: FileSelector.h:103
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
bool GetEffectRoundStroke() const
Definition: Text3D.cpp:443
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 position_
Position.
Definition: Node.h:739
Vector3 gravityOverride_
Gravity override vector.
Definition: RigidBody.h:335
WeakArrayPtr(const SharedArrayPtr< T > &rhs)
Construct from a shared array pointer.
Definition: ArrayPtr.h:250
const String & GetType() const
Definition: TileMapDefs2D.h:188
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
Bone * startBone_
Start bone.
Definition: AnimationState.h:183
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 const ChannelMask ABGR
Mask for 0xAABBGGRR layout.
Definition: Color.h:49
unsigned GetNumDecals() const
Definition: DecalSet.h:155
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
PODVector< Vector3 > offMeshVertices_
Offmesh connection vertices.
Definition: NavBuildData.h:68
~Network() override
Destruct.
Definition: Network.cpp:269
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
int width_
Width.
Definition: Image.h:65
void UpdateVertexBuffer(const FrameInfo &frame)
Rewrite RibbonTrail vertex buffer.
Definition: RibbonTrail.cpp:523
IntVector2 GetMouseMove() const
Definition: Input.cpp:1415
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
void SetMaterial(Material *material)
Definition: DecalSet.cpp:248
float GetElapsedTime() const
Definition: Scene.h:216
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
int shadowMapSize_
Shadow map resolution.
Definition: Renderer.h:615
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
const String & GetText() const
Definition: Text3D.cpp:398
int GetHeight() const
Definition: Texture.h:97
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
T ToRadians(const T degrees)
Convert degrees to radians.
Definition: MathDefs.h:106
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
float GetMaxAccel() const
Definition: CrowdAgent.h:172
float maxRadius_
Max radius.
Definition: ParticleEffect2D.h:308
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
XMLElement FirstResult()
Definition: XMLElement.cpp:1046
float GetInAirRPM() const
Definition: RaycastVehicle.cpp:697
Color borderColor_
Border color.
Definition: Texture.h:265
Matrix3x4() noexcept
Construct an identity matrix.
Definition: Matrix3x4.h:39
Node * Down() const
Return next node in the bucket.
Definition: HashSet.h:60
XML document resource.
Definition: XMLFile.h:41
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
Drawable component that creates a tail.
Definition: RibbonTrail.h:65
Vector2 hotSpot_
Hot spot.
Definition: Sprite2D.h:111
Vector base class.
Definition: VectorBase.h:41
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
const Quaternion & GetRotation() const
Definition: Connection.h:199
float GetLodHeight(int x, int z, unsigned lodLevel) const
Return interpolated height for a specific LOD level.
Definition: Terrain.cpp:1317
@ O_ISOMETRIC
Isometric.
Definition: TileMapDefs2D.h:41
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
void SetShadowMask(unsigned mask)
Definition: Terrain.cpp:440
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
Sound listener component.
Definition: SoundListener.h:31
Vector< VAnimKeyFrame > keyFrames_
Key frames.
Definition: ValueAnimation.h:171
void Normalize()
Normalize to unit length.
Definition: Quaternion.h:313
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
Vector() noexcept=default
Construct empty.
PListFile(Context *context)
Construct.
Definition: PListFile.cpp:299
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 SetShape(const String &shape)
Definition: Cursor.cpp:178
~Navigable() override
Destruct.
void GetBatches(PODVector< UIBatch > &batches, PODVector< float > &vertexData, const IntRect &currentScissor) 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
float GetRegionMinSize() const
Definition: NavigationMesh.h:241
unsigned subObject_
Drawable specific subobject if applicable.
Definition: OctreeQuery.h:223
float GetRandomVelocity() const
Return random velocity.
Definition: ParticleEffect.cpp:801
Button * GetCloseButton() const
Definition: Console.h:102
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
ListNodeBase * ptr_
Node pointer.
Definition: ListBase.h:89
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
void RemoveObstacle(Obstacle *, bool silent=false)
Used by Obstacle class to remove itself from the tile cache, if 'silent' an event will not be raised.
Definition: DynamicNavigationMesh.cpp:1123
void SetElapsedTime(float time)
Definition: Scene.cpp:672
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
SharedPtr(std::nullptr_t) noexcept
Construct a null shared pointer.
Definition: Ptr.h:46
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
unsigned lodLevel_
Current LOD level.
Definition: TerrainPatch.h:140
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
int height_
Window height in pixels.
Definition: Graphics.h:780
void Clear()
Clear the vector.
Definition: Vector.h:1027
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
bool IsSorted() const
Definition: BillboardSet.h:138
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
b2Body * GetBody() const
Return Box2D body.
Definition: RigidBody2D.h:186
int GetOrderInLayer() const
Definition: Drawable2D.h:97
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
Entity.
Definition: SpriterData2D.h:103
~ConstraintPulley2D() override
Destruct.
UniquePtr(UniquePtr &&up) noexcept
Move-construct from UniquePtr.
Definition: Ptr.h:592
float radius_
Radius.
Definition: Skeleton.h:79
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
T & Back()
Return last element.
Definition: Vector.h:517
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
2D particle effect resource.
Definition: ParticleEffect2D.h:44
Definition: OctreeQuery.h:228
Material * GetMaterial() const
Definition: Text3D.cpp:383
SharedArrayPtr< unsigned char > data_
Pixel data.
Definition: Image.h:245
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 IsTrigger() const
Definition: RigidBody.h:264
Random access iterator.
Definition: Iter.h:31
bool LoadDict(PListValueMap &dict, const XMLElement &dictElem)
Load dictionary.
Definition: PListFile.cpp:341
float shadowFadeDistance_
Shadow fade start distance.
Definition: Light.h:437
Matrix4 Inverse() const
Return inverse.
Definition: Matrix4.cpp:79
float lastTimeStep_
Last scene timestep.
Definition: RibbonTrail.h:261
virtual ~NavBuildData()
Destructor.
Definition: NavBuildData.cpp:40
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
Terrain * GetSouthNeighbor() const
Definition: Terrain.h:182
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
Pass(const String &name)
Construct.
Definition: Technique.cpp:76
bool GetSRGBSupport() const
Definition: Graphics.h:472
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
RefCount * refCount_
Pointer to the RefCount structure.
Definition: ArrayPtr.h:211
static void RegisterObject(Context *context)
Register object factory.
Definition: PhysicsWorld.cpp:201
void AddTriMeshGeometry(NavBuildData *build, Geometry *geometry, const Matrix3x4 &transform)
Add a triangle mesh to the geometry data.
Definition: NavigationMesh.cpp:1197
Vector3 GetWorldScale() const
Definition: Node.h:510
void * ptr_
Object pointer (Direct3D).
Definition: GPUObject.h:36
bool forceGL2_
Force OpenGL 2 flag. Only used on OpenGL.
Definition: Graphics.h:788
void Render()
Render batches.
Definition: View.cpp:563
void Begin()
Begin timing.
Definition: Profiler.h:75
static void RegisterObject(Context *context)
Register object factory.
Definition: RigidBody2D.cpp:71
JSONObject * objectValue_
Definition: JSONValue.h:325
static void RegisterObject(Context *context)
Register object factory.
Definition: LuaFile.cpp:54
void SetBlendMode(BlendMode blendMode)
Definition: ParticleEmitter2D.cpp:119
Vector< T > Keys() const
Return all the keys.
Definition: HashMap.h:583
Script object component.
Definition: ScriptInstance.h:60
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
float GetSpecularIntensity() const
Definition: Light.h:275
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
Light * light_
Light.
Definition: View.h:58
const PODVector< Vector2 > & GetVertices() const
Return vertices.
Definition: CollisionPolygon2D.h:59
PODVector< float > rowWidths_
Row widths.
Definition: Text.h:291
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
dtNavMeshQuery * navMeshQuery_
Detour navigation mesh query.
Definition: NavigationMesh.h:344
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
String message_
Message text.
Definition: Log.h:65
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
~CheckBox() override
Destruct.
void Merge(const Vector2 &point)
Merge a point.
Definition: Rect.h:159
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 aspectRatio_
Spotlight aspect ratio.
Definition: Light.h:433
float DotProduct(const Vector2 &rhs) const
Calculate dot product.
Definition: Vector2.h:309
String GetProgramDir() const
Definition: FileSystem.cpp:692
bool Expired() const
Return whether the object has expired. If null pointer, always return true.
Definition: Ptr.h:498
const IntVector2 & GetHotSpot() const
Definition: Sprite.h:95
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
Matrix3x4 view_
View transform.
Definition: DebugRenderer.h:186
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
Bitmap font face description.
Definition: FontFaceBitmap.h:34
Base class for objects with automatic serialization through attributes.
Definition: Serializable.h:44
void SetDepthTest(CompareMode mode)
Set depth compare.
Definition: OGLGraphics.cpp:1825
float speed_
Animation speed.
Definition: ValueAnimationInfo.h:92
void AddObstacle(Obstacle *obstacle, bool silent=false)
Used by Obstacle class to add itself to the tile cache, if 'silent' an event will not be raised.
Definition: DynamicNavigationMesh.cpp:1078
static void BulkTranspose(float *dest, const float *src, unsigned count)
Bulk transpose matrices.
Definition: Matrix3.h:312
void SetPixelShader(const String &name)
Definition: Technique.cpp:141
bool isClient_
Client connection flag.
Definition: Connection.h:352
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
String GetSoundType() const
Definition: SoundSource.h:94
Vector3 SignedScale(const Matrix3 &rotation) const
Return the scaling part with the sign. Reference rotation matrix is required to avoid ambiguity.
Definition: Matrix4.h:571
void * handle_
File handle.
Definition: File.h:128
float yaw_
Mouse yaw.
Definition: Controls.h:66
bool CheckPingpong(unsigned index)
Check whether a command should use pingponging instead of resolve from destination render target to v...
Definition: View.cpp:1928
int priority_
Zone priority.
Definition: Zone.h:190
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
const IntVector2 & GetSize() const
Definition: UIElement.h:462
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
bool perVertex_
Per-vertex lighting flag.
Definition: Light.h:447
void ApplyMaterialList(const String &fileName=String::EMPTY)
Apply default materials from a material list file. If filename is empty (default),...
Definition: StaticModel.cpp:302
unsigned indexStart_
Start index.
Definition: Geometry.h:136
lua_State * luaState_
Lua state.
Definition: LuaFunction.h:103
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 Play()
Restart sound output.
Definition: Audio.cpp:137
~TextureCube() override
Destruct.
Definition: TextureCube.cpp:74
Iterator End()
Return iterator to the end.
Definition: Str.h:389
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
Matrix3x4 GetTransform() const
Definition: Node.h:441
static const Color RED
Opaque red color.
Definition: Color.h:273
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
bool clipChildren_
Clip children flag.
Definition: UIElement.h:806
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
Rect ReadRect()
Read a Rect.
Definition: Deserializer.cpp:159
Reference count structure.
Definition: RefCounted.h:35
bool useFixtureMass_
Use fixture mass (calculate mass & inertia from collision shapes automatically).
Definition: RigidBody2D.h:203
Button * GetCancelButton() const
Definition: FileSelector.h:119
IntVector2 layoutMinSize_
Parent's minimum size calculated by layout. Used internally.
Definition: UIElement.h:891
void SetEnabled(bool enable)
Definition: Component.cpp:120
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
Terrain * GetEastNeighbor() const
Definition: Terrain.h:190
Definition: UIComponent.h:39
ValueAnimation * GetAttributeAnimation(const String &name) const
Definition: ObjectAnimation.cpp:235
Slider bar UI element.
Definition: Slider.h:31
void Dispose()
Dispose all data.
Definition: AnimationSet2D.cpp:508
Data structure used to represent the drag data associated to a UIElement.
Definition: UI.h:271
Vector3() noexcept
Construct a zero vector.
Definition: Vector3.h:188
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
static const Vector3 ZERO
Zero vector.
Definition: Vector3.h:483
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
const String & GetVerb() const
Definition: HttpRequest.h:70
PassLightingMode lightingMode_
Lighting mode.
Definition: Technique.h:182
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
SharedPtr< Material > material_
Material.
Definition: Renderer2D.h:120
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
float GetRepeatDelay() const
Definition: Button.h:90
float size_
Size.
Definition: ParticleEmitter2D.h:42
Iterator Begin()
Return iterator to the beginning.
Definition: HashSet.h:500
~LineEdit() override
Destruct.
const Vector< String > & GetResourceDirs() const
Definition: ResourceCache.h:166
Lua script event invoker.
Definition: LuaScriptEventInvoker.h:34
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
String verb_
Verb.
Definition: HttpRequest.h:93
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
~ScriptFile() override
Destruct.
Definition: ScriptFile.cpp:104
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
Vector2 hotSpot_
Hot spot.
Definition: StaticSprite2D.h:190
Vector3 scale_
Scale.
Definition: Node.h:743
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
float panning_
Stereo panning.
Definition: SoundSource.h:156
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
bool visible_
Visible.
Definition: TileMapLayer2D.h:134
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
IntRect layoutBorder_
Layout borders.
Definition: UIElement.h:834
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
unsigned char areaID_
Area ID.
Definition: NavBuildData.h:50
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
HorizontalAlignment GetTextAlignment() const
Definition: Text.h:155
static void RegisterObject(Context *context)
Register object factory.
Definition: RibbonTrail.cpp:105
const String & GetName() const
Return shader name.
Definition: ShaderVariation.h:108
int left_
Left coordinate.
Definition: Rect.h:472
bool Empty() const
Return whether has no elements.
Definition: HashBase.h:133
unsigned numParticles_
Number of particles.
Definition: ParticleEffect.h:429
SharedPtr< Window > window_
Fileselector window.
Definition: FileSelector.h:169
Terrain * GetWestNeighbor() const
Definition: Terrain.h:186
float fov_
Field of view.
Definition: Camera.h:294
bool depthWrite_
Depth write mode.
Definition: Technique.h:186
bool fixedScreenSize_
Billboards fixed screen size flag.
Definition: ParticleEffect.h:439
bool AddTile(const PODVector< unsigned char > &tileData) override
Add tile to navigation mesh.
Definition: DynamicNavigationMesh.cpp:555
AnimationBlendMode
Animation blending mode.
Definition: AnimationState.h:42
VariantMap & GetEventDataMap() const
Return a preallocated map for event data. Used for optimization to avoid constant re-allocation of ev...
Definition: Object.cpp:401
float pointSize_
Point size.
Definition: FontFace.h:112
ConstraintFriction2D(Context *context)
Construct.
Definition: ConstraintFriction2D.cpp:37
float GetNearDistance() const
Definition: SoundSource3D.h:72
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
T * ptr_
Pointer to the array.
Definition: ArrayPtr.h:426
GPUObject(Graphics *graphics)
Construct with graphics subsystem pointer.
Definition: GPUObject.cpp:33
void SetTexture(Texture2D *texture)
Definition: Sprite2D.cpp:104
WeakPtr< Audio > audio_
Audio subsystem.
Definition: SoundSource.h:144
void Push(const T &value)
Add an element at the end.
Definition: Vector.h:240
void RemoveComponent()
Template version of removing a component.
Definition: Node.h:770
void SetFormat(unsigned format)
Definition: View3D.cpp:110
int GetFontOversampling() const
Definition: UI.h:251
unsigned GetNumGeometries() const
Definition: StaticModel.h:86
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
LightBatchQueue * lightQueue_
Light queue.
Definition: Light.h:423
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
XMLElement NextResult() const
Definition: XMLElement.cpp:995
bool IsOpen() const
Definition: NamedPipe.cpp:344
Vector3 parentPos_
Parent position. Trail bone type uses this.
Definition: RibbonTrail.h:53
void SetFocus(bool enable)
Definition: UIElement.cpp:929
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
PODVector< unsigned char > GetNavigationDataAttr() const override
Return navigation data attribute.
Definition: DynamicNavigationMesh.cpp:725
bool GetDepthWrite() const
Definition: Technique.h:123
const KeyValue & Front() const
Return first pair.
Definition: HashMap.h:615
HashSet< unsigned > networkUpdateNodes_
Nodes to check for attribute changes on the next network update.
Definition: Scene.h:325
UIElement * GetTouchedElement()
Definition: Input.cpp:81
void SetMaxTimeToLive(float time)
Definition: ParticleEffect.cpp:545
Vector< ShadowBatchQueue > shadowSplits_
Shadow map split queues.
Definition: Batch.h:305
void Resize(unsigned newSize)
Resize array.
Definition: JSONValue.cpp:234
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
StringHash type_
Object type.
Definition: Variant.h:125
bool GetUseSystemClipboard() const
Definition: UI.h:227
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
Definition: NavBuildData.h:103
void StopAll(float fadeOutTime=0.0f)
Stop all animations. Zero fadetime is instant.
Definition: AnimationController.cpp:241
Base class for octree queries.
Definition: OctreeQuery.h:40
SharedPtr< SoundStream > soundStream_
Sound stream that is being played.
Definition: SoundSource.h:197
FontType
Font file type.
Definition: Font.h:39
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 SetGain(float gain)
Definition: SoundSource.cpp:290
void RefreshMemoryUse()
Recalculate the memory used by the material.
Definition: Material.cpp:1302
Vector2 sizeMin_
Particle size minimum.
Definition: ParticleEffect.h:463
void Push(const T &value)
Insert an element to the end.
Definition: List.h:279
ObjectFactoryImpl(Context *context)
Construct.
Definition: Object.h:244
~WeakPtr() noexcept
Destruct. Release the weak reference to the object.
Definition: Ptr.h:322
bool HasColorGradient() const
Definition: UIElement.h:625
void SetBoundingBox(const BoundingBox &bnds)
Definition: NavArea.h:60
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
void SetMass(float mass)
Definition: RigidBody2D.cpp:127
JSONValue(const char *value)
Construct with a C string.
Definition: JSONValue.h:119
Definition of a model's vertex morph.
Definition: Model.h:54
Vector3 position_
Position.
Definition: Drawable2D.h:40
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 Merge(const Vector3 &point)
Merge a point.
Definition: Sphere.h:112
~Connection() override
Destruct.
Definition: Connection.cpp:88
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
unsigned GetAreaID() const
Definition: NavArea.h:48
PODVector< Drawable * > occluders_
Occluder objects.
Definition: View.h:400
unsigned northID_
Node ID of north neighbor.
Definition: Terrain.h:364
bool vertexLights_
Vertex lights flag.
Definition: RenderPath.h:196
void SetIndent(int indent)
Definition: UIElement.cpp:1077
rcContext * ctx_
Recast context.
Definition: NavBuildData.h:78
void UpdateBatches(const FrameInfo &frame) override
Calculate distance and prepare batches for rendering. May be called from worker thread(s),...
Definition: AnimatedModel.cpp:259
static const XMLElement EMPTY
Empty XMLElement.
Definition: XMLElement.h:312
Node * Prev() const
Return previous node.
Definition: HashSet.h:57
Frustum() noexcept=default
Construct a degenerate frustum with all points at origin.
Window UI element that can optionally by moved or resized.
Definition: Window.h:48
unsigned GetQueryFilterType() const
Definition: CrowdAgent.h:188
Mutex moduleMutex_
Script module create/delete mutex.
Definition: Script.h:145
void SetUseScreenKeyboard(bool enable)
Definition: UI.cpp:686
@ 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
void Release() override
Release buffer.
Definition: OGLIndexBuffer.cpp:57
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
unsigned GetSRGBFormat(unsigned format)
Definition: OGLTexture.cpp:305
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
float lodDistance_
LOD distance.
Definition: Geometry.h:144
bool IsClient() const
Definition: Connection.h:203
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
float range_
ProgressBar range.
Definition: ProgressBar.h:111
void SetShowPercentText(bool enable)
Definition: ProgressBar.cpp:114
void SetMinInstances(int instances)
Definition: Renderer.cpp:476
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
int GetAcceleratorKey() const
Definition: Menu.h:88
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
T value_
Value.
Definition: Variant.h:272
~IKSolver() override
Default destructor.
Definition: IKSolver.cpp:68
int width_
Texture width.
Definition: Texture.h:249
virtual bool FilterPopupImplicitAttributes(XMLElement &dest) const
Filter implicit attributes in serialization process.
Definition: Menu.cpp:346
SharedPtr< XMLFile > loadParameters_
Parameter file acquired during BeginLoad.
Definition: TextureCube.h:92
float minHeight_
Minimum height.
Definition: CollisionShape.h:137
void StorePreparedView(View *view, Camera *camera)
Mark a view as prepared by the specified culling camera.
Definition: Renderer.cpp:1142
Node()=default
Construct undefined.
const String & GetProperty(const String &name) const
Return property.
Definition: TileMapLayer2D.cpp:262
unsigned position_
Stream position.
Definition: Deserializer.h:153
void SetScriptNetworkDataAttr(const PODVector< unsigned char > &data)
Set script network serialization attribute by calling a script function.
Definition: ScriptInstance.cpp:473
Vector2 GetCharSize(unsigned index)
Definition: Text.cpp:431
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
A set of flags defined by an Enum.
Definition: FlagSet.h:46
virtual void OnDragMove(const IntVector2 &position, const IntVector2 &screenPosition, const IntVector2 &deltaPos, MouseButtonFlags buttons, QualifierFlags qualifiers, Cursor *cursor)
React to mouse drag motion.
Definition: UIElement.cpp:433
String GetValueTypeName() const
Definition: JSONValue.cpp:176
float GetRatio() const
Definition: ConstraintPulley2D.h:77
void SetFontAttr(const ResourceRef &value)
Set font attribute.
Definition: Text.cpp:443
Technique * GetDefaultTechnique() const
Definition: Renderer.cpp:564
Drawable * drawable_
Drawable.
Definition: OctreeQuery.h:174
bool skinningDirty_
Skinning dirty flag.
Definition: AnimatedModel.h:261
bool hasExecuted_
Has executed.
Definition: LuaFile.h:64
VertexMaskFlags GetElementMask() const
Definition: VertexBuffer.h:110
void Clear()
Reset to empty.
Definition: Variant.h:561
Button * cancelButton_
Cancel button.
Definition: FileSelector.h:187
unsigned char drawableFlags_
Drawable flags.
Definition: Drawable.h:361
void Resize(unsigned newLength)
Resize the string.
Definition: Str.cpp:418
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
float minRadius_
Min radius.
Definition: ParticleEffect2D.h:312
const PODVector< Drawable * > & GetGeometries() const
Return geometry objects.
Definition: View.h:163
unsigned size_
Data size.
Definition: Graphics.h:75
Node * ReserveNode()
Reserve a node.
Definition: HashSet.h:602
void SetForceAutoHint(bool enable)
Definition: UI.cpp:700
Cursor image and hotspot information.
Definition: Cursor.h:55
bool Equals(T lhs, T rhs)
Definition: MathDefs.h:72
void CreateThreads(unsigned numThreads)
Create worker threads. Can only be called once.
Definition: WorkQueue.cpp:86
bool useGradient_
Gradient flag.
Definition: UIBatch.h:95
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
unsigned char * buffer_
Buffer.
Definition: VectorBase.h:68
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
unsigned GetSelection() const
Definition: ListView.cpp:884
unsigned BuildTiles(Vector< NavigationGeometryInfo > &geometryList, const IntVector2 &from, const IntVector2 &to)
Build tiles in the rectangular area. Return number of built tiles.
Definition: NavigationMesh.cpp:1530
Color() noexcept
Construct with default values (opaque white).
Definition: Color.h:54
const float * Data() const
Return float data.
Definition: Quaternion.h:462
VariantVector parameters_
Parameters.
Definition: ScriptEventListener.h:48
Color colorDelta_
Color delta.
Definition: ParticleEmitter2D.h:52
void Clear()
Clear array or object.
Definition: JSONValue.cpp:336
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
Vector< TmxLayer2D * > layers_
Layers.
Definition: TmxFile2D.h:228
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
Navigation area stub.
Definition: NavBuildData.h:45
Vector2(const float *data) noexcept
Construct from a float array.
Definition: Vector2.h:203
IntVector2 numPatches_
Terrain size in patches.
Definition: Terrain.h:326
FrameInfo frame_
Frame info for rendering.
Definition: Renderer.h:605
~OcclusionBuffer() override
Destruct.
Vector2 max_
Maximum vector.
Definition: Rect.h:269
List & operator=(const List< T > &rhs)
Assign from another list.
Definition: List.h:208
float GetRotationWeight() const
Definition: IKEffector.cpp:183
Vector< Pair< String, CubeMapFace > > outputs_
Output rendertarget names and faces.
Definition: RenderPath.h:174
bool skinningDirty_
Skinning dirty flag.
Definition: DecalSet.h:258
Vector2 Abs() const
Return absolute vector.
Definition: Vector2.h:321
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
bool IsTextSelectable() const
Definition: LineEdit.h:123
bool IsVisibleEffective() const
Definition: UIElement.cpp:1559
bool GetAlphaToCoverage() const
Definition: Material.h:260
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
Viewport * GetViewport() const
Definition: View3D.cpp:151
unsigned GetNumGeometries() const
Definition: CustomGeometry.h:138
float SumRGB() const
Return sum of RGB components.
Definition: Color.h:170
PODVector< float > uiVertexData_
Text vertex data.
Definition: Text3D.h:247
Vector3 v1_
Vertex a.
Definition: DebugRenderer.h:81
void SetVertexShaderDefineExcludes(const String &excludes)
Definition: Technique.cpp:159
Matrix3x4(const float *data) noexcept
Construct from a float array.
Definition: Matrix3x4.h:126
~IKConstraint() override
Destructs he IK constraint.
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
Vector2 position_
Position.
Definition: TmxFile2D.h:149
void Reset()
Reset number of triangles.
Definition: OcclusionBuffer.cpp:146
T & At(unsigned index)
Return element at index.
Definition: Vector.h:208
const IntVector2 & GetOffset() const
Definition: Sprite2D.h:83
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
unsigned GetNumPrimitives() const
Definition: Renderer.h:406
Iterator Insert(const Iterator &dest, const T &value)
Insert an element by iterator.
Definition: Vector.h:891
Value animation event frame.
Definition: ValueAnimation.h:57
bool IsValid() const
Check that function is valid.
Definition: LuaFunction.cpp:63
HiresTimer frameTimer_
Frame update timer.
Definition: Engine.h:145
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
void ReplacePrint()
Replace print.
Definition: LuaScript.cpp:384
Vector2 lowLimit_
Low limit.
Definition: Constraint.h:220
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
void SetRotation(const Quaternion &rotation)
Definition: Node.cpp:450
WeakPtr< Constraint2D > otherConstraint_
Other body constraint.
Definition: ConstraintGear2D.h:74
2D wheel constraint component.
Definition: ConstraintWheel2D.h:31
StoredLogMessage()=default
Construct undefined.
static Sint64 Size(SDL_RWops *context)
Return data size of the object.
Definition: RWOpsWrapper.h:53
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
bool Null() const
Check if the pointer is null.
Definition: Ptr.h:480
Vector2 GetWorldPosition2D() const
Definition: Node.h:455
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
int mixRate_
Mixing rate.
Definition: Audio.h:147
JSONValueType GetValueType() const
Definition: JSONValue.cpp:166
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
void SetAccelerator(int key, int qualifiers)
Set accelerator key (set zero key code to disable).
Definition: Menu.cpp:335
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
const Vector2 & GetSize() const
Definition: TileMapDefs2D.h:196
void SetOwner(void *owner)
Set owner.
Definition: ValueAnimation.cpp:250
float time_
Time.
Definition: ValueAnimation.h:60
AutoRemoveMode
Autoremove is used by some components for automatic removal from the scene hierarchy upon completion ...
Definition: Component.h:39
bool Build() override
Build/rebuild the entire navigation mesh.
Definition: DynamicNavigationMesh.cpp:337
ResourceRef GetMaterialAttr() const
Return material attribute.
Definition: BillboardSet.cpp:427
unsigned indexCount_
Number of indices.
Definition: Geometry.h:138
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
@ ASYNC_FAIL
BeginLoad() failed.
Definition: Resource.h:50
void OnSetEnabled() override
Handle enabled/disabled state change.
Definition: AnimatedSprite2D.cpp:86
unsigned vertexEnd_
Vertex data end index.
Definition: UIBatch.h:91
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
Tmx tile layer.
Definition: TmxFile2D.h:91
bool IsScaled() const
Definition: ParticleEffect.h:279
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
Plane clipPlane_
Clipping plane.
Definition: Camera.h:314
T Get() const
Return the value, template version.
bool executeConsoleCommands_
Flag for executing engine console commands as OS-specific system command. Default to true.
Definition: FileSystem.h:130
FlagSet()=default
Empty constructor.
void SetPoolSize(unsigned poolSize)
Definition: Database.h:68
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
bool occluder_
Occluder flag.
Definition: Terrain.h:344
bool swapXY_
Swap X and Y.
Definition: StaticSprite2D.h:180
void GetCursorPositionAndVisible(IntVector2 &pos, bool &visible)
Return cursor position and visibility either from the cursor element, or the Input subsystem.
Definition: UI.cpp:1305
int GetEffectStrokeThickness() const
Definition: Text.h:187
void InsertChild(unsigned index, UIElement *element)
Insert a child element into a specific position in the child list.
Definition: UIElement.cpp:1293
unsigned maxVertices_
Maximum vertices.
Definition: DecalSet.h:246
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
JSONValue & GetRoot()
Definition: JSONFile.h:58
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
String(const char *str)
Construct from a C string.
Definition: Str.h:79
bool operator!=(const HashIteratorBase &rhs) const
Test for inequality with another iterator.
Definition: HashBase.h:76
void SetSpeed(float speed)
Definition: SplinePath.h:70
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 SetValue(float value)
Definition: Slider.cpp:182
void SetOtherBodyAnchor(const Vector2 &anchor)
Definition: ConstraintRope2D.cpp:69
PODVector< unsigned char > offMeshDir_
Offmesh connection direction.
Definition: NavBuildData.h:76
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
PODVector< float > offMeshRadii_
Offmesh connection radii.
Definition: NavBuildData.h:70
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
void SetMargin(float margin)
Definition: CollisionShape.cpp:780
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
Camera(Context *context)
Construct.
Definition: Camera.cpp:53
void Clear()
Clear to undefined state.
Definition: BoundingBox.h:246
VectorBuffer attrBuffer_
Attribute buffer for network replication.
Definition: RigidBody.h:341
const Rect & GetDrawRect() const
Definition: StaticSprite2D.h:96
void SetERP(float erp)
Definition: Constraint.cpp:302
const Vector2 & GetHighLimit() const
Definition: Constraint.h:154
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
float repeatRate_
Paging repeat rate.
Definition: Slider.h:125
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
void SetImageRect(const IntRect &rect)
Definition: Sprite.cpp:201
int GetMaxFps() const
Definition: Engine.h:93
QualifierFlags qualifiers_
Qualifier keys held down.
Definition: UI.h:430
unsigned GetNumBatches() const
Definition: Renderer.h:410
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
float GetStartScale() const
Definition: RibbonTrail.h:164
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
bool looping_
Looping.
Definition: SpriterInstance2D.h:101
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
unsigned checksum_
Checksum.
Definition: Connection.h:82
bool GetScancodeDown(Scancode scancode) const
Definition: Input.cpp:1344
Quaternion GetWorldRotation() const
Definition: Node.h:463
Variant(const Matrix3x4 &value)
Construct from a Matrix3x4.
Definition: Variant.h:506
EmitterType2D
2D particle emitter types.
Definition: ParticleEffect2D.h:37
unsigned readBuffers_
Read buffer bits.
Definition: OGLGraphicsImpl.h:93
void SetValue(float value)
Definition: ScrollBar.cpp:171
float GetLength() const
Definition: Animation.h:175
void SetNumGeometries(unsigned num)
Definition: Model.cpp:542
Rect uv_
UV coordinates.
Definition: BillboardSet.h:46
void OnNodeSet(Node *node) override
Handle component being added to Node or removed from it.
Definition: UIComponent.cpp:198
float radius_
Radius.
Definition: CollisionCircle2D.h:69
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
StringVector tags_
Tag list.
Definition: UIElement.h:931
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
void Push(T &&value)
Move-add an element at the end.
Definition: Vector.h:253
~Texture2D() override
Destruct.
Definition: Texture2D.cpp:50
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
~JSONFile() override
Destruct.
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
Font(Context *context)
Construct.
Definition: Font.cpp:54
const int * Data() const
Return integer data.
Definition: Vector3.h:147
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
unsigned maxFps_
Maximum frames per second.
Definition: Engine.h:155
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
float x_
X coordinate.
Definition: Vector4.h:225
T & GetValue()
Get value.
Definition: Variant.h:238
void BeginInterval()
Begin a new interval.
Definition: Profiler.cpp:66
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
float agentMaxSlope_
Navigation agent max slope.
Definition: NavigationMesh.h:362
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
Hash set node.
Definition: HashSet.h:39
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
~Texture() override
Destruct.
void SetShadowed(bool enable)
Definition: IndexBuffer.cpp:59
float GetDetailSampleDistance() const
Definition: NavigationMesh.h:257
char & At(unsigned index)
Return char at index.
Definition: Str.h:320
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
void SetHeight(float height)
Definition: CrowdAgent.cpp:409
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
Billboard component.
Definition: BillboardSet.h:62
void MixStereoToMonoIP(Sound *sound, int *dest, unsigned samples, int mixRate)
Mix stereo sample to mono buffer interpolated.
Definition: SoundSource.cpp:1076
float Angle() const
Definition: Quaternion.cpp:229
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
float GetDerivedOpacity() const
Definition: UIElement.cpp:1519
BatchQueue * batchQueue_
Batch queue.
Definition: View.h:91
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
Menu UI element that optionally shows a popup.
Definition: Menu.h:31
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
virtual void RemoveAllTiles()
Remove all tiles from navigation mesh.
Definition: NavigationMesh.cpp:588
~Condition()
Destruct.
Definition: Condition.cpp:70
void ReleaseRef()
Release the array reference and delete it and the RefCount structure if necessary.
Definition: ArrayPtr.h:188
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
Vector2 uv_
UV.
Definition: Drawable2D.h:44
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
float rotation_
Rotation angle.
Definition: Sprite.h:132
AttributeInfo()=default
Construct empty.
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
unsigned ibRef_
Index buffer ref.
Definition: Model.h:100
ListBase()
Construct.
Definition: ListBase.h:97
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
bool GetTileFlipY() const
Definition: TileMapDefs2D.h:212
void SetBool(bool value)
Set boolean.
Definition: PListFile.cpp:135
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
BorderImage * GetKnob() const
Definition: ProgressBar.h:79
void HandlePathChanged(StringHash eventType, VariantMap &eventData)
Handle path edited.
Definition: FileSelector.cpp:394
double numberValue_
Definition: JSONValue.h:316
bool IsPressed() const
Definition: Button.h:98
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
2D revolute constraint component.
Definition: ConstraintRevolute2D.h:31
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
Cursor * GetCursor() const
Definition: UI.h:162
void AddAttribute(const pugi::xml_node &patch, const pugi::xpath_node &original) const
Add an attribute in the Patch.
Definition: XMLFile.cpp:347
void SetWidth(int width)
Definition: UIElement.cpp:593
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
Particle effect definition.
Definition: ParticleEffect.h:110
Hash set node iterator.
Definition: HashSet.h:64
void Open(const String &fileName)
Open the log file.
Definition: Log.cpp:82
bool markToStencil_
Mark to stencil flag.
Definition: View.h:87
TextureUsage GetUsage() const
Definition: Texture.h:159
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
int GetDepth() const
Return depth.
Definition: Texture.h:100
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
int level_
Message level. -1 for raw messages.
Definition: Log.h:67
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
Timer useTimer_
Last used timer.
Definition: OcclusionBuffer.h:209
@ LT_IMAGE_LAYER
Image layer.
Definition: TileMapDefs2D.h:85
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
const float * Data() const
Return float data.
Definition: Matrix3x4.h:657
HashMap< unsigned short, unsigned short > materialRemapping_
Material remapping table for 2-pass state and distance sort.
Definition: Batch.h:252
StringHash nameHash_
Morph name hash.
Definition: Model.h:59
SharedPtr< File > file_
Destination file.
Definition: Connection.h:74
TerrainPatch * GetPatch(unsigned index) const
Definition: Terrain.cpp:528
float currentTime_
Current time.
Definition: ValueAnimationInfo.h:94
void RemoveAllTiles() override
Remove all tiles from navigation mesh.
Definition: DynamicNavigationMesh.cpp:578
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
void Clear()
Clear the string.
Definition: Str.cpp:478
~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
ConstIterator End() const
Return iterator to the end.
Definition: HashMap.h:612
static void RegisterObject(Context *context)
Register object factory.
Definition: LineEdit.cpp:74
HashMap< unsigned, WeakPtr< Node > > nodes_
Nodes.
Definition: SceneResolver.h:54
void SetWordwrap(bool enable)
Definition: Text.cpp:329
bool EndLoadFromPListFile()
End load from PList file.
Definition: SpriteSheet2D.cpp:149
bool IsEnabled() const
Definition: Component.h:99
UniquePtr< dtTileCacheCompressor > compressor_
Used by dtTileCache to compress the original tiles to use when reconstructing for changes.
Definition: DynamicNavigationMesh.h:144
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
~Engine() override
Destruct. Free all subsystems.
HighlightMode highlightMode_
Highlight mode.
Definition: ListView.h:191
Text * GetTextElement() const
Definition: LineEdit.h:131
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
bool IsUpdateEnabled() const
Definition: Scene.h:188
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
@ JSON_NULL
JSON null type.
Definition: JSONValue.h:36
~Camera() override
Destruct.
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
bool IsZero() const
Definition: Variant.cpp:523
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
String(char *str)
Construct from a C string.
Definition: Str.h:88
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
Node * GetNode() const
Definition: AnimationState.cpp:379
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
bool IsOccludee() const
Definition: Drawable.h:240
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
bool IsAsyncLoading() const
Definition: Scene.h:192
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
Pass * pass_
Material pass.
Definition: Batch.h:199
void SetTrigger(bool trigger)
Definition: CollisionShape2D.cpp:81
const Vector3 & GetPosition() const
Definition: CollisionShape.h:237
~Sound() override
Destruct and free sound data.
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
bool GetCastShadows() const
Definition: Terrain.h:232
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
void GotoNext()
Go to the next node.
Definition: HashBase.h:79
void * GetUserData() const
Return userdata.
Definition: Object.h:291
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
bool GetDrawOffMeshConnections() const
Definition: NavigationMesh.h:305
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
Light component.
Definition: Light.h:152
const pugi::xpath_node * GetXPathNode() const
Return pugixml xpath_node.
Definition: XMLElement.h:302
Vector3 cachedWorldScale_
Cached world scale.
Definition: CollisionShape2D.h:133
unsigned GetVertexCount() const
Definition: VertexBuffer.h:80
~HttpRequest() override
Destruct. Release the connection object.
Definition: HttpRequest.cpp:73
const IntVector2 & GetMaxSize() const
Definition: UIElement.h:486
~Component() override
Destruct.
Material * GetDefaultMaterial() const
Definition: Renderer.h:431
Orientation orientation_
Orientation.
Definition: Slider.h:113
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 IsUpdateEnabled() const
Definition: PhysicsWorld.h:236
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
unsigned char layer_
Blending layer.
Definition: AnimationState.h:193
bool historyOrAutoCompleteChange_
Internal flag whether currently in an autocomplete or history change.
Definition: Console.h:214
SharedPtr< Geometry > geometry_
Geometry.
Definition: DecalSet.h:230
@ BEZIER_CURVE
Bezier interpolation.
Definition: Spline.h:39
~VariantValue()
Destruct.
Definition: Variant.h:319
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
bool hasLoaded_
Has loaded.
Definition: LuaFile.h:62
void SetUseDrawRect(bool useDrawRect)
Definition: StaticSprite2D.cpp:188
void SetFeature(Feature feature, bool enable)
Definition: IKEffector.cpp:217
float GetLodBias() const
Definition: Camera.h:153
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
View3D(Context *context)
Construct.
Definition: View3D.cpp:42
Node * GetParent() const
Definition: Node.h:382
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
Vector3 v3_
Vertex c.
Definition: DebugRenderer.h:85
Matrix3x4 offsetMatrix_
Offset matrix.
Definition: Skeleton.h:73
void SetAddressOrGUID(const SLNet::AddressOrGUID &addr)
Set the the RakNet address/guid.
Definition: Connection.cpp:1660
Color color_
Color.
Definition: ParticleEffect.h:81
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
float distance_
Distance from camera.
Definition: Batch.h:80
~ConstraintWeld2D() override
Destruct.
UpdateEventFlags updateEventMask_
Requested event subscription mask.
Definition: LogicComponent.h:108
Bone timeline key.
Definition: SpriterData2D.h:275
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
float GetDensity() const
Definition: CollisionShape2D.h:95
dtTileCachePolyMesh * polyMesh_
TileCache specific recast poly mesh.
Definition: NavBuildData.h:113
Feature
Definition: IKSolver.h:59
void CreateGeometry()
Regenerate terrain geometry.
Definition: Terrain.cpp:848
int GetSimulatedLatency() const
Definition: Network.h:118
Frustum frustum_
View frustum.
Definition: DebugRenderer.h:192
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
2D rope constraint component.
Definition: ConstraintRope2D.h:31
void ApplyNodeWorldScale() override
Apply node world scale.
Definition: CollisionBox2D.cpp:105
void SetFadeDistance(float distance)
Definition: Light.cpp:359
Key GetKeyFromScancode(Scancode scancode) const
Return keycode from scancode.
Definition: Input.cpp:1309
BlendMode GetBlendMode() const
Definition: Sprite.h:115
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
void SetHotSpot(const Vector2 &hotSpot)
Definition: Sprite2D.cpp:123
DecalSet(Context *context)
Construct.
Definition: DecalSet.cpp:154
Matrix4 gpuProjection_
Projection transform in API-specific format.
Definition: DebugRenderer.h:190
LineEdit * GetLineEdit() const
Definition: Console.h:98
UIElement * buttonLayout_
Button layout.
Definition: FileSelector.h:197
Color ReadColor()
Read a color.
Definition: Deserializer.cpp:233
float rotation_
Rotation.
Definition: ParticleEmitter2D.h:46
DebugRenderer * debugRenderer_
Debug renderer.
Definition: PhysicsWorld2D.h:259
unsigned maxLength_
Maximum text length.
Definition: LineEdit.h:166
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
Text text_
Internally used text element.
Definition: Text3D.h:237
Stores files of a directory tree sequentially for convenient access.
Definition: PackageFile.h:42
void ApplySceneToActivePose()
Definition: IKSolver.cpp:477
void Update(float timeStep)
Update for rendering. Called by HandleRenderUpdate().
Definition: Renderer.cpp:647
void HandleFocusChanged(StringHash eventType, VariantMap &eventData)
Handle global focus change to check for hiding the popup.
Definition: Menu.cpp:386
bool textCopyable_
Copy-paste enable flag.
Definition: LineEdit.h:174
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 SetBorder(const IntRect &rect)
Definition: BorderImage.cpp:97
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
RefCount * RefCountPtr() const
Return pointer to the RefCount structure.
Definition: ArrayPtr.h:168
bool geometriesUpdated_
Geometries updated flag.
Definition: View.h:368
void MergeBuffers()
Merge thread work buffers into the first buffer.
Definition: OcclusionBuffer.cpp:1004
Vector2 texCoord_
Texture coordinates.
Definition: DecalSet.h:66
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
float GetFriction() const
Definition: CollisionShape2D.h:99
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
unsigned GetID() const
Definition: Node.h:361
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
RefCount * RefCountPtr() const
Return pointer to the RefCount structure.
Definition: Ptr.h:217
bool HasMethod(const String &declaration) const
Check if has a method.
Definition: ScriptInstance.cpp:431
void SetAutoDisableChildren(bool disable)
Definition: ScrollView.h:96
void SetFilterMode(TextureFilterMode mode)
Definition: Texture.cpp:74
TrailPoint * next_
Next point to make a tail.
Definition: RibbonTrail.h:57
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
unsigned indexCount_
Number of indices.
Definition: IndexBuffer.h:106
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
float GetFarDistance() const
Definition: SoundSource3D.h:76
static void RegisterObject(Context *context)
Register object factory.
Definition: Menu.cpp:66
void UpdatePlanes()
Update the planes. Called internally.
Definition: Frustum.cpp:225
void SetModalAutoDismiss(bool enable)
Definition: Window.cpp:315
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
LoadMode
Asynchronous scene loading mode.
Definition: Scene.h:46
void GetVector3MinMax(const XMLElement &element, Vector3 &minValue, Vector3 &maxValue)
Read a Vector3 from an XML element.
Definition: ParticleEffect.cpp:851
Vector3 FindNearestPoint(const Vector3 &point, const Vector3 &extents=Vector3::ONE, const dtQueryFilter *filter=nullptr, dtPolyRef *nearestRef=nullptr)
Find the nearest point on the navigation mesh to a given point. Extents specifies how far out from th...
Definition: NavigationMesh.cpp:607
float projOffsetScaleX_
Combined X projection and viewport transform.
Definition: OcclusionBuffer.h:223
void SetHeightFog(bool enable)
Definition: Zone.cpp:160
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
float GetWidth() const
Definition: RibbonTrail.h:152
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
String name_
Name.
Definition: TmxFile2D.h:79
DecalVertex()=default
Construct with defaults.
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
bool IsNull() const
Definition: JSONValue.h:184
SharedPtr< BorderImage > scrollPanel_
Scroll panel element.
Definition: ScrollView.h:182
SharedPtr< Material > material_
Material.
Definition: Terrain.h:300
float specularIntensity_
Specular intensity.
Definition: Light.h:425
float GetOuterAngle() const
Definition: SoundSource3D.h:84
Timeline key.
Definition: SpriterData2D.h:224
~ConstraintRope2D() override
Destruct.
void HandleBeginFrame(StringHash eventType, VariantMap &eventData)
Handle begin frame event to check for completed async executions.
Definition: FileSystem.cpp:904
void * renderTargetView_
Definition: RenderSurface.h:152
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
Hardware vertex buffer.
Definition: VertexBuffer.h:34
PODVector< OffMeshConnection * > CollectOffMeshConnections(const BoundingBox &bounds)
Off-mesh connections to be rebuilt in the mesh processor.
Definition: DynamicNavigationMesh.cpp:1039
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
static int AtPanic(lua_State *L)
At panic.
Definition: LuaScript.cpp:347
bool IsPackaged() const
Definition: File.h:113
void SetUseSystemShapes(bool enable)
Definition: Cursor.cpp:205
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
bool selected_
Selected flag.
Definition: UIElement.h:818
SharedPtr< Button > closeButton_
Close button.
Definition: Console.h:176
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
Node(const T &value)
Construct with value.
Definition: List.h:42
UIElement * GetRoot() const
Definition: UIComponent.cpp:183
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
XPath query.
Definition: XMLElement.h:366
String className_
Class name.
Definition: ScriptInstance.h:198
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 &parameters, const String &parameter)
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
SharedPtr< Material > material_
Material.
Definition: Drawable2D.h:60
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
bool SetFontSize(float size)
Definition: Text.cpp:277
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
String ToString() const
Return as string.
Definition: Quaternion.cpp:325
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
HashNodeBase * prev_
Previous node.
Definition: HashBase.h:52
void SetSpriteAttr(const ResourceRef &value)
Set sprite attribute.
Definition: ParticleEmitter2D.cpp:161
SharedPtr< Texture > texture_
Texture.
Definition: BorderImage.h:135
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
void Reserve(unsigned newCapacity)
Set new capacity.
Definition: Vector.h:436
HashMap< StringHash, Variant > shaderParameters_
Shader parameters.
Definition: RenderPath.h:172
void Update(float delta)
Update the crowd simulation.
Definition: CrowdManager.cpp:678
HighlightMode
ListView selection highlight mode.
Definition: ListView.h:34
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
T * operator->() const
Point to the array.
Definition: ArrayPtr.h:310
bool useDerivedOpacity_
Use derived opacity flag.
Definition: UIElement.h:810
void ApplyAttributes() override
Apply Attributes to the SplinePath.
Definition: SplinePath.cpp:70
unsigned indexStart_
Index start.
Definition: Model.h:102
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
const Vector2 & GetMaxAnchor() const
Definition: UIElement.h:530
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 SetDetailSampleDistance(float distance)
Definition: NavigationMesh.cpp:304
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
unsigned echoCharacter_
Echo character.
Definition: LineEdit.h:168
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
float endScale_
End for start of trails.
Definition: RibbonTrail.h:259
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
3x4 matrix for scene node transform calculations.
Definition: Matrix3x4.h:35
float GetNearClip() const
Definition: Camera.cpp:268
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
float elapsedTime_
Elapsed time accumulator.
Definition: Scene.h:349
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
void Maximize()
Maximize the window.
Definition: Graphics.cpp:337
void SetViewMask(unsigned mask)
Definition: Camera.cpp:177
unsigned numWorldTransforms_
Number of world transforms.
Definition: Batch.h:94
Iterator(Node *ptr)
Construct with a node pointer.
Definition: HashMap.h:113
int acceleratorKey_
Accelerator key code.
Definition: Menu.h:104
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
String GetAddress() const
Definition: Connection.cpp:1656
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
unsigned id_
Unique ID within the scene.
Definition: Node.h:737
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
unsigned GetNumRows() const
Definition: Text3D.cpp:473
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
float GetMaxTorque() const
Definition: ConstraintMotor2D.h:73
@ 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
void SetSelection(unsigned index)
Definition: ListView.cpp:509
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
C++ representation of Lua function object.
Definition: LuaFunction.h:38
void SetTileSize(int size)
Definition: NavigationMesh.cpp:227
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 &center, float width, float height, const Color &color, bool depthTest=true)
Add a quad on the XZ plane.
Definition: DebugRenderer.cpp:474
bool IsDynamic() const
Definition: VertexBuffer.h:73
2D rigid body component.
Definition: RigidBody2D.h:47
bool IsOpen() const
Definition: HttpRequest.h:84
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
void SetBoundingBox(const BoundingBox &box)
Definition: Zone.cpp:99
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
unsigned GetFormat() const
Definition: Texture.h:81
void Finalize()
Finalize all prepared statements, close all BLOB handles, and finish all sqlite3_backup objects.
Definition: ODBCConnection.cpp:68
unsigned eastID_
Node ID of east neighbor.
Definition: Terrain.h:370
HashMap< unsigned, Component * > localComponents_
Local components by ID.
Definition: Scene.h:311
DynamicNavigationMesh(Context *)
Constructor.
Definition: DynamicNavigationMesh.cpp:211
Definition: BillboardSet.h:39
Vector3 GetWorldPosition() const
Definition: Node.h:445
HashMap< unsigned, SharedPtr< Sprite2D > > gidToSpriteMapping_
Gid to tile sprite mapping.
Definition: TmxFile2D.h:222
ScrollBar * GetVerticalScrollBar() const
Definition: ScrollView.h:116
Individually rendered part of a heightmap terrain.
Definition: TerrainPatch.h:35
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
virtual void SetNavigationDataAttr(const PODVector< unsigned char > &value)
Set navigation data attribute.
Definition: NavigationMesh.cpp:879
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
LayoutMode layoutMode_
Layout mode.
Definition: UIElement.h:830
unsigned GetSampleSize() const
Definition: Audio.h:75
const HashMap< StringHash, ResourceGroup > & GetAllResources() const
Return all loaded resources.
Definition: ResourceCache.h:162
unsigned target_
OpenGL target.
Definition: Texture.h:231
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
unsigned GetNumKeyFrames() const
Definition: Animation.h:90
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
Queued 3D geometry draw call.
Definition: Batch.h:50
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
void AddRef()
Add a reference to the object pointed to.
Definition: Ptr.h:226
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
T Acos(T x)
Definition: MathDefs.h:166
void SetDrawOffMeshConnections(bool enable)
Definition: NavigationMesh.h:301
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
void StopServer()
Stop the server.
Definition: Network.cpp:450
float startParticleSize_
Start particle size.
Definition: ParticleEffect2D.h:296
NavmeshPartitionType partitionType_
Type of the heightfield partitioning.
Definition: NavigationMesh.h:384
Zone * zone_
Zone.
Definition: Batch.h:98
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
@ WM_LOOP
Loop mode.
Definition: AnimationDefs.h:34
bool GetDrawShape() const
Definition: PhysicsWorld2D.h:181
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
Octree * GetOctree() const
Return octree.
Definition: View.h:139
String Trimmed() const
Return string with whitespace trimmed from the beginning and the end.
Definition: Str.cpp:520
SourceBatch()
Construct with defaults.
unsigned GetObstacleID() const
Definition: Obstacle.h:70
Intersection TestOctant(const BoundingBox &box, bool inside) override
Intersection test for an octant.
Definition: OctreeQuery.cpp:121
Heightfield geometry data.
Definition: CollisionShape.h:125
~Material() override
Destruct.
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
void SetRange(float range)
Definition: ProgressBar.cpp:82
SharedPtr< Sprite2D > sprite_
Sprite.
Definition: ParticleEmitter2D.h:155
void SetOtherPosition(const Vector3 &position)
Definition: Constraint.cpp:219
@ HM_NEVER
Never highlight selections.
Definition: ListView.h:37
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
FileMode GetMode() const
Definition: File.h:102
unsigned GetUInt(unsigned defaultValue=0) const
Return unsigned integer value.
Definition: JSONValue.h:206
@ OT_POLYGON
Polygon.
Definition: TileMapDefs2D.h:98
int GetMaxShadowMaps() const
Definition: Renderer.h:354
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
Base class for visible components.
Definition: Drawable.h:110
void SetVertexCount(unsigned count)
Definition: CollisionChain2D.cpp:68
bool disableCollision_
Disable collision between connected bodies flag.
Definition: Constraint.h:228
bool viewDirty_
View matrix dirty flag.
Definition: Camera.h:278
HashMap & operator+=(const Pair< T, U > &rhs)
Add-assign a pair.
Definition: HashMap.h:281
HashSet< int > keyPress_
Key pressed state.
Definition: Input.h:416
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
float GetRadius() const
Definition: Light.h:259
void UpdateNumTransforms()
Ensure proper size of world transforms when nodes are added/removed. Also mark node IDs dirty.
Definition: StaticModelGroup.cpp:393
T Atan(T x)
Definition: MathDefs.h:170
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
float agentHeight_
Navigation agent height.
Definition: NavigationMesh.h:356
T * operator->() const
Point to the object.
Definition: Ptr.h:603
unsigned GetNumQueryFilterTypes() const
Definition: CrowdManager.h:140
int GetWidth() const
Definition: RenderSurface.cpp:82
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
unsigned lodLevel_
Geometry LOD level if applicable.
Definition: NavigationMesh.h:64
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
void SetValue(float value)
Definition: ProgressBar.cpp:92
Texture * GetTexture() const
Definition: BorderImage.h:86
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
bool visible_
Visible.
Definition: TmxFile2D.h:85
float GetInactiveTime() const
Definition: ParticleEffect.h:323
static const Vector3 UP
(0,1,0) vector.
Definition: Vector3.h:489
IntVector2 GetWindowPosition() const
Definition: Graphics.cpp:234
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
bool IsEnabledSelf() const
Definition: UIElement.h:597
float GetBytesOutPerSec() const
Definition: Connection.cpp:1100
SharedPtr(T *ptr) noexcept
Construct from a raw pointer.
Definition: Ptr.h:73
Iterator Find(const T &value)
Return iterator to value, or to the end if not found.
Definition: Vector.h:464
unsigned BuildTiles(Vector< NavigationGeometryInfo > &geometryList, const IntVector2 &from, const IntVector2 &to)
Build tiles in the rectangular area. Return number of built tiles.
Definition: DynamicNavigationMesh.cpp:999
float SaturationHSV() const
Return saturation as defined for HSV.
Definition: Color.cpp:143
AbstractFile(unsigned int size)
Construct.
Definition: AbstractFile.h:39
@ LM_FORCE_CLAMPED
Force clamped.
Definition: AnimatedSprite2D.h:46
void * end_
Data end pointer.
Definition: WorkQueue.h:54
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 IsArray() const
Definition: Image.h:143
bool relative_
Billboards relative flag.
Definition: BillboardSet.h:182
SpriteSheet2D(Context *context)
Construct.
Definition: SpriteSheet2D.cpp:42
Texture * GetTexture() const
Definition: Sprite.h:107
BoundingBox GetWorldBoundingBox() const
Definition: NavigationMesh.cpp:867
void OnWorldBoundingBoxUpdate() override
Recalculate the world-space bounding box.
Definition: Renderer2D.cpp:276
CullMode
Culling mode.
Definition: GraphicsDefs.h:98
const Plane & GetClipPlane() const
Definition: Camera.h:226
Definition: CustomGeometry.h:32
void SetIKConstraintNode(ik_node_t *constraintNode)
Intended to be used only by IKSolver.
Definition: IKConstraint.cpp:108
~SmoothedTransform() override
Destruct.
Text * GetProfilerText() const
Definition: DebugHud.h:91
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
T & operator*() const
Dereference the object.
Definition: Ptr.h:610
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
WeakPtr< TmxFile2D > tmxFile_
Tmx file.
Definition: TmxFile2D.h:75
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
Color ambientColor_
Ambient color.
Definition: Zone.h:174
float brightness_
Brightness multiplier.
Definition: Light.h:427
T & operator*() const
Dereference the object.
Definition: Ptr.h:414
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 GetFlipY() const
Definition: TileMapDefs2D.h:148
const StringVector & GetTags() const
Definition: Node.h:375
FileMode mode_
Open mode.
Definition: File.h:126
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
Intermediate light processing result.
Definition: View.h:55
unsigned ToHash() const
Return hash value.
Definition: Batch.cpp:714
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
int GetHeight() const
Definition: UIElement.h:470
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
unsigned id_
Unique ID within the scene.
Definition: Component.h:148
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
JoystickState * GetJoystick(SDL_JoystickID id)
Definition: Input.cpp:1474
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 Rehash()
Rehash the buckets.
Definition: HashMap.h:765
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
bool repeat_
Repeat flag.
Definition: ScriptEventListener.h:44
Rect() noexcept
Construct an undefined rect.
Definition: Rect.h:36
const Quaternion & GetRotation() const
Definition: Constraint.h:138
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
int GetShadowMapSize() const
Definition: Renderer.h:330
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
NamedPipe(Context *context)
Construct.
Definition: NamedPipe.cpp:45
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
WeakPtr< FontFace > fontFace_
Current face.
Definition: Text.h:253
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
Source data for a 3D geometry draw call.
Definition: Drawable.h:81
HashMap(const HashMap< T, U > &map)
Construct from another hash map.
Definition: HashMap.h:226
@ O_ORTHOGONAL
Orthogonal.
Definition: TileMapDefs2D.h:39
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
NavArea(Context *)
Construct.
Definition: NavArea.cpp:41
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
Matrix3x4 transform_
Transform matrix.
Definition: Sprite.h:140
T Ln(T x)
Definition: MathDefs.h:182
PODVector< unsigned char > GetGeometryDataAttr() const
Return geometry data attribute.
Definition: CustomGeometry.cpp:775
Vector2 vertex2_
Vertex 2.
Definition: CollisionEdge2D.h:71
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
bool IsAwake() const
Definition: RigidBody2D.cpp:533
Vector2 vertex1_
Vertex 1.
Definition: CollisionEdge2D.h:69
T Min(T lhs, U rhs)
Definition: MathDefs.h:87
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
void SetCcdRadius(float radius)
Definition: RigidBody.cpp:419
~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
bool IsInf() const
Return whether any element is Inf.
Definition: Matrix3.h:287
virtual bool Allocate(const BoundingBox &boundingBox, unsigned maxTiles)
Allocate the navigation mesh without building any tiles. Bounding box is not padded....
Definition: NavigationMesh.cpp:325
OcclusionBuffer * GetOcclusionBuffer(Camera *camera)
Allocate an occlusion buffer.
Definition: Renderer.cpp:1103
~ListView() override
Destruct.
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
const String & GetWindowTitle() const
Definition: Graphics.h:349
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
float GetLinearDamping() const
Definition: RigidBody.cpp:638
Intersection TestOctant(const BoundingBox &box, bool inside) override
Intersection test for an octant.
Definition: OctreeQuery.cpp:54
BlendMode GetBlendMode() const
Definition: Technique.h:104
const Vector2 & GetMinAnchor() const
Definition: UIElement.h:526
String name_
Name.
Definition: UIElement.h:788
bool used_
Use flag.
Definition: OcclusionBuffer.h:61
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
int y_
Y coordinate.
Definition: Vector2.h:158
Animated sprite component, it uses to play animation created by Spine (http://www....
Definition: AnimatedSprite2D.h:57
int RoundToInt(T x)
Definition: MathDefs.h:238
void OnElementResized(StringHash eventType, VariantMap &args)
Handle resizing of element. Setting size of element will automatically resize texture....
Definition: UIComponent.cpp:222
@ IM_LINEAR
Linear interpolation (default).
Definition: ValueAnimation.h:42
~SoundListener() override
Destruct.
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
UniquePtr(std::nullptr_t)
Construct empty.
Definition: Ptr.h:589
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
Two-dimensional vector.
Definition: Vector2.h:175
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 SetFlushGPU(bool enable)
Definition: OGLGraphics.cpp:532
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
int depth_
Texture depth.
Definition: Texture.h:253
Vector3 center_
Sphere center.
Definition: Sphere.h:203
float rotation_
Rotation.
Definition: BillboardSet.h:50
bool IsZoneDirty() const
Return whether current zone is inconclusive or dirty due to the drawable moving.
Definition: Drawable.h:283
FontFace(Font *font)
Construct.
Definition: FontFace.cpp:37
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
FontType fontType_
Font type.
Definition: Font.h:114
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
void RemoveAllTags()
Remove all tags.
Definition: Node.cpp:417
void SetViewMask(unsigned mask)
Definition: Drawable.cpp:191
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
void FreeNode(Node *node)
Free a node.
Definition: List.h:490
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
String GetName() const
Definition: XMLElement.cpp:578
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
short texHeight_
Height in texture.
Definition: FontFace.h:46
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
const String & GetFileName() const
Definition: FileSelector.cpp:261
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
Material * customMaterial_
Custom material.
Definition: UIBatch.h:97
AsyncLoadState GetAsyncLoadState() const
Return the asynchronous loading state.
Definition: Resource.h:105
void * GetHandle() const
Return the file handle.
Definition: File.h:109
String & AppendUTF8(unsigned unicodeChar)
Append Unicode character at the end as UTF8.
Definition: Str.cpp:855
int y_
Y coordinate.
Definition: Vector3.h:161
unsigned dataSize_
Vertex data size.
Definition: Model.h:74
void Seek(float seekTime)
Seek to time.
Definition: SoundSource.cpp:147
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
Queued remote event.
Definition: Connection.h:55
void SetWrapMode(WrapMode wrapMode)
Set wrap mode.
Definition: ValueAnimationInfo.h:57
Asynchronous loading progress of a scene.
Definition: Scene.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
Matrix3x4 model_
Model matrix.
Definition: OcclusionBuffer.h:68
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
HashNodeBase * next_
Next node.
Definition: HashBase.h:54
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
~NavigationMesh() override
Destruct.
Definition: NavigationMesh.cpp:129
TextEffect
Text effect.
Definition: Text.h:39
void SetText(const String &text)
Definition: Text.cpp:293
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
const String & GetName() const
Definition: Node.h:368
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
VariantMap vars_
User variables.
Definition: Node.h:757
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
float GetRotationDecay() const
Definition: IKEffector.cpp:200
void Clip(const IntRect &rect)
Definition: Rect.cpp:40
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
WeakPtr< Scene > scene_
Scene.
Definition: Connection.h:322
IntVector2 viewSize_
Viewport size.
Definition: View.h:348
Vector3 start_
Start position.
Definition: DebugRenderer.h:58
Allocator node.
Definition: Allocator.h:54
bool IsResolveDirty() const
Definition: RenderSurface.h:135
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
void SetChecked(bool enable)
Definition: CheckBox.cpp:91
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
bool IsCompressed() const
Definition: PackageFile.h:89
StringVector GetStringVector() const
Return a string vector attribute, or empty if missing.
Definition: XMLElement.cpp:917
int readHandle_
Pipe handle.
Definition: NamedPipe.h:81
unsigned numTriangles_
Number of rendered triangles.
Definition: OcclusionBuffer.h:193
void SetTrigger(unsigned index, const AnimationTriggerPoint &trigger)
Definition: Animation.cpp:331
@ USE_NO_EVENT
Bitmask for not using any events.
Definition: LogicComponent.h:36
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
void SetAreaCost(unsigned areaID, float cost)
Set the cost of an area.
Definition: NavigationMesh.cpp:861
Vector2 ReadVector2()
Read a Vector2.
Definition: Deserializer.cpp:166
Color(const Vector3 &color)
Construct from 3-vector.
Definition: Color.h:105
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
unsigned GetLodLevel() const
Definition: CollisionShape.h:253
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 SetPivot(const Vector2 &pivot)
Definition: UIElement.cpp:799
void SetBringToFront(bool enable)
Definition: UIElement.cpp:859
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
int GetHeight() const
Return height.
Definition: TmxFile2D.h:57
~SimpleNavBuildData() override
Descturctor.
Definition: NavBuildData.cpp:58
unsigned GetNumRows() const
Return number of rows in the resultset or 0 if the number of rows is not available.
Definition: ODBCResult.h:48
unsigned Size() const
Return size of vector.
Definition: Vector.h:531
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
HttpRequestState GetState() const
Definition: HttpRequest.cpp:287
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
PrimitiveType
Primitive type.
Definition: GraphicsDefs.h:44
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
Zone * farClipZone_
Zone at far clip plane.
Definition: View.h:328
Sprite2D * GetSprite() const
Definition: ParticleEmitter2D.cpp:145
DragAndDropMode
Definition: UIElement.h:104
float GetRowHeight() const
Definition: Text.h:199
bool GetScreenKeyboardSupport() const
Definition: Input.cpp:1486
Definition: NavBuildData.h:87
void SetWorldPosition(const Vector3 &position)
Definition: Constraint.cpp:261
float GetElapsedTime()
Definition: Timer.cpp:157
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
~IndexBuffer() override
Destruct.
Definition: IndexBuffer.cpp:54
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
2D mouse constraint component.
Definition: ConstraintMouse2D.h:31
void MarkEndPointDirty()
Mark end point dirty.
Definition: OffMeshConnection.h:86
float agentRadius_
Navigation agent radius.
Definition: NavigationMesh.h:358
unsigned GetNumPrimitives() const
Definition: Graphics.h:432
Variant(bool value)
Construct from a bool.
Definition: Variant.h:362
void PushUserType(const T &userType, const char *typeName)
Push user type to stack.
Definition: LuaFunction.h:86
unsigned LengthUTF8() const
Definition: Str.cpp:780
unsigned shadowMask_
Shadow mask.
Definition: Drawable.h:383
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
void SetMaxSubSteps(int num)
Definition: PhysicsWorld.cpp:327
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
JSONNumberType
JSON number type.
Definition: JSONValue.h:50
~Texture3D() override
Destruct.
Definition: Texture3D.cpp:52
Iterator Begin()
Return iterator to the first element.
Definition: List.h:393
const IntRect & GetRect() const
Definition: Viewport.h:87
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
float length_
Animation length.
Definition: Animation.h:209
virtual void OnPositionSet(const IntVector2 &newPosition)
React to position change.
Definition: UIElement.h:196
int tileSize_
Tile size.
Definition: NavigationMesh.h:350
void Define(const Vector3 &center, 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
Slider * GetSlider() const
Definition: ScrollBar.h:107
@ DD_SOURCE
Drag and drop source flag.
Definition: UIElement.h:109
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 IsMouseGrabbed() const
Definition: Input.h:334
bool desktopSupport_
Cached desktop GPU support flag.
Definition: Technique.h:312
virtual void RemoveTile(const IntVector2 &tile)
Remove tile from navigation mesh.
Definition: NavigationMesh.cpp:568
void SetVertexShaderDefines(const String &defines)
Definition: Technique.cpp:147
String ToString() const
Return an address:port string.
Definition: Connection.cpp:1121
bool GetDrawNavAreas() const
Definition: NavigationMesh.h:313
void SetNavigationMesh(NavigationMesh *navMesh)
Definition: CrowdManager.cpp:256
LoopMode
Loop Mode.
Definition: SpriterInstance2D.h:38
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
int width_
Width.
Definition: Image.h:227
float detailSampleMaxError_
Detail sampling maximum error.
Definition: NavigationMesh.h:374
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 AddTag(const String &tag)
Add a tag.
Definition: UIElement.cpp:1465
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
File(Context *context)
Construct.
Definition: File.cpp:68
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
const Frustum & GetFrustum() const
Definition: Camera.cpp:284
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
void SetTemperature(float temperature)
Definition: Light.cpp:290
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
Work queue subsystem for multithreading.
Definition: WorkQueue.h:69
bool readdBody_
Readd body to world flag.
Definition: RigidBody.h:359
int GetHeight() const
Definition: TileMapLayer2D.cpp:279
const float * Data() const
Return float data.
Definition: Vector2.h:370
Vector< Variant > VariantVector
Vector of variants.
Definition: Variant.h:80
int GetBaseIndent() const
Definition: ListView.h:175
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
bool visible_
Visible flag.
Definition: Terrain.h:340
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
Sphere() noexcept
Construct undefined.
Definition: Sphere.h:40
TrailType trailType_
Trail type.
Definition: RibbonTrail.h:218
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
float GetTimeStep() const
Definition: Timer.h:101
IntRect resizeBorder_
Resize area width at edges.
Definition: Window.h:169
float RollAngle() const
Definition: Quaternion.cpp:219
void SetDisabledOffset(const IntVector2 &offset)
Definition: BorderImage.cpp:123
PrimitiveType type_
Primitive type.
Definition: Model.h:96
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
bool used_
Used flag.
Definition: FontFace.h:60
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
const FontGlyph * glyph_
Glyph.
Definition: Text.h:72
HashSet< int > scancodeDown_
Key down state by scancode.
Definition: Input.h:418
const ResourceRefList & GetMaterialsAttr() const
Return materials attribute.
Definition: StaticModel.cpp:391
Matrix2() noexcept
Construct an identity matrix.
Definition: Matrix2.h:35
String compilerOutput_
Shader compile error string.
Definition: ShaderVariation.h:176
const BiasParameters & GetDepthBias() const
Definition: Material.h:256
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
Variant(float value)
Construct from a float.
Definition: Variant.h:368
void SetSwapXY(bool swapXY)
Definition: StaticSprite2D.cpp:152
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
bool kinematic_
Kinematic flag.
Definition: RigidBody.h:353
SDL_GameController * controller_
SDL game controller.
Definition: Input.h:124
AutoRemoveMode autoRemove_
Automatic removal mode.
Definition: ParticleEmitter.h:164
bool IsEditable() const
Definition: UIElement.h:601
PODVector< Zone * > zones_
Visible zones.
Definition: View.h:392
const String & GetApiName() const
Definition: Graphics.h:353
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
ConstIterator()=default
Construct.
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
~MessageBox() override
Destruct.
Definition: MessageBox.cpp:102
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 Render()
Render. Called by Engine.
Definition: Renderer.cpp:692
void HandleTouchBegin(StringHash eventType, VariantMap &eventData)
Handle touch begin event.
Definition: UI.cpp:1883
void SetBlendMode(BlendMode mode)
Definition: Sprite.cpp:213
String apiName_
Graphics API name.
Definition: Graphics.h:916
int GetRowHeight() const
Definition: Text3D.cpp:468
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
Variable that supports a fixed set of types.
Definition: Variant.h:325
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
bool GetBorderless() const
Definition: Graphics.h:384
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
Vector3 position_
Position.
Definition: RibbonTrail.h:49
RigidBody * GetOtherBody() const
Definition: Constraint.h:130
void GotoPrev()
Go to the previous node.
Definition: ListBase.h:82
float GetMinPriority() const
Definition: NetworkPriority.h:66
bool IsNaN(T value)
Definition: MathDefs.h:121
void SetPosition(const Vector3 &position)
Definition: Constraint.cpp:177
void SetMaxLength(float maxLength)
Definition: ConstraintRope2D.cpp:80
~SceneResolver()
Destruct.
bool pvrtcTextureSupport_
PVRTC formats support flag.
Definition: Graphics.h:804
static void RegisterObject(Context *context)
Register object factory.
Definition: Slider.cpp:62
int GetInt() const
Return int.
Definition: PListFile.cpp:192
void SetFixedWidthResizing(bool enable)
Definition: Window.cpp:262
LinkedListNode * next_
Pointer to next node.
Definition: LinkedList.h:45
void SetShadowMask(unsigned mask)
Definition: Drawable.cpp:203
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 GetCollisionMask() const
Definition: RigidBody.h:276
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
int Refs() const
Return the array's reference count, or 0 if the pointer is null.
Definition: ArrayPtr.h:162
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 Stop()
Suspend sound output.
Definition: Audio.cpp:157
void SetNavigationQuality(NavigationQuality val)
Definition: CrowdAgent.cpp:453
float GetAngularDamping() const
Definition: RigidBody.cpp:658
void SetTimeScale(float scale)
Definition: Scene.cpp:649
void SetRampTexture(Texture *texture)
Definition: Light.cpp:404
bool ReadTile(Deserializer &source, bool silent)
Read tile data to the navigation mesh.
Definition: NavigationMesh.cpp:1267
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
void Resume()
Resume worker threads.
Definition: WorkQueue.cpp:234
Light(Context *context)
Construct.
Definition: Light.cpp:92
~AnimationController() override
Destruct.
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
bool IsEmitting() const
Definition: RibbonTrail.h:196
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
Single-line text editor UI element.
Definition: LineEdit.h:34
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 SetOpacity(float opacity)
Definition: UIElement.cpp:853
void SetTags(const StringVector &tags)
Set tags. Old tags are overwritten.
Definition: Node.cpp:345
List of typed resource references.
Definition: Variant.h:137
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
const IntVector2 & GetPosition() const
Definition: UIElement.h:458
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
SharedPtr< File > file_
Source file.
Definition: Connection.h:94
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
T & operator*() const
Dereference the object.
Definition: Ptr.h:138
void DynamicCast(const SharedPtr< U > &rhs)
Perform a dynamic cast from a shared pointer of another type.
Definition: Ptr.h:195
bool HasAnimation(const String &animationName) const
Check has animation.
Definition: AnimationSet2D.cpp:182
float GetAreaCost(unsigned areaID) const
Get the current cost of an area.
Definition: NavigationMesh.cpp:872
void OnPositionSet(const IntVector2 &newPosition) override
React to position change.
Definition: Sprite.cpp:130
void SetMaskBits(int maskBits)
Definition: CollisionShape2D.cpp:107
Tile2D()
Construct.
Definition: TileMapDefs2D.cpp:163
Spriter instance.
Definition: SpriterInstance2D.h:46
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
bool IsServerRunning() const
Definition: Network.cpp:683
HashSet< String > allowedPaths_
Allowed directories.
Definition: FileSystem.h:124
void SetAngularVelocity(const Vector3 &velocity)
Definition: RigidBody.cpp:336
Screen mode parameters.
Definition: Graphics.h:81
bool IsLooped(const String &name) const
Return animation looping.
Definition: AnimationController.cpp:513
ShapeType
Collision shape type.
Definition: CollisionShape.h:52
String vsExtraDefines_
Vertex shader extra defines.
Definition: Batch.h:267
void SetCursorPosition(unsigned position)
Definition: LineEdit.cpp:491
Obstacle(Context *context)
Construct.
Definition: Obstacle.cpp:40
rcContourSet * contourSet_
Recast contour set.
Definition: NavBuildData.h:95
void SetViewOverrideFlags(ViewOverrideFlags flags)
Definition: Camera.cpp:183
float GetAngularRestThreshold() const
Definition: RigidBody.cpp:653
float maxZ_
Maximum Z value of the visible scene.
Definition: View.h:358
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
double ReadDouble()
Read a double.
Definition: Deserializer.cpp:131
void UpdateAnchoring()
Update anchored size & position. Only called when anchoring is enabled.
Definition: UIElement.cpp:2040
TextureFilterMode GetFilterMode() const
Definition: Texture.h:104
unsigned CreateFramebuffer()
Create a framebuffer using either extension or core functionality. Used only on OpenGL.
Definition: OGLGraphics.cpp:3255
Vector2 anchor_
Anchor.
Definition: ConstraintWeld2D.h:72
Drawable * drawable_
Drawable.
Definition: OctreeQuery.h:219
float speed_
Speed.
Definition: AnimatedSprite2D.h:138
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
const Vector2 & GetPivot() const
Definition: UIElement.h:542
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
InterpolationMode
Definition: Spline.h:36
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
bool IsCursorMovable() const
Definition: LineEdit.h:119
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
float range_
Slider range.
Definition: Slider.h:115
VariantMap eventData_
Event data.
Definition: ValueAnimation.h:64
Vector3 GetWorldPosition() const
Definition: Constraint.cpp:336
void OnMarkedDirty(Node *node) override
Handle node transform being dirtied.
Definition: DecalSet.cpp:654
void Free(T *object)
Destruct and free an object.
Definition: Allocator.h:116
Sound(Context *context)
Construct.
Definition: Sound.cpp:63
void SetSouthNeighbor(Terrain *south)
Definition: Terrain.cpp:283
CustomVariantValue * GetCustomVariantValuePtr()
Return pointer to custom variant value.
Definition: Variant.h:1293
ScriptFile * file_
Parent script file.
Definition: ScriptFile.h:178
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
Orientation orientation_
Orientation.
Definition: ProgressBar.h:107
b2PulleyJointDef jointDef_
Box2D joint def.
Definition: ConstraintPulley2D.h:85
~TmxFile2D() override
Destruct.
Definition: TmxFile2D.cpp:382
virtual void ApplyAttributes()
Apply attribute changes that can not be applied immediately. Called after scene load or a network upd...
Definition: Serializable.h:76
unsigned GetNumOccluders(bool allViews=false) const
Definition: Renderer.cpp:630
float range_
Range.
Definition: Light.h:429
Two-dimensional vector with integer values.
Definition: Vector2.h:32
bool dynamic_
Dynamic flag.
Definition: VertexBuffer.h:175
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
float Length() const
Definition: Vector3.h:346
ScrollView(Context *context)
Construct.
Definition: ScrollView.cpp:43
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
void SetNumRows(unsigned rows)
Definition: Console.cpp:227
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
float Length() const
Return length.
Definition: Vector2.h:153
PODVector< RayQueryResult > & result_
Result vector reference.
Definition: OctreeQuery.h:249
Texture2D * shadowMap_
Shadow map depth texture.
Definition: Batch.h:299
bool NotNull() const
Check if the pointer is not null.
Definition: ArrayPtr.h:156
void SetRotationEnd(float rotationEnd)
Set rotation end.
Definition: ParticleEffect2D.cpp:464
Vector3 Size() const
Definition: BoundingBox.h:269
void SetIndexBuffer(IndexBuffer *buffer)
Definition: Geometry.cpp:79
void MarkForUpdate()
Mark for update and octree reinsertion. Update is automatically queued when the drawable's scene node...
Definition: Drawable.cpp:247
Zone * GetDefaultZone() const
Definition: Renderer.h:427
Octant * octant_
Octree octant.
Definition: Drawable.h:375
const String & GetProperty(const String &name) const
Return property value.
Definition: TileMapDefs2D.cpp:215
unsigned lockCount_
Lock number of vertices.
Definition: IndexBuffer.h:114
void SetCullCamera(Camera *camera)
Definition: Viewport.cpp:79
SharedPtr< VertexBuffer > vertexBuffer_
Vertex buffer.
Definition: Text3D.h:241
XPath query result set.
Definition: XMLElement.h:328
const Color & GetModalShadeColor() const
Definition: Window.h:136
virtual unsigned GetSize() const
Get size.
Definition: Variant.h:200
XMLElement()
Construct null element.
Definition: XMLElement.cpp:38
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
float lodBias_
LOD bias.
Definition: Camera.h:302
unsigned GetNumTracks() const
Definition: Animation.h:182
XMLFile * GetDefaultStyle() const
Definition: DebugHud.cpp:270
IntVector2 viewSize_
Total view size.
Definition: ScrollView.h:186
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
bool IsMovable() const
Definition: Window.h:112
~StaticModel() override
Destruct.
Vector2 Scale() const
Return the scaling part.
Definition: Matrix2.h:154
Vector< SharedPtr< Pass > > passes_
Passes.
Definition: Technique.h:314
static const IntVector3 UP_RIGHT_FORWARD
(1, 0, 2) coordinate system.
Definition: RaycastVehicle.h:185
float GetHalfViewSize() const
Definition: Camera.cpp:479
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
bool GetShowPopup() const
Definition: Menu.h:84
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
float GetShadowFadeDistance() const
Definition: Light.h:307
static const Vector3 FORWARD
(0,0,1) vector.
Definition: Vector3.h:493
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
const Plane & GetReflectionPlane() const
Definition: Camera.h:218
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
Vector3 Scale() const
Return the scaling part.
Definition: Matrix3.h:193
float distance_
Hit distance from ray origin.
Definition: PhysicsWorld2D.h:51
void SetTexture(Texture *texture)
Definition: BorderImage.cpp:78
Vector3 GetRandomPointInCircle(const Vector3 &center, 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
String name_
Name.
Definition: Resource.h:109
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
float GetLinearDamping() const
Definition: RigidBody2D.h:154
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 &center)
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
Sprite.
Definition: Sprite2D.h:34
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
Frustum frustum_
Frustum for current frame.
Definition: Renderer2D.h:128
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
@ LM_DEFAULT
Default, use animation's value.
Definition: AnimatedSprite2D.h:42
Timer statsTimer_
Statistics timer.
Definition: Connection.h:342
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
~TileMapLayer2D() override
Destruct.
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
void SetPosition(const Vector2 &position)
Definition: Sprite.cpp:136
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
bool HasTile(const IntVector2 &tile) const
Return whether the navigation mesh has tile.
Definition: NavigationMesh.cpp:537
Vector3(const Vector2 &vector) noexcept
Construct from a two-dimensional vector (for Urho2D).
Definition: Vector3.h:207
float pitch_
Mouse pitch.
Definition: Controls.h:68
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
Iterator End()
Return iterator to the end.
Definition: List.h:399
int GetMultiSample() const
Definition: Graphics.h:372
const Color & GetEffectColor() const
Definition: Text3D.cpp:448
float tileHeight_
Tile height.
Definition: TileMapDefs2D.h:61
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
Mutex & GetMutex()
Return audio thread mutex.
Definition: Audio.h:120
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
unsigned vertexCount_
Vertex count.
Definition: Model.h:70
bool LoadXML(const XMLElement &source) override
Load from XML data. Return true if successful.
Definition: Node.cpp:156
2D edge collision component.
Definition: CollisionEdge2D.h:31
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
float maxZ_
Current maximum view space depth.
Definition: Drawable.h:401
~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
UIElement * GetPopup() const
Definition: Menu.h:76
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
bool GetFlipX() const
Definition: StaticSprite2D.h:108
Vector< AttributeInfo > attributeInfos_
Attributes, including script object variables.
Definition: ScriptInstance.h:204
rcCompactHeightfield * compactHeightField_
Recast compact heightfield.
Definition: NavBuildData.h:82
Resource(Context *context)
Construct.
Definition: Resource.cpp:34
bool IsShadowed() const
Definition: VertexBuffer.h:69
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
2D source batch.
Definition: Drawable2D.h:48
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
Custom variant value implementation.
Definition: Variant.h:226
Quaternion Rotation() const
Return the rotation part.
Definition: Matrix3x4.h:613
bool Empty() const
Definition: XMLElement.cpp:1056
Camera * GetCamera() const
Return viewport camera.
Definition: View.h:142
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
int GetMinHeight() const
Definition: UIElement.h:482
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
Camera * camera_
Camera being used.
Definition: Drawable.h:77
bool SetInfo(Orientation2D orientation, int width, int height, float tileWidth, float tileHeight)
Set Tilemap information.
Definition: TmxFile2D.cpp:530
bool isDesktop_
Require desktop GPU flag.
Definition: Technique.h:310
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
Vector3 position_
Position.
Definition: BillboardSet.h:42
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
void DrawDebugGeometry(DebugRenderer *debug, bool depthTest) override
Visualize the component as debug geometry.
Definition: DynamicNavigationMesh.cpp:592
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
unsigned color_
Color.
Definition: DebugRenderer.h:62
List(const List< T > &list)
Construct from another list.
Definition: List.h:176
const Vector2 & GetScale() const
Definition: Sprite.h:99
@ JSON_BOOL
JSON boolean type.
Definition: JSONValue.h:38
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
CPU-side scratch buffer for vertex data updates.
Definition: Graphics.h:64
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
float GetMaxDoubleClickDistance() const
Definition: UI.h:203
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
void HandleKeyDown(StringHash eventType, VariantMap &eventData)
Handle keypress for checking accelerator.
Definition: Menu.cpp:422
Hash set/map iterator base class.
Definition: HashBase.h:58
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
Scene * GetScene() const
Definition: Connection.cpp:1063
volatile bool shouldRun_
Running flag.
Definition: Thread.h:75
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
static int Loader(lua_State *L)
Loader.
Definition: LuaScript.cpp:355
void Reset()
Hide tooltip if visible and reset parentage.
Definition: ToolTip.cpp:116
Texture * GetBackupTexture() const
Definition: Texture.h:143
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 &currentScissor)
Return UI rendering batches for debug draw.
Definition: UIElement.cpp:349
void SetHeight(float newHeight)
Definition: Obstacle.cpp:73
float GetCorrectionFactor() const
Definition: ConstraintMotor2D.h:77
bool pauseMinimized_
Pause when minimized flag.
Definition: Engine.h:159
HashNodeBase * down_
Next node in the bucket.
Definition: HashBase.h:50
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
WorkQueue(Context *context)
Construct.
Definition: WorkQueue.cpp:63
asIScriptObject * scriptObject_
Script object.
Definition: ScriptInstance.h:196
Shader resource consisting of several shader variations.
Definition: Shader.h:34
Quaternion(float angle, const Vector3 &axis) noexcept
Construct from an angle (in degrees) and axis.
Definition: Quaternion.h:96
void SetMode(unsigned mode)
Definition: DebugHud.cpp:225
void Resize(unsigned newSize)
Resize the list by removing or adding items at the end.
Definition: List.h:362
PListValueType
PList value types.
Definition: PListFile.h:36
float speed_
Animation speed.
Definition: AnimationController.h:61
float z_
Z coordinate.
Definition: Vector4.h:229
unsigned GetNumObstacleAvoidanceTypes() const
Definition: CrowdManager.h:156
wchar_t & At(unsigned index)
Return char at index.
Definition: Str.h:604
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
const Color & GetStartColor() const
Definition: RibbonTrail.h:156
void ClearBuffer(unsigned threadIndex)
Clear a thread work buffer.
Definition: OcclusionBuffer.cpp:1028
One decal in a decal set.
Definition: DecalSet.h:76
bool GetVerticalScrollBarVisible() const
Definition: ScrollView.cpp:363
float GetMinRotation() const
Definition: ParticleEffect.h:359
const Vector2 & GetLayoutFlexScale() const
Definition: UIElement.h:655
Color color_
Color.
Definition: StaticSprite2D.h:182
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
~WorkQueue() override
Destruct.
Definition: WorkQueue.cpp:76
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
bool cubemap_
Cubemap status if DDS.
Definition: Image.h:237
LuaFile(Context *context)
Construct.
Definition: LuaFile.cpp:44
int Refs() const
Return the object's reference count, or 0 if null pointer or if object has expired.
Definition: Ptr.h:486
void SetEndColor(const Color &color)
Definition: RibbonTrail.cpp:824
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
GeometryType geometryType_
Geometry type.
Definition: Batch.h:108
SLNet::AddressOrGUID * address_
Address of this connection.
Definition: Connection.h:360
Decal vertex.
Definition: DecalSet.h:37
Octant * GetOctant() const
Return octree octant.
Definition: Drawable.h:276
void OnMarkedDirty(Node *node) override
Handle node transform being dirtied.
Definition: Camera.cpp:642
unsigned batchCount_
Batch count.
Definition: Renderer2D.h:59
Sound * GetSound() const
Definition: SoundSource.h:87
T & At(unsigned index)
Return element at index.
Definition: Vector.h:826
Matrix3x4 Inverse() const
Return inverse.
Definition: Matrix3x4.cpp:55
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
bool IsSixteenBit() const
Definition: Sound.h:106
bool WriteBool(bool value)
Write a bool.
Definition: Serializer.cpp:76
void ApplyActivePoseToScene()
Definition: IKSolver.cpp:465
void Transform(const Matrix3 &transform)
Transform with a 3x3 matrix.
Definition: Polyhedron.cpp:237
unsigned GetHistoryPosition() const
Definition: Console.h:133
int GetRefreshRate() const
Return refresh rate when using vsync in fullscreen.
Definition: Graphics.h:398
void SetSmoothing(bool enable)
Definition: Terrain.cpp:233
T Abs(T value)
Definition: MathDefs.h:97
float timeScale_
Scene update time scale.
Definition: Scene.h:347
bool readOnly_
Read-only flag.
Definition: MemoryBuffer.h:61
Vector(ConstIterator start, ConstIterator end)
Copy-construct from another vector (iterator version).
Definition: Vector.h:83
bool loop_
Loop.
Definition: CollisionChain2D.h:81
void SetNavigationDataAttr(const PODVector< unsigned char > &value) override
Set navigation data attribute.
Definition: DynamicNavigationMesh.cpp:675
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
float lodDistance_
LOD scaled distance.
Definition: Drawable.h:391
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
int GetWidth() const
Return width.
Definition: TmxFile2D.h:54
TextureUnit
Definition: GraphicsDefs.h:321
Bone()
Construct with defaults.
Definition: Skeleton.h:50
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
TextureUsage GetUsage() const
Definition: RenderSurface.cpp:92
bool operator<(const Pair< T, U > &rhs) const
Test for less than with another pair.
Definition: Pair.h:51
unsigned type_
type.
Definition: JSONValue.h:306
float GetHeight() const
Definition: Obstacle.h:54
bool negative_
Light negative flag.
Definition: Batch.h:297
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
float radius_
Radius.
Definition: OffMeshConnection.h:92
bool GetUpdateInvisible() const
Definition: RibbonTrail.h:200
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
const Vector3 & GetSpacing() const
Definition: Terrain.h:132
void drawLine(const btVector3 &from, const btVector3 &to, const btVector3 &color) override
Draw a physics debug line.
Definition: PhysicsWorld.cpp:223
bool fastMode_
Fast mode flag.
Definition: AreaAllocator.h:70
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
unsigned vertexCount_
Vertex count.
Definition: Renderer2D.h:51
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 mode_
Current shown-element mode.
Definition: DebugHud.h:147
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
~ConstraintPrismatic2D() override
Destruct.
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
void SetSRGB(bool enable)
Definition: OGLGraphics.cpp:513
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
NavigationMesh(Context *context)
Construct.
Definition: NavigationMesh.cpp:100
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
void SetFillMode(FillMode mode)
Definition: Camera.cpp:189
bool IsVisible() const
Definition: UIElement.h:609
Scene * GetDefaultScene() const
Return immediate mode scene.
Definition: Script.cpp:348
static const IntVector3 BACK
(0,0,-1) vector.
Definition: Vector3.h:178
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
unsigned size_
Buffer byte size.
Definition: ConstantBuffer.h:68
void SetColor(const Color &color)
Definition: UIElement.cpp:822
void Update(float timeStep)
Process incoming messages from connections. Called by HandleBeginFrame.
Definition: Network.cpp:889
void SetPartitionType(NavmeshPartitionType partitionType)
Definition: NavigationMesh.cpp:1582
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
String name_
Name.
Definition: Material.h:50
bool useClipping_
Use custom clip plane flag.
Definition: Camera.h:324
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
@ ASYNC_DONE
No async operation in progress.
Definition: Resource.h:42
Lua script subsystem.
Definition: LuaScript.h:41
virtual bool Create()
Create the GPU texture. Implemented in subclasses.
Definition: Texture.h:228
Mutex audioMutex_
Audio thread mutex.
Definition: Audio.h:139
~Menu() override
Destruct.
Definition: Menu.cpp:60
String eventName_
Event name.
Definition: RenderPath.h:198
HashMap< int, TouchState > touches_
Active finger touches.
Definition: Input.h:422
bool GetUseRendererStats() const
Definition: DebugHud.h:111
int numTilesX_
Number of tiles in X direction.
Definition: NavigationMesh.h:378
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 &parameters)
Set parameters for a function or method.
Definition: ScriptFile.cpp:835
void SetTexture(unsigned index, Texture *texture)
Set texture.
Definition: OGLGraphics.cpp:1492
UIElement * GetRootModalElement() const
Definition: UI.h:158
bool BeginLoad(Deserializer &source) override
Load resource from stream. May be called from a worker thread. Return true if successful.
Definition: ValueAnimation.cpp:69
Vector< JSONValue > JSONArray
JSON array type.
Definition: JSONValue.h:65
float GetContactProcessingThreshold() const
Definition: RigidBody.cpp:683
float GetSteeringValue(int wheel) const
Get steering value of particular wheel.
Definition: RaycastVehicle.cpp:445
float agentMaxClimb_
Navigation agent max vertical climb.
Definition: NavigationMesh.h:360
PODVector< Light * > lights_
Lights.
Definition: View.h:100
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
float GetEndScale() const
Definition: RibbonTrail.h:168
String meshName_
Identifying name for this navigation mesh.
Definition: NavigationMesh.h:340
void Reset()
Clear all loaded strings.
Definition: Localization.cpp:148
String ToString() const
Return as string.
Definition: Color.cpp:251
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
int layer_
Layer.
Definition: Drawable2D.h:116
QualifierFlags GetQualifiers() const
Definition: Input.cpp:1388
unsigned Size() const
Return number of elements.
Definition: HashBase.h:127
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
float GetOrthoSize() const
Definition: Camera.h:141
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
unsigned selectionLength_
Selection length.
Definition: Text.h:269
Vector3 GetRight() const
Definition: Node.h:429
Connection * connection_
Parent network connection.
Definition: ReplicationState.h:141
Vector3 Raycast(const Vector3 &start, const Vector3 &end, const Vector3 &extents=Vector3::ONE, const dtQueryFilter *filter=nullptr, Vector3 *hitNormal=nullptr)
Perform a walkability raycast on the navigation mesh between start and end and return the point where...
Definition: NavigationMesh.cpp:815
~Log() override
Destruct. Close the log file if open.
Definition: Log.cpp:77
void OnAttributeAnimationRemoved() override
Handle attribute animation removed.
Definition: Node.cpp:1907
Font * lastFont_
Last used text font.
Definition: LineEdit.h:154
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
LineEdit * lineEdit_
Line edit.
Definition: Console.h:174
VariantVector nodeIDsAttr_
IDs of instance nodes for serialization.
Definition: StaticModelGroup.h:92
const IntRect & GetImageRect() const
Definition: BorderImage.h:90
void SetID(unsigned id)
Definition: Node.cpp:1439
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
void SetResizeBorder(const IntRect &rect)
Definition: Window.cpp:272
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
WeakPtr< Renderer > renderer_
Renderer subsystem.
Definition: View.h:314
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
~Renderer() override
Destruct.
void SetVertex(unsigned index, const Vector2 &vertex)
Set vertex.
Definition: CollisionChain2D.cpp:73
Vector< FileSelectorEntry > fileEntries_
File entries.
Definition: FileSelector.h:203
String GetLastMessage() const
Definition: Log.h:107
Debug rendering line.
Definition: DebugRenderer.h:44
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
float GetDrawDistance() const
Definition: Drawable.h:200
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
Unique pointer template class.
Definition: Ptr.h:567
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
Frustum GetViewSpaceFrustum() const
Definition: Camera.cpp:340
bool operator<(const SharedPtr< U > &rhs) const
Test for less than with another shared pointer.
Definition: Ptr.h:152
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
BackgroundLoader(ResourceCache *owner)
Construct.
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
bool Null() const
Check if the pointer is null.
Definition: ArrayPtr.h:153
StencilOp stencilPass_
Stencil operation on pass.
Definition: Graphics.h:882
ResourceGroup()
Construct with defaults.
Definition: ResourceCache.h:47
SourceBatch & operator=(const SourceBatch &rhs)
Assignment operator.
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
CubeMapFace
Cube map faces.
Definition: GraphicsDefs.h:270
bool dataPending_
Data pending flag.
Definition: GPUObject.h:80
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
SharedPtr< Model > model_
Model.
Definition: StaticModel.h:130
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
Vector< String > GetPassNames() const
Definition: Technique.cpp:469
Vector3 position_
Position.
Definition: ParticleEmitter2D.h:40
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
Text * titleText_
Title text element.
Definition: MessageBox.h:74
float timer_
Time elapsed from creation.
Definition: ParticleEmitter.h:40
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
void Reserve(unsigned newCapacity)
Set new capacity.
Definition: Str.cpp:455
static bool IsSupported()
Return if high-resolution timer is supported.
Definition: Timer.h:62
Quaternion worldRotation_
New world rotation.
Definition: PhysicsWorld2D.h:66
void SetScrollStep(float step)
Definition: ScrollView.cpp:347
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
bool visible_
Visible flag.
Definition: UIElement.h:820
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
float time_
Time position.
Definition: AnimationState.h:191
String lastShaderName_
Last used shader name in shader variation query.
Definition: Graphics.h:910
@ IM_NONE
No interpolation.
Definition: ValueAnimation.h:40
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
TextureCoordinate
Texture coordinates.
Definition: GraphicsDefs.h:252
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
Renderer2D(Context *context)
Construct.
Definition: Renderer2D.cpp:62
FocusMode focusMode_
Focus mode.
Definition: UIElement.h:826
HashMap()
Construct empty.
Definition: HashMap.h:218
Hardware constant buffer.
Definition: ConstantBuffer.h:34
static const Color WHITE
Opaque white color.
Definition: Color.h:267
@ AM_NOEDIT
Attribute should not be shown in the editor.
Definition: Attribute.h:47
SharedPtr< Animation > animation_
Animation.
Definition: AnimationState.h:181
~LuaScriptEventInvoker() override
Destruct.
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
void SetPatchSize(int size)
Definition: Terrain.cpp:183
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
Vector2 pivot_
Pivot Position.
Definition: UIElement.h:905
bool autoReloadResources_
Automatic resource reloading flag.
Definition: ResourceCache.h:264
T * operator->() const
Point to the object.
Definition: Ptr.h:131
void SetNonFocusedMouseWheel(bool nonFocusedMouseWheel)
Definition: UI.cpp:676
Orientation
UI element orientation.
Definition: UIElement.h:65
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 IsConnected() const
Definition: Connection.cpp:1068
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 &currentScissor) 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 SetCustom(const T &value)
Set custom value.
Definition: Variant.h:1085
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
void SetMaterial(Material *material)
Definition: Terrain.cpp:252
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
Bone * GetBone(unsigned index)
Definition: Skeleton.cpp:186
Definition: Renderer2D.h:41
AllocatorBlock * allocator_
Node allocator.
Definition: ListBase.h:120
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
int GetMultiSample() const
Definition: Texture.h:127
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
unsigned GetLayers() const
Definition: Texture2DArray.h:73
bool IsFixedScreenSize() const
Definition: BillboardSet.h:142
Definition: Variant.h:169
void SetWindowTitle(const String &windowTitle)
Definition: Graphics.cpp:73
const T & Front() const
Return const first element.
Definition: Vector.h:510
@ LT_INVALID
Invalid.
Definition: TileMapDefs2D.h:87
VariantVector GetObstacleAvoidanceTypesAttr() const
Return all the obstacle avoidance types configured in the crowd as attribute.
Definition: CrowdManager.cpp:511
bool serializeParticles_
Serialize particles flag.
Definition: ParticleEmitter.h:160
unsigned basePassFlags_
Base pass flags, bit per batch.
Definition: Drawable.h:405
int GetTimeStepSmoothing() const
Definition: Engine.h:101
~View3D() override
Destruct.
Definition: View3D.cpp:59
Definition: MemoryBuffer.h:32
Vector< SharedPtr< TileMapObject2D > > GetTileCollisionShapes(unsigned gid) const
Return tile collision shapes for a given gid.
Definition: TmxFile2D.cpp:564
File.
Definition: SpriterData2D.h:86
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
void SetTrigger(bool enable)
Definition: RigidBody.cpp:469
~Font() override
Destruct.
Definition: Font.cpp:64
Triangle mesh geometry data.
Definition: CollisionShape.h:92
float GetRawHeight(int x, int z) const
Return an uninterpolated terrain height value, clamping to edges.
Definition: Terrain.cpp:1297
bool GetClipChildren() const
Definition: UIElement.h:574
T * First() const
Return first element, or null if empty.
Definition: LinkedList.h:169
void SetEmitting(bool emitting)
Definition: RibbonTrail.cpp:337
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
void Wait()
Wait on the condition.
Definition: Condition.cpp:88
void SetDirection(const Vector3 &direction)
Definition: Node.cpp:458
unsigned GetNumOccluderTriangles() override
Return number of occlusion geometry triangles.
Definition: StaticModelGroup.cpp:202
DumpMode
Output mode for DumpAPI method.
Definition: Script.h:48
Node()=default
Construct undefined.
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
Vector3 Center() const
Definition: BoundingBox.h:265
static const Vector3 LEFT
(-1,0,0) vector.
Definition: Vector3.h:485
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 IsOccludee() const
Definition: Terrain.h:240
void ResetState()
Clear input state.
Definition: Input.cpp:1635
ScriptFile(Context *context)
Construct.
Definition: ScriptFile.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
~UI() override
Destruct.
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
float drawDistance_
Draw distance.
Definition: Terrain.h:356
AutoRemoveMode autoRemove_
Automatic removal mode.
Definition: SoundSource.h:162
Vector< ModelMorph > morphs_
Vertex morphs.
Definition: Model.h:230
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
bool simulating_
Simulating flag.
Definition: PhysicsWorld.h:372
Texture2D * GetTexture() const
Definition: SpriteSheet2D.h:63
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
void SetUseMutableGlyphs(bool enable)
Definition: UI.cpp:691
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
int bottom_
Bottom coordinate.
Definition: Rect.h:478
Object * sender_
Event sender.
Definition: Object.h:297
void SetBaseIndent(int baseIndent)
Definition: ListView.cpp:748
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
bool GetDrawObstacles() const
Definition: DynamicNavigationMesh.h:105
float GetMaxRotation() const
Definition: ParticleEffect.h:363
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 Resize(unsigned newSize)
Resize the vector.
Definition: Vector.h:1030
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
Frustum GetFrustum() const
Definition: Light.cpp:455
StringHash nameHash_
Name hash.
Definition: Animation.h:97
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
void SetHeight(int height)
Definition: UIElement.cpp:598
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
int GetWidth() const
Definition: UIElement.h:466
SharedPtr< Geometry > geometry_
Geometry.
Definition: RibbonTrail.h:233
bool geometryDirty_
Geometry dirty flag.
Definition: Text3D.h:259
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
Variant data_
Trigger data.
Definition: Animation.h:116
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
String url_
URL.
Definition: HttpRequest.h:91
~XMLFile() override
Destruct.
AttributeMode
Definition: Attribute.h:34
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
void SetUpdateEnabled(bool enable)
Definition: Scene.cpp:644
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
Description of a navigation mesh geometry component, with transform and bounds information.
Definition: NavigationMesh.h:59
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
unsigned level_
Subdivision level.
Definition: Octree.h:150
bool stereo_
Stereo flag.
Definition: Audio.h:151
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
Timer clickTimer_
Timer used to trigger double click.
Definition: UI.h:458
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
void * userData_
Userdata.
Definition: Object.h:301
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 SetRange(float range)
Definition: Slider.cpp:172
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
~Pass() override
Destruct.
void SetScriptFile(LuaFile *scriptFile)
Set script file.
Definition: LuaScriptInstance.cpp:394
float occluderSizeThreshold_
Occluder screen size threshold.
Definition: Renderer.h:635
Orientation2D
Orientation.
Definition: TileMapDefs2D.h:36
sqlite3 * connectionImpl_
The underlying implementation connection object.
Definition: SQLiteConnection.h:62
void Merge(const IntRect &rect)
Definition: Rect.cpp:55
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
Rendertarget definition.
Definition: RenderPath.h:68
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
void CollectGeometries(Vector< NavigationGeometryInfo > &geometryList)
Collect geometry from under Navigable components.
Definition: NavigationMesh.cpp:953
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
void SetEnableAnchor(bool enable)
Definition: UIElement.cpp:742
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
JSONValueType
JSON value type.
Definition: JSONValue.h:33
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
bool GetPerVertex() const
Definition: Light.h:247
String ToString() const override
Convert custom value to string.
Definition: Variant.h:268
float GetRowWidth(unsigned index) const
Definition: Text.cpp:414
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
void SetFocusOnShow(bool enable)
Definition: Console.cpp:248
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
const T & Back() const
Return const last element.
Definition: Vector.h:1144
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
bool reserved_
Reserved flag.
Definition: Graphics.h:77
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
CompressedFormat
Supported compressed image formats.
Definition: Image.h:38
SharedPtr< Scene > scene_
Scene.
Definition: View3D.h:100
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
unsigned GetUseTimer()
Definition: Resource.cpp:120
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 stereo_
Stereo flag.
Definition: Sound.h:138
float GetSpeed() const
Definition: AnimatedSprite2D.h:101
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
unsigned GetOcclusionLodLevel() const
Definition: Terrain.h:148
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
HttpRequestState state_
Connection state.
Definition: HttpRequest.h:101
bool internal_
Internally created flag.
Definition: UIElement.h:824
void SetModel(Model *model)
Definition: CollisionShape.cpp:793
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
ViewBatchInfo2D()
Construct.
Definition: Renderer2D.cpp:53
const Vector2 & GetVertex(unsigned index) const
Return vertex.
Definition: CollisionPolygon2D.h:56
EmitterType2D GetEmitterType() const
Return emitter type.
Definition: ParticleEffect2D.h:206
bool pressed_
Current pressed state.
Definition: Button.h:115
int min_
Minimum value.
Definition: OcclusionBuffer.h:48
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
Zone * zone_
Current zone.
Definition: Drawable.h:377
~PListFile() override
Destruct.
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
bool audioPaused_
Audio paused flag.
Definition: Engine.h:173
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
int GetPriority() const
Definition: UIElement.h:554
bool GetAutoResolve() const
Definition: Texture.h:131
~LuaScript() override
Destruct.
Definition: LuaScript.cpp:145
String pipeName_
Pipe name.
Definition: NamedPipe.h:74
DeferredLightPSVariation
Deferred light volume pixels shader variations.
Definition: Renderer.h:121
bool cursorMovable_
Cursor movable flag.
Definition: LineEdit.h:170
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
void Clear()
Clear the map.
Definition: HashMap.h:459
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
Vector3 MoveAlongSurface(const Vector3 &start, const Vector3 &end, const Vector3 &extents=Vector3::ONE, int maxVisited=3, const dtQueryFilter *filter=nullptr)
Try to move along the surface from one point to another.
Definition: NavigationMesh.cpp:626
GraphicsImpl * impl_
Implementation.
Definition: Graphics.h:763
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
const Vector3 & GetPosition() const
Definition: Node.h:405
~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
float farClip_
Far clip distance.
Definition: Camera.h:292
WindowDragMode
Window movement and resizing modes.
Definition: Window.h:33
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
bool drawDebug_
Debug draw flag.
Definition: Viewport.h:125
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
String clipBoard_
Clipboard text.
Definition: UI.h:416
virtual void OnCrowdUpdate(dtCrowdAgent *ag, float dt)
Handle crowd agent being updated. It is called by CrowdManager::Update() via callback.
Definition: CrowdAgent.cpp:517
T InverseLerp(T lhs, T rhs, T x)
Definition: MathDefs.h:82
bool useTextureRect_
Use texture rectangle flag.
Definition: StaticSprite2D.h:188
bool IsFixedHeight() const
Definition: UIElement.h:506
SDL_GLContext context_
SDL OpenGL context.
Definition: OGLGraphicsImpl.h:112
Vector2 GetMassCenter() const
Definition: RigidBody2D.cpp:525
float radius_
Radius of this obstacle.
Definition: Obstacle.h:89
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 depthWrite_
Depth write enable flag.
Definition: Graphics.h:870
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
CursorShape
Cursor shapes recognized by the UI subsystem.
Definition: Cursor.h:37
bool GetSplitImpulse() const
Definition: PhysicsWorld.cpp:713
UIElement * GetFrontElement() const
Definition: UI.cpp:862
int ReadInt()
Read a 32-bit integer.
Definition: Deserializer.cpp:70
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
PODVector() noexcept=default
Construct empty.
Definition: NavArea.h:31
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
T & Back()
Return last element.
Definition: Vector.h:1137
UniquePtr< btBvhTriangleMeshShape > shape_
Bullet triangle mesh collision shape.
Definition: CollisionShape.h:86
unsigned dataSize_
Morphed vertices data size as bytes.
Definition: Model.h:48
int Refs() const
Definition: RefCounted.cpp:68
T Cos(T angle)
Definition: MathDefs.h:154
void SetFogColor(const Color &color)
Definition: Zone.cpp:112
void SetTextEffect(TextEffect textEffect)
Definition: Text.cpp:384
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
Vector4() noexcept
Construct a zero vector.
Definition: Vector4.h:35
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
virtual const TypeInfo * GetTypeInfo() const =0
Return type info.
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
bool IsVisible() const
Definition: TileMapLayer2D.h:80
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
WeakPtr() noexcept
Construct a null weak pointer.
Definition: Ptr.h:267
IntVector2 hotSpot_
Hotspot coordinates.
Definition: Cursor.h:84
void SetVertex1(const Vector2 &vertex)
Definition: CollisionEdge2D.cpp:61
void SetRange(float range)
Definition: ScrollBar.cpp:166
bool IsNaN() const
Return whether any element is NaN.
Definition: Matrix2.h:206
bool GetHeightFog() const
Definition: Zone.h:126
SharedPtr< AnimationSet2D > animationSet_
Animation set.
Definition: AnimatedSprite2D.h:142
void SetOtherRotation(const Quaternion &rotation)
Definition: Constraint.cpp:229
SharedPtr< Model > model_
Model.
Definition: CollisionShape.h:309
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
bool Null() const
Check if the pointer is null.
Definition: Ptr.h:202
List()
Construct empty.
Definition: List.h:169
WeakPtr< Graphics > graphics_
Graphics subsystem.
Definition: Input.h:412
View * GetSourceView() const
Return the source view that was already prepared. Used when viewports specify the same culling camera...
Definition: View.cpp:684
float GetShadowNearFarRatio() const
Definition: Light.h:331
void OnResize(const IntVector2 &newSize, const IntVector2 &delta) override
React to resize.
Definition: Slider.cpp:161
virtual void ReleaseNavigationMesh()
Release the navigation mesh and the query.
Definition: NavigationMesh.cpp:1569
void SetPageStep(float step)
Definition: ScrollView.cpp:353
bool GetUseClipping() const
Definition: Camera.h:222
bool IsSupported() const
Definition: Technique.h:251
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
T Sqrt(T x)
Definition: MathDefs.h:186
Spriter::SpriterData * GetSpriterData() const
Return spriter data.
Definition: AnimationSet2D.h:80
void SetRect(const IntRect &rect)
Definition: Viewport.cpp:84
WeakPtr< RigidBody2D > rigidBody_
Rigid body.
Definition: CollisionShape2D.h:127
const Variant & GetShaderParameter(const String &name) const
Definition: RenderPath.cpp:510
VectorBase() noexcept
Construct.
Definition: VectorBase.h:45
void Normalize()
Normalize to unit length.
Definition: Vector3.h:332
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
Triangle mesh geometry data.
Definition: CollisionShape.h:76
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
SharedPtr< Slider > slider_
Slider.
Definition: ScrollBar.h:120
~StaticSprite2D() override
Destruct.
bool WriteVector2(const Vector2 &value)
Write a Vector2.
Definition: Serializer.cpp:111
float effectDepthBias_
Text effect Z bias.
Definition: Text.h:281
bool IsConnectPending() const
Definition: Connection.h:211
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
Mask describing color channels.
Definition: Color.h:37
Object * receiver_
Event receiver.
Definition: Object.h:295
static const Color GRAY
Opaque gray color.
Definition: Color.h:269
void Update(float timeStep) override
Perform UI element update.
Definition: Menu.cpp:75
unsigned resolveDestFBO_
Write frame buffer for multisampled texture resolves.
Definition: OGLGraphicsImpl.h:134
unsigned GetSampleSize() const
Definition: Sound.cpp:331
~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
void SetLodBias(float bias)
Definition: Terrain.cpp:404
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
UniquePtr< dtQueryFilter > queryFilter_
Detour navigation mesh query filter.
Definition: NavigationMesh.h:346
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
unsigned frameNumber_
Frame number.
Definition: Drawable.h:71
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
bool IsEnabled() const
Definition: Node.h:393
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
int GetIndentSpacing() const
Definition: UIElement.h:732
Menu(Context *context)
Construct.
Definition: Menu.cpp:44
~Shader() override
Destruct.
Definition: Shader.cpp:72
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
const String & GetText() const
Definition: LineEdit.h:99
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
~TileMap2D() override
Destruct.
unsigned obstacleAvoidanceType_
Agent's obstacle avoidance type, it is an index to the obstacle avoidance array configured in Detour ...
Definition: CrowdAgent.h: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
bool IsMinimized() const
Definition: Input.cpp:1505
String queryString_
XPath query string.
Definition: XMLElement.h:413
~CrowdAgent() override
Destruct.
Definition: CrowdAgent.cpp:100
static const Vector3 ONE
(1,1,1) vector.
Definition: Vector3.h:497
unsigned GetID() const
Definition: Component.h:85
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
void PopFront()
Erase the first element.
Definition: List.h:323
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
unsigned GetChecksum() const
Definition: Scene.h:208
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 IsQuiet() const
Definition: Log.h:111
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
IntVector2 Min() const
Return left-top corner position.
Definition: Rect.h:454
StringHash eventID_
Event ID.
Definition: EventProfiler.h:59
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 headless_
Headless mode flag.
Definition: Engine.h:171
bool IsEmitting() const
Definition: ParticleEmitter2D.h:130
void ClearSelection()
Clear selection.
Definition: ListView.cpp:696
unsigned name_
Object name (OpenGL).
Definition: GPUObject.h:38
Lock that automatically acquires and releases a mutex.
Definition: Mutex.h:56
float derivedOpacity_
Derived opacity.
Definition: UIElement.h:909
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
NavigationPathPointFlag flag_
Detour flag.
Definition: NavigationMesh.h:86
BoundingBox GetWorldBoundingBox() const
Definition: CollisionShape.cpp:824
Controls sent over the network.
Definition: Controls.h:31
void SetDepthBias(const BiasParameters &parameters)
Definition: Material.cpp:1089
bool hdrRendering_
HDR rendering flag.
Definition: Renderer.h:655
bool IsNull() const
Definition: XMLElement.cpp:563
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
unsigned GetChecksum() const
Definition: PackageFile.h:85
bool IsCubemap() const
Definition: Image.h:140
SmoothingTypeFlags smoothingMask_
Active smoothing operations bitmask.
Definition: SmoothedTransform.h:103
int updateFps_
Update FPS.
Definition: Network.h:176
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
Skeleton skeleton_
Skeleton.
Definition: Model.h:218
~OffMeshConnection() override
Destruct.
bool WriteResourceRef(const ResourceRef &value)
Write a resource reference.
Definition: Serializer.cpp:217
const TileMapInfo2D & GetInfo() const
Return Tilemap information.
Definition: TmxFile2D.h:184
Vector3 GetWorldRight() const
Definition: Node.h:500
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
dtNavMesh * navMesh_
Detour navigation mesh.
Definition: NavigationMesh.h:342
List< int > availableTouchIDs_
List that maps between event touch IDs and normalised touch IDs.
Definition: Input.h:424
float farDistance_
Far distance.
Definition: SoundSource3D.h:94
int GetGroupIndex() const
Definition: CollisionShape2D.h:91
Vector3 max_
Maximum vector.
Definition: BoundingBox.h:329
bool enabled_
Enabled flag.
Definition: RenderPath.h:88
CollisionShape(Context *context)
Construct.
Definition: CollisionShape.cpp:456
float timer_
Decal age timer.
Definition: DecalSet.h:91
~Octree() override
Destruct.
Definition: Octree.cpp:322
Vector< T > operator+(const T &rhs) const
Add an element.
Definition: Vector.h:144
InterpMethod
Interpolation method.
Definition: ValueAnimation.h:37
Vector3 GetRandomPointInCircle(const Vector3 &center, float radius, const Vector3 &extents=Vector3::ONE, const dtQueryFilter *filter=nullptr, dtPolyRef *randomRef=nullptr)
Return a random point on the navigation mesh within a circle. The circle radius is only a guideline a...
Definition: NavigationMesh.cpp:753
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
PODVector< int > hats_
POV hat bits.
Definition: Input.h:136
Delay-executed function or method call.
Definition: ScriptEventListener.h:37
bool operator!() const
Boolean negation.
Definition: FlagSet.h:160
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
void SetDynamic(bool enable)
Definition: CustomGeometry.cpp:517
FlagSet operator~() const
Bitwise negation.
Definition: FlagSet.h:154
Vector3 worldPosition_
New world position.
Definition: PhysicsWorld.h:88
int GetMaxSortedInstances() const
Definition: Renderer.h:370
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
void SetSorted(bool enable)
Definition: BillboardSet.cpp:302
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 SetAlphaToCoverage(bool enable)
Definition: Technique.cpp:124
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
UIElement * GetSelectedItem() const
Definition: ListView.cpp:892
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
VariantType type_
Variant type.
Definition: Variant.h:1405
float GetSoundSourceMasterGain(StringHash typeHash) const
Return sound type specific gain multiplied by master gain.
Definition: Audio.cpp:242
IntRect rectangle_
Rectangle.
Definition: Sprite2D.h:109
void SetSelectionAttr(unsigned index)
Set selection attribute.
Definition: DropDownList.cpp:228
void SetSizeMul(float sizeMul)
Definition: ParticleEffect.cpp:586
bool Contains(char c, bool caseSensitive=true) const
Return whether contains a specific character.
Definition: Str.h:450
bool enabled_
Input enabled flag.
Definition: UIElement.h:812
void Swap(VectorBase &rhs)
Swap with another vector.
Definition: VectorBase.h:53
Color startColorVariance_
Start color variance.
Definition: ParticleEffect2D.h:288
IntVector2 popupOffset_
Popup element offset.
Definition: Menu.h:100
String(wchar_t *str)
Construct from a null-terminated wide character array.
Definition: Str.h:116
float GetRadius() const
Definition: Obstacle.h:62
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
SoundStream()
Construct.
Definition: SoundStream.cpp:30
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
~UniquePtr()
Destruct.
Definition: Ptr.h:662
const char * GetAttributeCString(const char *name) const
Return attribute as C string, or null if missing.
Definition: XMLElement.cpp:703
int GetMaxSubSteps() const
Definition: PhysicsWorld.h:228
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
~FontFace() override
Destruct.
Definition: FontFace.cpp:42
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
const IntRect & GetResizeBorder() const
Definition: Window.h:128
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
void SetLayoutMode(LayoutMode mode)
Definition: UIElement.cpp:1053
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
unsigned GetMemoryUse() const
Definition: Resource.h:98
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
ListView * fileList_
File list.
Definition: FileSelector.h:175
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
bool castShadows_
Shadowcaster flag.
Definition: Terrain.h:342
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
unsigned minFps_
Minimum frames per second.
Definition: Engine.h:153
String type_
Type.
Definition: TileMapDefs2D.h:233
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
Scrollable list UI element.
Definition: ListView.h:45
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
Variant GetKnot(unsigned index) const
Definition: Spline.h:85
void SetPosition(float factor)
Set the controlled Node's position on the SplinePath.
Definition: SplinePath.cpp: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
const Color & GetFogColor() const
Definition: Zone.h:102
ResourceRef GetSpriteAttr() const
Return sprite attribute.
Definition: ParticleEmitter2D.cpp:179
bool IsFixedSize() const
Definition: UIElement.h:498
Terrain(Context *context)
Construct.
Definition: Terrain.cpp:80
bool EndLoad() override
Finish resource loading. Always called from the main thread. Return true if successful.
Definition: Shader.cpp:112
bool GetModalAutoDismiss() const
Definition: Window.h:148
float timeToLive_
Lifetime.
Definition: ParticleEmitter.h:42
IntVector2 rtSize_
Destination rendertarget size.
Definition: View.h:350
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
Button(Context *context)
Construct.
Definition: Button.cpp:38
SoundListener * GetListener() const
Definition: Audio.cpp:221
JSONValue root_
JSON root value.
Definition: JSONFile.h:64
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
~XPathResultSet()
Destruct.
Definition: XMLElement.cpp:1023
bool HasChild(const String &name) const
Return whether has a child element.
Definition: XMLElement.cpp:591
Color Abs() const
Return color with absolute components.
Definition: Color.h:240
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 GetTailColumn() const
Definition: RibbonTrail.h:192
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
~String()
Destruct.
Definition: Str.h:166
~PListValue()
Destruct.
Definition: PListFile.cpp:89
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
void SetMaxVertices(unsigned num)
Definition: DecalSet.cpp:254
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
unsigned checksum_
Content checksum.
Definition: File.h:144
void ResetPtrs()
Reset bucket head pointers.
Definition: HashBase.cpp:43
Quaternion GetQuaternion(const String &name) const
Return a quaternion attribute, or default if missing.
Definition: XMLElement.cpp:837
LoadMode GetAsyncLoadMode() const
Definition: Scene.h:200
BillboardSet(Context *context)
Construct.
Definition: BillboardSet.cpp:77
bool IsEnabledEffective() const
Definition: Component.cpp:270
bool dxtTextureSupport_
DXT format support flag.
Definition: Graphics.h:798
Text3D(Context *context)
Construct.
Definition: Text3D.cpp:51
void SetLightMask(unsigned mask)
Definition: Drawable.cpp:197
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
void Play(Sound *sound)
Play a sound.
Definition: SoundSource.cpp:171
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
VariantValue value_
Variant value.
Definition: Variant.h:1407
TileMapObjectType2D
Tile map object type.
Definition: TileMapDefs2D.h:91
float lodDistance_
LOD distance.
Definition: Material.h:72
static const Vector2 ZERO
Zero vector.
Definition: Vector2.h:381
void SetFontSubpixelThreshold(float threshold)
Definition: UI.cpp:718
Vector3 GetRandomPoint(const dtQueryFilter *filter=nullptr, dtPolyRef *randomRef=nullptr)
Return a random point on the navigation mesh.
Definition: NavigationMesh.cpp:740
ResourceRef(const String &type, const String &name)
Construct with type and resource name.
Definition: Variant.h:108
unsigned char * data_
Compressed image data.
Definition: Image.h:61
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
VerticalAlignment
UI element vertical alignment.
Definition: UIElement.h:46
Variant & operator=(const Variant &rhs)
Assign from another variant.
Definition: Variant.cpp:77
long long time_
Time on current frame.
Definition: Profiler.h:143
Node * GetCameraNode() const
Definition: View3D.cpp:136
unsigned char GetLayer() const
Definition: AnimationState.h:163
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
int GetLevelWidth(unsigned level) const
Definition: Texture.cpp:129
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
void SetTrailType(TrailType type)
Definition: RibbonTrail.cpp:842
Console(Context *context)
Construct.
Definition: Console.cpp:62
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
String ToString() const
Return as string.
Definition: StringHash.cpp:93
void Reset(T *ptr=nullptr)
Reset with another pointer.
Definition: Ptr.h:449
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
bool SetValue(const String &value)
Definition: XMLElement.cpp:265
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
SharedPtr< Cursor > cursor_
Cursor.
Definition: UI.h:398
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
SceneResolver()
Construct.
float GetDrawDistance() const
Definition: Terrain.h:197
float scale_
Size scaling value.
Definition: ParticleEmitter.h:44
Vector3 GetLinearFactor() const
Definition: RigidBody.cpp:623
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 SetEffectColor(const Color &effectColor)
Definition: Text.cpp:404
VariantMap eventData_
Event data.
Definition: Connection.h:62
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
bool looped_
Looped flag.
Definition: Sound.h:134
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
void Swap(SharedPtr< T > &rhs)
Swap with another SharedPtr.
Definition: Ptr.h:164
SharedArrayPtr< unsigned char > rawIndexData_
Raw index data override.
Definition: Geometry.h:150
float GetTolerance() const
Definition: IKSolver.cpp:205
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
SourceBatch2D()
Construct.
Definition: Drawable2D.cpp:40
void Clear()
Clear the UI (excluding the cursor).
Definition: UI.cpp:309
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 useGravity_
Use gravity flag.
Definition: RigidBody.h:357
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
TileMapLayerType2D
Tile map layer type.
Definition: TileMapDefs2D.h:78
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
Texture * GetZoneTexture() const
Definition: Zone.h:138
unsigned GetStencilRef() const
Return stencil reference value.
Definition: Graphics.h:598
void SetOrientation(Orientation orientation)
Definition: ScrollBar.cpp:148
2D box collision component.
Definition: CollisionBox2D.h:31
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
void SetLifetime(float time)
Definition: RibbonTrail.cpp:812
Node * Prev() const
Return previous node.
Definition: HashMap.h:100
bool GetOverride() const
Definition: Zone.h:130
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
Vector4 ToVector4() const
Return as a vector.
Definition: Rect.h:239
void HandleRenderUpdate(StringHash eventType, VariantMap &eventData)
Handle render update event.
Definition: Audio.cpp:309
void SetSize(const Vector2 &size)
Definition: CollisionBox2D.cpp:62
2D chain collision component.
Definition: CollisionChain2D.h:30
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
float weight_
Current morph weight.
Definition: Model.h:61
const String & GetName() const
Definition: TileMapDefs2D.h:184
~ConstraintFriction2D() override
Destruct.
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
bool IsInf() const
Return whether any element is Inf.
Definition: Matrix2.h:218
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
Plane reflectionPlane_
Reflection plane.
Definition: Camera.h:312
Vector< SharedPtr< UIElement > > children_
Child elements.
Definition: UIElement.h:790
bool IsReplicated() const
Definition: Node.cpp:1373
bool HasArrived() const
Definition: CrowdAgent.cpp:503
Push button UI element.
Definition: Button.h:31
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
~SharedPtr() noexcept
Destruct. Release the object reference.
Definition: Ptr.h:80
Iterator Begin()
Return iterator to the beginning.
Definition: Vector.h:1119
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
String name_
Bone or scene node name.
Definition: Animation.h:95
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
static const ChannelMask ARGB
Mask for 0xAARRGGBB layout.
Definition: Color.h:51
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
float cfm_
Constraint force mixing parameter.
Definition: Constraint.h:224
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
unsigned GetFilterIndex() const
Definition: FileSelector.cpp:275
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
Node(Context *context)
Construct.
Definition: Node.cpp:48
void SetMaxHeight(int height)
Definition: UIElement.cpp:642
~LuaFunction() override
Destruct.
Definition: LuaFunction.cpp:57
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
void SetMass(float mass)
Definition: RigidBody.cpp:214
float shadowNearFarRatio_
Shadow camera near/far clip distance ratio.
Definition: Light.h:443
Skeletal animation resource.
Definition: Animation.h:120
RenderTargetSizeMode
Rendertarget size mode.
Definition: RenderPath.h:60
BlendMode blendMode_
Blend mode flag.
Definition: BorderImage.h:147
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
~Viewport() override
Destruct.
Matrix4 projection_
Projection transform.
Definition: DebugRenderer.h:188
String ToString() const
Return as string.
Definition: Matrix4.cpp:136
void HandleAttributeAnimationAdded(StringHash eventType, VariantMap &eventData)
Handle attribute animation added.
Definition: Animatable.cpp:547
float scrollStep_
Scroll step.
Definition: ScrollBar.h:122
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
bool sorted_
Billboards sorted flag.
Definition: BillboardSet.h:186
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
~Cursor() override
Destruct.
Definition: Cursor.cpp:90
3x3 matrix for rotation and scaling.
Definition: Matrix3.h:31
void SetShapesAttr(const VariantVector &value)
Set shapes attribute.
Definition: Cursor.cpp:215
int GetFunctionRef() const
Return function ref.
Definition: LuaFunction.h:99
~SourceBatch()
Destruct.
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
float GetPointSize() const
Return point size.
Definition: FontFace.h:88
SharedPtr< JSONFile > jsonFile_
JSON file for JSON mode.
Definition: Scene.h:64
void ReleaseTileCache()
Free the tile cache.
Definition: DynamicNavigationMesh.cpp:1063
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 SetRepeatRate(float rate)
Definition: Slider.cpp:204
void SetAngularDamping(float damping)
Definition: RigidBody.cpp:365
Property set.
Definition: TileMapDefs2D.h:108
IntVector2 size_
Heightmap size.
Definition: CollisionShape.h:135
Node * node_
Scene node.
Definition: OctreeQuery.h:221
ConstIterator & operator=(const Iterator &rhs)
Assign from a non-const iterator.
Definition: List.h:125
AllocatorBlock * next_
Next allocator block.
Definition: Allocator.h:49
PODVector< Node * > dependencyNodes_
Nodes this node depends on for network updates.
Definition: Node.h:61
EmitterType
Particle emitter shapes.
Definition: ParticleEffect.h:34
VariantVector * GetVariantVectorPtr()
Return a pointer to a modifiable variant vector or null on type mismatch.
Definition: Variant.h:1359
unsigned shadowMask_
Shadow mask.
Definition: Terrain.h:352
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 SetFlipX(bool flipX)
Definition: StaticSprite2D.cpp:142
void HandleScenePostUpdate(StringHash eventType, VariantMap &eventData)
Handle scene post update.
Definition: AnimatedSprite2D.cpp:245
const Vector3 & GetCenterOfMass() const
Definition: RigidBody.h:256
float GetMaxLength() const
Definition: ConstraintRope2D.h:63
unsigned a_
Alpha channel mask. If zero, alpha channel is set to 1.
Definition: Color.h:46
WeakPtr< Camera > camera_
Camera pointer.
Definition: Viewport.h:115
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
bool GetLoop() const
Definition: CollisionChain2D.h:57
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
wchar_t * buffer_
String buffer, null if not allocated.
Definition: Str.h:633
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
void SetMinHeight(int height)
Definition: UIElement.cpp:620
Material * material_
Material.
Definition: Batch.h:90
bool GetFlipX() const
Definition: TileMapDefs2D.h:145
IntVector2 offset_
Offset (for trimmed sprite).
Definition: Sprite2D.h:113
unsigned stencilWriteMask_
Stencil write bitmask.
Definition: Graphics.h:892
Node * Prev()
Return previous node.
Definition: List.h:54
PODVector< Drawable * > drawables_
Drawable objects.
Definition: Octree.h:142
Spriter data.
Definition: SpriterData2D.h:55
bool inWorld_
Body exists in world flag.
Definition: RigidBody.h:361
void SetFps(int fps)
Definition: PhysicsWorld.cpp:313
virtual ~Octant()
Destruct. Move drawables to root if available (detach if not) and free child octants.
Definition: Octree.cpp:80
LightVSVariation
Light vertex shader variations.
Definition: Renderer.h:63
Feature
Definition: IKEffector.h:42
Renderer * GetRenderer() const
Return renderer subsystem.
Definition: View.cpp:679
Color ambientEndColor_
Cached ambient end color.
Definition: Zone.h:178
void WriteInt(XMLElement &element, const String &name, int value) const
Write integer.
Definition: ParticleEffect2D.cpp:542
SharedPtr< Texture > texture_
Texture.
Definition: Cursor.h:80
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
PODVector< float > * vertexData_
Vertex data.
Definition: UIBatch.h:87
Variant GetAttributeDefault(unsigned index) const
Definition: Serializable.cpp:946
bool GetUseXML() const
Return whether was loaded using XML data.
Definition: UnknownComponent.h:74
PODVector< unsigned short > offMeshFlags_
Offmesh connection flags.
Definition: NavBuildData.h:72
void OnMarkedDirty(Node *node) override
Definition: CrowdAgent.cpp:622
Doubly-linked list node base class.
Definition: ListBase.h:38
float timeToLive_
Time to live.
Definition: ParticleEmitter2D.h:37
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
virtual bool Build()
Rebuild the navigation mesh. Return true if successful.
Definition: NavigationMesh.cpp:384
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
Vector4 Abs() const
Return absolute vector.
Definition: Vector4.h:183
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
Material * GetMaterial() const
Definition: RibbonTrail.cpp:901
U second_
Value.
Definition: HashMap.h:78
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
~RefCount()
Destruct.
Definition: RefCounted.h:45
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
void DoExit()
Actually perform the exit actions.
Definition: Engine.cpp:985
bool GetUseMutableGlyphs() const
Definition: UI.h:235
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
UIElement * GetWindow() const
Definition: MessageBox.h:65
void Update()
Send frame update events.
Definition: Engine.cpp:684
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
Vector2 position_
Position.
Definition: Text.h:50
unsigned long long GetUInt64() const
Return unsigned 64 bit int or zero on type mismatch. Floats and doubles are converted.
Definition: Variant.h:1116
Vector< WeakPtr< Component > > listeners_
Node listeners.
Definition: Node.h:751
TextEffect textEffect_
Text effect.
Definition: Text.h:271
float shadowResolution_
Shadow resolution.
Definition: Light.h:441
float weight_
Blending weight.
Definition: AnimationState.h:189
Vector2 GetWorldScale2D() const
Definition: Node.h:524
RigidBody * rigidBody_
Rigid body.
Definition: PhysicsWorld.h:84
void SetMinRotationSpeed(float speed)
Definition: ParticleEffect.cpp:570
static const IntVector2 ZERO
Zero vector.
Definition: Vector2.h:161
float shadowDistance_
Shadow distance.
Definition: Drawable.h:395
BoundingBox worldBoundingBox_
World-space bounding box of the navigation mesh tile.
Definition: NavBuildData.h:62
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
Vector3 point_
Point.
Definition: OctreeQuery.h:91
bool operator<(const SharedArrayPtr< T > &rhs) const
Test for less than with another array pointer.
Definition: ArrayPtr.h:126
Node * GetImageNode() const
Definition: TileMapLayer2D.cpp:330
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
~CollisionBox2D() override
Destruct.
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
void Clear()
Clear the set.
Definition: HashSet.h:392
void SetUseSystemClipboard(bool enable)
Definition: UI.cpp:681
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
String lastMessage_
Last log message.
Definition: Log.h:130
float LengthSquared() const
Definition: Vector3.h:350
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 SetSpeed(float speed)
Definition: AnimatedSprite2D.cpp:190
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
SharedPtr< Sprite2D > sprite_
Sprite.
Definition: TileMapDefs2D.h:167
Node * GetEndPoint() const
Definition: OffMeshConnection.cpp:120
float GetMaxVelocity() const
Definition: ParticleEffect.h:355
String tag_
Tag name.
Definition: RenderPath.h:150
@ JSON_STRING
JSON string type.
Definition: JSONValue.h:42
bool EndLoad() override
Finish resource loading. Always called from the main thread. Return true if successful.
Definition: SpriteSheet2D.cpp:77
bool GetLogStatistics() const
Definition: Connection.h:219
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
Tile map file.
Definition: TmxFile2D.h:157
void SetPriority(int priority)
Definition: UIElement.cpp:843
unsigned Capacity() const
Return buffer capacity.
Definition: Str.h:435
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
StringHash GetType() const
Return type.
Definition: Object.h:55
UIElement * GetRoot() const
Definition: UIElement.cpp:1673
float Range() const
Return range, defined as the difference between the greatest and least RGB component.
Definition: Color.cpp:213
bool sRGB_
Data is sRGB.
Definition: Image.h:241
void HandleRenderSurfaceUpdate(StringHash eventType, VariantMap &eventData)
Handle render surface update event.
Definition: TextureCube.cpp:336
Vector3 GetWorldDirection() const
Definition: Node.h:480
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
unsigned ToHash() const
Return hash value for HashSet & HashMap.
Definition: ArrayPtr.h:171
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
float GetRowSpacing() const
Definition: Text.h:159
bool IsLooped() const
Definition: AnimationState.h:143
ResourceRequest
Resource request types.
Definition: ResourceCache.h:62
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
T & Back()
Return last element.
Definition: List.h:411
void UpdateElements()
Update elements to layout properly. Call this after manually adjusting the sub-elements.
Definition: Console.cpp:272
unsigned GetIndexCount() const
Definition: Geometry.h:98
int width_
Width of the window. 0 to pick automatically.
Definition: Graphics.h:131
int GetMinWidth() const
Definition: UIElement.h:478
UniquePtr< btCompoundShape > compoundShape_
Bullet compound collision shape.
Definition: RigidBody.h:325
DropDownList(Context *context)
Construct.
Definition: DropDownList.cpp:42
Database connection.
Definition: ODBCConnection.h:34
static bool IsActive()
Return true if active.
Definition: EventProfiler.h:74
Vector3 ToVector3() const
Definition: Color.h:163
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
float ReadFloat()
Read a float.
Definition: Deserializer.cpp:124
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
RenderCommandType
Rendering path command types.
Definition: RenderPath.h:40
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
float GetRange() const
Definition: Slider.h:88
dtTileCacheContourSet * contourSet_
TileCache specific recast contour set.
Definition: NavBuildData.h:111
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
bool stencilTest_
Stencil test enable flag.
Definition: Graphics.h:896
void SetMessage(const String &text)
Definition: MessageBox.cpp:120
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
Variant value_
Value.
Definition: ValueAnimation.h:53
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
bool orthographic_
Orthographic mode flag.
Definition: Camera.h:284
void MessageCallback(const asSMessageInfo *msg)
Log a message from the script engine.
Definition: Script.cpp:290
Animation.
Definition: SpriterData2D.h:146
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
~Text() override
Destruct.
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
bool sixteenBit_
Sixteen bit flag.
Definition: Sound.h:136
bool IsVisible() const
Return visible flag.
Definition: Terrain.h:228
HashMap< unsigned, BatchQueue > batchQueues_
Batch queues by pass index.
Definition: View.h:419
Vector< TechniqueEntry > techniques_
Techniques.
Definition: Material.h:314
bool GetSwapXY() const
Definition: TileMapDefs2D.h:151
virtual void Invoke(VariantMap &eventData)=0
Invoke event handler function.
FrameInfo frame_
Information of the frame being rendered.
Definition: View.h:352
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
Vector3 position_
Bone position.
Definition: Animation.h:58
SharedPtr< WorkItem > GetFreeItem()
Get pointer to an usable WorkItem from the item pool. Allocate one if no more free items.
Definition: WorkQueue.cpp:108
unsigned Size() const
Definition: JSONValue.cpp:242
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
float stepFactor_
Step factor.
Definition: ScrollBar.h:124
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
Component that describes global rendering properties.
Definition: Zone.h:33
void SetScrollBarsVisible(bool horizontal, bool vertical)
Set scrollbars' visibility manually. Disables scrollbar autoshow/hide.
Definition: ScrollView.cpp:312
float GetInnerAngle() const
Definition: SoundSource3D.h:80
~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
LoadMode mode_
Current load mode.
Definition: Scene.h:73
String autoCompleteLine_
Store the original line which is being auto-completed.
Definition: Console.h:207
Hash map node.
Definition: HashMap.h:82
unsigned displayedRows_
Maximum displayed rows.
Definition: Console.h:187
unsigned frequency_
Default frequency.
Definition: Sound.h:132
const dtQueryFilter * GetDetourQueryFilter(unsigned queryFilterType) const
Get the detour query filter.
Definition: CrowdManager.cpp:690
void SetEnabled(bool enable)
Definition: UIElement.cpp:887
float GetInertia() const
Definition: CollisionShape2D.cpp:266
HashMap< RigidBody2D *, DelayedWorldTransform2D > delayedWorldTransforms_
Delayed (parented) world transform assignments.
Definition: PhysicsWorld2D.h:272
BlendMode blendMode_
Blending mode.
Definition: UIBatch.h:79
b2Body * body_
Box2D body.
Definition: RigidBody2D.h:205
float angle_
Angle.
Definition: ParticleEffect2D.h:272
Text(Context *context)
Construct.
Definition: Text.cpp:54
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
float GetFriction() const
Definition: RigidBody.cpp:663
void SetNetParentAttr(const PODVector< unsigned char > &value)
Set network parent attribute.
Definition: Node.cpp:1475
void SetCellHeight(float height)
Definition: NavigationMesh.cpp:241
~BillboardSet() override
Destruct.
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
bool modal_
Modal flag.
Definition: Window.h:179
void SetNumTechniques(unsigned num)
Definition: Material.cpp:917
WindowModeParams primaryWindowMode_
Definition: Graphics.h:774
String name_
Bone name.
Definition: Skeleton.h:61
float outerAngle_
Outer angle for directional attenuation.
Definition: SoundSource3D.h:98
unsigned ReadUInt()
Read a 32-bit unsigned integer.
Definition: Deserializer.cpp:98
bool IsDesktop() const
Definition: Technique.h:247
void HandleScreenMode(StringHash eventType, VariantMap &eventData)
Handle screen mode event.
Definition: UI.cpp:1749
Image UI element with optional border.
Definition: BorderImage.h:35
bool sdfFont_
Signed distance field font flag.
Definition: Font.h:116
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
bool IsResolveDirty() const
Definition: Texture.h:135
ResourceRef ReadResourceRef()
Read a resource reference.
Definition: Deserializer.cpp:284
~ConstraintMouse2D() override
Destruct.
int width_
Window width in pixels.
Definition: Graphics.h:778
void Pause()
Pause worker threads.
Definition: WorkQueue.cpp:221
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
unsigned capacity_
Buffer capacity.
Definition: VectorBase.h:66
float rowHeight_
Row height.
Definition: FontFace.h:114
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 SetFarClip(float farClip)
Definition: Camera.cpp:122
VectorBuffer msg_
Reusable message buffer.
Definition: Connection.h:336
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
void SetRelative(bool enable)
Definition: ParticleEffect.cpp:455
bool lightPrepassSupport_
Light pre-pass rendering support flag.
Definition: Graphics.h:792
float GetLength() const
Definition: Sound.cpp:318
void SetCenter(const Vector2 &center)
Definition: CollisionBox2D.cpp:78
float autoFadeTime_
Animation autofade on stop -time, 0 if disabled.
Definition: AnimationController.h:67
@ HM_ALWAYS
Highlight always.
Definition: ListView.h:41
void SetFileName(const String &fileName)
Definition: FileSelector.cpp:210
void SetIndexBuffer(IndexBuffer *buffer)
Set index buffer.
Definition: OGLGraphics.cpp:1003
UIElement * GetRoot() const
Definition: UI.h:154
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
KeyValue pair_
Key-value pair.
Definition: HashMap.h:94
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
float z_
Z coordinate.
Definition: Quaternion.h:474
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
void SetFillMode(FillMode mode)
Definition: Material.cpp:1084
Script dictionary value.
Definition: Addons.h:153
void SetUpdateFps(int fps)
Definition: Network.cpp:573
CustomVariantValue * Clone() const override
Clone.
Definition: Variant.h:253
unsigned char lightStencilValue_
Current stencil value for light optimization.
Definition: Renderer.h:653
unsigned numPoints_
Number of points.
Definition: RibbonTrail.h:251
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 RegisterLoader()
Register loader.
Definition: LuaScript.cpp:334
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
Heightmap terrain component.
Definition: Terrain.h:38
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
Texture2D(Context *context)
Construct.
Definition: Texture2D.cpp:42
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
PListValueType GetType() const
Return type.
Definition: PListFile.h:98
unsigned GetNumHistoryRows() const
Definition: Console.h:129
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
float GetBytesInPerSec() const
Definition: Connection.cpp:1089
float GetCursorBlinkRate() const
Definition: LineEdit.h:107
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
Lua script object component.
Definition: LuaScriptInstance.h:60
long long totalTime_
Total accumulated time.
Definition: Profiler.h:165
bool castShadows_
Shadowcaster flag.
Definition: Drawable.h:365
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
float GetShadowIntensity() const
Definition: Light.h:323
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 SetLineAntiAlias(bool enable)
Definition: Material.cpp:1100
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
const String & GetShape() const
Definition: Cursor.h:124
FlagSet(Integer value)
Ctor by integer.
Definition: FlagSet.h:56
~Scene() override
Destruct.
Definition: Scene.cpp:82
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
FileMode
File open mode.
Definition: File.h:52
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
Vector3 normal_
Plane normal.
Definition: Plane.h:120
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
bool GetDrawPair() const
Definition: PhysicsWorld2D.h:193
void SetEventFrame(float time, const StringHash &eventType, const VariantMap &eventData=VariantMap())
Set event frame.
Definition: ValueAnimation.cpp:309
Octant * GetParent() const
Return parent octant.
Definition: Octree.h:87
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
Debug render triangle.
Definition: DebugRenderer.h:66
void SetBlendMode(AnimationBlendMode mode)
Definition: AnimationState.cpp:179
void OnShowPopup() override
React to the popup being shown.
Definition: DropDownList.cpp:113
Database query result.
Definition: ODBCResult.h:33
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 SetEditable(bool enable)
Definition: UIElement.cpp:918
Bone * bone_
Bone pointer.
Definition: AnimationState.h:61
void HandleScenePostUpdate(StringHash eventType, VariantMap &eventData)
Handle scene post-update event.
Definition: LogicComponent.cpp:192
int height_
Height.
Definition: TileMapDefs2D.h:57
Color startColor_
Start color.
Definition: ParticleEffect2D.h:286
AnimatedModel(Context *context)
Construct.
Definition: AnimatedModel.cpp:70
int GetMaxWidth() const
Definition: UIElement.h:490
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
static const Matrix4 IDENTITY
Identity matrix.
Definition: Matrix4.h:735
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
const T & Front() const
Return const first element.
Definition: List.h:408
UniquePtr< dtTileCacheMeshProcess > meshProcessor_
Mesh processor used by Detour, in this case a 'pass-through' processor.
Definition: DynamicNavigationMesh.h:146
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
float GetRotation() const
Definition: Sprite.h:103
unsigned GetLightMask() const
Definition: Terrain.h:213
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
2D vertex.
Definition: Drawable2D.h:37
bool SetFloat(const String &name, float value)
Set a float attribute.
Definition: XMLElement.cpp:352
Vector2 anchor_
Anchor.
Definition: ConstraintRevolute2D.h:100
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 SetEffectDepthBias(float bias)
Definition: Text3D.cpp:306
bool drawOffMeshConnections_
Debug draw OffMeshConnection components.
Definition: NavigationMesh.h:388
bool GetUseDrawRect() const
Definition: StaticSprite2D.h:132
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 size_
Size of vector.
Definition: VectorBase.h:64
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
bool IsMouseVisible() const
Definition: Input.h:331
UniquePtr< btDiscreteDynamicsWorld > world_
Bullet physics world.
Definition: PhysicsWorld.h:328
@ LT_OBJECT_GROUP
Object group.
Definition: TileMapDefs2D.h:83
void SetMinRotation(float rotation)
Definition: ParticleEffect.cpp:560
ShaderVariation * pixelShader_
Pixel shader.
Definition: Batch.h:106
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
Octree * octree_
Octree to use.
Definition: View.h:318
IntVector2 dragBeginPosition_
Original position at drag begin.
Definition: Window.h:175
typename std::underlying_type< Enum >::type Integer
Integer type.
Definition: FlagSet.h:52
int GetMixRate() const
Definition: Audio.h:79
const Vector2 & GetGravity() const
Definition: PhysicsWorld2D.h:217
bool fixedHeightResizing_
Fixed height resize flag.
Definition: Window.h:167
dtTileCacheAlloc * alloc_
Allocator from DynamicNavigationMesh instance.
Definition: NavBuildData.h:117
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
SharedPtr< Script > script_
Script subsystem.
Definition: ScriptFile.h:132
void OnServerDisconnected(const SLNet::AddressOrGUID &address)
Handle server disconnection.
Definition: Network.cpp:1002
unsigned GetIndexSize() const
Definition: IndexBuffer.h:82
void RemoveAllItems()
Remove all items.
Definition: ListView.cpp:496
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
void SetMaxAccel(float maxAccel)
Definition: CrowdAgent.cpp:379
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
void SetUBO(unsigned object)
Definition: OGLGraphics.cpp:2537
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
void SetVisible(bool visible)
Definition: TileMapLayer2D.cpp:235
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 GetTripleBuffer() const
Definition: Graphics.h:405
Folder.
Definition: SpriterData2D.h:72
IntVector2 delta_
Movement since last frame.
Definition: Input.h:71
const Color & GetEndColor() const
Definition: RibbonTrail.h:160
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
InstanceData()=default
Construct undefined.
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
Tmx layer.
Definition: TmxFile2D.h:38
void StepForward()
Scroll forward one step.
Definition: ScrollBar.cpp:196
SharedPtr< Sprite2D > sprite_
Sprite.
Definition: StaticSprite2D.h:172
b2PrismaticJointDef jointDef_
Box2D joint def.
Definition: ConstraintPrismatic2D.h:105
float GetDragBeginInterval() const
Definition: UI.h:207
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
bool sceneLoaded_
Scene loaded flag.
Definition: Connection.h:356
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
float GetSizeMul() const
Definition: ParticleEffect.h:379
bool Compare(const CustomVariantValue &rhs) const override
Compare to another custom value.
Definition: Variant.h:260
Texture2D * GetTexture() const
Definition: Sprite2D.h:71
bool IsRecursive() const
Definition: Navigable.h:49
float y_
Y coordinate.
Definition: Vector3.h:478
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
void SetPanning(float panning)
Definition: SoundSource.cpp:302
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
~StaticModelGroup() override
Destruct.
void SetOwnerBodyGroundAnchor(const Vector2 &groundAnchor)
Definition: ConstraintPulley2D.cpp:64
UIBatch()
Construct with defaults.
Definition: UIBatch.cpp:36
Quaternion rotation_
Rotation.
Definition: Node.h:741
unsigned maxLayers_
Maximum number of layers that are allowed to be constructed.
Definition: DynamicNavigationMesh.h:150
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
Octant * children_[NUM_OCTANTS]
Child octants.
Definition: Octree.h:144
void SetLowLimit(const Vector2 &limit)
Definition: Constraint.cpp:292
Mutex logMutex_
Mutex for threaded operation.
Definition: Log.h:124
void GetBatches(PODVector< UIBatch > &batches, PODVector< float > &vertexData, const IntRect &currentScissor) override
Return UI rendering batches.
Definition: Button.cpp:88
void SetLevel(int level)
Definition: Log.cpp:117
const Vector3 & GetSize() const
Definition: CollisionShape.h:233
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
float GetLength() const
Definition: AnimationState.cpp:439
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
ToolTip(Context *context)
Construct.
Definition: ToolTip.cpp:34
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 &parameters=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
UIElement * GetItem(unsigned index) const
Definition: ListView.cpp:833
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
void SetFrequency(float frequency)
Definition: SoundSource.cpp:284
unsigned southID_
Node ID of south neighbor.
Definition: Terrain.h:366
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
rcHeightfieldLayerSet * heightFieldLayers_
Recast heightfield layer set.
Definition: NavBuildData.h:115
unsigned GetNumButtons() const
Definition: Input.h:93
SharedPtr(const SharedPtr< U > &rhs) noexcept
Copy-construct from another shared pointer allowing implicit upcasting.
Definition: Ptr.h:66
bool IsString() const
Definition: JSONValue.h:193
float rotationSpeedMin_
Particle rotation speed minimum.
Definition: ParticleEffect.h:479
~TerrainPatch() override
Destruct.
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
int Right() const
Return right coordinate.
Definition: Rect.h:466
void SetLooped(bool enable)
Definition: Sound.cpp:253
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
bool Null() const
Check if the pointer is null.
Definition: ArrayPtr.h:373
DropDownList * filterList_
Filter dropdown.
Definition: FileSelector.h:181
FaceCameraMode
Billboard camera facing modes.
Definition: GraphicsDefs.h:354
void BringToFront()
Bring UI element to front.
Definition: UIElement.cpp:1217
void SetScrollStep(float step)
Definition: ScrollBar.cpp:181
bool pivotSet_
Has pivot changed manually.
Definition: UIElement.h:899
void GetTileGeometry(NavBuildData *build, Vector< NavigationGeometryInfo > &geometryList, BoundingBox &box)
Get geometry data within a bounding box.
Definition: NavigationMesh.cpp:1085
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
XMLElement GetParent() const
Definition: XMLElement.cpp:639
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 Reset(T *ptr=nullptr)
Reset with another pointer.
Definition: Ptr.h:167
float GetWorldRotation2D() const
Definition: Node.h:473
void GetBatches(PODVector< UIBatch > &batches, PODVector< float > &vertexData, const IntRect &currentScissor) 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
bool needUpdate_
Need update flag.
Definition: RibbonTrail.h:269
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
float value_
Slider current value.
Definition: Slider.h:117
void CleanupLevels()
Clean up the mip levels.
Definition: Image.cpp:2310
void Reset()
Reset button, axis and hat states to neutral.
Definition: Input.cpp:339
~BatchGroup()=default
Destruct.
Spline()
Default constructor.
Definition: Spline.cpp:40
JSONValue(const JSONValue &value)
Copy-construct from another JSON value.
Definition: JSONValue.h:137
unsigned collisionMask_
Collision mask.
Definition: RigidBody.h:345
PODVector< float > debugVertexData_
UI rendering vertex data for debug draw.
Definition: UI.h:408
Vector3 Row(unsigned i) const
Return matrix row.
Definition: Matrix3.h:269
void SetCustomSize(const IntVector2 &size)
Definition: UI.cpp:757
String GetMeshName() const
Return the given name of this navigation mesh.
Definition: NavigationMesh.h:206
Linked shader program on the GPU.
Definition: OGLShaderProgram.h:38
void SetEnableMotor(bool enableMotor)
Definition: ConstraintRevolute2D.cpp:116
~ScrollView() override
Destruct.
Script(Context *context)
Construct.
Definition: Script.cpp:110
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
bool hierarchyMode_
Hierarchy mode flag.
Definition: ListView.h:195
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
String currentRow_
Current row being edited.
Definition: Console.h:185
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
Terrain * GetNorthNeighbor() const
Definition: Terrain.h:178
bool GetSRGB() const
Definition: Texture.h:123
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
Logging subsystem.
Definition: Log.h:73
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
void SetSizeAdd(float sizeAdd)
Definition: ParticleEffect.cpp:581
StringVector names_
List of object names.
Definition: Variant.h:158
WeakPtr< Shader > lastShader_
Last used shader in shader variation query.
Definition: Graphics.h:908
~Slider() override
Destruct.
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 SetOrthographic(bool enable)
Definition: Camera.cpp:195
void Load(const XMLElement &element)
Load from XML element.
Definition: TileMapDefs2D.cpp:142
signed char * GetStart() const
Return sound data start.
Definition: Sound.h:74
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.
DebugLine()=default
Construct undefined.
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
unsigned passIndex_
Pass index.
Definition: View.h:83
int x_
X coordinate.
Definition: Vector2.h:156
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
Button * okButton_
OK button element.
Definition: MessageBox.h:78
bool markedDirty_
Whether exists in the SceneState's dirty set.
Definition: ReplicationState.h:171
SharedPtr< Text > profilerText_
Profiling information text.
Definition: DebugHud.h:131
void SetText(const String &text)
Definition: LineEdit.cpp:480
~Drawable2D() override
Destruct.
Definition: Drawable2D.cpp:54
bool SetVectorVariant(const String &name, const Variant &value)
Set a float, Vector or Matrix attribute stored in a variant.
Definition: XMLElement.cpp:538
bool IsEnabled() const
Definition: AnimationState.h:139
Frustum frustum_
Cached world space frustum.
Definition: Camera.h:276
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
PODVector< float > vertexData_
UI rendering vertex data.
Definition: UI.h:404
void SetOcclusionLodLevel(unsigned level)
Definition: StaticModel.cpp:296
void SetMaterial(Material *material)
Definition: RibbonTrail.cpp:414
RaycastVehicleData * vehicleData_
Opaque Bullet data hidden from public.
Definition: RaycastVehicle.h:197
unsigned count_
Calls on current frame.
Definition: Profiler.h:147
void AddDrawable(Drawable2D *drawable)
Add Drawable2D.
Definition: Renderer2D.cpp:227
void Minimize()
Minimize the window.
Definition: Graphics.cpp:345
Cached character location and size within text. Used for queries related to text editing.
Definition: Text.h:47
BlendMode
Blending mode.
Definition: GraphicsDefs.h:70
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
unsigned GetGid() const
Definition: TileMapDefs2D.h:142
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
~DropDownList() override
Destruct.
HashMap< RigidBody *, DelayedWorldTransform > delayedWorldTransforms_
Delayed (parented) world transform assignments.
Definition: PhysicsWorld.h:342
~FileSystem() override
Destruct.
Definition: FileSystem.cpp:294
Batch()=default
Construct with defaults.
constexpr RandomAccessConstIterator(const T *ptr)
Construct with an object pointer.
Definition: Iter.h:136
void Dispose()
Dispose.
Definition: AnimatedSprite2D.cpp:496
String loadMaterialName_
Material name acquired during BeginLoad().
Definition: ParticleEffect.h:491
void SetSpecularLighting(bool enable)
Definition: Renderer.cpp:316
unsigned nodeSize_
Size of a node.
Definition: Allocator.h:43
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
float GetDelay() const
Definition: ToolTip.h:59
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
float gain_
Gain.
Definition: SoundSource.h:152
LayoutMode
Layout operation mode.
Definition: UIElement.h:85
float GetShadowResolution() const
Definition: Light.h:327
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
String path_
Current directory.
Definition: FileSelector.h:199
Material technique. Consists of several passes.
Definition: Technique.h:216
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
Stretchable sprite component.
Definition: StretchableSprite2D.h:30
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
static const Color BLACK
Opaque black color.
Definition: Color.h:271
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
T value_
Node value.
Definition: List.h:48
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
IntVector3() noexcept
Construct a zero vector.
Definition: Vector3.h:36
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
void Clear(unsigned index)
Clear a bit.
Definition: ReplicationState.h:77
void SetHDRRendering(bool enable)
Definition: Renderer.cpp:311
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
ConstIterator()=default
Construct.
bool inWrite_
In write flag to prevent recursion.
Definition: Log.h:136
float GetFarClip() const
Definition: Camera.cpp:276
const BoundingBox & GetBoundingBox() const
Definition: Model.h:157
PODVector< unsigned char > GetTileData(const IntVector2 &tile) const override
Return tile data.
Definition: DynamicNavigationMesh.cpp:541
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
const BoundingBox & GetBoundingBox() const
Definition: NavigationMesh.h:276
bool sRGB_
sRGB sampling and writing mode flag.
Definition: Texture.h:269
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 SetListener(SoundListener *listener)
Definition: Audio.cpp:192
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 IsTrigger() const
Definition: CollisionShape2D.h:79
WeakPtr< XMLFile > file_
XML file.
Definition: XMLElement.h:316
bool UpdateToGPU()
Update the shadow data to the GPU buffer.
Definition: OGLIndexBuffer.cpp:257
int GetMonitorCount() const
Definition: Graphics.cpp:315
void SetFocusMode(FocusMode mode)
Definition: UIElement.cpp:924
const Vector2 & GetPoint(unsigned index) const
Return point at index (use for script).
Definition: TileMapDefs2D.cpp:195
~BorderImage() override
Destruct.
void ResetMouseVisible()
Reset last mouse visibility that was not suppressed in SetMouseVisible.
Definition: Input.cpp:664
void SetEastNeighbor(Terrain *east)
Definition: Terrain.cpp:321
Definition: BoundingBox.h:44
PassLightingMode GetLightingMode() const
Definition: Technique.h:116
bool GetAutoUpdate() const
Definition: View3D.h:69
void SetPressed(bool enable)
Set new pressed state.
Definition: Button.cpp:193
Vector< SharedPtr< Viewport > > viewports_
Viewports.
Definition: RenderSurface.h:170
float minZ_
Current minimum view space depth.
Definition: Drawable.h:399
SharedPtr< IndexBuffer > indexBuffer_
Index buffer.
Definition: RibbonTrail.h:237
bool GetInternalEdge() const
Definition: PhysicsWorld.h:244
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
Vector2 target_
Target.
Definition: ConstraintMouse2D.h:79
void SetDecalsAttr(const PODVector< unsigned char > &value)
Set decals attribute.
Definition: DecalSet.cpp:524
UniquePtr(T *ptr)
Construct from pointer.
Definition: Ptr.h:574
float GetScrollStep() const
Definition: ScrollBar.h:87
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
static const StringHash ZERO
Zero hash.
Definition: StringHash.h:109
const String & GetURL() const
Definition: HttpRequest.h:66
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
Element in an XML file.
Definition: XMLElement.h:49
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
static const IntVector2 UP
(0,1) vector.
Definition: Vector2.h:167
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
void Clear()
Clear to undefined state.
Definition: Rect.h:185
void * handle_
Thread handle.
Definition: Thread.h:73
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
Vector2 min_
Minimum vector.
Definition: Rect.h:267
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
~FileWatcher() override
Destruct.
Definition: FileWatcher.cpp:67
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
unsigned Length() const
Return length.
Definition: Str.h:624
float GetRotatePerSecond() const
Return rotate per second.
Definition: ParticleEffect2D.h:221
void OnObjectAnimationRemoved(ObjectAnimation *objectAnimation)
Handle object animation removed.
Definition: Animatable.cpp:497
int depth_
Depth.
Definition: Image.h:231
virtual void OnGetAttribute(const AttributeInfo &attr, Variant &dest) const
Handle attribute read access. Default implementation reads the variable at offset,...
Definition: Serializable.cpp:178
float GetRowSpacing() const
Definition: Text3D.cpp:418
float shadowDistance_
Shadow distance.
Definition: Terrain.h:358
PODVector< Light * > vertexLights_
Per-vertex lights affecting this drawable.
Definition: Drawable.h:415
BoundingBox boundingBox_
Local-space bounding box.
Definition: DecalSet.h:95
void Validate()
Validate parameters.
Definition: Light.cpp:79
ProfilerBlock * parent_
Parent block.
Definition: Profiler.h:149
void Resize(unsigned newSize)
Resize the vector.
Definition: Vector.h:424
float GetScrollSnapEpsilon() const
Definition: ScrollView.h:148
bool asyncLoading_
Asynchronous loading flag.
Definition: Scene.h:357
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
float GetFrequency() const
Definition: SoundSource.h:102
static const Vector4 ONE
(1,1,1) vector.
Definition: Vector4.h:236
float emitRadius_
Emit radius.
Definition: ParticleEmitter2D.h:66
float GetLodBias() const
Definition: Terrain.h:205
RayQueryResult()
Construct with defaults.
Definition: OctreeQuery.h:192
bool IsDynamic() const
Definition: IndexBuffer.h:71
BoundingBox GetWorldBoundingBox() const
Definition: NavArea.cpp:68
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
bool ReadBool()
Read a bool.
Definition: Deserializer.cpp:119
void SetShadowFadeDistance(float distance)
Definition: Light.cpp:386
Vector3 min_
Minimum vector.
Definition: BoundingBox.h:326
Root scene node, represents the whole scene.
Definition: Scene.h:87
Custom variant value type traits. Specialize the template to implement custom type behavior.
Definition: Variant.h:215
unsigned Size() const
Return number of elements.
Definition: List.h:417
const Vector3 & GetPosition() const
Definition: Connection.h:195
Definition: Input.h:80
bool SaveJSON(JSONValue &dest) const
Save as XML data. Return true if successful.
Definition: ValueAnimation.cpp:187
static const IntVector2 DOWN
(0,-1) vector.
Definition: Vector2.h:169
const BoundingBox & GetCullingBox() const
Return bounding box used for fitting drawable objects.
Definition: Octree.h:81
void SetDefaultStyle(XMLFile *style)
Definition: Console.cpp:120
~PackageFile() override
Destruct.
bool RemoveChildXML(XMLElement &parent, const String &name) const
Remove child XML element by matching attribute name.
Definition: UIElement.cpp:1945
void SetEndScale(float endScale)
Definition: RibbonTrail.cpp:325
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
void SetViewMask(unsigned mask)
Definition: Terrain.cpp:416
const HashMap< String, SharedPtr< ValueAnimationInfo > > & GetAttributeAnimationInfos() const
Return all attribute animations infos.
Definition: ObjectAnimation.h:81
SharedPtr() noexcept
Construct a null shared pointer.
Definition: Ptr.h:40
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
BodyType2D
Rigid body type.
Definition: RigidBody2D.h:39
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 SetEnabled(bool enable)
Definition: Node.cpp:715
void ReloadTextures()
Reload textures.
Definition: Renderer.cpp:1752
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
const TypeInfo * typeInfo_
Type info.
Definition: Object.h:236
HashIteratorBase()
Construct.
Definition: HashBase.h:61
Texture2D * GetDefaultLightRamp() const
Definition: Renderer.h:435
TmxFile2D * GetTmxFile() const
Definition: TileMap2D.cpp:154
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
bool IsAllowSleep() const
Definition: RigidBody2D.h:162
void LoadParameters()
Load optional parameters from an XML file.
Definition: Sound.cpp:341
T key_
Key.
Definition: HashSet.h:51
IntRect downRect_
Down button image rect.
Definition: ScrollBar.h:132
void SetFriction(float friction)
Definition: RigidBody.cpp:374
const Color & GetHoverColor() const
Definition: UISelectable.h:59
unsigned localNodeID_
Next free local node ID.
Definition: Scene.h:339
void OnSceneSet(Scene *scene) override
Handle scene being assigned.
Definition: RigidBody.cpp:931
SharedArrayPtr< unsigned > indexData_
Index data.
Definition: CollisionShape.h:119
void SetTitle(const String &text)
Definition: FileSelector.cpp:182
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
const Vector2 & GetCenter() const
Definition: CollisionBox2D.h:63
void SetSplitImpulse(bool enable)
Definition: PhysicsWorld.cpp:358
Vector3 initialScale_
Reset scale.
Definition: Skeleton.h:71
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
float GetLength() const
Definition: SplinePath.h:88
Spline spline_
The Control Points of the Spline.
Definition: SplinePath.h:134
Abstract base class for invoking attribute accessors.
Definition: Attribute.h:62
SharedPtr< Text > text_
Text element.
Definition: LineEdit.h:148
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
unsigned GetComponents() const
Definition: Image.h:175
void SetVisible(bool enable)
Definition: Console.cpp:141
Vector< WeakPtr< RigidBody2D > > rigidBodies_
Rigid bodies.
Definition: PhysicsWorld2D.h:270
float time_
Time.
Definition: ValueAnimation.h:51
bool FilterImplicitAttributes(XMLElement &dest) const override
Filter implicit attributes in serialization process.
Definition: Slider.cpp:209
void SetRepeatRate(float rate)
Definition: Button.cpp:188
IntVector2 ScreenToElement(const IntVector2 &screenPosition) override
Convert screen coordinates to element coordinates.
Definition: Sprite.cpp:96
bool GetSpecularLighting() const
Definition: Renderer.h:306
SharedPtr< VertexBuffer > vertexBuffer_
Vertex buffer.
Definition: RibbonTrail.h:235
void Swap(UniquePtr &up)
Swap with another UniquePtr.
Definition: Ptr.h:632
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
const IntRect & GetClipBorder() const
Definition: UIElement.h:546
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
RenderCommandType type_
Command type.
Definition: RenderPath.h:152
VariantAttributeAccessorImpl(TGetFunction getFunction, TSetFunction setFunction)
Construct.
Definition: Serializable.h:163
String animationName_
Animation name.
Definition: Animation.h:205
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
void Reset()
Reset.
Definition: PListFile.cpp:276
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 &parameters, 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
bool GetMaximized() const
Definition: Graphics.cpp:325
unsigned GetNumTouches() const
Definition: Input.h:293
Texture(Context *context)
Construct.
Definition: Texture.cpp:58
virtual ~Thread()
Destruct. If running, stop and wait for thread to finish.
Definition: Thread.cpp:69
float sizeDelta_
Size delta.
Definition: ParticleEmitter2D.h:44
PassLightingMode
Lighting mode of a pass.
Definition: Technique.h:36
SharedPtr< BorderImage > knob_
Slider knob.
Definition: Slider.h:111
void SetScriptNetworkDataAttr(const PODVector< unsigned char > &data)
Set script network serialization attribute by calling a script function.
Definition: LuaScriptInstance.cpp:448
unsigned GetComponents() const
Definition: Texture.cpp:163
virtual unsigned GetChecksum()
Definition: Deserializer.cpp:58
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
const String & GetGUID() const
Definition: Network.h:75
float GetRange() const
Definition: Light.h:291
2D gear constraint component.
Definition: ConstraintGear2D.h:31
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
~UIElement() override
Destruct.
Definition: UIElement.cpp:102
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
Node * ReserveNode()
Reserve a node.
Definition: HashMap.h:742
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
static const IntVector3 LEFT
(-1,0,0) vector.
Definition: Vector3.h:168
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
float updateAcc_
Update time accumulator.
Definition: Network.h:184
void SetDetailSampleMaxError(float error)
Definition: NavigationMesh.cpp:311
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
~Image() override
Destruct.
bool alphaToCoverage_
Alpha-to-coverage mode.
Definition: Technique.h:188
Vector2 GetLinearVelocity() const
Definition: RigidBody2D.cpp:538
void SetLayer(int layer)
Definition: Drawable2D.cpp:77
void SetVerticalScrollBarVisible(bool visible)
Definition: ScrollView.cpp:325
const String & GetTitle() const
Definition: MessageBox.cpp:126
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
int GetPriority() const
Definition: Zone.h:122
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
CullMode GetShadowCullMode() const
Definition: Material.h:248
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
void SetScale(float scale)
Definition: UI.cpp:739
bool IsOccluder() const
Definition: Terrain.h:236
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
unsigned indexSize_
Index size.
Definition: Model.h:85
int Width() const
Definition: Rect.h:413
~ResourceCache() override
Destruct. Free all resources.
Definition: ResourceCache.cpp:90
unsigned GetNumTechniques() const
Definition: Material.h:203
StringHash GetType() const override
Return type of the stored component.
Definition: UnknownComponent.h:41
int max_
Maximum value.
Definition: OcclusionBuffer.h:50
bool SaveByteCode(Serializer &dest)
Save the script bytecode. Return true if successful.
Definition: ScriptFile.cpp:594
Geometry * geometry_
Geometry.
Definition: Batch.h:88
float GetBasePriority() const
Definition: NetworkPriority.h:58
void SetBackupTexture(Texture *texture)
Definition: Texture.cpp:104
float sortDistance_
Distance for sorting.
Definition: RibbonTrail.h:61
float GetFov() const
Definition: Camera.h:137
NavBuildData()
Constructor.
Definition: NavBuildData.cpp:33
float GetZoom() const
Definition: Camera.h:149
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
TextEffect GetTextEffect() const
Definition: Text3D.cpp:428
float cellHeight_
Cell height.
Definition: NavigationMesh.h:354
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
Package file send transfer.
Definition: Connection.h:88
bool highDPI_
Definition: Graphics.h:91
Definition: TileMapDefs2D.h:50
void SetZoneMask(unsigned mask)
Definition: Terrain.cpp:452
SharedArrayPtr< unsigned char > readBuffer_
Read buffer for the main thread.
Definition: HttpRequest.h:107
UniquePtr< b2World > world_
Box2D physics world.
Definition: PhysicsWorld2D.h:248
Input(Context *context)
Construct.
Definition: Input.cpp:352
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
~ParticleEffect2D() override
Destruct.
float angle_
Angle.
Definition: CollisionBox2D.h:82
Free type font face description.
Definition: FontFaceFreeType.h:34
ConstIterator End() const
Return const iterator to the end.
Definition: Str.h:392
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
float maxAccel_
Agent's max acceleration.
Definition: CrowdAgent.h:247
void RemoveKeyFrame(unsigned index)
Remove a keyframe at index.
Definition: Animation.cpp:77
float GetRoundTripTime() const
Definition: Connection.cpp:1073
bool deferredAmbient_
Deferred ambient pass flag. This means that the destination rendertarget is being written to at the s...
Definition: View.h:376
int top_
Top coordinate.
Definition: Rect.h:474
void AddCircle(const Vector3 &center, const Vector3 &normal, float radius, const Color &color, int steps=64, bool depthTest=true)
Add a circle.
Definition: DebugRenderer.cpp:439
Window * GetWindow() const
Definition: FileSelector.h:91
bool GetAlphaToCoverage() const
Definition: Technique.h:127
void SetWeight(float weight)
Definition: AnimationState.cpp:165
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
const String & GetName() const
Definition: UIElement.h:454
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
~HashMap()
Destruct.
Definition: HashMap.h:250
void SetLinearDamping(float damping)
Definition: RigidBody.cpp:327
void OnWindowMoved()
Window was moved through user interaction. Called by Input subsystem.
Definition: OGLGraphics.cpp:2251
void Clear()
Clear the spline.
Definition: Spline.h:111
unsigned lodLevel_
Model LOD level.
Definition: CollisionShape.h:325
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
StringHash nameHash_
Name hash.
Definition: Resource.h:111
~ParticleEmitter() override
Destruct.
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
void SetAlpha(float alpha)
Definition: StaticSprite2D.cpp:167
Vector< Vector2 > points_
Points(for polygon and polyline).
Definition: TileMapDefs2D.h:239
Color color_
Color.
Definition: BillboardSet.h:48
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
ShaderType
Shader types.
Definition: GraphicsDefs.h:300
float pressure_
Finger pressure.
Definition: Input.h:73
unsigned lockStart_
Lock start vertex.
Definition: IndexBuffer.h:112
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
bool GetDrawJoint() const
Definition: PhysicsWorld2D.h:185
void WriteFloat(XMLElement &element, const String &name, float value) const
Write float.
Definition: ParticleEffect2D.cpp:548
bool HasFocus() const
Definition: UIElement.cpp:1541
void SetSprite(Sprite2D *sprite)
Definition: StaticSprite2D.cpp:84
int GetWidth() const
Definition: Image.h:163
String guid_
Local server GUID.
Definition: Network.h:204
An HTTP connection with response data stream.
Definition: HttpRequest.h:46
int maxOccluderTriangles_
Maximum occluder triangles.
Definition: Renderer.h:631
~AnimationState() override
Destruct.
const Vector< SharedPtr< Node > > & GetChildren() const
Return immediate child scene nodes.
Definition: Node.h:560
float GetAsyncProgress() const
Definition: Scene.cpp:747
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
bool IsTiled() const
Definition: BorderImage.h:114
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
void AddToOctree()
Add to octree.
Definition: Drawable.cpp:385
Four-dimensional vector.
Definition: Vector4.h:31
Vector< AnimationStateTrack > stateTracks_
Per-track data.
Definition: AnimationState.h:185
Vector2 scale_
Scale.
Definition: Sprite.h:130
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
A convex volume built from polygon faces.
Definition: Polyhedron.h:37
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
void SetFov(float fov)
Definition: Light.cpp:333
SharedArrayPtr< int > clipBuffer_
Clipping buffer for mixing.
Definition: Audio.h:137
unsigned GetNumLayers() const
Definition: TileMap2D.h:66
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
Vector3 center_
Geometry center.
Definition: StaticModel.h:36
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
bool usingTouchInput_
Touch used flag.
Definition: UI.h:436
void SetZoneTexture(Texture *texture)
Definition: Zone.cpp:154
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
Value animation key frame.
Definition: ValueAnimation.h:48
UniquePtr()
Construct empty.
Definition: Ptr.h:571
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
void SetColor(const Color &color)
Definition: StaticSprite2D.cpp:157
String GetResourceFileName(const String &name) const
Return full absolute file name of resource if possible, or empty if not found.
Definition: ResourceCache.cpp:785
float GetLength() const
Definition: Light.h:263
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
bool isMaster_
Master model flag.
Definition: AnimatedModel.h:265
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
void SetMinWidth(int width)
Definition: UIElement.cpp:615
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
bool GetUseDerivedOpacity() const
Definition: UIElement.h:582
virtual bool Save(Serializer &dest) const
Save resource. Return true if successful.
Definition: Resource.cpp:81
int GetWidth() const
Definition: Texture.h:93
Vector2 floatPosition_
Floating point position.
Definition: Sprite.h:126
bool updateInvisible_
Update when invisible flag.
Definition: RibbonTrail.h:279
Controls()
Construct.
Definition: Controls.cpp:30
TimelineKey * GetTimelineKey(Ref *ref) const
Get timeline key by ref.
Definition: SpriterInstance2D.cpp:260
String vertexShaderDefines_
Vertex shader defines.
Definition: RenderPath.h:166
float width_
Width on screen.
Definition: FontFace.h:48
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
void SetWorldScale2D(const Vector2 &scale)
Definition: Node.h:222
String & AppendWithFormatArgs(const char *formatString, va_list args)
Append to string using variable arguments.
Definition: Str.cpp:1087
float speed_
Speed.
Definition: ParticleEffect2D.h:264
void SetVBO(unsigned object)
Definition: OGLGraphics.cpp:2527
Model(Context *context)
Construct.
Definition: Model.cpp:63
bool GetAutoExit() const
Definition: Engine.h:109
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
PListValueMap root_
Root dictionary.
Definition: PListFile.h:170
int GetMaxInactiveFps() const
Definition: Engine.h:97
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
int priority_
Priority.
Definition: UIElement.h:800
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 SetTitle(const String &text)
Definition: MessageBox.cpp:114
void SetTextAttr(const String &value)
Set text attribute.
Definition: Text3D.cpp:551
@ ASYNC_QUEUED
Queued for asynchronous loading.
Definition: Resource.h:44
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 StaticCast(const SharedPtr< U > &rhs)
Perform a static cast from a shared pointer of another type.
Definition: Ptr.h:188
Quaternion worldRotation_
World-space rotation.
Definition: Node.h:745
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
String GetCurrentDir() const
Definition: FileSystem.cpp:535
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
bool IsHovering() const
Definition: UIElement.h:617
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
XMLFile * GetDefaultStyle() const
Definition: Console.cpp:285
Quaternion(const Matrix3 &matrix) noexcept
Construct from a rotation matrix.
Definition: Quaternion.h:132
int right_
Right coordinate.
Definition: Rect.h:476
static const Matrix3x4 IDENTITY
Identity matrix.
Definition: Matrix3x4.h:711
void Reset()
Reset to initial state.
Definition: Controls.cpp:39
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
VariantType valueType_
Value type.
Definition: ValueAnimation.h:163
TSetFunction setFunction_
Set functor.
Definition: Serializable.h:185
bool IsEmpty() const
Definition: Variant.h:1344
void SetProjection(const Matrix4 &projection)
Definition: Camera.cpp:252
Allocator memory block.
Definition: Allocator.h:40
float GetTimePosition() const
Definition: SoundSource.h:98
bool RemoveTag(const String &tag)
Remove tag. Return true if existed.
Definition: Node.cpp:391
Base class for texture resources.
Definition: Texture.h:39
SharedPtr< Engine > engine_
Urho3D engine.
Definition: Application.h:62
float time_
Time.
Definition: ParticleEffect.h:83
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
void SetSortChildren(bool enable)
Definition: UIElement.cpp:874
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
static const Matrix2 IDENTITY
Identity matrix.
Definition: Matrix2.h:255
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
RenderPath * GetRenderPath() const
Definition: Viewport.cpp:137
void * event_
Operating system specific event.
Definition: Condition.h:56
UIElement * GetElementEventSender() const
Get element which should send child added / removed events.
Definition: UIElement.cpp:1853
void SetDrawDistance(float distance)
Definition: Terrain.cpp:380
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
int GetIndentWidth() const
Definition: UIElement.h:736
Navigation mesh component. Collects the navigation geometry from child nodes with the Navigable compo...
Definition: NavigationMesh.h:92
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
Vector< String > filters_
Filters.
Definition: FileSelector.h:201
unsigned short GetIncludeFlags(unsigned queryFilterType) const
Get the include flags for the specified query filter type.
Definition: CrowdManager.cpp:483
Matrix3 RotationMatrix() const
Definition: Quaternion.cpp:234
~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
float GetWeight() const
Definition: IKEffector.cpp:169
@ LM_VERTICAL
Layout child elements vertically and resize them to fit. Resize element if necessary.
Definition: UIElement.h:92
Hash set/map node base class.
Definition: HashBase.h:39
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 &parameters=Variant::emptyVariantVector)
Add a delay-executed method call, optionally repeating.
Definition: ScriptInstance.cpp:300
void SetColor(const Color &color)
Definition: Text3D.cpp:321
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
PODVector< Light * > lights_
Lights.
Definition: View.h:402
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
Camera * camera_
Viewport (rendering) camera.
Definition: View.h:320
IntVector2 GetNumTiles() const
Definition: NavigationMesh.h:284
PODVector< T > operator+(const T &rhs) const
Add an element.
Definition: Vector.h:762
void Validate()
Validate parameters.
Definition: Light.cpp:86
WindowDragMode dragMode_
Current drag mode.
Definition: Window.h:171
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
void SetPauseMinimized(bool enable)
Definition: Engine.cpp:578
Sprite2D * GetSprite() const
Definition: StaticSprite2D.cpp:237
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
ConstIterator End() const
Return iterator to the end.
Definition: List.h:402
VertexElementType
Arbitrary vertex declaration element datatypes.
Definition: GraphicsDefs.h:155
const IntVector2 & GetNumPatches() const
Definition: Terrain.h:140
~CrowdManager() override
Destruct.
Definition: CrowdManager.cpp:88
Color(unsigned color, const ChannelMask &mask=ABGR)
Construct from 32-bit integer. Default format is 0xAABBGGRR.
Definition: Color.h:102
float weight_
Blending weight.
Definition: AnimationState.h:65
int GetNumWheels() const
Definition: RaycastVehicle.cpp:595
float duration_
Duration.
Definition: ParticleEffect2D.h:304
SharedPtr< Texture > zoneTexture_
Zone texture.
Definition: Zone.h:192
void Clear()
Clear by removing all variables and XPath query object.
Definition: XMLElement.cpp:1154
bool GetUseGravity() const
Definition: RigidBody.h:248
Queue for shadow map draw calls.
Definition: Batch.h:277
void RemoveEventReceiver(Object *receiver, Object *sender, StringHash eventType)
Remove event receiver from specific events.
Definition: Context.cpp:447
void Clear()
Remove all elements.
Definition: LinkedList.h:80
bool GetOptimizeBufferSize() const
Definition: DecalSet.h:175
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 GetDynamicInstancing() const
Definition: Renderer.h:358
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
SharedPtr< Image > heightMap_
Heightmap image.
Definition: Terrain.h:294
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
float blendWeights_[4]
Blend weights.
Definition: DecalSet.h:70
void SetDragBeginDistance(int pixels)
Definition: UI.cpp:654
@ OT_POLYLINE
Polyline.
Definition: TileMapDefs2D.h:100
T Max(T lhs, U rhs)
Definition: MathDefs.h:92
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
String GetValue() const
Definition: XMLElement.cpp:684
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
StringVector tags_
Tag strings.
Definition: Node.h:67
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
float GetSnapThreshold() const
Definition: Scene.h:224
void SetFogHeight(float height)
Definition: Zone.cpp:136
String name_
Shader name.
Definition: ShaderVariation.h:170
JSONArray * arrayValue_
Definition: JSONValue.h:322
T * head_
First element.
Definition: LinkedList.h:191
void SetTargetPosition(const Vector3 &targetPosition)
Definition: IKEffector.cpp:118
DebugHud(Context *context)
Construct.
Definition: DebugHud.cpp:62
bool SaveXML(XMLElement &dest) const override
Save as XML data. Return true if successful.
Definition: Menu.cpp:235
float GetPanning() const
Definition: SoundSource.h:114
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
unsigned GetNumHats() const
Definition: Input.h:101
bool sendEvent_
Whether to send event on completion.
Definition: WorkQueue.h:60
unsigned vertexStart_
Vertex data start index.
Definition: UIBatch.h:89
int mouseMoveWheel_
Mouse wheel movement since last frame.
Definition: Input.h:442
Node * Tail() const
Return the tail node.
Definition: List.h:427
bool GetWordwrap() const
Definition: Text3D.cpp:423
float margin_
Collision margin.
Definition: CollisionShape.h:329
Material * GetMaterial() const
Definition: UIComponent.cpp:188
void SetAnisotropy(unsigned level)
Definition: Texture.cpp:86
unsigned GetNumDragElements() const
Return the number of currently dragged elements.
Definition: UI.h:189
Vector2 gravity_
Gravity.
Definition: PhysicsWorld2D.h:250
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
Zone * GetZone() const
Definition: Drawable.h:280
bool IsPlaying() const
Definition: SoundSource.cpp:314
Matrix2 Scaled(const Vector2 &scale) const
Return scaled by a vector.
Definition: Matrix2.h:174
CullMode cullMode_
Normal culling mode.
Definition: Material.h:326
Connection to a remote network host.
Definition: Connection.h:118
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
void SetSorted(bool enable)
Definition: ParticleEffect.cpp:465
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
Matrix3() noexcept
Construct an identity matrix.
Definition: Matrix3.h:35
unsigned numCompressedLevels_
Number of compressed mip levels.
Definition: Image.h:235
void RemoveTextureFrame(unsigned index)
Remove texture frame at index.
Definition: ParticleEffect.cpp:696
~Sprite() override
Destruct.
@ 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
Vector3 v2_
Vertex b.
Definition: DebugRenderer.h:83
bool scaled_
Scale affects billboard scale flag.
Definition: ParticleEffect.h:435
void SetAutoExit(bool enable)
Definition: Engine.cpp:583
void SetDither(bool enable)
Definition: OGLGraphics.cpp:524
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
int GetDepth() const
Definition: Image.h:171
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
bool dataLost_
Data lost flag.
Definition: GPUObject.h:78
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
StringHash nameHash_
Name hash.
Definition: Node.h:69
void Swap(WeakPtr< T > &rhs)
Swap with another WeakPtr.
Definition: Ptr.h:442
FlagSet & operator&=(const Enum value)
Bitwise AND against Enum value.
Definition: FlagSet.h:76
bool GetResizable() const
Definition: Graphics.h:388
~DebugRenderer() override
Destruct.
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
void SetScaled(bool enable)
Definition: BillboardSet.cpp:296
float advanceX_
Horizontal advance.
Definition: FontFace.h:56
bool IsRelative() const
Definition: ParticleEffect.h:275
Software renderer for occlusion.
Definition: OcclusionBuffer.h:91
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
int GetFps() const
Definition: PhysicsWorld.h:252
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 Empty() const
Return whether vector is empty.
Definition: Vector.h:1157
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
~Console() override
Destruct.
Definition: Console.cpp:114
Describes how to render 3D geometries.
Definition: Material.h:106
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
bool drawNavAreas_
Debug draw NavArea components.
Definition: NavigationMesh.h:390
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
unsigned sampleSize_
Sample size.
Definition: Audio.h:143
bool geometryTypeUpdate_
Update billboard geometry type.
Definition: BillboardSet.h:217
bool operator!=(const SharedArrayPtr< T > &rhs) const
Test for inequality with another shared array pointer.
Definition: ArrayPtr.h:123
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
void SetEdgeMaxLength(float length)
Definition: NavigationMesh.cpp:290
virtual void SetModel(Model *model)
Definition: StaticModel.cpp:230
CullMode GetCullMode() const
Definition: Technique.h:108
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 Clear()
Clear the vector.
Definition: Vector.h:421
Condition on which a thread can wait.
Definition: Condition.h:35
void HandleSliderPaged(StringHash eventType, VariantMap &eventData)
Handle slider touch and click on "paging" area.
Definition: ScrollBar.cpp:295
bool IsMouseLocked() const
Definition: Input.cpp:1496
float GetBufferLength() const
Return length of buffered (unplayed) sound data in seconds.
Definition: BufferedSoundStream.cpp:123
int BuildTile(Vector< NavigationGeometryInfo > &geometryList, int x, int z, TileCacheData *tiles)
Build one tile of the navigation mesh. Return true if successful.
Definition: DynamicNavigationMesh.cpp:820
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
@ HM_FOCUS
Highlight when focused.
Definition: ListView.h:39
JSONValue(bool value)
Construct with a boolean.
Definition: JSONValue.h:83
ScriptInstance(Context *context)
Construct.
Definition: ScriptInstance.cpp:65
int patchSize_
Patch size, quads per side.
Definition: Terrain.h:328
Raycast result.
Definition: OctreeQuery.h:189
Animation(Context *context)
Construct.
Definition: Animation.cpp:114
T RoundToNearestMultiple(T x, T multiple)
Round value to nearest multiple.
Definition: MathDefs.h:241
Vector4 tangent_
Tangent.
Definition: CustomGeometry.h:43
FaceCameraMode GetFaceCameraMode() const
Definition: Text3D.h:204
bool IsInitialized() const
Definition: OGLGraphics.cpp:2027
unsigned vertexCount_
Number of vertices.
Definition: Model.h:46
bool IsVisible() const
Return is visible.
Definition: TmxFile2D.h:60
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
unsigned char areaID_
Detour area ID.
Definition: NavigationMesh.h:88
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
int height_
Height.
Definition: Image.h:229
ObjectFactory(Context *context)
Construct.
Definition: Object.h:211
StringHash nameHash_
Bone name hash.
Definition: Skeleton.h:63
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
bool IsNaN() const
Return whether any element is NaN.
Definition: Matrix3.h:275
T GetMetadata(const StringHash &key) const
Get attribute metadata of specified type.
Definition: Attribute.h:96
float GetInertia() const
Definition: RigidBody2D.cpp:517
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
T SmoothStep(T lhs, T rhs, T t)
Definition: MathDefs.h:142
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
float lodBias_
LOD bias.
Definition: Drawable.h:403
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
Description of a geometry for asynchronous loading.
Definition: Model.h:93
Animation instance.
Definition: AnimationState.h:71
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
Bone * GetRootBone()
Definition: Skeleton.cpp:148
int materialQuality_
Material quality level.
Definition: View.h:360
void MarkFBODirty()
Definition: OGLGraphics.cpp:2522
HashNodeBase * head_
List head node pointer.
Definition: HashBase.h:149
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
bool IsFinished() const
Definition: SplinePath.h:107
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
UIElement * GetPlaceholder() const
Definition: DropDownList.h:97
void Define(const BoundingBox &box)
Define from another bounding box.
Definition: BoundingBox.h:146
unsigned lightMask_
Light mask.
Definition: Drawable.h:381
float SaturationHSL() const
Return saturation as defined for HSL.
Definition: Color.cpp:135
Integer value_
Value.
Definition: FlagSet.h:236
void SetAnchor(const Vector2 &anchor)
Definition: ConstraintWeld2D.cpp:56
void ProcessLights()
Get lit geometries and shadowcasters for visible lights.
Definition: View.cpp:977
bool wordWrap_
Wordwrap mode.
Definition: Text.h:263
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
Geometry * geometry_
Geometry.
Definition: Drawable.h:96
void OnWorldBoundingBoxUpdate() override
Recalculate the world-space bounding box.
Definition: Light.cpp:542
virtual void OnWorldBoundingBoxUpdate()=0
Recalculate the world-space bounding box.
BorderImage * GetCursor() const
Definition: LineEdit.h:135
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
Vector3 absNormal_
Plane absolute normal.
Definition: Plane.h:122
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
void Apply()
Apply to GPU.
Definition: OGLConstantBuffer.cpp:89
MouseButtonFlags mouseButtons_
Mouse buttons held down.
Definition: UI.h:426
@ AM_EDIT
Attribute shown only in the editor, but not serialized.
Definition: Attribute.h:37
HashMap< StringHash, Variant > VariantMap
Map of variants.
Definition: Variant.h:86
float maxZ_
Scene maximum Z value.
Definition: View.h:104
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
const Color & GetColor() const
Definition: StaticSprite2D.h:120
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
Vertex or pixel shader on the GPU.
Definition: ShaderVariation.h:81
Matrix4 Transpose() const
Return transposed.
Definition: Matrix4.h:581
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
SharedPtr(SharedPtr< T > &&rhs) noexcept
Move-construct from another shared pointer.
Definition: Ptr.h:59
IntVector2 SumTouchPositions(UI::DragData *dragData, const IntVector2 &oldSendPos)
Sum touch positions and return the begin position ready to send.
Definition: UI.cpp:2137
Node * GetTargetNode() const
Definition: IKEffector.cpp:78
float frequency_
Frequency.
Definition: SoundSource.h:150
bool textDirty_
Text needs update flag.
Definition: Text3D.h:257
static void RegisterObject(Context *context)
Register object factory. Drawable2D must be registered first.
Definition: StaticSprite2D.cpp:62
int GetLayoutSpacing() const
Definition: UIElement.h:647
int GetWidth() const
Definition: Graphics.h:361
void SetCullMode(CullMode mode)
Set culling mode.
Definition: OcclusionBuffer.cpp:134
bool IsModal() const
Definition: Window.h:132
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
void SetIsDesktop(bool enable)
Definition: Technique.cpp:361
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
unsigned GetNumAxes() const
Definition: Input.h:97
virtual void UpdateBatches(const FrameInfo &frame)
Calculate distance and prepare batches for rendering. May be called from worker thread(s),...
Definition: Drawable.cpp:134
LineEdit * pathEdit_
Path editor.
Definition: FileSelector.h:177
void HandleRootElementResized(StringHash eventType, VariantMap &eventData)
Handle UI root resize.
Definition: Console.cpp:525
String fileName_
Source file name.
Definition: Scene.h:319
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
float GetBrightness() const
Definition: Light.h:279
WeakPtr< RigidBody > hullBody_
Hull RigidBody.
Definition: RaycastVehicle.h:195
bool Empty() const
Return whether the string is empty.
Definition: Str.h:621
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
void Clear()
Clear all faces.
Definition: Polyhedron.cpp:232
PODVector< Pass * > GetPasses() const
Definition: Technique.cpp:483
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
Node * Tail() const
Return the tail node.
Definition: HashMap.h:625
void PatchRemove(const pugi::xpath_node &original) const
Remove a node or attribute in the Patch.
Definition: XMLFile.cpp:262
Vector2 Size() const
Definition: Rect.h:206
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
CrowdAgent(Context *context)
Construct.
Definition: CrowdAgent.cpp:80
int Bottom() const
Return bottom coordinate.
Definition: Rect.h:469
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
StringHash type_
Object type.
Definition: Variant.h:156
unsigned GetFreeComponentID(CreateMode mode)
Get free component ID, either non-local or local.
Definition: Scene.cpp:874
Vector3 size_
Shape size.
Definition: CollisionShape.h:321
void * readOnlyView_
Definition: RenderSurface.h:163
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
void SetScale(const Vector2 &scale)
Definition: Sprite.cpp:166
void MarkBodyDirty()
Mark body dirty.
Definition: RigidBody.h:320
int GetMipsToSkip(MaterialQuality quality) const
Definition: Texture.cpp:124
DynamicNavBuildData(dtTileCacheAlloc *allocator)
Constructor.
Definition: NavBuildData.cpp:68
Variant(const Quaternion &value)
Construct from a quaternion.
Definition: Variant.h:398
static void RegisterObject(Context *context)
Register object factory.
Definition: Sprite2D.cpp:49
bool drawShadows_
Draw shadows flag.
Definition: View.h:372
static bool gl3Support
OpenGL3 support flag.
Definition: Graphics.h:921
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
AnimationTrack()
Construct.
Definition: Animation.h:70
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
~Drawable() override
Destruct.
Definition: Drawable.cpp:94
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
bool GetKeyDown(Key key) const
Definition: Input.cpp:1334
unsigned mipsToSkip_[MAX_TEXTURE_QUALITY_LEVELS]
Mip levels to skip when loading per texture quality setting.
Definition: Texture.h:263
Tmx image layer.
Definition: TmxFile2D.h:130
ProfilerBlock * root_
Root profiling block.
Definition: Profiler.h:226
Matrix2(const float *data) noexcept
Construct from a float array.
Definition: Matrix2.h:57
T * Get() const
Return the raw pointer.
Definition: Ptr.h:208
bool perInstance_
Per-instance flag.
Definition: GraphicsDefs.h:218
Variant(const Rect &value)
Construct from a rect.
Definition: Variant.h:470
HashMap< Pair< StringHash, StringHash >, BackgroundLoadItem > backgroundLoadQueue_
Resources that are queued for background loading.
Definition: BackgroundLoader.h:84
bool GetDrawDebug() const
Definition: Viewport.h:95
const JSONValue & Get(const String &key) const
Return JSON value with key.
Definition: JSONValue.cpp:276
Physics raycast hit.
Definition: PhysicsWorld.h:60
void ApplyOriginalPoseToScene()
Definition: IKSolver.cpp:441
bool bufferSizeDirty_
Buffers need resize flag.
Definition: BillboardSet.h:211
float GetAgentMaxClimb() const
Definition: NavigationMesh.h:233
bool CheckVisibility(Drawable2D *drawable) const
Check visibility.
Definition: Renderer2D.cpp:267
static const Vector4 ZERO
Zero vector.
Definition: Vector4.h:234
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
void SetAgentMaxSlope(float maxSlope)
Definition: NavigationMesh.cpp:269
void SetCellSize(float size)
Definition: NavigationMesh.cpp:234
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
~Window() override
Destruct.
~ScrollBar() override
Destruct.
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
void SetRelative(bool enable)
Definition: BillboardSet.cpp:290
void SetFogHeightScale(float scale)
Definition: Zone.cpp:142
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
Text * titleText_
Window title text.
Definition: FileSelector.h:173
float Distance(const Vector3 &point) const
Return distance of a point to the frustum, or 0 if inside.
Definition: Frustum.h:162
bool Create()
Create buffer.
Definition: OGLIndexBuffer.cpp:226
PODVector< Drawable * > nonThreadedGeometries_
Geometry objects that will be updated in the main thread.
Definition: View.h:396
void SetInt(int value)
Set int.
Definition: PListFile.cpp:124
Vector3 previousPosition_
Agent's previous position used to check for position changes.
Definition: CrowdAgent.h: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
int GetAcceleratorQualifiers() const
Definition: Menu.h:92
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
bool IsPooling() const
Definition: Database.h:60
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
unsigned GetFrameNumber() const
Definition: Timer.h:97
VariantType GetVariantType()
Return variant type from type.
bool IsInternal() const
Definition: UIElement.h:621
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
IntRect imageRect_
Image rectangle.
Definition: Cursor.h:82
bool SetData(const void *data)
Set all data in the buffer.
Definition: OGLVertexBuffer.cpp:81
float GetFontSize() const
Definition: Text3D.cpp:393
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
Matrix4() noexcept
Construct an identity matrix.
Definition: Matrix4.h:42
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
Context * context_
Execution context.
Definition: Object.h:234
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
void SetDragBeginInterval(float interval)
Definition: UI.cpp:649
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
2D motor constraint component.
Definition: ConstraintMotor2D.h:31
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
unsigned GetNumMorphs() const
Definition: AnimatedModel.h:142
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
float y_
Y coordinate.
Definition: Quaternion.h:472
unsigned tailColumn_
Number of columns for every tails.
Definition: RibbonTrail.h:265
String name_
Pass name.
Definition: Technique.h:212
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
float drawDistance_
Draw distance.
Definition: Drawable.h:393
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
unsigned indexCount_
Index count.
Definition: Model.h:83
ShaderParameterGroup
Shader parameter groups for determining need to update. On APIs that support constant buffers,...
Definition: GraphicsDefs.h:307
unsigned GetMaxLodLevels() const
Definition: Terrain.h:144
WeakPtr< Drawable2D > owner_
Owner.
Definition: Drawable2D.h:54
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
float GetMaxForce() const
Definition: ConstraintMotor2D.h:69
void Define(const Vector2 &point)
Define from a point.
Definition: Rect.h:153
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
float PitchAngle() const
Definition: Quaternion.cpp:214
FocusParameters shadowFocus_
Shadow map focus parameters.
Definition: Light.h:415
bool enabled_
Enabled flag.
Definition: Node.h:723
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
bool GetLineAntiAlias() const
Definition: Material.h:264
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
float GetShadowDistance() const
Definition: Terrain.h:201
void SetTemporary(bool enable)
Definition: Serializable.cpp:675
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
void Normalize()
Normalize to unit length.
Definition: Vector2.h:289
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
Sprite timeline key.
Definition: SpriterData2D.h:292
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
void SetUsePhysicalValues(bool enable)
Definition: Light.cpp:308
int GetMaskBits() const
Definition: CollisionShape2D.h:87
bool GetInterceptNetworkUpdate(const String &attributeName) const
Return whether an attribute's network updates are being intercepted.
Definition: Serializable.cpp:1001
void SetWordwrap(bool enable)
Definition: Text3D.cpp:268
void * instancingData_
Per-instance data. If not null, must contain enough data to fill instancing buffer.
Definition: Batch.h:96
const Matrix3x4 & GetWorldTransform() const
Definition: Node.h:532
@ LM_FORCE_LOOPED
Force looped.
Definition: AnimatedSprite2D.h:44
~PhysicsWorld2D() override
Destruct.
Definition: PhysicsWorld2D.cpp:66
RigidBody2D * GetOwnerBody() const
Definition: Constraint2D.h:68
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
ListView(Context *context)
Construct.
Definition: ListView.cpp:167
bool Initialize(const VariantMap &parameters)
Initialize engine using parameters given and show the application window. Return true if successful.
Definition: Engine.cpp:163
String pixelShaderName_
Pixel shader name.
Definition: Technique.h:194
unsigned GetVertexStart() const
Definition: Geometry.h:102
float GetScrollStep() const
Definition: ScrollView.cpp:368
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
Component(Context *context)
Construct.
Definition: Component.cpp:54
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
IntVector2 minOffset_
Minimum offset.
Definition: UIElement.h:893
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
ObjectType
Object type.
Definition: SpriterData2D.h:193
Definition: Animation.h:67
bool GetShadowCompare() const
Return whether shadow compare is enabled. Not used on Direct3D9.
Definition: Texture.h:115
Mainline key.
Definition: SpriterData2D.h:163
void RemoveAllTags()
Remove all tags.
Definition: UIElement.cpp:1490
void AddTag(const String &tag)
Add a tag.
Definition: Node.cpp:352
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
ListNodeBase * head_
Head node pointer.
Definition: ListBase.h:116
Vector3 HeightMapToWorld(const IntVector2 &pixelPosition) const
Convert heightmap pixel position to world position.
Definition: Terrain.cpp:636
SharedArrayPtr(T *ptr)
Construct from a raw pointer.
Definition: ArrayPtr.h:53
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
String ToUpper() const
Return string in uppercase.
Definition: Str.cpp:552
virtual bool BuildTile(Vector< NavigationGeometryInfo > &geometryList, int x, int z)
Build one tile of the navigation mesh. Return true if successful.
Definition: NavigationMesh.cpp:1302
void Release() override
Release the buffer.
Definition: OGLConstantBuffer.cpp:35
RenderSurface(Texture *parentTexture)
Construct with parent texture.
Definition: OGLRenderSurface.cpp:45
Vector3 spacing_
Vertex spacing.
Definition: CollisionShape.h:133
Lua script event listener.
Definition: LuaScriptEventListener.h:31
unsigned GetSize() const
Return size.
Definition: ConstantBuffer.h:59
void Initialize()
Initialize when screen mode initially set.
Definition: UI.cpp:938
float y_
Y coordinate.
Definition: Text.h:70
const void * indexData_
Index data pointer. Null if using non-indexed geometry.
Definition: OcclusionBuffer.h:74
~Renderer2D() override
Destruct.
void SetTextCopyable(bool enable)
Definition: LineEdit.cpp:532
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
Operating system thread.
Definition: Thread.h:42
void SetDrawObstacles(bool enable)
Definition: DynamicNavigationMesh.h:101
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
bool IsReplicated() const
Definition: Component.cpp:150
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
int layoutSpacing_
Layout spacing.
Definition: UIElement.h:832
void RecreateFixture()
Recreate fixture.
Definition: CollisionPolygon2D.cpp:111
void SetScale2D(const Vector2 &scale)
Definition: Node.h:163
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
bool skinned_
Skinned mode flag.
Definition: DecalSet.h:252
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 SetDrawDebug(bool enable)
Definition: Viewport.cpp:89
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
int GetLayer() const
Definition: Drawable2D.h:93
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
bool GetUsePhysicalValues() const
Definition: Light.h:267
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
bool GetFeature(Feature feature) const
Definition: IKEffector.cpp:241
LogicComponent(Context *context)
Construct.
Definition: LogicComponent.cpp:36
Definition: RaycastVehicle.h:33
float Hue() const
Return hue mapped to range [0, 1.0).
Definition: Color.cpp:127
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
virtual bool AddTile(const PODVector< unsigned char > &tileData)
Add tile to navigation mesh.
Definition: NavigationMesh.cpp:531
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
bool IsActive() const
Definition: RigidBody.cpp:698
float distance_
Distance from ray origin.
Definition: OctreeQuery.h:217
float GetTime() const
Definition: AnimationState.h:155
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
unsigned GetMaxAgents() const
Definition: CrowdManager.h:128
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
~List()
Destruct.
Definition: List.h:200
Vector2 axis_
Axis.
Definition: ConstraintPrismatic2D.h:109
WeakPtr< Graphics > graphics_
Graphics subsystem.
Definition: View.h:312
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
float timeStep_
Next frame timestep in seconds.
Definition: Engine.h:149
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
Vector2 gravity_
Gravity.
Definition: ParticleEffect2D.h:276
Texture * GetParentTexture() const
Definition: RenderSurface.h:116
ListNodeBase * next_
Next node.
Definition: ListBase.h:50
FillMode GetFillMode() const
Definition: Camera.h:165
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
unsigned parentIndex_
Parent bone index.
Definition: Skeleton.h:65
void SetTimeStamp(bool enable)
Definition: Log.cpp:128
void SetAngleAttenuation(float innerAngle, float outerAngle)
Set angle attenuation parameters.
Definition: SoundSource3D.cpp:112
RGBA color.
Definition: Color.h:33
~Mutex()
Destruct.
Definition: Mutex.cpp:81
void BeginBlock(const char *name)
Begin timing a profiling block.
Definition: Profiler.h:184
ConstIterator End() const
Return iterator to the end.
Definition: HashSet.h:509
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
void SetBrightness(float brightness)
Definition: Light.cpp:320
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
~Technique() override
Destruct.
unsigned GetIndexStart() const
Definition: Geometry.h:94
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
UIElement * parent_
Parent element.
Definition: UIElement.h:792
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
XMLFile(Context *context)
Construct.
Definition: XMLFile.cpp:66
Plane() noexcept
Construct a degenerate plane with zero normal and parameter.
Definition: Plane.h:36
Spatial info.
Definition: SpriterData2D.h:245
ConstantBuffer * GetOrCreateConstantBuffer(ShaderType type, unsigned index, unsigned size)
Definition: OGLGraphics.cpp:2336
void Restore()
Definition: OGLGraphics.cpp:2415
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
LockState
Vertex/index buffer lock state.
Definition: GraphicsDefs.h:125
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
float GetFov() const
Definition: Light.h:295
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
2D collision shape component.
Definition: CollisionShape2D.h:35
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
String GetTypeName() const
Definition: Variant.cpp:435
void SetVelocityIterations(int velocityIterations)
Definition: PhysicsWorld2D.cpp:420
const String & GetLoadingPercentStyle() const
Returns the loading percent style.
Definition: ProgressBar.h:85
Vector3 Abs() const
Return absolute vector.
Definition: Vector3.h:404
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
unsigned fbo_
Frame buffer handle.
Definition: OGLGraphicsImpl.h:87
unsigned GetMode() const
Definition: DebugHud.h:99
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
float minZ_
Minimum Z value of the visible scene.
Definition: View.h:356
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
char Back() const
Return last char, or 0 if empty.
Definition: Str.h:398
Scene * GetScene() const
Definition: Material.cpp:1227
@ UPDATE_ORIGINAL_POSE
Definition: IKSolver.h:105
unsigned GetNumPoints() const
Definition: TileMapDefs2D.cpp:190
float GetMass() const
Definition: RigidBody.h:190
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
IntVector2 Size() const
Definition: Rect.h:409
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
void ReleaseBody()
Release body.
Definition: RigidBody2D.cpp:395
static void FreeImageData(unsigned char *pixelData)
Free an image file's pixel data.
Definition: Image.cpp:2348
Text * GetStatsText() const
Definition: DebugHud.h:83
TraversalMode
Traversal mode for rendering.
Definition: UIElement.h:96
const T & Back() const
Return const last element.
Definition: Vector.h:524
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
ShaderType type_
Shader type.
Definition: ShaderVariation.h:50
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
String ToString() const
Return as string.
Definition: Vector4.cpp:37
bool GetSwapXY() const
Definition: StaticSprite2D.h:116
bool HasParameter(StringHash param) const
Return whether uses a shader parameter.
Definition: OGLShaderProgram.cpp:333
StringHash eventType_
Event type.
Definition: Connection.h:60
~SharedArrayPtr()
Destruct. Release the array reference.
Definition: ArrayPtr.h:61
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
Skybox(Context *context)
Construct.
Definition: Skybox.cpp:38
bool Load(const XMLElement &source)
Load resource from XMLElement synchronously. Return true if successful.
Definition: ParticleEffect.cpp:132
void SetAgentMaxClimb(float maxClimb)
Definition: NavigationMesh.cpp:262
bool IsTextCopyable() const
Definition: LineEdit.h:127
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 ObstacleChanged(Obstacle *obstacle)
Used by Obstacle class to update itself.
Definition: DynamicNavigationMesh.cpp:1114
void SetParticlesAttr(const VariantVector &value)
Set particles attribute.
Definition: ParticleEmitter.cpp:369
SharedPtr< Image > image_
Image.
Definition: Cursor.h:78
void SetDrawDistance(float distance)
Definition: Drawable.cpp:173
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
Tracking structure for event receivers.
Definition: Context.h:33
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
String ReadLine()
Read a text line.
Definition: Deserializer.cpp:460
pugi::xpath_query * GetXPathQuery() const
Return pugixml xpath_query.
Definition: XMLElement.h:406
CullMode cullMode_
Culling mode.
Definition: OcclusionBuffer.h:197
CustomVariantValueImpl< T > MakeCustomValue(const T &value)
Make custom variant value.
Definition: Variant.h:276
static const IntVector3 FORWARD
(0,0,1) vector.
Definition: Vector3.h:176
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
bool IsServer() const
Definition: NamedPipe.h:70
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
void Toggle()
Toggle visibility.
Definition: Console.cpp:187
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
float rowSpacing_
Row spacing.
Definition: Text.h:261
void SetRotation(const Quaternion &rotation)
Definition: CollisionShape.cpp:759
void SetAspectRatio(float aspectRatio)
Definition: Camera.cpp:157
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
Time(Context *context)
Construct.
Definition: Timer.cpp:48
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
bool NotNull() const
Check if the pointer is not null.
Definition: Ptr.h:205
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
Corner
UI element corners.
Definition: UIElement.h:55
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
float length_
The length of the SplinePath.
Definition: SplinePath.h:142
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
Vector3 end_
End position.
Definition: DebugRenderer.h:60
bool stereo_
Stereo flag.
Definition: SoundStream.h:76
void ReleaseModule()
Release the script module.
Definition: ScriptFile.cpp:955
void SetID(unsigned id)
Definition: Component.cpp:254
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
Timer useTimer_
Last used timer.
Definition: Resource.h:113
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
static const Rect ZERO
Zero-sized rect.
Definition: Rect.h:276
void SetCcdMotionThreshold(float threshold)
Definition: RigidBody.cpp:429
Vector3 vertices_[NUM_FRUSTUM_VERTICES]
Frustum vertices.
Definition: Frustum.h:184
float cellSize_
Cell size.
Definition: NavigationMesh.h:352
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
unsigned GetZoneMask() const
Definition: Drawable.h:224
void AssignBoneNodes()
Assign skeleton and animation bone node references as a postprocess. Called by ApplyAttributes.
Definition: AnimatedModel.cpp:979
float a_
Alpha value.
Definition: Color.h:264
bool IsOccluder() const
Definition: Drawable.h:236
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
Thread()
Construct. Does not start the thread yet.
Definition: Thread.cpp:63
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
bool Allocate(const BoundingBox &boundingBox, unsigned maxTiles) override
Allocate the navigation mesh without building any tiles. Bounding box is not padded....
Definition: DynamicNavigationMesh.cpp:238
void SetOffset(const IntVector2 &offset)
Definition: Sprite2D.cpp:128
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
unsigned GetFormat() const
Definition: View3D.h:65
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
AttributeHandle()=default
Construct default.
const String & GetPixelShader() const
Definition: Technique.h:139
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 GetForceAutoHint() const
Definition: UI.h:239
float GetValue() const
Definition: ScrollBar.cpp:211
bool ReadLatestDataUpdate(Deserializer &source)
Read and apply a network latest data update. Return true if attributes were changed.
Definition: Serializable.cpp:862
2D physics constraint component.
Definition: Constraint2D.h:36
IntRect scissorRect_
Scissor test rectangle.
Definition: Graphics.h:878
TextureFilterMode
Texture filtering mode.
Definition: GraphicsDefs.h:230
Iterator Begin()
Return iterator to the beginning.
Definition: Vector.h:491
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
void SetInternal(bool enable)
Definition: UIElement.cpp:1444
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 SetWidth(int width)
Definition: Text3D.cpp:313
void SetTargetWorldPosition(const Vector3 &position)
Definition: SmoothedTransform.cpp:128
float uiScale_
Current scale of UI.
Definition: UI.h:478
const float * Data() const
Return float data.
Definition: Matrix2.h:203
~VertexBuffer() override
Destruct.
Definition: VertexBuffer.cpp:47
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 GetNumDownloads() const
Definition: Connection.cpp:1126
unsigned GetNumInstances() const
Return the combined amount of instances.
Definition: Batch.cpp:891
void SetTouchEmulation(bool enable)
Definition: Input.cpp:1191
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
const Color & GetAmbientStartColor()
Definition: Zone.cpp:189
@ 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
Database(Context *context)
Construct.
Definition: Database.cpp:31
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
StringHash eventType_
Event type.
Definition: ValueAnimation.h:62
signed char * end_
Sound data end.
Definition: Sound.h:128
SharedArrayPtr< unsigned char > data_
Vertex data.
Definition: Model.h:76
SDL_Cursor * osCursor_
OS cursor.
Definition: Cursor.h:86
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
bool GetOcclusion() const
Definition: Material.h:275
const String & GetPath() const
Definition: FileSelector.h:130
Audio subsystem.
Definition: Audio.h:40
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
static const IntVector2 ONE
(1,1) vector.
Definition: Vector2.h:171
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
WeakPtr< Graphics > graphics_
Graphics subsystem.
Definition: UI.h:392
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
unsigned westID_
Node ID of west neighbor.
Definition: Terrain.h:368
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
float GetLifetime() const
Definition: RibbonTrail.h:176
2D friction constraint component.
Definition: ConstraintFriction2D.h:31
void OnSetEnabled() override
Handle enabled/disabled state change.
Definition: RigidBody.cpp:137
API-specific GPU object representation.
Definition: GPUObject.h:33
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
WeakPtr< Terrain > west_
West neighbor terrain.
Definition: Terrain.h:310
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
float Top() const
Definition: Rect.h:256
void AddWeight(float delta)
Modify blending weight.
Definition: AnimationState.cpp:245
bool subpixel_
Use subpixel glyph positioning?
Definition: FontFaceFreeType.h:65
virtual PODVector< unsigned char > GetTileData(const IntVector2 &tile) const
Return tile data.
Definition: NavigationMesh.cpp:524
void SetAspectRatio(float aspectRatio)
Definition: Light.cpp:340
float x_
X coordinate.
Definition: Vector2.h:376
const T * operator->() const
Point to the key.
Definition: HashSet.h:168
~LinkedList()
Destruct.
Definition: LinkedList.h:74
unsigned GetNumAttributes() const
Definition: Serializable.cpp:988
bool IsCompressed() const
Definition: OGLTexture.cpp:181
void DefineShape(const String &shape, Image *image, const IntRect &imageRect, const IntVector2 &hotSpot)
Define a shape.
Definition: Cursor.cpp:137
signed char * GetEnd() const
Return sound data end.
Definition: Sound.h:80
Color color_
Color.
Definition: ParticleEmitter2D.h:50
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
T * ptr_
Pointer to the object.
Definition: Ptr.h:536
Definition: Serializer.h:45
void SetUseGravity(bool enable)
Definition: RigidBody.cpp:439
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
const Vector2 & GetSize() const
Definition: CollisionBox2D.h:59
Variant BezierInterpolation(const Vector< Variant > &knots, float t) const
Perform Bezier interpolation on the spline.
Definition: Spline.cpp:143
bool IsInitialized() const
Definition: NavigationMesh.h:272
IntVector2 sumPos
Sum of all touch locations.
Definition: UI.h:278
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
~Terrain() override
Destruct.
int velocityIterations_
Velocity iterations.
Definition: PhysicsWorld2D.h:252
virtual void OnAttributeAnimationAdded()=0
Handle attribute animation added.
Camera * GetCullCamera() const
Definition: Viewport.cpp:127
void SetClipPlane(const Plane &plane)
Definition: Camera.cpp:240
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
void SetWorldRotation2D(float rotation)
Definition: Node.h:209
Matrix4(float v00, float v01, float v02, float v03, float v10, float v11, float v12, float v13, float v20, float v21, float v22, float v23, float v30, float v31, float v32, float v33) noexcept
Construct from values.
Definition: Matrix4.h:121
virtual ~Serializer()
Destruct.
void SetNearClip(float nearClip)
Definition: Camera.cpp:114
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
Rendering frame update parameters.
Definition: Drawable.h:68
JSONValue()
Construct null value.
Definition: JSONValue.h:78
void AdjustScreenMode(int &newWidth, int &newHeight, ScreenModeParams &params, 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
Console window with log history and command line prompt.
Definition: Console.h:42
PackageDownload()
Construct with defaults.
Definition: Connection.cpp:58
Vector3 position_
World-space position of the path point.
Definition: NavigationMesh.h:84
Vector3 origin_
Ray origin.
Definition: Ray.h:111
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
unsigned anisotropy_
Texture anisotropy level.
Definition: Texture.h:261
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
void Push(const T &value)
Add an element at the end.
Definition: Vector.h:840
float GetAgentMaxSlope() const
Definition: NavigationMesh.h:237
Node * Next() const
Return next node.
Definition: HashMap.h:97
@ FONT_HINT_LEVEL_LIGHT
Light hinting. FreeType will pixel-align fonts vertically, but not horizontally.
Definition: UI.h:42
void SetAgentHeight(float height)
Definition: NavigationMesh.cpp:248
~Model() override
Destruct.
unsigned GetNumBatches() const
Definition: Graphics.h:436
ResourceRef GetZoneTextureAttr() const
Return zone texture attribute.
Definition: Zone.cpp:224
void OnWorldBoundingBoxUpdate() override
Recalculate the world-space bounding box.
Definition: ParticleEmitter2D.cpp:194
void SetOtherBody(RigidBody *body)
Definition: Constraint.cpp:159
bool GetBringToFront() const
Definition: UIElement.h:566
bool GetExecuteConsoleCommands() const
Definition: FileSystem.h:87
float GetTemperature() const
Definition: Light.h:255
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
float Bottom() const
Definition: Rect.h:264
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 GetDrawShadows() const
Definition: Renderer.h:310
@ LT_TILE_LAYER
Tile layer.
Definition: TileMapDefs2D.h:81
bool GetUseScreenKeyboard() const
Definition: UI.h:231
bool WriteMatrix3(const Matrix3 &value)
Write a Matrix3.
Definition: Serializer.cpp:154
static const IntVector2 RIGHT
(1,0) vector.
Definition: Vector2.h:165
SharedArrayPtr< signed char > data_
Sound data.
Definition: Sound.h:124
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
Orientation GetOrientation() const
Definition: Slider.h:84
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
unsigned rows_
Number of rows.
Definition: Image.h:77
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
Button * GetBackButton() const
Definition: ScrollBar.h:99
void SetOccludee(bool enable)
Definition: Terrain.cpp:500
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
float GetTextureEdgeOffset() const
Definition: Sprite2D.h:87
bool connectPending_
Connection pending flag.
Definition: Connection.h:354
ShapeType GetShapeType() const
Definition: CollisionShape.h:229
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
Vector< Bone > bones_
Bones.
Definition: Skeleton.h:145
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
void SetNumViewports(unsigned num)
Definition: Renderer.cpp:280
Hash map template class.
Definition: HashMap.h:37
SharedPtr< SpriteSheet2D > spriteSheet_
Sprite sheet.
Definition: AnimationSet2D.h:119
float b_
Blue value.
Definition: Color.h:262
void SetRepeatDelay(float delay)
Definition: Button.cpp:183
Shared pointer template class with intrusive reference counting.
Definition: Ptr.h:36
Scene(Context *context)
Construct.
Definition: Scene.cpp:58
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 SetAutoLocalizable(bool enable)
Definition: Text.cpp:338
unsigned GetNumPasses() const
Definition: Technique.cpp:456
void AddTextureFrame(const TextureFrame &textureFrame)
Add a texture frame sorted in the correct position based on time.
Definition: ParticleEffect.cpp:691
void Pop()
Remove the last element.
Definition: Vector.h:278
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
Font glyph description.
Definition: FontFace.h:37
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
Image(Context *context)
Construct empty.
Definition: Image.cpp:254
void RemoveAgentFromCrowd()
Remove agent from crowd.
Definition: CrowdAgent.cpp:317
Variant(const char *value)
Construct from a C string.
Definition: Variant.h:416
Base class for object factories.
Definition: Object.h:207
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
bool Empty() const
Return whether list is empty.
Definition: List.h:420
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
bool trigger_
Trigger flag.
Definition: RigidBody.h:355
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
~Text3D() override
Destruct.
int GetNumIterations() const
Definition: PhysicsWorld.cpp:708
float timeStep_
Time elapsed since last frame.
Definition: Drawable.h:73
bool GetBringToBack() const
Definition: UIElement.h:570
int GetNumLanguages() const
Definition: Localization.h:44
void ValidateShadowBias()
Validate shadow bias.
Definition: Light.h:399
unsigned basePassIndex_
Index of the opaque forward base pass.
Definition: View.h:423
float time_
Trigger time.
Definition: Animation.h:114
const String & GetAnimation() const
Definition: AnimatedSprite2D.h:95
MouseMode mouseMode_
Determines the mode of mouse behaviour.
Definition: Input.h:458
void SetMaxWidth(int width)
Definition: UIElement.cpp:637
void SetSpacing(const Vector3 &spacing)
Definition: Terrain.cpp:197
bool touchEmulation_
Touch emulation mode flag.
Definition: Input.h:466
IntRect rightRect_
Right button image rect.
Definition: ScrollBar.h:128
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
Text * messageText_
Message text element.
Definition: MessageBox.h:76
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
float GetCellHeight() const
Definition: NavigationMesh.h:221
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
bool GetFeature(Feature feature) const
Definition: IKSolver.cpp:149
void UpdateMainlineKey()
Update mainline key.
Definition: SpriterInstance2D.cpp:238
void UpdateBuffers()
Rewrite decal vertex and index buffers.
Definition: DecalSet.cpp:1011
unsigned short port_
Remote endpoint port.
Definition: Connection.h:344
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
bool playing_
Playing flag.
Definition: Audio.h:153
Database subsystem. Manage database connections.
Definition: Database.h:43
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
~CustomGeometry() override
Destruct.
void DefineOrtho(float orthoSize, float aspectRatio, float zoom, float nearZ, float farZ, const Matrix3x4 &transform=Matrix3x4::IDENTITY)
Define with orthographic projection parameters and a transform matrix.
Definition: Frustum.cpp:136
const T & Front() const
Return const first element.
Definition: Vector.h:1134
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
unsigned GetCursorPosition() const
Definition: LineEdit.h:103
void Define(const Vector3 &min, const Vector3 &max)
Define from minimum and maximum vectors.
Definition: BoundingBox.h:158
unsigned numSplits_
Shadow map split count.
Definition: View.h:76
void SetLodBias(float bias)
Definition: Camera.cpp:171
Skeleton & GetSkeleton()
Definition: AnimatedModel.h:107
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
IntVector2 GetCursorPosition() const
Definition: UI.cpp:769
unsigned frameNumber_
Frame number.
Definition: Timer.h:127
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
Font face description.
Definition: FontFace.h:64
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
~Obstacle() override
Destruct.
Definition: Obstacle.cpp:48
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
float regionMergeSize_
Region merge size.
Definition: NavigationMesh.h:366
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
UIElement * titleLayout
Title layout.
Definition: FileSelector.h:171
float GetSpeed() const
Definition: SplinePath.h:84
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
int GetMouseMoveWheel() const
Definition: Input.h:286
short y_
Y position in texture.
Definition: FontFace.h:42
bool LoadByteCode(const String &binaryShaderName)
Load bytecode from a file. Return true if successful.
Definition: OGLShaderVariation.cpp:199
~Skeleton()
Destruct.
void HandleRenderUpdate(StringHash eventType, VariantMap &eventData)
Handle render update in case of headless execution.
Definition: Octree.cpp:578
void Detach()
Detach from parent.
Definition: UIElement.cpp:2222
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
Hash set node const iterator.
Definition: HashSet.h:113
int systemCursor_
System cursor index.
Definition: Cursor.h:90
Hash set template class.
Definition: HashSet.h:35
Orientation GetOrientation() const
Definition: ScrollBar.cpp:201
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
CullMode GetCullMode() const
Definition: Material.h:244
BlendMode GetBlendMode() const
Definition: StaticSprite2D.h:104
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
SharedArrayPtr()
Construct a null shared array pointer.
Definition: ArrayPtr.h:38
void SetInstanceDefault(bool enable)
Set instance-level default flag.
Definition: Serializable.h:90
void SetFontOversampling(int oversampling)
Definition: UI.cpp:728
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
~Sprite2D() override
Destruct.
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
float GetActiveTime() const
Definition: ParticleEffect.h:319
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
Hierarchical performance profiler subsystem.
Definition: Profiler.h:173
IntVector3 coordinateSystem_
Coordinate system.
Definition: RaycastVehicle.h:199
void SetModelAttr(const ResourceRef &value)
Set model attribute.
Definition: StaticModel.cpp:373
Scroll bar UI element with forward and back buttons.
Definition: ScrollBar.h:34
unsigned vertexCount_
Number of vertices.
Definition: CollisionShape.h:117
Vector2 size_
Original billboard size.
Definition: ParticleEmitter.h:38
unsigned char GetRenderOrder() const
Definition: Material.h:268
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
String name_
Morph name.
Definition: Model.h:57
float minZ_
Scene minimum Z value.
Definition: View.h:102
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
int GetLanguageIndex() const
Definition: Localization.h:48
bool isServer_
Server mode flag.
Definition: NamedPipe.h:76
Doubly-linked list base class.
Definition: ListBase.h:93
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
const Color & GetAmbientColor() const
Definition: Zone.h:91
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 SetColor(const Color &color)
Definition: Light.cpp:284
SharedPtr< Sprite2D > sprite_
Sprite.
Definition: TmxFile2D.h:153
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
NavmeshPartitionType GetPartitionType() const
Definition: NavigationMesh.h:292
void SetShadowNearFarRatio(float nearFarRatio)
Definition: Light.cpp:347
T & operator*() const
Dereference the array.
Definition: ArrayPtr.h:106
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
bool editable_
Value editable flag.
Definition: UIElement.h:816
unsigned dataSize_
Total data size in bytes.
Definition: Image.h:73
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
WeakPtr< Terrain > south_
South neighbor terrain.
Definition: Terrain.h:308
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
2D circle collision component.
Definition: CollisionCircle2D.h:31
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
Definition: NavigationMesh.h:81
AllocatorNode * next_
Next free node.
Definition: Allocator.h:57
void SetCursorMovable(bool enable)
Definition: LineEdit.cpp:522
int GetCurrentMonitor() const
Definition: Graphics.cpp:320
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
2D texture resource.
Definition: Texture2D.h:36
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
HashNodeBase * tail_
List tail node pointer.
Definition: HashBase.h:151
float Length() const
Return length.
Definition: Vector3.h:156
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
void SetName(const String &name)
Definition: UIElement.cpp:513
bool retryCreation_
Shape creation retry flag if attributes initially set without scene.
Definition: CollisionShape.h:333
bool drawShadows_
Draw shadows flag.
Definition: Renderer.h:659
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
float GetHeight() const
Definition: CrowdAgent.h:184
HashSet(HashSet< T > &&set) noexcept
Move-construct from another hash set.
Definition: HashSet.h:192
void SetCullMode(CullMode mode)
Definition: Technique.cpp:104
void SetDefaultTechnique(Technique *technique)
Definition: Renderer.cpp:306
KeyValue(const T &first, const U &second)
Construct with key and value.
Definition: HashMap.h:54
bool initialized_
Initialized flag.
Definition: Input.h:478
VariantMap & GetIdentity()
Return client identity.
Definition: Connection.h:181
int GetCategoryBits() const
Definition: CollisionShape2D.h:83
int numTilesZ_
Number of tiles in Z direction.
Definition: NavigationMesh.h:380
Obstacle for dynamic navigation mesh.
Definition: Obstacle.h:34
Definition: OctreeQuery.h:140
const PODVector< Light * > & GetVertexLights() const
Return per-vertex lights.
Definition: Drawable.h:304
unsigned viewMask_
View mask.
Definition: Drawable.h:379
unsigned GetVertexCount() const
Definition: CollisionChain2D.h:61
String ToString() const
Return as string.
Definition: Vector3.cpp:52
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
Intersection
Intersection test result.
Definition: MathDefs.h:62
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
unsigned GetNumFiles() const
Definition: PackageFile.h:73
const String & GetCompilerOutput() const
Return compile error/warning string.
Definition: ShaderVariation.h:132
void Release()
Release the mutex.
Definition: Mutex.cpp:99
WeakPtr< UIElement > doubleClickElement_
UI element last clicked for tracking double clicks.
Definition: UI.h:460
Hardware index buffer.
Definition: IndexBuffer.h:34
Text * GetMemoryText() const
Definition: DebugHud.h:95
bool EnterFile()
Enter a directory or confirm a file. Return true if a directory entered.
Definition: FileSelector.cpp:347
Texture * GetShapeTexture() const
Definition: Light.h:343
bool IsNaN() const
Return whether any component is NaN.
Definition: Vector3.h:419
void * surface_
Definition: RenderSurface.h:149
Matrix3x4 transforms_
Transform matrices for position and orientation.
Definition: RibbonTrail.h:239
float maxSpeed_
Agent's max Velocity.
Definition: CrowdAgent.h:249
unsigned drawCount_
Index or vertex count.
Definition: OcclusionBuffer.h:80
Base class for GPU resources.
Definition: GPUObject.h:42
bool discardLock_
Discard lock flag. Used by OpenGL only.
Definition: VertexBuffer.h:179
int level_
Logging level.
Definition: Log.h:132
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
ScrollBar(Context *context)
Construct.
Definition: ScrollBar.cpp:42
Node * node_
Scene node.
Definition: OctreeQuery.h:176
LightPSVariation
Light pixel shader variations.
Definition: Renderer.h:89
Vector3 GetRandomDirection() const
Return random direction.
Definition: ParticleEffect.cpp:790
void SetInterpolationMode(InterpolationMode interpolationMode)
Definition: Spline.h:92
bool SetData(unsigned layer, unsigned level, int x, int y, int width, int height, const void *data)
Set data either partially or fully on a layer's mip level. Return true if successful.
Definition: OGLTexture2DArray.cpp:103
bool updateInvisible_
Update animation when invisible flag.
Definition: AnimatedModel.h:253
const String & GetName() const
Return name.
Definition: TmxFile2D.h:51
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
FocusMode
UI element focus mode.
Definition: UIElement.h:72
bool IsFixedScreenSize() const
Definition: ParticleEffect.h:287
Audio(Context *context)
Construct.
Definition: Audio.cpp:55
ScriptInstanceMethod
Inbuilt scripted component methods.
Definition: ScriptInstance.h:41
UIElement * element_
Element this batch represents.
Definition: UIBatch.h:77
Vector4 ToVector4() const
Definition: Color.h:167
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
Variant(const Color &value)
Construct from a color.
Definition: Variant.h:404
unsigned shaderParameterHash_
Shader parameter hash value.
Definition: Material.h:338
T Sign(T value)
Definition: MathDefs.h:102
String vertexShaderDefineExcludes_
Vertex shader define excludes.
Definition: Technique.h:200
void EndDumpShaders()
End dumping shader variations names.
Definition: Graphics.cpp:366
TileMapLayerType2D type_
Layer type.
Definition: TmxFile2D.h:77
Template implementation of the object factory.
Definition: Object.h:240
void SetLength(float length)
Definition: Animation.cpp:295
Vector< SharedPtr< VertexBuffer > > morphVertexBuffers_
Morph vertex buffers.
Definition: AnimatedModel.h:225
float GetMotorSpeed() const
Definition: ConstraintWheel2D.h:83
IntRect viewport_
Viewport coordinates.
Definition: Graphics.h:850
float GetFadeDistance() const
Definition: Light.h:303
const Vector2 & GetHotSpot() const
Definition: Sprite2D.h:79
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
Node * ReserveNode()
Reserve a node.
Definition: List.h:474
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
Skeleton()
Construct an empty skeleton.
Definition: Skeleton.cpp:33
void ReleaseSDL()
Indicate that you are done with using SDL. Must be called after using RequireSDL().
Definition: Context.cpp:283
bool GetShowPercentText() const
Definition: ProgressBar.h:93
SharedPtr< UIElement > popup_
Popup element.
Definition: Menu.h:98
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
void SetPadding(const Vector3 &padding)
Definition: NavigationMesh.cpp:318
void End()
End timing.
Definition: Profiler.h:82
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
unsigned blockSize_
Block size in bytes.
Definition: Image.h:71
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
Matrix3x4 ReflectionMatrix() const
Definition: Plane.cpp:50
@ USE_FIXEDPOSTUPDATE
Bitmask for using the physics post-update event.
Definition: LogicComponent.h:44
~LuaFile() override
Destruct.
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
const String & GetFilter() const
Definition: FileSelector.cpp:266
bool GetScissorTest() const
Return whether scissor test is enabled.
Definition: Graphics.h:580
3D texture resource.
Definition: Texture3D.h:34
String() noexcept
Construct empty.
Definition: Str.h:53
Definition: Attribute.h:121
void SetBodyType(BodyType2D type)
Definition: RigidBody2D.cpp:105
unsigned value_
Hash value.
Definition: StringHash.h:113
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
int CeilToInt(T x)
Definition: MathDefs.h:258
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
bool GetAutoLocalizable() const
Definition: Text.h:167
void SetFogStart(float start)
Definition: Zone.cpp:118
float GetLodDistance() const
Definition: Geometry.h:110
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
String textInput_
String for text input.
Definition: Input.h:428
Vector4 tangent_
Tangent.
Definition: DecalSet.h:68
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 ReleaseNavigationMesh() override
Release the navigation mesh, query, and tile cache.
Definition: DynamicNavigationMesh.cpp:1057
CullMode cullMode_
Hardware culling mode.
Definition: Graphics.h:862
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
bool GetHierarchyMode() const
Definition: ListView.h:171
bool directory_
Directory flag.
Definition: FileSelector.h:47
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
void SetCFM(float cfm)
Definition: Constraint.cpp:314
unsigned drawBuffers_
Draw buffer bits.
Definition: OGLGraphicsImpl.h:95
String & Append(const String &str)
Append a string.
Definition: Str.cpp:308
Scene render pass info.
Definition: View.h:80
void SetRadius(float radius)
Definition: Light.cpp:296
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 GetBaseBatches()
Get unlit batches.
Definition: View.cpp:1192
int height_
Texture height.
Definition: Texture.h:251
void OnSetEnabled() override
Handle enabled/disabled state change.
Definition: CollisionShape2D.cpp:65
void ValidatePosition()
Validate window position.
Definition: Window.cpp:403
bool GetReuseShadowMaps() const
Definition: Renderer.h:350
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
virtual void OnHidePopup()
React to the popup being hidden.
Definition: Menu.h:58
unsigned Seek(unsigned position) override
Set position from the beginning of the stream. Not supported.
Definition: HttpRequest.cpp:270
void SetPosition(const Vector3 &position)
Definition: Node.cpp:442
int GetLevelHeight(unsigned level) const
Definition: Texture.cpp:136
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
float quantize_
Focus quantization.
Definition: Light.h:146
float GetMapHeight() const
Definition: TileMapDefs2D.cpp:40
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 opacity_
Opacity.
Definition: UIElement.h:907
float slopeScaledBias_
Slope scaled bias.
Definition: Light.h:75
char Front() const
Return first char, or 0 if empty.
Definition: Str.h:395
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 HandleSceneSubsystemUpdate(StringHash eventType, VariantMap &eventData)
Trigger the tile cache to make updates to the nav mesh if necessary.
Definition: DynamicNavigationMesh.cpp:1153
Vector2 size_
Size.
Definition: CollisionBox2D.h:78
Zone(Context *context)
Construct.
Definition: Zone.cpp:50
Node * Next() const
Return next node.
Definition: HashSet.h:54
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
String(const String &str)
Construct from another string.
Definition: Str.h:61
bool flipX_
Flip X.
Definition: StaticSprite2D.h:176
TextureUnit GetTextureUnit(const String &name)
Return texture unit index by name.
Definition: OGLGraphics.cpp:2157
float orthoSize_
Orthographic view size.
Definition: Camera.h:296
void SetMeshName(const String &newName)
Set the name of this navigation mesh.
Definition: NavigationMesh.cpp:222
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
Material(Context *context)
Construct.
Definition: Material.cpp:198
AttributeModeFlags mode_
Attribute mode: whether to use for serialization, network replication, or both.
Definition: Attribute.h:112
float GetRotation2D() const
Definition: Node.h:417
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
bool IsKinematic() const
Definition: RigidBody.h:260
const KeyValue & Back() const
Return last pair.
Definition: HashMap.h:618
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
void SetRowSpacing(float spacing)
Definition: Text3D.cpp:261
Bone * GetStartBone() const
Definition: AnimationState.cpp:384
Matrix2(float v00, float v01, float v10, float v11) noexcept
Construct from values.
Definition: Matrix2.h:47
String fileName_
File name.
Definition: PackageFile.h:98
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
HorizontalAlignment textAlignment_
Row alignment.
Definition: Text.h:259
CollisionBox2D(Context *context)
Construct.
Definition: CollisionBox2D.cpp:37
void OnSetEnabled() override
Handle enabled/disabled state change.
Definition: Terrain.cpp:172
float time_
Keyframe time.
Definition: Animation.h:56
unsigned indexCount_
Index count.
Definition: Model.h:104
bool initialized_
Initialized flag.
Definition: Engine.h:167
void ValidateShadowFocus()
Validate shadow focus.
Definition: Light.h:395
IntRect imageRect_
Image rectangle.
Definition: BorderImage.h:137
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
~SpriteSheet2D() override
Destruct.
float GetSpeed() const
Return speed.
Definition: ParticleEffect2D.h:143
float Left() const
Definition: Rect.h:252
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
List const iterator.
Definition: List.h:107
String GetNumberTypeName() const
Definition: JSONValue.cpp:181
void SetFinishParticleSize(float finishParticleSize)
Set finish particle size.
Definition: ParticleEffect2D.cpp:399
Package file receive transfer.
Definition: Connection.h:68
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
static const IntVector3 RIGHT
(1,0,0) vector.
Definition: Vector3.h:170
IntVector2(int x, int y) noexcept
Construct from coordinates.
Definition: Vector2.h:43
void SetCursor(Cursor *cursor)
Definition: UI.cpp:154
void SetDepthWrite(bool enable)
Definition: Technique.cpp:119
T Sin(T angle)
Definition: MathDefs.h:150
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
String GetQuery() const
Definition: XMLElement.h:403
Quaternion GetRotation() const
Definition: RigidBody.cpp:613
b2Joint * joint_
Box2D joint.
Definition: Constraint2D.h:101
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
float endTime_
End time.
Definition: ValueAnimation.h:169
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
SharedPtr< Zone > defaultZone_
Default zone.
Definition: Renderer.h:549
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 minView_
Minimum view size.
Definition: Light.h:148
@ JSONNT_UINT
Unsigned integer.
Definition: JSONValue.h:57
float GetWheelSkidInfo(int wheel) const
Sliding factor 0 <= x <= 1.
Definition: RaycastVehicle.cpp:671
VectorBuffer()
Construct an empty buffer.
const unsigned * GetConstantBufferSizes() const
Return constant buffer data sizes.
Definition: ShaderVariation.h:135
@ WEIGHT_NLERP
Definition: IKEffector.h:54
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
const String & GetFileName() const
Definition: Scene.h:204
unsigned GetIndexCount() const
Definition: IndexBuffer.h:78
void SetClipboardText(const String &text)
Definition: UI.cpp:632
Data structured used to hold data of UI elements that are rendered to texture.
Definition: UI.h:289
Color endColor_
Color for end of trails.
Definition: RibbonTrail.h:255
float velocityMin_
Particle velocity minimum.
Definition: ParticleEffect.h:471
Sound resource.
Definition: Sound.h:34
String entity_
Entity name.
Definition: AnimatedSprite2D.h:140
static const Matrix3x4 ZERO
Zero matrix.
Definition: Matrix3x4.h:709
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
Timer profilerTimer_
Profiler timer.
Definition: DebugHud.h:139
unsigned char * GetData() const
Return pixel data.
Definition: Image.h:178
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
Matrix3 Inverse() const
Return inverse.
Definition: Matrix3.cpp:41
unsigned vertexSize_
Vertex size.
Definition: VertexBuffer.h:159
float minRadiusVariance_
Min radius variance.
Definition: ParticleEffect2D.h:314
FillMode GetFillMode() const
Definition: Material.h:252
static const Variant & GetParameter(const VariantMap &parameters, const String &parameter, const Variant &defaultValue=Variant::EMPTY)
Get an engine startup parameter, with default value if missing.
Definition: Engine.cpp:968
ListNodeBase * tail_
Tail node pointer.
Definition: ListBase.h:118
bool GetAutoDisableChildren() const
Definition: ScrollView.h:152
bool InitializeQuery()
Ensure that the navigation mesh query is initialized. Return true if successful.
Definition: NavigationMesh.cpp:1545
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
unsigned Length() const
Definition: Str.h:432
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
float x_
X coordinate.
Definition: Text.h:68
~JSONValue()
Destruct.
Definition: JSONValue.h:143
void OnWorldBoundingBoxUpdate() override
Recalculate the world-space bounding box.
Definition: Text3D.cpp:516
bool GetSortChildren() const
Definition: UIElement.h:578
Attribute animation instance.
Definition: Animatable.h:38
float zoom_
Zoom.
Definition: Camera.h:300
void SetScissorTest(bool enable, const Rect &rect=Rect::FULL, bool borderInclusive=true)
Set scissor test.
Definition: OGLGraphics.cpp:1868
bool IsDataLost() const
Definition: GPUObject.h:68
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
unsigned GetAreaID() const
Definition: OffMeshConnection.h:82
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
~File() override
Destruct. Close the file if open.
Definition: File.cpp:121
UIElement * GetFocusElement() const
Definition: UI.h:180
unsigned GetTarget() const
Return surface's OpenGL target.
Definition: RenderSurface.h:128
void SetPerVertex(bool enable)
Definition: Light.cpp:278
Vector< String > resourceDirs_
Resource load directories.
Definition: ResourceCache.h:252
unsigned lockCount_
Lock number of vertices.
Definition: VertexBuffer.h:171
WeakPtr(T *ptr) noexcept
Construct from a raw pointer.
Definition: Ptr.h:314
float GetRange() const
Definition: ScrollBar.cpp:206
PODVector< SpatialTimelineKey * > timelineKeys_
Current timeline keys.
Definition: SpriterInstance2D.h:109
unsigned GetMaxTriangles() const
Return maximum number of triangles.
Definition: OcclusionBuffer.h:144
unsigned GetNumIndices() const
Definition: DecalSet.h:163
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
bool occludee_
Occludee flag.
Definition: Terrain.h:346
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
Instanced draw call grouping key.
Definition: Batch.h:178
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
unsigned GetNumItems() const
Definition: ListView.cpp:828
void RecreateJoint()
Recreate joint.
Definition: Constraint2D.cpp:180
IntRect scissor_
Scissor rectangle.
Definition: UIBatch.h:81
float clearDepth_
Clear depth. Affects clear command only.
Definition: RenderPath.h:182
void SetDoubleClickInterval(float interval)
Definition: UI.cpp:639
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
Menu UI element that displays a popup list view.
Definition: DropDownList.h:33
bool IsScaled() const
Definition: BillboardSet.h:134
VertexBuffer * GetInstancingBuffer() const
Return the instancing vertex buffer.
Definition: Renderer.h:448
b2PolygonShape boxShape_
Box shape.
Definition: CollisionBox2D.h:76
static const Matrix3 ZERO
Zero matrix.
Definition: Matrix3.h:332
int lastFontSize_
Last used text size.
Definition: LineEdit.h:156
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
float Right() const
Definition: Rect.h:260
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
int GetHeight() const
Definition: Graphics.h:365
unsigned viewMask_
View mask.
Definition: Camera.h:304
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
const String & GetClipboardText() const
Definition: UI.cpp:920
void GotoPrev()
Go to the previous node.
Definition: HashBase.h:86
int unusedStreamSize_
Unused stream bytes from previous frame.
Definition: SoundSource.h:207
PODVector< Vector3 > clippedVertices_
Internal vector for clipped vertices.
Definition: Polyhedron.h:116
Color colors_[MAX_UIELEMENT_CORNERS]
Colors.
Definition: UIElement.h:796
const String & GetPixelShaderDefineExcludes() const
Definition: Technique.h:155
void SetScaled(bool enable)
Definition: ParticleEffect.cpp:460
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
float GetValue() const
Definition: Slider.h:92
Animatable(Context *context)
Construct.
Definition: Animatable.cpp:63
Vector2 Max() const
Return right-bottom corner position.
Definition: Rect.h:248
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
Custom geometry component.
Definition: CustomGeometry.h:49
static void RegisterObject(Context *context)
Register object factory.
Definition: OffMeshConnection.cpp:54
void SetBlendMode(BlendMode mode)
Definition: Technique.cpp:99
void SetLayoutSpacing(int spacing)
Definition: UIElement.cpp:1060
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 SetSorted(bool enable)
Definition: RibbonTrail.cpp:836
void GetBatches(PODVector< UIBatch > &batches, PODVector< float > &vertexData, const IntRect &currentScissor) 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
Condition()
Construct.
Definition: Condition.cpp:62
bool ignoreTransformChanges_
Internal flag to ignore transform changes because it came from us, used in OnCrowdAgentReposition().
Definition: CrowdAgent.h:269
int GetMinInstances() const
Definition: Renderer.h:366
void SetBonesEnabledAttr(const VariantVector &value)
Set bones' animation enabled attribute.
Definition: AnimatedModel.cpp:806
const String & GetText() const
Definition: Text.h:151
Helper class used for StringHash reversing.
Definition: StringHashRegister.h:35
String typeName_
Type name.
Definition: Object.h:65
bool IsSorted() const
Definition: RibbonTrail.h:172
float GetAngle() const
Definition: CollisionBox2D.h:67
void ProcessUnknownMessage(int msgID, MemoryBuffer &msg)
Process unknown message. All unknown messages are forwarded as an events.
Definition: Connection.cpp:1644
RigidBody2D * GetOtherBody() const
Definition: Constraint2D.h:72
static void Sleep(unsigned mSec)
Sleep for a number of milliseconds.
Definition: Timer.cpp:180
T & operator[](int index)
Subscript the object if applicable.
Definition: Ptr.h:145
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
float GetRegionMergeSize() const
Definition: NavigationMesh.h:245
AbstractFile()
Construct.
Definition: AbstractFile.h:37
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
bool HasMetadata() const
Definition: Resource.cpp:158
void VerifyChildAlignment()
Verify that child elements have proper alignment for layout mode.
Definition: UIElement.cpp:2228
void SetMaxFps(int fps)
Definition: Engine.cpp:568
PODVector< UIBatch > uiBatches_
Text UI batches.
Definition: Text3D.h:245
Debug geometry rendering component. Should be added only to the root scene node.
Definition: DebugRenderer.h:91
T & Front()
Return first element.
Definition: Vector.h:1131
void AllocateBuckets(unsigned size, unsigned numBuckets)
Allocate bucket head pointers + room for size and bucket count variables.
Definition: HashBase.cpp:30
Context()
Construct.
Definition: Context.cpp:123
T Mod(T x, T y)
Return remainder of X/Y for float values.
Definition: MathDefs.h:190
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
bool IsDesktop() const
Definition: Technique.h:131
const Vector3 & GetPadding() const
Definition: NavigationMesh.h:265
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
PListValue()
Construct.
Definition: PListFile.cpp:42
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
String text_
UTF-8 encoded text.
Definition: Text.h:257
bool GetDisableCollision() const
Definition: Constraint.h:170
Hash map key-value pair with const key.
Definition: HashMap.h:44
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
~XPathQuery()
Destruct.
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
bool IsEmitting() const
Definition: ParticleEmitter.h:105
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
Vector2 GetCharSize(unsigned index)
Definition: Text3D.cpp:493
unsigned GetNumActiveOccluders() const
Return number of occluders that were actually rendered. Occluders may be rejected if running out of t...
Definition: View.h:178
unsigned ToHash() const
Return hash value for HashSet & HashMap.
Definition: Ptr.h:220
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
unsigned GetNumChars() const
Definition: Text3D.cpp:478
bool SetBool(const String &name, bool value)
Set a bool attribute.
Definition: XMLElement.cpp:320
bool GetLineAntiAlias() const
Definition: DebugRenderer.h:157
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 GotoNext()
Go to the next node.
Definition: ListBase.h:75
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
unsigned GetNumGeometries() const
Definition: Model.h:171
Lua file.
Definition: LuaFile.h:34
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 SetRecursive(bool enable)
Definition: Navigable.cpp:51
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
void Resize(unsigned size)
Set size.
Definition: VectorBuffer.cpp:130
PODVector< Vector3 > vertices_
Vertices from geometries.
Definition: NavBuildData.h:64
const String & GetTextureName(TextureUnit unit) const
Definition: RenderPath.cpp:288
virtual void OnShowPopup()
React to the popup being shown.
Definition: Menu.cpp:123
bool temporary_
Temporary flag.
Definition: Serializable.h:154
HashMap< StringHash, SharedPtr< Resource > > resources_
Resources.
Definition: ResourceCache.h:58
void SetDampingRatio(float dampingRatio)
Definition: ConstraintWheel2D.cpp:144
void SetLightMask(unsigned mask)
Definition: Terrain.cpp:428
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
String tag_
Tag name.
Definition: RenderPath.h:76
const SDL_GLContext & GetGLContext()
Return the GL Context.
Definition: OGLGraphicsImpl.h:108
bool sortOrderDirty_
Child priority sorting dirty flag.
Definition: UIElement.h:917
void Draw(Graphics *graphics)
Draw.
Definition: Geometry.cpp:176
RigidBody * GetOwnBody() const
Definition: Constraint.h:126
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 IsNegative() const
Definition: Light.h:357
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
void RunFrame()
Run one frame.
Definition: Engine.cpp:471
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
unsigned GetMask() const
Definition: OffMeshConnection.h:78
float GetShadowDistance() const
Definition: Drawable.h:204
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
bool specular_
Specular lighting flag.
Definition: Material.h:346
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 tiled_
Tiled flag.
Definition: BorderImage.h:149
Material * GetMaterial() const
Definition: BillboardSet.cpp:352
bool GetEnableAnchor() const
Definition: UIElement.h:522
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
SharedPtr< Material > material_
Material.
Definition: Drawable.h:98
T Floor(T x)
Definition: MathDefs.h:210
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
Vector2 anchor_
Anchor.
Definition: ConstraintWheel2D.h:100
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
@ AUTO_SOLVE
Definition: IKSolver.h:165
void SetBlendMode(BlendMode mode)
Definition: BorderImage.cpp:133
Variant(VariantType type, const String &value)
Construct from type and value.
Definition: Variant.h:531
NavigationPathPointFlag
A flag representing the type of path point- none, the start of a path segment, the end of one,...
Definition: NavigationMesh.h:73
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
void WriteTiles(Serializer &dest, int x, int z) const
Write tiles data.
Definition: DynamicNavigationMesh.cpp:754
Node * Tail() const
Return the tail node.
Definition: HashSet.h:522
static Sprite2D * LoadFromResourceRef(Object *object, const ResourceRef &value)
Load sprite from ResourceRef.
Definition: Sprite2D.cpp:203
bool GetAutoAspectRatio() const
Definition: Camera.h:173
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
bool fboDirty_
Need FBO commit flag.
Definition: OGLGraphicsImpl.h:156
Animation trigger point.
Definition: Animation.h:105
bool flipY_
Flip Y.
Definition: StaticSprite2D.h:178
void RemoveInstanceDefault()
Remove instance's default values if they are set previously.
Definition: Serializable.cpp:670
void ApplySceneToOriginalPose()
Definition: IKSolver.cpp:453
void SetOpacity(float opacity)
Definition: Text3D.cpp:343
bool operator==(const ListIteratorBase &rhs) const
Test for equality with another iterator.
Definition: ListBase.h:69
static const Matrix4 ZERO
Zero matrix.
Definition: Matrix4.h:733
void SetNumLevels(unsigned levels)
Set number of requested mip levels. Needs to be called before setting size.
Definition: Texture.cpp:66
Scene * GetScene() const
Definition: Node.h:386
bool GetSRGB() const
Definition: Graphics.h:409
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
bool HasFocus()
Definition: Input.h:345
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
float beginTime_
Begin time.
Definition: ValueAnimation.h:167
Matrix3x4(const Vector3 &translation, const Quaternion &rotation, const Vector3 &scale) noexcept
Construct from translation, rotation and nonuniform scale.
Definition: Matrix3x4.h:164
Material * GetMaterial() const
Definition: DecalSet.cpp:513
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
bool dirty_
Cleanup required flag.
Definition: Context.h:62
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
bool IsElementEventSender() const
Definition: UIElement.h:756
void Close()
Close the file.
Definition: File.cpp:384
void SetStepFactor(float factor)
Definition: ScrollBar.cpp:186
void SetZoom(float zoom)
Definition: Camera.cpp:163
void SetWestNeighbor(Terrain *west)
Definition: Terrain.cpp:302
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
Vector3 GetLinearVelocity() const
Definition: RigidBody.cpp:618
void SetMaterialsAttr(const ResourceRefList &value)
Set materials attribute.
Definition: StaticModel.cpp:379
void GetDrawables(OctreeQuery &query) const
Definition: Octree.cpp:495
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
Tile map component.
Definition: TileMap2D.h:35
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
~Button() override
Destruct.
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
bool flipVertical_
Flip vertical flag.
Definition: Camera.h:320
Defines one or more vertex buffers, an index buffer and a draw range.
Definition: Geometry.h:38
Font * GetFont() const
Definition: Text3D.cpp:388
String GetEffectivePixelShaderDefines() const
Return the effective pixel shader defines, accounting for excludes. Called internally by Renderer.
Definition: Technique.cpp:198
PList value.
Definition: PListFile.h:56
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
float repeatRate_
Repeat rate.
Definition: Button.h:111
void SetScrollSnapEpsilon(float snap)
Definition: ScrollView.h:92
b2Joint * GetJoint() const
Return Box2D joint.
Definition: Constraint2D.h:82
float GetCcdRadius() const
Definition: RigidBody.cpp:688
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
Iterator End()
Return iterator to the end.
Definition: Vector.h:497
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
float attenuation_
Attenuation.
Definition: SoundSource.h:154
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
String name_
Name.
Definition: Attribute.h:104
Color(const Vector4 &color)
Construct from 4-vector.
Definition: Color.h:108
bool IsFixedWidth() const
Definition: UIElement.h:502
float Length() const
Definition: Vector2.h:302
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
int GetHeight() const
Definition: RenderSurface.cpp:87
const float * Data() const
Return float data.
Definition: Matrix3.h:263
Octree * GetRoot() const
Return octree root.
Definition: Octree.h:90
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.
bool shadowed_
Shadowed flag.
Definition: IndexBuffer.h:120
static unsigned GetRGBFormat()
Return the API-specific RGB texture format.
Definition: OGLGraphics.cpp:2579
bool GetFlushGPU() const
Definition: Graphics.h:417
unsigned char GetDrawableFlags() const
Return drawable flags.
Definition: Drawable.h:196
FileSystem(Context *context)
Construct.
Definition: FileSystem.cpp:285
void SetWheelSkidInfoCumulative(int wheel, float skid)
Set cumulative skid info.
Definition: RaycastVehicle.cpp:368
float GetMaxSpeed() const
Definition: CrowdAgent.h:176
Vector2 Center() const
Definition: Rect.h:202
bool BeginLoad(Deserializer &source) override
Load resource from stream. May be called from a worker thread. Return true if successful.
Definition: TmxFile2D.cpp:393
bool IsLooped() const
Definition: Sound.h:102
void HandlePostUpdate(StringHash eventType, VariantMap &eventData)
Handle logic post-update event.
Definition: UIElement.cpp:2238
~UIComponent() override
Destruct.
T Fract(T value)
Definition: MathDefs.h:206
WeakPtr< SpriteSheet2D > spriteSheet_
Sprite sheet.
Definition: Sprite2D.h:115
unsigned GetMaxLights() const
Definition: Terrain.h:225
BatchGroupKey()=default
Construct undefined.
GPUObjectHandle object_
Object pointer or name.
Definition: GPUObject.h:76
void OnSetEnabled() override
Handle enabled/disabled state change.
Definition: RibbonTrail.cpp:164
float GetRepeatRate() const
Definition: Button.h:94
bool GetScancodePress(Scancode scancode) const
Definition: Input.cpp:1349
signed char * repeat_
Loop start.
Definition: Sound.h:126
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
unsigned GetMaxVertices() const
Definition: DecalSet.h:167
void SetTerrain(unsigned lodLevel=0)
Set as a terrain. Only works if the same scene node contains a Terrain component.
Definition: CollisionShape.cpp:707
String name_
Joystick name.
Definition: Input.h:128
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
~Serializable() override
Destruct.
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
unsigned GetTotalSize() const
Definition: PackageFile.h:77
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
BoundingBox boundingBox_
Bounds of area to mark.
Definition: NavArea.h:68
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
Vector3 forward_
Forward vector.
Definition: RibbonTrail.h:51
Sphere sphere_
Sphere.
Definition: OctreeQuery.h:113
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
bool IsFixedScreenSize() const
Definition: Text3D.h:201
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
int GetTileSize() const
Definition: NavigationMesh.h:213
asIScriptFunction * GetMethod(asIScriptObject *object, const String &declaration)
Return an object method by declaration.
Definition: ScriptFile.cpp:625
void SetCursorBlinkRate(float rate)
Definition: LineEdit.cpp:503
String name_
Package name.
Definition: Connection.h:78
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
Button * okButton_
OK button.
Definition: FileSelector.h:183
void PreloadResources(File *file, bool isSceneFile)
Preload resources from a binary scene or object prefab file.
Definition: Scene.cpp:1291
Mutex queueMutex_
Worker queue mutex.
Definition: WorkQueue.h:139
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
Image * GetHeightMap() const
Definition: Terrain.cpp:518
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
unsigned GetNumJoysticks() const
Definition: Input.h:300
void SetCommandInterpreter(const String &interpreter)
Definition: Console.h:67
SharedPtr< UIElement > placeholder_
Selected item placeholder element.
Definition: DropDownList.h:119
Occlusion hierarchy depth value.
Definition: OcclusionBuffer.h:45
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
Vector2 HalfSize() const
Definition: Rect.h:210
unsigned glType_
Parameter OpenGL type.
Definition: ShaderVariation.h:69
void SetScene(Scene *newScene)
Definition: Connection.cpp:178
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
Three-dimensional vector.
Definition: Vector3.h:184
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
~NavArea() override
Destruct.
int Refs() const
Return the object's reference count, or 0 if the pointer is null.
Definition: Ptr.h:211
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
String ToLower() const
Return string in lowercase.
Definition: Str.cpp:543
Vector3 GetTargetWorldPosition() const
Definition: SmoothedTransform.cpp:144
Node()=default
Construct undefined.
void OnNodeSetEnabled(Node *point) override
Listener to manage Control Point enabling.
Definition: SplinePath.cpp:304
Component which tags geometry for inclusion in the navigation mesh. Optionally auto-includes geometry...
Definition: Navigable.h:31
void UpdateQueuedViewport(unsigned index)
Update a queued viewport for rendering.
Definition: Renderer.cpp:1475
Physics rigid body component.
Definition: RigidBody.h:52
void SetAnimationLodBias(float lodBias)
Definition: ParticleEffect.cpp:475
void SetMaxFontTextureSize(int size)
Definition: UI.cpp:664
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
unsigned timerPeriod_
Low-resolution timer period.
Definition: Timer.h:131
MaterialQuality GetTextureQuality() const
Definition: Renderer.h:322
void SetMaxOffset(const IntVector2 &offset)
Definition: UIElement.cpp:759
std::atomic< bool > completed_
Completed flag.
Definition: WorkQueue.h:62
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
static const JSONValue EMPTY
Empty JSON value.
Definition: JSONValue.h:285
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
const IntRect & GetBorder() const
Definition: BorderImage.h:94
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
float distance_
Distance from camera.
Definition: Batch.h:130
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
BorderImage * GetBackground() const
Definition: Console.h:94
void StopAsyncLoading()
Stop asynchronous loading.
Definition: Scene.cpp:516
void Validate()
Validate parameters.
Definition: Light.cpp:72
List node.
Definition: List.h:36
bool IsCompiled() const
Return whether script compiled successfully.
Definition: ScriptFile.h:114
void Clone(void *dest) const override
Placement clone.
Definition: Variant.h:255
int GetDrawOrder() const
Definition: TileMapLayer2D.h:76
static void RegisterObject(Context *context)
Register object factory.
Definition: ConstraintWeld2D.cpp:45
void FreeNode(Node *node)
Free a node.
Definition: HashMap.h:758
TerrainPatch * GetWestPatch() const
Return west neighbor patch.
Definition: TerrainPatch.h:95
unsigned shadowMapFormat_
Shadow map depth texture format.
Definition: Graphics.h:826
float GetFramesPerSecond() const
Definition: Timer.cpp:190
~AttributeAnimationInfo() override
Destruct.
unsigned readPosition_
Read buffer read cursor.
Definition: HttpRequest.h:109
Texture3D(Context *context)
Construct.
Definition: Texture3D.cpp:42
~Input() override
Destruct.
Definition: Input.cpp:401
Color fogColor_
Fog color.
Definition: Zone.h:180
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
XMLFile xmlFile_
XML file.
Definition: ShaderPrecache.h:56
VectorBuffer attrBuffer_
Attribute buffer.
Definition: AnimatedModel.h:241
float distance_
Distance to camera.
Definition: Drawable2D.h:56
void SetLinearFactor(const Vector3 &factor)
Definition: RigidBody.cpp:309
~ObjectAnimation() override
Destruct.
unsigned GetNumLevels() const
Definition: Octree.h:196
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
ShadowQuality GetShadowQuality() const
Definition: Renderer.h:334
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 SetOccluder(bool enable)
Definition: Terrain.cpp:488
void SetShapeTexture(Texture *texture)
Definition: Light.cpp:410
unsigned alphaPassIndex_
Index of the alpha pass.
Definition: View.h:425
void * handle_
Mutex handle.
Definition: Mutex.h:52
void OnNodeSet(Node *node) override
Handle scene node being assigned at creation.
Definition: SmoothedTransform.cpp:160
float GetAspectRatio() const
Definition: Camera.h:145
2D weld constraint component.
Definition: ConstraintWeld2D.h:31
VariantMap vars_
User variables.
Definition: UIElement.h:798
SharedArrayPtr< unsigned char > morphData_
Morphed vertices. Stored packed as <index, data> pairs.
Definition: Model.h:50
bool IsNonFocusedMouseWheel() const
Definition: UI.h:223
HashSet< StringHash > pausedSoundTypes_
Paused sound types.
Definition: Audio.h:157
@ JSONNT_INT
Integer.
Definition: JSONValue.h:55
Text UI element.
Definition: Text.h:76
void OnSetEnabled() override
Handle enabled/disabled state change.
Definition: Drawable2D.cpp:67
void ToggleExpand(unsigned index, bool recursive=false)
Toggle item's expanded flag at index. Only has effect in hierarchy mode.
Definition: ListView.cpp:815
~RenderPath() override
Destruct.
void SetSize(unsigned size)
Set new size.
Definition: HashBase.h:143
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
String name_
Name.
Definition: FileSelector.h:45
const Vector2 & GetPosition() const
Definition: Sprite.h:91
String GetTemporaryDir() const
Definition: FileSystem.cpp:1067
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
bool movable_
Movable flag.
Definition: Window.h:161
int Top() const
Return top coordinate.
Definition: Rect.h:463
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
const float * Data() const
Return float data.
Definition: Vector3.h:459
Frustum frustum_
Frustum.
Definition: OctreeQuery.h:157
~HashSet()
Destruct.
Definition: HashSet.h:207
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
bool IsStereo() const
Definition: Sound.h:110
SharedPtr< ListView > listView_
Listview element.
Definition: DropDownList.h:117
Vector3 initialPosition_
Reset position.
Definition: Skeleton.h:67
~ParticleEffect() override
Destruct.
Definition: Ray.h:38
b2JointDef * GetJointDef() override
Return joint def.
Definition: ConstraintFriction2D.cpp:99
UniquePtr< btRigidBody > body_
Bullet rigid body.
Definition: RigidBody.h:323
unsigned char GetLayer(const String &name) const
Return animation blending layer.
Definition: AnimationController.cpp:483
Viewport * GetViewport(unsigned index) const
Definition: RenderSurface.cpp:107
~Allocator()
Destruct.
Definition: Allocator.h:83
void Reset()
Reset the timer.
Definition: Timer.cpp:235
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
float GetScale() const
Definition: UI.h:261
unsigned GetNumItems() const
Definition: DropDownList.cpp:198
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 SetMaxShadowMaps(int shadowMaps)
Definition: Renderer.cpp:446
void Toggle(unsigned mode)
Toggle elements.
Definition: DebugHud.cpp:260
bool IsInProgress() const
Definition: SmoothedTransform.h:88
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
float GetAlpha() const
Definition: StaticSprite2D.h:124
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
@ JSON_OBJECT
JSON object type.
Definition: JSONValue.h:46
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
int acceleratorQualifiers_
Accelerator qualifiers.
Definition: Menu.h:106
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
float GetMinVelocity() const
Definition: ParticleEffect.h:351
void MarkNodeDirty()
Mark node transform dirty.
Definition: Zone.h:159
int GetMinFps() const
Definition: Engine.h:89
XMLFile * GetFile() const
Definition: XMLElement.cpp:990
void SetMultiselect(bool enable)
Definition: ListView.cpp:707
int loadMode_
Load mode.
Definition: FontFaceFreeType.h:63
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
Texture2D * GetDepthTexture() const
Definition: View3D.cpp:146
float updateInterval_
Update time interval.
Definition: Network.h:182
float HitDistance(const Plane &plane) const
Return hit distance to a plane, or infinity if no hit.
Definition: Ray.cpp:56
@ OT_INVALID
Invalid.
Definition: TileMapDefs2D.h:104
~NetworkPriority() override
Destruct.
float activeTime_
Active period.
Definition: ParticleEffect.h:455
ConstraintWheel2D(Context *context)
Construct.
Definition: ConstraintWheel2D.cpp:37
bool drawDebug_
Draw debug geometry flag. Copied from the viewport.
Definition: View.h:384
unsigned GetLevel() const
Return subdivision level.
Definition: Octree.h:84
Variant(const StringHash &value)
Construct from a string hash (convert to integer).
Definition: Variant.h:356
Iterator End()
Return iterator to the end.
Definition: HashMap.h:609
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
Octant * parent_
Parent octant.
Definition: Octree.h:154
static void RegisterObject(Context *context)
Register object factory.
Definition: ConstraintGear2D.cpp:44
EventReceiverGroup()
Construct.
Definition: Context.h:37
Node * GetNode() const
Definition: Component.h:92
void GetFrustumSize(Vector3 &near, Vector3 &far) const
Return frustum near and far sizes.
Definition: Camera.cpp:465
bool focus_
Focus flag.
Definition: Light.h:140
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
HighlightMode GetHighlightMode() const
Definition: ListView.h:155
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
Profiler(Context *context)
Construct.
Definition: Profiler.cpp:34
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
String fileName_
File name.
Definition: File.h:124
ShaderVariation * GetVertexShader() const
Return current vertex shader.
Definition: Graphics.h:515
KeyValue()
Construct with default key.
Definition: HashMap.h:48
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
unsigned GetPosition() const
Definition: Deserializer.h:62
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
Vector2 anchorMin_
Anchor minimum position.
Definition: UIElement.h:901
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 SetSRGB(bool enable)
Definition: OGLTexture.cpp:69
Per-thread occlusion buffer data.
Definition: OcclusionBuffer.h:54
~TypeInfo()
Destruct.
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 SetSimulatedLatency(int ms)
Definition: Network.cpp:580
void HandleFileDoubleClicked(StringHash eventType, VariantMap &eventData)
Handle file doubleclicked from the list (enter directory / OK the file selection).
Definition: FileSelector.cpp:416
float GetRollingFriction() const
Definition: RigidBody.cpp:673
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
Stored log message from another thread.
Definition: Log.h:51
void SetMaxAgentRadius(float maxAgentRadius)
Definition: CrowdManager.cpp:246
void Clear()
Remove all buffered audio data.
Definition: BufferedSoundStream.cpp:102
BoundingBox boundingBox_
Whole navigation mesh bounding box.
Definition: NavigationMesh.h:382
float GetVertexDistance() const
Definition: RibbonTrail.h:148
Three-dimensional vector with integer values.
Definition: Vector3.h:32
void SetOwner(Terrain *terrain)
Set owner terrain.
Definition: TerrainPatch.cpp:214
bool IsDeviceLost() const
Definition: OGLGraphics.cpp:2037
bool WriteMatrix3x4(const Matrix3x4 &value)
Write a Matrix3x4.
Definition: Serializer.cpp:159
unsigned lastSize_
Last size of the shared pool.
Definition: WorkQueue.h:151
float GetFontSubpixelThreshold() const
Definition: UI.h:247
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
char * name_
Block name.
Definition: Profiler.h:139
void SetDrawNavAreas(bool enable)
Definition: NavigationMesh.h:309
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
Pair(const T &first, const U &second)
Construct with values.
Definition: Pair.h:38
SharedPtr< Texture > texture_
Texture.
Definition: Sprite.h:134
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
JSON document resource.
Definition: JSONFile.h:32
Variant defaultValue_
Default value for network replication.
Definition: Attribute.h:110
unsigned GetNumVertices() const
Definition: DecalSet.h:159
PODVector< DecalVertex > vertices_
Decal vertices.
Definition: DecalSet.h:97
void SetAmbientGradient(bool enable)
Definition: Zone.cpp:172
SharedPtr< IndexBuffer > indexBuffer_
Index buffer.
Definition: BillboardSet.h:207
ShaderParameter()=default
Construct with defaults.
VertexLightVSVariation
Per-vertex light vertex shader variations.
Definition: Renderer.h:78
Material's shader parameter definition.
Definition: Material.h:47
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
bool IsShadowed() const
Definition: IndexBuffer.h:67
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
const String & GetVertexShader() const
Definition: Technique.h:135
String name_
Name.
Definition: Node.h:65
Rectangular area allocator.
Definition: AreaAllocator.h:31
bool IsEnabledSelf() const
Definition: Node.h:397
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 ReleaseRef()
Release the object reference and delete it if necessary.
Definition: Ptr.h:233
void SetVerticesAttr(const PODVector< unsigned char > &value)
Set vertices attribute.
Definition: CollisionPolygon2D.cpp:82
int WeakRefs() const
Return the object's weak reference count, or 0 if the pointer is null.
Definition: Ptr.h:214
Sprite sheet.
Definition: SpriteSheet2D.h:37
unsigned size_
Stream size.
Definition: Deserializer.h:155
void UpdateMasterGain()
Update the effective master gain. Called internally and by Audio when the master gain changes.
Definition: SoundSource.cpp:460
~XMLElement()
Destruct.
Definition: XMLElement.cpp:74
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
~CollisionChain2D() override
Destruct.
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
void OnHover(const IntVector2 &position, const IntVector2 &screenPosition, MouseButtonFlags buttons, QualifierFlags qualifiers, Cursor *cursor) override
React to mouse hover.
Definition: Menu.cpp:91
T * operator->() const
Point to the array.
Definition: ArrayPtr.h:99
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
int GetMaxFontTextureSize() const
Definition: UI.h:219
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
const Color & GetEffectColor() const
Definition: Text.h:195
bool autoPopup_
Auto popup flag.
Definition: Menu.h:116
int GetTextureAnisotropy() const
Definition: Renderer.h:314
Slider(Context *context)
Construct.
Definition: Slider.cpp:45
void BanAddress(const String &address)
Ban specific IP addresses.
Definition: Network.cpp:649
@ CONSTRAINTS
Definition: IKSolver.h:157
SDL_JoystickID OpenJoystick(unsigned index)
Open a joystick and return its ID. Return -1 if no joystick.
Definition: Input.cpp:1268
float GetShadowSoftness() const
Definition: Renderer.h:338
bool GetDither() const
Definition: OGLGraphics.cpp:2032
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
Vector2 GetInputScale() const
Definition: Input.h:289
UIElement * fileNameLayout_
Filename and filter layout.
Definition: FileSelector.h:193
~OggVorbisSoundStream() override
Destruct.
Definition: OggVorbisSoundStream.cpp:50
Text * GetTitleText() const
Definition: FileSelector.h:95
int GetUpdateFps() const
Definition: Network.h:114
CompressedFormat format_
Compression format.
Definition: Image.h:63
const Vector2 & GetOwnerBodyAnchor() const
Definition: ConstraintRope2D.h:55
void UpdateOctreeSize()
Update octree size.
Definition: Octree.h:209
bool ignoreEvents_
Ignore scrollbar events flag. Used to prevent possible endless loop when resizing.
Definition: ScrollView.h:198
LuaScript(Context *context)
Construct.
Definition: LuaScript.cpp:83
PODVector< Drawable * > shadowCasters_
Shadow casters.
Definition: View.h:62
BlendMode blendMode_
Blend mode flag.
Definition: Sprite.h:138
bool frustumDirty_
Frustum dirty flag.
Definition: Camera.h:282
float startScale_
Scale for start of trails.
Definition: RibbonTrail.h:257
T first_
First value.
Definition: Pair.h:74
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
Hash map node iterator.
Definition: HashMap.h:107
SharedPtr< UIElement > rootElement_
UI root element.
Definition: UI.h:394
SimpleNavBuildData()
Constructor.
Definition: NavBuildData.cpp:50
void SetQuiet(bool quiet)
Definition: Log.cpp:133
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
unsigned color_
Color.
Definition: Drawable2D.h:42
2D pulley constraint component.
Definition: ConstraintPulley2D.h:31
SharedPtr< Node > cameraNode_
Camera scene node.
Definition: View3D.h:102
bool GetDeferredSupport() const
Definition: Graphics.h:457
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
const int * Data() const
Return integer data.
Definition: Rect.h:448
Sprite2D * GetSprite() const
Definition: TileMapDefs2D.cpp:168
~ShaderVariation() override
Destruct.
Definition: ShaderVariation.cpp:65
void SetTime(float time)
Definition: AnimationState.cpp:191
Vector2 GetRandomSize() const
Return random size.
Definition: ParticleEffect.cpp:796
int GetHeight() const
Definition: Image.h:167
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
bool ownScene_
Own scene.
Definition: View3D.h:104
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
bool dirty_
Dirty flag.
Definition: ConstantBuffer.h:70
void Release()
Release surface.
Definition: OGLRenderSurface.cpp:112
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
BatchGroup()
Construct with defaults.
Definition: Batch.h:137
void CleanupConnection(Connection *connection)
Clean up all references to a network connection that is about to be removed.
Definition: Node.cpp:1773
ConstIterator()=default
Construct.
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
unsigned vertexStart_
First used vertex.
Definition: Geometry.h:140
void SetMassCenter(const Vector2 &center)
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
bool GetWordwrap() const
Definition: Text.h:163
JSONValue(int value)
Construct with a integer.
Definition: JSONValue.h:89
Container of resources with specific type.
Definition: ResourceCache.h:44
MouseButtonFlags mouseButtonPress_
Mouse buttons' pressed state.
Definition: Input.h:434
bool IsOrthographic() const
Definition: Camera.h:169
PODVector< float > lastTimeSteps_
Previous timesteps for smoothing.
Definition: Engine.h:147
float edgeOffset_
Texture edge offset.
Definition: TmxFile2D.h:230
One particle in the particle system.
Definition: ParticleEmitter.h:33
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
Value animation class.
Definition: ValueAnimation.h:68
String postData_
POST data.
Definition: HttpRequest.h:99
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
int zIndex_
Run time data.
Definition: SpriterData2D.h:311
bool GetInterpolation() const
Definition: PhysicsWorld.h:240
Font * font_
Parent font.
Definition: FontFace.h:104
unsigned Size() const
Return number of elements.
Definition: Vector.h:1151
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
void * start_
Data start pointer.
Definition: WorkQueue.h:52
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
float fogStart_
Fog start distance.
Definition: Zone.h:182
ResourceRef GetTextureAttr() const
Return texture attribute.
Definition: Sprite.cpp:296
String ToString() const
Return as string.
Definition: Vector2.cpp:55
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
CurveType
Curve type.
Definition: SpriterData2D.h:215
~Profiler() override
Destruct.
Definition: Profiler.cpp:43
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
float GetProfilerInterval() const
Definition: DebugHud.cpp:275
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
void * owner_
Owner.
Definition: ValueAnimation.h:157
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 CreateJoint()
Create joint.
Definition: Constraint2D.cpp:82
bool GetThreadedOcclusion() const
Definition: Renderer.h:386
void ProcessRayQuery(const RayOctreeQuery &query, PODVector< RayQueryResult > &results) override
Process octree raycast. May be called from a worker thread.
Definition: StaticModel.cpp:74
Base class for UI elements.
Definition: UIElement.h:122
void SetNumGeometries(unsigned num)
Set number of geometries.
Definition: StaticModel.cpp:365
Vector3 GetWorldUp() const
Definition: Node.h:490
float GetCellSize() const
Definition: NavigationMesh.h:217
Variant GetInstanceDefault(const String &name) const
Get instance-level default value.
Definition: Serializable.cpp:1027
Network(Context *context)
Construct.
Definition: Network.cpp:196
BoundingBox boundingBox_
Bounding box relative to the navigation mesh root node.
Definition: NavigationMesh.h:68
unsigned GetNumParticles() const
Definition: ParticleEffect.h:267
@ OT_ELLIPSE
Ellipse.
Definition: TileMapDefs2D.h:96
ShaderVariation * vertexShader_
Vertex shader.
Definition: Batch.h:104
void DelayedMarkedDirty(Component *component)
Add a component to the delayed dirty notify queue. Is thread-safe.
Definition: Scene.cpp:836
Renderer(Context *context)
Construct.
Definition: Renderer.cpp:268
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
unsigned Size() const
Definition: XMLElement.cpp:1051
UniquePtr< btTypedConstraint > constraint_
Bullet constraint.
Definition: Constraint.h:204
~PODVector()
Destruct.
Definition: Vector.h:730
~ConstraintMotor2D() override
Destruct.
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
T & operator[](int index)
Subscript the array.
Definition: ArrayPtr.h:113
void ApplyAttributes() override
Apply attribute changes that can not be applied immediately.
Definition: Text3D.cpp:107
const T & Back() const
Return const last element.
Definition: List.h:414
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
unsigned size_
Number of nodes.
Definition: ListBase.h:122
bool GetCastShadows() const
Definition: Drawable.h:232
HashSet< StringHash > allowedRemoteEvents_
Allowed remote events.
Definition: Network.h:170
Window(Context *context)
Construct.
Definition: Window.cpp:41
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
void SetDrawShadows(bool enable)
Definition: Renderer.cpp:355
32-bit hash value for a string.
Definition: StringHash.h:33
bool IsA(const String &className) const
Check if the object is derived from a class.
Definition: ScriptInstance.cpp:416
int GetHeight() const
Definition: Text3D.cpp:463
unsigned GetData(signed char *dest, unsigned numBytes) override
Produce sound data into destination. Return number of bytes produced. Called by SoundSource from the ...
Definition: BufferedSoundStream.cpp:39
Scene * GetScene() const
Definition: View3D.cpp:131
Mutex()
Construct.
Definition: Mutex.cpp:71
static void RegisterObject(Context *context)
Registers this class as an object factory.
Definition: IKEffector.cpp:62
Operating system mutual exclusion primitive.
Definition: Mutex.h:35
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
@ O_STAGGERED
Staggered.
Definition: TileMapDefs2D.h:43
PODVector< NavAreaStub > navAreas_
Pretransformed navigation areas, no correlation to the geometry above.
Definition: NavBuildData.h:84
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 IsInCrowd() const
Definition: CrowdAgent.cpp:512
bool HasProperty(const String &name) const
Return has property (use for script).
Definition: TmxFile2D.cpp:55
float GetLength() const
Definition: ConstraintDistance2D.h:77
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
void SetResizable(bool enable)
Definition: Window.cpp:257
Definition: AnimationController.h:38
bool IsNaN() const
Return whether any element is NaN.
Definition: Matrix4.h:651
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
float regionMinSize_
Region minimum size.
Definition: NavigationMesh.h:364
int z_
Z coordinate.
Definition: Vector3.h:163
Vector2 ownerBodyAnchor_
Owner body anchor.
Definition: ConstraintRope2D.h:72
AnimationSet2D * GetAnimationSet() const
Definition: AnimatedSprite2D.cpp:196
void SetShadowBias(const BiasParameters &parameters)
Definition: Light.cpp:365
void OnIndentSet() override
React to indent change.
Definition: Text.cpp:248
const Color & GetAmbientEndColor()
Definition: Zone.cpp:200
void DrawDebugGeometry(DebugRenderer *debug, bool depthTest) override
Draw the Debug Geometry.
Definition: SplinePath.cpp:116
const Vector3 & GetPosition() const
Definition: Constraint.h:134
bool GetFullscreen() const
Definition: Graphics.h:380
static void RegisterObject(Context *context)
Register object factory.
Definition: DecalSet.cpp:180
WeakPtr< Node > node_
Scene node.
Definition: Skeleton.h:83
Variant(unsigned long long value)
Construct from unsigned integer.
Definition: Variant.h:350
unsigned GetMaxLength() const
Definition: LineEdit.h:111
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
bool hovered_
Hover countdown has started.
Definition: ToolTip.h:69
static void RegisterObject(Context *context)
Register object factory.
Definition: ListView.cpp:191
Navigation build data.
Definition: NavBuildData.h:54
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
bool NotNull() const
Check if the pointer is not null.
Definition: Ptr.h:483
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
unsigned GetLevels() const
Definition: Texture.h:89
const Vector2 & GetCenter() const
Definition: CollisionCircle2D.h:58
Vector< SharedPtr< Tile2D > > tiles_
Tiles.
Definition: TmxFile2D.h:103
void GetBatches(PODVector< UIBatch > &batches, PODVector< float > &vertexData, const IntRect &currentScissor) override
Return UI rendering batches.
Definition: DropDownList.cpp:87
float mass_
Mass.
Definition: RigidBody.h:339
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
BlendMode blendMode_
Blend mode.
Definition: StaticSprite2D.h:174
void Insert(const Iterator &dest, const ConstIterator &start, const ConstIterator &end)
Insert elements by iterators.
Definition: List.h:298
Vector3 GetDirection() const
Definition: Node.h:421
void ClearScriptMethods()
Clear supported script methods.
Definition: ScriptInstance.cpp:612
void SetShadowMapSize(int size)
Definition: Renderer.cpp:365
String name_
Object name.
Definition: Variant.h:127
const char * CString() const
Return the C string.
Definition: Str.h:428
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
Character map.
Definition: SpriterData2D.h:118
SharedArrayPtr< unsigned char > httpReadBuffer_
Read buffer for the worker thread.
Definition: HttpRequest.h:105
int GetNumShadowSplits() const
Definition: Light.cpp:475
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
Matrix3x4 view_
Cached view matrix.
Definition: Camera.h:272
Vector2 position_
Position.
Definition: TileMapDefs2D.h:235
void Clip(bool clipAlpha=false)
Clip to [0, 1.0] range.
Definition: Color.cpp:220
String name_
Name.
Definition: TileMapDefs2D.h:231
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
bool override_
Override mode flag.
Definition: Zone.h:168
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
unsigned color_
Color.
Definition: CustomGeometry.h:39
EventHandler * eventHandler_
Active event handler. Not stored in a stack for performance reasons; is needed only in esoteric cases...
Definition: Context.h:242
unsigned GetShaderParameterHash() const
Return shader parameter hash value. Used as an optimization to avoid setting shader parameters unnece...
Definition: Material.h:285
void SetLooped(bool looped)
Definition: AnimationState.cpp:160
Constraint(Context *context)
Construct.
Definition: Constraint.cpp:55
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
const Color & GetColor(Corner corner) const
Definition: UIElement.h:550
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 IsArray() const
Definition: JSONValue.h:196
bool ProcessMessage(int msgID, MemoryBuffer &buffer)
Process a message from the server or client. Called by Network.
Definition: Connection.cpp:448
unsigned GetViewMask() const
Definition: Terrain.h:209
bool IsSorted() const
Definition: ParticleEffect.h:283
BodyType2D GetBodyType() const
Definition: RigidBody2D.h:136
unsigned numIndices_
Indices in the current decals.
Definition: DecalSet.h:244
unsigned GetNumTextureFrames() const
Definition: ParticleEffect.h:396
bool GetTouchEmulation() const
Definition: Input.h:327
Skeleton skeleton_
Skeleton.
Definition: AnimatedModel.h:223
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
WeakPtr< XMLFile > file_
XML file.
Definition: XMLElement.h:360
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
void SetOccluder(bool enable)
Definition: Drawable.cpp:229
Matrix3x4 GetEffectiveWorldTransform() const
Definition: Camera.cpp:574
Texture * GetRampTexture() const
Definition: Light.h:339
UniquePtr< FindPathData > pathData_
Temporary data for finding a path.
Definition: NavigationMesh.h:348
bool WriteShort(short value)
Write a 16-bit integer.
Definition: Serializer.cpp:46
void SetPressedChildOffset(const IntVector2 &offset)
Definition: Button.cpp:167
unsigned GetNumOutputs() const
Definition: RenderPath.h:136
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
Vector3 normal_
Normal.
Definition: CustomGeometry.h:37
Zone * zone_
Zone.
Definition: Batch.h:195
bool IsInitialized() const
Definition: Engine.h:113
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 ToggleAll()
Toggle all elements.
Definition: DebugHud.cpp:265
void SetClipChildren(bool enable)
Definition: UIElement.cpp:869
void OnSceneSet(Scene *scene) override
Handle scene being assigned.
Definition: LuaScriptInstance.cpp:501
virtual Material * GetMaterial() const
Definition: StaticModel.h:90
void Rehash()
Rehash the buckets.
Definition: HashSet.h:625
bool IsInitialized() const
Definition: Audio.h:95
void SetAnimationName(const String &name)
Definition: Animation.cpp:289
Integer & AsInteger()
Return underlying integer (non-constant).
Definition: FlagSet.h:229
void SetRadius(float newRadius)
Definition: Obstacle.cpp:81
float temperature_
Light temperature.
Definition: Light.h:405
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
float maxHeight_
Maximum height.
Definition: CollisionShape.h:139
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
void SetTiled(bool enable)
Definition: BorderImage.cpp:138
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
Timer repeatTimer_
Paging minimum repeat timer.
Definition: Slider.h:127
float GetMass() const
Definition: RigidBody2D.cpp:509
bool GetFixedHeightResizing() const
Definition: Window.h:124
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
Vector3 HalfSize() const
Definition: BoundingBox.h:273
String class.
Definition: Str.h:46
void ApplyStyleRecursive(UIElement *element)
Recursively apply style to a child element hierarchy when adding to an element.
Definition: UIElement.cpp:2066
void Insert(const HashSet< T > &set)
Insert a set.
Definition: HashSet.h:325
void SetEffect(ParticleEffect *effect)
Definition: ParticleEmitter.cpp:263
unsigned lockStart_
Lock start vertex.
Definition: VertexBuffer.h:169
UpdateGeometryType
Geometry update type.
Definition: Drawable.h:60
bool IsCompleting() const
Return whether the queue is currently completing work in the main thread.
Definition: WorkQueue.h:110
bool IsController() const
Definition: Input.h:89
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 SetRotation2D(float rotation)
Definition: Node.h:150
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
void SetBoundingBox(const BoundingBox &box)
Definition: Model.cpp:486
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
String ToString() const
Return as string.
Definition: Vector2.cpp:48
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
bool vertexLights_
Vertex light flag.
Definition: View.h:89
PODVector< unsigned char > GetDelayedCallsAttr() const
Return delayed method calls attribute.
Definition: ScriptInstance.cpp:489
CompareMode depthTestMode_
Depth compare mode.
Definition: Graphics.h:868
static const IntVector3 ONE
(1,1,1) vector.
Definition: Vector3.h:180
bool dirty_
World transform needs update flag.
Definition: Node.h:721
void SetName(const String &name)
Definition: Node.cpp:322
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
ListNodeBase()
Construct.
Definition: ListBase.h:41
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
short texWidth_
Width in texture.
Definition: FontFace.h:44
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
bool initialized_
Initialized flag.
Definition: Renderer.h:671
Node * parent_
Parent scene node.
Definition: Node.h:733
static const IntVector3 UP
(0,1,0) vector.
Definition: Vector3.h:172
int width_
Width.
Definition: TileMapDefs2D.h:55
bool compressed_
Compressed flag.
Definition: PackageFile.h:108
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
static const IntVector3 DOWN
(0,-1,0) vector.
Definition: Vector3.h:174
void SetUseReflection(bool enable)
Definition: Camera.cpp:216
Matrix2 Inverse() const
Return inverse.
Definition: Matrix2.cpp:40
unsigned buttons_
Button state.
Definition: Controls.h:64
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
bool dynamic_
Dynamic flag.
Definition: IndexBuffer.h:118
virtual bool Assign(const CustomVariantValue &rhs)
Assign value.
Definition: Variant.h:194
static const Color BLUE
Opaque blue color.
Definition: Color.h:277
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
float fogHeightScale_
Fog height cale.
Definition: Zone.h:188
Skeletal animation keyframe.
Definition: Animation.h:46
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
SharedPtr(const SharedPtr< T > &rhs) noexcept
Copy-construct from another shared pointer.
Definition: Ptr.h:52
float sizeMul_
Particle size multiplicative parameter.
Definition: ParticleEffect.h:485
void SetCheckedOffset(const IntVector2 &offset)
Definition: CheckBox.cpp:106
bool boolValue_
Definition: JSONValue.h:313
static void RegisterObject(Context *context)
Register object factory.
Definition: Technique.cpp:253
bool IsRelative() const
Definition: BillboardSet.h:130
bool GetUseHotSpot() const
Definition: StaticSprite2D.h:128
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
IntVector2 GetMousePosition() const
Definition: Input.cpp:1401
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
~ParticleEmitter2D() override
Destruct.
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
~CollisionPolygon2D() override
Destruct.
Light * light_
Per-pixel light.
Definition: Batch.h:295
Color color_
Color.
Definition: Light.h:403
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
bool resizable_
Resizable flag.
Definition: Window.h:163
IntRect() noexcept
Construct a zero rect.
Definition: Rect.h:284
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
StringHash GetNameHash() const
Return name hash.
Definition: Node.h:371
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
SharedArrayPtr< unsigned char > fontData_
Font data.
Definition: Font.h:106
void SetUseRendererStats(bool enable)
Definition: DebugHud.cpp:255
void HandleSceneUpdate(StringHash eventType, VariantMap &eventData)
Handle scene update event.
Definition: ScriptInstance.cpp:838
unsigned zoneMask_
Zone mask.
Definition: Terrain.h:354
void getWorldTransform(btTransform &worldTrans) const override
Definition: RigidBody.cpp:147
Low-resolution operating system timer.
Definition: Timer.h:31
LuaFunction * GetFunction(int index)
Return Lua function at the given stack index.
Definition: LuaScript.cpp:425
Vector< Vertex2D > vertices_
Vertices.
Definition: Drawable2D.h:62
int GetAsyncLoadingMs() const
Definition: Scene.h:228
bool GetTileFlipX() const
Definition: TileMapDefs2D.h:209
Texture2D * GetTexture() const
Definition: UIComponent.cpp:193
float GetSmoothingConstant() const
Definition: Scene.h:220
ScreenModeParams screenParams_
Screen mode parameters.
Definition: Graphics.h:135
BlendMode blendMode_
Blend mode.
Definition: ParticleEmitter2D.h:157
const Matrix3x4 & GetView() const
Definition: Camera.cpp:585
T ToDegrees(const T radians)
Convert radians to degrees.
Definition: MathDefs.h:110
@ LINEAR_CURVE
Linear interpolation.
Definition: Spline.h:43
void OnNodeSet(Node *node) override
Handle node being assigned.
Definition: RigidBody2D.cpp:548
float GetEffectDepthBias() const
Definition: Text3D.cpp:453
float lifetime_
Lifetime.
Definition: RibbonTrail.h:263
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
bool GetLevelsDirty() const
Definition: Texture.h:139
float GetTime(const String &name) const
Return animation time position.
Definition: AnimationController.cpp:501
Button * closeButton_
Close button.
Definition: FileSelector.h:191
Vector4 Row(unsigned i) const
Return matrix row.
Definition: Matrix4.h:645
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
Queue for light related draw calls.
Definition: Batch.h:292
void SetKinematic(bool enable)
Definition: RigidBody.cpp:459
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
Hash set/map base class.
Definition: HashBase.h:100
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
float GetAgentHeight() const
Definition: NavigationMesh.h:225
unsigned GetFormat(CompressedFormat format) const
Return hardware format for a compressed image format, or 0 if unsupported.
Definition: OGLGraphics.cpp:2064
int GetMaxHeight() const
Definition: UIElement.h:494
Text * cancelButtonText_
Cancel button text.
Definition: FileSelector.h:189
RigidBody2D(Context *context)
Construct.
Definition: RigidBody2D.cpp:50
2D Physics raycast hit.
Definition: PhysicsWorld2D.h:38
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 &currentScissor)
Return UI rendering batches.
Definition: UIElement.cpp:343
LightType lightType_
Light type.
Definition: Light.h:401
unsigned GetNumRows() const
Definition: Text.h:203
void GetBatches(PODVector< UIBatch > &batches, PODVector< float > &vertexData, const IntRect &currentScissor) 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
Animation instance per-track data.
Definition: AnimationState.h:51
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
static const Color YELLOW
Opaque yellow color.
Definition: Color.h:283
Vector2 layoutFlexScale_
Layout flex scale.
Definition: UIElement.h:836
bool drawObstacles_
Debug draw Obstacles.
Definition: DynamicNavigationMesh.h:152
unsigned maxIndices_
Maximum indices.
Definition: DecalSet.h:248
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
RigidBody(Context *context)
Construct.
Definition: RigidBody.cpp:64
AllocatorNode * free_
First free node.
Definition: Allocator.h:47
bool IsWheelHandler() const override
Return whether the element could handle wheel input.
Definition: ScrollView.h:58
Material * GetMaterial() const
Definition: BorderImage.cpp:247
String shape_
Current shape definition.
Definition: Cursor.h:142
HashMap< String, String > appStats_
Hashmap containing application specific stats.
Definition: DebugHud.h:137
static const unsigned NPOS
Position for "not found".
Definition: Str.h:516
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
int GetRowWidth(unsigned index) const
Definition: Text3D.cpp:483
~Geometry() override
Destruct.
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 ResetScene()
Reset scene.
Definition: View3D.cpp:156
void CleanupShaderPrograms(ShaderVariation *variation)
Clean up shader parameters when a shader variation is released or destroyed.
Definition: OGLGraphics.cpp:2322
float GetAttenuation() const
Definition: SoundSource.h:110
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
bool shadowCompare_
Shadow compare mode.
Definition: Texture.h:255
void SetLinearRestThreshold(float threshold)
Definition: RigidBody.cpp:318
IntVector2 Max() const
Return right-bottom corner position.
Definition: Rect.h:457
void SetCastShadows(bool enable)
Definition: Drawable.cpp:223
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
CubeMapLayout
Cubemap single image layout modes.
Definition: GraphicsDefs.h:282
Skeleton & GetSkeleton()
Definition: Model.h:161
Vector< UIElement * > dragElementsConfirmed_
Confirmed drag elements cache.
Definition: UI.h:476
unsigned GetViewMask() const
Definition: Camera.h:157
bool smoothing_
Smoothing enable flag.
Definition: Terrain.h:338
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
Vector3 GetUp() const
Definition: Node.h:425
float lastTimeStep_
Last scene timestep.
Definition: ParticleEmitter.h:152
void SetSnapThreshold(float threshold)
Definition: Scene.cpp:661
StringVector columns_
Column headers from the resultset.
Definition: ODBCResult.h:66
b2RopeJointDef jointDef_
Box2D joint def.
Definition: ConstraintRope2D.h:70
unsigned renderBuffer_
Definition: RenderSurface.h:155
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
~Zone() override
Destruct.
bool deferredSupport_
Deferred rendering support flag.
Definition: Graphics.h:794
bool SetScreenMode(int width, int height, const ScreenModeParams &params, bool maximize=false)
Definition: OGLGraphics.cpp:332
void SetHoverColor(const Color &color)
Definition: UISelectable.cpp:64
Time and frame counter subsystem.
Definition: Timer.h:78
void SetTextSelectable(bool enable)
Definition: LineEdit.cpp:527
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
Node * GetControlledNode() const
Definition: SplinePath.h:95
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 rotationSpeed_
Rotation speed.
Definition: ParticleEmitter.h:46
float GetFinishParticleSize() const
Return finish particle size.
Definition: ParticleEffect2D.h:197
BlendMode blendMode_
Blend mode.
Definition: Technique.h:176
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 Resize(unsigned newLength)
Resize the string.
Definition: Str.cpp:1280
void OnNodeSet(Node *node) override
Handle node being assigned.
Definition: Text3D.cpp:508
bool fontDataLost_
Font texture data lost flag.
Definition: Text3D.h:263
HashMap< String, String > nameToValueMapping_
Property name to property value mapping.
Definition: TileMapDefs2D.h:123
Property list (plist).
Definition: PListFile.h:143
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
unsigned maxLights_
Maximum per-pixel lights.
Definition: Drawable.h:407
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
void SetFontHintLevel(FontHintLevel level)
Definition: UI.cpp:709
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
void SetWidth(float width)
Definition: RibbonTrail.cpp:871
CheckBox(Context *context)
Construct.
Definition: CheckBox.cpp:37
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 timeStamp_
Source code timestamp.
Definition: Shader.h:79
unsigned GetStencilWriteMask() const
Return stencil write bitmask.
Definition: Graphics.h:604
3D model resource.
Definition: Model.h:108
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
static char endZero
End zero for empty strings.
Definition: Str.h:558
WeakPtr(const WeakPtr< U > &rhs) noexcept
Copy-construct from another weak pointer allowing implicit upcasting.
Definition: Ptr.h:298
void ReinterpretCast(const SharedArrayPtr< U > &rhs)
Perform a reinterpret cast from a shared array pointer of another type.
Definition: ArrayPtr.h:144
unsigned components_
Number of color components.
Definition: Image.h:233
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
unsigned deviceID_
SDL audio device ID.
Definition: Audio.h:141
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
2D distance constraint component.
Definition: ConstraintDistance2D.h:31
bool IsAdded(const String &tag) const
Definition: RenderPath.cpp:395
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
float lodBias_
LOD bias.
Definition: Terrain.h:360
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
Script dictionary class.
Definition: Addons.h:194
unsigned GetNumMorphs() const
Definition: Model.h:201
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
LoopMode2D loopMode_
Loop mode.
Definition: AnimatedSprite2D.h:146
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 &center, 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
HashSet()
Construct empty.
Definition: HashSet.h:175
bool recursive_
Recursive flag.
Definition: Navigable.h:53
rcPolyMesh * polyMesh_
Recast poly mesh.
Definition: NavBuildData.h:97
bool roundStroke_
Text effect stroke rounding flag.
Definition: Text.h:277
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
void FreeNode(Node *node)
Free a node.
Definition: HashSet.h:618
bool enableAnchor_
Use min/max anchor & min/max offset for position & size instead of setting explicitly.
Definition: UIElement.h:897
PListValueType type_
Type.
Definition: PListFile.h:129
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
VariantMap identity_
Identity map.
Definition: Connection.h:277
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
Spatial timeline key.
Definition: SpriterData2D.h:262
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 NotNull() const
Definition: XMLElement.cpp:568
BoundingBox boundingBox_
Bounding box.
Definition: Model.h:216
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
rcHeightfield * heightField_
Recast heightfield.
Definition: NavBuildData.h:80
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
Scene * GetScene() const
Return scene.
Definition: View.h:136
void OnSetEnabled() override
Handle enabled/disabled state change.
Definition: Constraint2D.cpp:74
void SetScene(Scene *scene)
Definition: Material.cpp:1115
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
static const String EMPTY
Empty string.
Definition: Str.h:520
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
T Ceil(T x)
Definition: MathDefs.h:254
void StaticCast(const WeakArrayPtr< U > &rhs)
Perform a static cast from a weak array pointer of another type.
Definition: ArrayPtr.h:349
~LogicComponent() override
Destruct.
const Color & GetBorderColor() const
Definition: Texture.h:119
bool IsEnabled() const
Definition: UIElement.h:593
HashMap< int, VectorBuffer > outgoingBuffer_
Outgoing packet buffer which can contain multiple messages.
Definition: Connection.h:372
Script file resource.
Definition: ScriptFile.h:46
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 sixteenBit_
Sixteen bit flag.
Definition: SoundStream.h:74
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
Map instruction.
Definition: SpriterData2D.h:132
float ascender_
Ascender.
Definition: FontFaceFreeType.h:69
const Vector2 & GetLowLimit() const
Definition: Constraint.h:158
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
Quaternion rotation_
Bone rotation.
Definition: Animation.h:60
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
Ogg Vorbis sound stream.
Definition: OggVorbisSoundStream.h:34
SharedPtr< File > file_
File for binary mode.
Definition: Scene.h:60
void Erase(unsigned pos, unsigned length=1)
Erase a substring.
Definition: Str.cpp:392
float GetAxisPosition(unsigned index) const
Definition: Input.h:113
Vector2 center_
Center.
Definition: CollisionCircle2D.h:71
float GetMargin() const
Definition: CollisionShape.h:245
float GetRadius() const
Definition: CrowdAgent.h:180
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
float distance_
Current distance to camera.
Definition: Drawable.h:389
void RemoveChild(UIElement *element, unsigned index=0)
Remove a child element. Starting search at specified index if provided.
Definition: UIElement.cpp:1343
CompareMode
Depth or stencil compare mode.
Definition: GraphicsDefs.h:85
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
2D particle emitter component.
Definition: ParticleEmitter2D.h:76
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
void SetFlipY(bool flipY)
Definition: StaticSprite2D.cpp:147
bool specularLighting_
Specular lighting flag.
Definition: Renderer.h:657
const float * Data() const
Return float data.
Definition: Rect.h:236
unsigned GetLightMask() const
Definition: Drawable.h:216
void SetTimeStepSmoothing(int frames)
Definition: Engine.cpp:558
BorderImage * GetScrollPanel() const
Definition: ScrollView.h:120
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
static const IntVector2 LEFT
(-1,0) vector.
Definition: Vector2.h:163
Button * GetForwardButton() const
Definition: ScrollBar.h:103
void SetVertexAttribDivisor(unsigned location, unsigned divisor)
Set vertex attrib divisor. No-op if unsupported. Used only on OpenGL.
Definition: OGLGraphics.cpp:3366
Convex hull geometry data.
Definition: CollisionShape.h:104
unsigned numShadowCameras_
Number of temporary shadow cameras in use.
Definition: Renderer.h:645
bool networkUpdate_
Network update queued flag.
Definition: Node.h:729
Node * Head() const
Return the head node.
Definition: HashSet.h:519
void SetOtherAxis(const Vector3 &axis)
Definition: Constraint.cpp:239
void DrawDebugGeometry(DebugRenderer *debug, bool depthTest) override
Render debug information.
Definition: Obstacle.cpp:150
Matrix3x4 transform_
Transform relative to the navigation mesh root node.
Definition: NavigationMesh.h:66
void SetShadowDistance(float distance)
Definition: Terrain.cpp:392
TileMap2D(Context *context)
Construct.
Definition: TileMap2D.cpp:42
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
void SetMinAngle(float angle)
Definition: BillboardSet.cpp:334
RenderSurfaceUpdateMode updateMode_
Update mode for viewports.
Definition: RenderSurface.h:176
void SetMovable(bool enable)
Definition: Window.cpp:252
UI rendering draw call.
Definition: UIBatch.h:42
bool enabled_
Enabled flag.
Definition: RenderPath.h:188
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
String ToString() const
Return as string.
Definition: Matrix3x4.cpp:83
void SetAttributeAnimationWrapMode(const String &name, WrapMode wrapMode)
Set attribute animation wrap mode.
Definition: Animatable.cpp:392
void ClearBones()
Clear bones.
Definition: Skeleton.cpp:123
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
Vector3 normal_
Normal.
Definition: DecalSet.h:64
virtual bool SaveFile(const String &fileName) const
Definition: Resource.cpp:93
@ AM_NET
Attribute used for network replication.
Definition: Attribute.h:41
VariantMap engineParameters_
Engine parameters map.
Definition: Application.h:64
Vector2 center_
Center.
Definition: CollisionBox2D.h:80
Mutex & mutex_
Mutex reference.
Definition: Mutex.h:71
Node * Next() const
Return next node.
Definition: List.h:51
void SetRange(float range)
Definition: Light.cpp:326
unsigned GetMaxIndices() const
Definition: DecalSet.h:171
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
Rect uv_
UV coordinates.
Definition: ParticleEffect.h:98
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
BoundingBox bounds_
Area bounding box.
Definition: NavBuildData.h:48
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
Algorithm GetAlgorithm() const
Definition: IKSolver.cpp:108
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
HashNodeBase()
Construct.
Definition: HashBase.h:42
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
Vector3 Scale() const
Return the scaling part.
Definition: Matrix4.h:561
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
XPathQuery()
Construct empty.
Tile map object.
Definition: TileMapDefs2D.h:173
static unsigned GetPassIndex(const String &passName)
Return a pass type index by name. Allocate new if not used yet.
Definition: Technique.cpp:529
unsigned color_
Color.
Definition: DebugRenderer.h:87
const PODVector< unsigned > & GetSelections() const
Definition: ListView.h:138
void UpdateCollisions()
Refresh collisions only without updating dynamics.
Definition: PhysicsWorld.cpp:308
T * Buffer() const
Return the buffer with right type.
Definition: Vector.h:540
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
UI element which renders a 3D scene.
Definition: View3D.h:37
unsigned GetNumNetworkComponents() const
Return number of non-local components.
Definition: Node.cpp:1335
bool checked_
Current checked state.
Definition: CheckBox.h:72
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
~DynamicNavigationMesh() override
Destructor.
Definition: DynamicNavigationMesh.cpp:223
HashBase()
Construct.
Definition: HashBase.h:109
const PODVector< Vector3 > & GetGeometryCenters() const
Return geometry center points.
Definition: Model.h:181
void RemoveDrawable(Drawable2D *drawable)
Remove Drawable2D.
Definition: Renderer2D.cpp:235
void Ban()
Ban this connections IP address.
Definition: Connection.cpp:520
bool LoadXML(const XMLElement &source, XMLFile *styleFile) override
Load from XML data with style. Return true if successful.
Definition: Menu.cpp:127
bool Erase(T *element)
Erase an element. Return true if successful.
Definition: LinkedList.h:119
float repeatTimer_
Repeat timer.
Definition: Button.h:113
WeakPtr< Terrain > east_
East neighbor terrain.
Definition: Terrain.h:312
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
int indent_
Horizontal indentation.
Definition: UIElement.h:844
dtCrowd * GetCrowd() const
Get the internal detour crowd component.
Definition: CrowdManager.h:182
LuaScriptEventInvoker(Context *context)
Construct.
Definition: LuaScriptEventInvoker.cpp:34
virtual PODVector< unsigned char > GetNavigationDataAttr() const
Return navigation data attribute.
Definition: NavigationMesh.cpp:927
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
T Clamp(T value, T min, T max)
Definition: MathDefs.h:129
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
bool SetFontSize(float size)
Definition: Text3D.cpp:212
void SetMaxLength(unsigned length)
Definition: LineEdit.cpp:511
SharedPtr< Texture2D > defaultLightRamp_
Default range attenuation texture.
Definition: Renderer.h:561
unsigned GetMaxLights() const
Definition: Drawable.h:228
Vector2 size_
Size.
Definition: Text.h:52
bool GetFlipY() const
Definition: StaticSprite2D.h:112
E Enum
Enum type.
Definition: FlagSet.h:50
char * buffer_
String buffer, point to &endZero if buffer is not allocated.
Definition: Str.h:555
TileMapInfo2D info_
Tile map information.
Definition: TileMap2D.h:85
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
unsigned offset_
Offset from the beginning.
Definition: PackageFile.h:34
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
Matrix3 Transpose() const
Return transposed.
Definition: Matrix3.h:213
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
TileMapInfo2D info_
Tile map information.
Definition: TmxFile2D.h:220
bool GetDrawAabb() const
Definition: PhysicsWorld2D.h:189
unsigned GetNumBones() const
Definition: Skeleton.h:117
Vector4(const float *data) noexcept
Construct from a float array.
Definition: Vector4.h:65
FontType GetFontType() const
Definition: Font.h:76
void SetOwnerConstraint(Constraint2D *constraint)
Definition: ConstraintGear2D.cpp:53
void PostUpdate(float timeStep) override
Perform variable step post-update.
Definition: RaycastVehicle.cpp:303
Base class for 2D visible components.
Definition: Drawable2D.h:69
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
Sprite(Context *context)
Construct.
Definition: Sprite.cpp:40
bool sorted_
Tails sorted flag.
Definition: RibbonTrail.h:212
void Initialize(const BoundingBox &box)
Initialize bounding box.
Definition: Octree.cpp:221
VariantValue()
Construct uninitialized.
Definition: Variant.h:315
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
int GetDragBeginDistance() const
Definition: UI.h:211
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
void FindPath(PODVector< Vector3 > &dest, const Vector3 &start, const Vector3 &end, const Vector3 &extents=Vector3::ONE, const dtQueryFilter *filter=nullptr)
Find a path between world space points. Return non-empty list of points if successful....
Definition: NavigationMesh.cpp:653
static void RegisterObject(Context *context)
Register object factory.
Definition: ConstraintMotor2D.cpp:46
void OnSetEnabled() override
Handle enabled/disabled state change.
Definition: CollisionShape.cpp:503
Vector4 ToVector4() const
Return as a vector.
Definition: Plane.h:117
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
JSON value class.
Definition: JSONValue.h:74
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
void Clip(const Rect &rect)
Clip with another rect.
Definition: Rect.cpp:88
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
unsigned GetSelection() const
Definition: DropDownList.cpp:213
PODVector< int > indices_
Triangle indices from geometries.
Definition: NavBuildData.h:66
Vector2 size_
Absolute size or multiplier.
Definition: RenderPath.h:80
void SetOtherBodyGroundAnchor(const Vector2 &groundAnchor)
Definition: ConstraintPulley2D.cpp:75
bool textSelectable_
Text selectable flag.
Definition: LineEdit.h:172
unsigned GetNumVertexBuffers() const
Definition: Geometry.h:78
float GetMass() const
Definition: CollisionShape2D.cpp:255
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
Vector< WeakPtr< NavArea > > areas_
NavAreas for this NavMesh.
Definition: NavigationMesh.h:392
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
FillMode fillMode_
Fill mode.
Definition: Camera.h:308
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
void * aux_
Auxiliary data pointer.
Definition: WorkQueue.h:56
bool SetWeight(const String &name, float weight)
Set animation weight. Return true on success.
Definition: AnimationController.cpp:359
const Vector2 & GetScaledGlyphOffset() const
Definition: Font.h:87
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
Scene * GetScene() const
Definition: Viewport.cpp:117
StringHash eventType_
Event type.
Definition: Object.h:299
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
bool compressed_
Compressed flag.
Definition: Sound.h:140
unsigned long long GetBufferHash(unsigned streamIndex)
Return buffer hash for building vertex declarations. Used internally.
Definition: VertexBuffer.h:119
const IntRect & GetImageRect() const
Definition: Sprite.h:111
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
bool heightFog_
Height fog mode flag.
Definition: Zone.h:166
HashSet< Pair< ShaderVariation *, ShaderVariation * > > usedPtrCombinations_
Already encountered shader combinations, pointer version for fast queries.
Definition: ShaderPrecache.h:58
bool IsVisible() const
Definition: Console.cpp:290
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.
void SetZoneMask(unsigned mask)
Definition: Drawable.cpp:209
float scrollSnapEpsilon_
Scroll snap epsilon.
Definition: ScrollView.h:204
bool GetInstancingSupport() const
Definition: Graphics.h:449
bool timeStamp_
Timestamp log messages flag.
Definition: Log.h:134
const Variant & GetShaderParameter(const String &name) const
Definition: RenderPath.cpp:293
Shader parameter definition.
Definition: ShaderVariation.h:38
virtual void ProcessRayQuery(const RayOctreeQuery &query, PODVector< RayQueryResult > &results)
Process octree raycast. May be called from a worker thread.
Definition: Drawable.cpp:118
unsigned gid_
Gid.
Definition: TileMapDefs2D.h:165
virtual void OnDrawOrderChanged()=0
Handle draw order changed.
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
unsigned frequency_
Default frequency.
Definition: SoundStream.h:70
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
bool IsTemporary() const
Definition: Serializable.h:131
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
const String & GetTitle() const
Definition: FileSelector.cpp:256
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
float GetOpacity() const
Definition: UIElement.h:558
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
String ToString() const
Return as string.
Definition: Matrix2.cpp:53
static const IntVector3 FORWARD_UP_RIGHT
(2, 1, 0) coordinate system.
Definition: RaycastVehicle.h:189
unsigned totalNodes_
Total root-level nodes.
Definition: Scene.h:83
float offsetY_
Glyph Y offset from origin.
Definition: FontFace.h:54
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
~Variant()
Destruct.
Definition: Variant.h:555
void SetPosition2D(const Vector2 &position)
Definition: Node.h:139
2D polygon collision component.
Definition: CollisionPolygon2D.h:31
void SetTechnique(unsigned index, Technique *tech, MaterialQuality qualityLevel=QUALITY_LOW, float lodDistance=0.0f)
Set technique.
Definition: Material.cpp:926
IntVector2 absoluteOffset_
Absolute position adjustment for glyphs.
Definition: Font.h:110
ConstraintType
Supported constraint types.
Definition: Constraint.h:36
Vector2 GetCharPosition(unsigned index)
Definition: Text.cpp:419
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
~MutexLock()
Destruct. Release the mutex.
Definition: Mutex.cpp:112
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
unsigned GetVertexSize() const
Definition: VertexBuffer.h:84
float GetOpacity() const
Definition: Text3D.cpp:503
int GetPacketsInPerSec() const
Definition: Connection.cpp:1111
void CleanupConnection(Connection *connection)
Clean up all references to a network connection that is about to be removed.
Definition: Component.cpp:214
int Left() const
Return left coordinate.
Definition: Rect.h:460
Compressed image mip level.
Definition: Image.h:55
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
void SetPopupOffset(const IntVector2 &offset)
Definition: Menu.cpp:281
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
float fogHeight_
Fog height distance.
Definition: Zone.h:186
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
void SetLayers(unsigned layers)
Definition: Texture2DArray.cpp:146
Font * GetFont() const
Definition: Text.h:143
LightType
Light types.
Definition: Light.h:39
Scene node that may contain components and child nodes.
Definition: Node.h:75
void Reset()
Reset to null and release the array reference.
Definition: ArrayPtr.h:132
bool blockEvents_
Block object from sending and receiving any events.
Definition: Object.h:201
T & Front()
Return first element.
Definition: List.h:405
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
unsigned GetVertexCount() const
Definition: Geometry.h:106
unsigned rttFormat_
Render texture format.
Definition: View3D.h:106
void SetOcclusion(bool enable)
Definition: Material.cpp:1110
bool HasPass(unsigned passIndex) const
Return whether has a pass.
Definition: Technique.h:254
Entity * entity_
Current entity.
Definition: SpriterInstance2D.h:97
unsigned GetNumViewports() const
Definition: Renderer.h:286
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
const Color & GetColor() const
Definition: Light.h:251
LinkedList()
Construct empty.
Definition: LinkedList.h:53
LightType GetLightType() const
Definition: Light.h:243
static const IntVector3 ZERO
Zero vector.
Definition: Vector3.h:166
String soundType_
SoundSource type, determines the master gain group.
Definition: SoundSource.h:146
const String & GetMessage() const
Definition: MessageBox.cpp:131
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 SetInAirRPM(float rpm)
Definition: RaycastVehicle.cpp:692
void SetGravity(const Vector2 &gravity)
Definition: PhysicsWorld2D.cpp:408
void SetRadius(float radius)
Definition: CollisionCircle2D.cpp:58
UI subsystem. Manages the graphical user interface.
Definition: UI.h:60
void UpdateSourceBatches() override
Handle update vertices.
Definition: AnimatedSprite2D.cpp:233
const String & GetName() const
Definition: Resource.h:91
PODVector< Matrix3x4 > worldTransforms_
World transforms of valid (existing and visible) instances.
Definition: StaticModelGroup.h:90
Sprite2D(Context *context)
Construct.
Definition: Sprite2D.cpp:38
void SetMotorSpeed(float motorSpeed)
Definition: ConstraintRevolute2D.cpp:131
SharedPtr< TmxFile2D > tmxFile_
Tmx file.
Definition: TileMap2D.h:83
bool GetSubStepping() const
Definition: PhysicsWorld2D.cpp:695
bool GetFixedWidthResizing() const
Definition: Window.h:120
short x_
X position in texture.
Definition: FontFace.h:40
float GetFloat() const
Return float.
Definition: PListFile.cpp:202
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
float aspectRatio_
Aspect ratio.
Definition: Camera.h:298
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
Vector4 Row(unsigned i) const
Return matrix row.
Definition: Matrix3x4.h:663
bool Execute(const String &declaration, const VariantVector &parameters=Variant::emptyVariantVector, Variant *functionReturn=nullptr, bool unprepare=true)
Query for a function by declaration and execute if found.
Definition: ScriptFile.cpp:293
T Lerp(T lhs, T rhs, U t)
Definition: MathDefs.h:77
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
const String & GetName() const
Definition: PackageFile.h:66
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
2D particle.
Definition: ParticleEmitter2D.h:34
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
Vector3 padding_
Bounding box padding.
Definition: NavigationMesh.h:376
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
void SetShadowIntensity(float intensity)
Definition: Light.cpp:392
const IntRect & GetScissorRect() const
Return scissor rectangle coordinates.
Definition: Graphics.h:583
unsigned length_
String length.
Definition: Str.h:631
void UpdateSlider()
Update slider knob position & size.
Definition: Slider.cpp:227
T * ptr_
Pointer to the object.
Definition: Ptr.h:243
UI(Context *context)
Construct.
Definition: UI.cpp:92
Camera * GetCamera() const
Definition: Viewport.cpp:122
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
int GetWidth() const
Definition: Text3D.cpp:458
Variant value_
Value.
Definition: Material.h:52
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
float r_
Red value.
Definition: Color.h:258
bool LoadRaw(Deserializer &source)
Load raw sound data.
Definition: Sound.cpp:216
BoundingBox boneBoundingBox_
Bounding box calculated from bones.
Definition: AnimatedModel.h:239
Orientation GetOrientation() const
Definition: ProgressBar.h:67
UpdateEvent
Definition: LogicComponent.h:33
String name_
Name.
Definition: RenderPath.h:74
asIScriptObject * GetScriptObject() const
Return script object.
Definition: ScriptInstance.h:124
const String & GetSource() const
Return source.
Definition: TmxFile2D.h:142
Font resource.
Definition: Font.h:48
void SetRadius(float radius)
Definition: OffMeshConnection.cpp:89
bool occlusion_
Render occlusion flag.
Definition: Material.h:344
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
String source_
Source.
Definition: TmxFile2D.h:151
~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 IsEnabled(const String &tag) const
Definition: RenderPath.cpp:378
float nearDistance_
Near distance.
Definition: SoundSource3D.h:92
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
void SetNorthNeighbor(Terrain *north)
Definition: Terrain.cpp:264
virtual void DrawDebugGeometry(DebugRenderer *debug, bool depthTest)
Visualize the component as debug geometry.
Definition: Component.cpp:116
void SetMaxLayers(unsigned maxLayers)
Definition: DynamicNavigationMesh.cpp:747
SDL_Joystick * joystick_
SDL joystick.
Definition: Input.h:120
void LoadSingleLanguageJSON(const JSONValue &source, const String &language=String::EMPTY)
Load strings from JSONValue for specific language.
Definition: Localization.cpp:217
void SetBullet(bool bullet)
Definition: RigidBody2D.cpp:253
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
Vector3 position_
Constraint position.
Definition: Constraint.h:208
b2ChainShape chainShape_
Chain shape.
Definition: CollisionChain2D.h:79
float d_
Plane constant.
Definition: Plane.h:124
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
Iterator()=default
Construct.
b2BodyDef bodyDef_
Box2D body define.
Definition: RigidBody2D.h:199
static void RegisterObject(Context *context)
Register object factory.
Definition: Animation.cpp:122
int orderInLayer_
Order in layer.
Definition: Drawable2D.h:118
String metadata_
Command/pass metadata.
Definition: RenderPath.h:160
void SetMaxLights(unsigned num)
Definition: Drawable.cpp:217
int width_
Width.
Definition: TmxFile2D.h:81
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
unsigned GetNumBufferedRows() const
Definition: Console.cpp:295
unsigned size_
File size.
Definition: PackageFile.h:36
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
~Animation() override
Destruct.
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
void SetParent(Node *parent)
Definition: Node.cpp:1125
PODVector< unsigned > morphRangeStarts_
Vertex buffer morph range start.
Definition: Model.h:232
float y_
Y coordinate.
Definition: Vector2.h:378
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
void SetShadowed(bool enable)
Definition: VertexBuffer.cpp:52
bool IsInside(const Vector3 &point) const
Check whether a point is inside.
Definition: Zone.cpp:211
BlendMode GetBlendMode() const
Definition: BorderImage.h:110
String defines_
Defines to use in compiling.
Definition: ShaderVariation.h:172
unsigned GetNumComponents() const
Definition: Node.h:586
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
unsigned selectionStart_
Selection start.
Definition: Text.h:267
JSONValue & operator=(bool rhs)
Assign from a boolean.
Definition: JSONValue.cpp:59
unsigned indexSize_
Index size.
Definition: IndexBuffer.h:108
Profiler * profiler_
Profiler.
Definition: Profiler.h:253
Vector2 TileIndexToPosition(int x, int y) const
Convert tile index to position.
Definition: TileMap2D.cpp:167
const BiasParameters & GetShadowBias() const
Definition: Light.h:311
Constraint2D * GetOtherConstraint() const
Definition: ConstraintGear2D.h:59
float YawAngle() const
Definition: Quaternion.cpp:209
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
float GetRadius() const
Definition: OffMeshConnection.h:70
void ResetSuspension()
Reset all suspension.
Definition: RaycastVehicle.cpp:404
const String & GetOrientations() const
Definition: Graphics.h:424
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
TrailPoint()=default
Construct a zero-initialized TrailPoint.
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
float LengthSquared() const
Definition: Vector2.h:306
@ USE_ORIGINAL_POSE
Choose between using the original pose or the active pose as a basis for a solution.
Definition: IKSolver.h:148
Vector2 axis_
Axis.
Definition: ConstraintWheel2D.h:102
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
Color effectColor_
Effect color.
Definition: Text.h:279
void SetLodDistance(float distance)
Definition: Geometry.cpp:148
~CollisionCircle2D() override
Destruct.
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
Variant(int value)
Construct from integer.
Definition: Variant.h:332
Vector2 GetScale2D() const
Definition: Node.h:437
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
signed char * GetRepeat() const
Return loop start.
Definition: Sound.h:77
void DrawDebugGeometry()
Add debug geometry to the debug renderer.
Definition: TileMap2D.cpp:103
Matrix2 Transpose() const
Return transpose.
Definition: Matrix2.h:163
int height_
Height.
Definition: TmxFile2D.h:83
void SetFixedSize(const IntVector2 &size)
Set fixed size.
Definition: UIElement.cpp:647
float repeatDelay_
Repeat delay.
Definition: Button.h:109
unsigned GetMaxObstacles() const
Definition: DynamicNavigationMesh.h:94
void SetObstacleAvoidanceParams(unsigned obstacleAvoidanceType, const CrowdObstacleAvoidanceParams &params)
Set the params for the specified obstacle avoidance type.
Definition: CrowdManager.cpp:379
VariantVector knots_
Knots on the spline.
Definition: Spline.h:126
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
float GetDoubleClickInterval() const
Definition: UI.h:199
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
IndexBuffer * GetIndexBuffer() const
Definition: Geometry.h:86
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
float GetDistanceToWall(const Vector3 &point, float radius, const Vector3 &extents=Vector3::ONE, const dtQueryFilter *filter=nullptr, Vector3 *hitPos=nullptr, Vector3 *hitNormal=nullptr)
Return distance to wall from a point. Maximum search radius must be specified.
Definition: NavigationMesh.cpp:782
Vector2 GetCharPosition(unsigned index)
Definition: Text3D.cpp:488
void Close()
Close the log file.
Definition: Log.cpp:106
static Matrix3x4 GetFullscreenQuadTransform(Camera *camera)
Return a transform for deferred fullscreen quad (directional light) rendering.
Definition: Light.cpp:644
void RemoveTile(const IntVector2 &tile) override
Remove tile from navigation mesh.
Definition: DynamicNavigationMesh.cpp:561
String ToString() const
Return as string.
Definition: Rect.cpp:74
Pair template class.
Definition: Pair.h:31
Sphere(const Vector3 &center, 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
File entry within the package file.
Definition: PackageFile.h:31
String GetError() const
Definition: HttpRequest.cpp:281
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
Singly-linked list node base class.
Definition: LinkedList.h:36
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
DBAPI
Supported database API.
Definition: Database.h:34
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
Data for one geometry instance.
Definition: Batch.h:112
WeakPtr< Graphics > graphics_
Graphics subsystem.
Definition: Renderer.h:543
RenderSurface * GetRenderSurface() const
Definition: Texture2D.h:78
Vector2 anchor_
Anchor.
Definition: ConstraintFriction2D.h:72
String Replaced(char replaceThis, char replaceWith, bool caseSensitive=true) const
Return a string with all occurrences of a character replaced.
Definition: Str.cpp:294
UIElement * GetChild(unsigned index) const
Definition: UIElement.cpp:1631
const VariantMap & GetGlobalVars() const
Definition: Object.cpp:411
const T & Back() const
Return last key.
Definition: HashSet.h:515
float MaxRGB() const
Return the largest value of the RGB components.
Definition: Color.cpp:197
void SetSubStepping(bool enable)
Definition: PhysicsWorld2D.cpp:403
SharedPtr< T > & operator=(const SharedPtr< T > &rhs)
Assign from another shared pointer.
Definition: Ptr.h:86
unsigned GetNumBackgroundLoadResources() const
Definition: ResourceCache.cpp:711
String ToString() const
Return as string.
Definition: Matrix3.cpp:65
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
static const Vector2 LEFT
(-1,0) vector.
Definition: Vector2.h:383
Definition: DynamicNavigationMesh.h:41
SharedPtr< RenderPath > renderPath_
Rendering path.
Definition: Viewport.h:121
bool GetUseSystemShapes() const
Definition: Cursor.h:128
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
Vector3 velocity_
Velocity.
Definition: ParticleEmitter.h:36
unsigned GetNumCompressedLevels() const
Definition: Image.h:190
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
@ LM_FREE
No layout operations will be performed.
Definition: UIElement.h:88
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
bool IsSRGB() const
Definition: Image.h:146
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
unsigned long long sortKey_
State sorting key.
Definition: Batch.h:78
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
const FocusParameters & GetShadowFocus() const
Definition: Light.h:319
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
bool IsStarted() const
Return whether thread exists.
Definition: Thread.h:61
unsigned levels_
Current mip levels.
Definition: Texture.h:245
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
void DecodeToUnicode()
UTF8 to Unicode.
Definition: Text.cpp:286
void SetEchoCharacter(unsigned c)
Definition: LineEdit.cpp:516
LoopMode2D GetLoopMode() const
Definition: AnimatedSprite2D.h:98
PODVector< unsigned char > offMeshAreas_
Offmesh connection areas.
Definition: NavBuildData.h:74
Sprite2D * GetSprite() const
Return sprite.
Definition: ParticleEffect2D.h:137
bool cubemap_
Cube map flag.
Definition: RenderPath.h:90
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.
~ConstraintDistance2D() 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
IntVector2 position_
Window position.
Definition: Graphics.h:782
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
Variant(double value)
Construct from a double.
Definition: Variant.h:374
Component that drives an AnimatedModel's animations.
Definition: AnimationController.h:85
Vector< String > autoComplete_
Definition: Console.h:203
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
pugi::xml_node_struct * node_
Pugixml node.
Definition: XMLElement.h:318
Vector< String > history_
Command history.
Definition: Console.h:181
Particle emitter component.
Definition: ParticleEmitter.h:54
void SetShadowFocus(const FocusParameters &parameters)
Definition: Light.cpp:379
float detailSampleDistance_
Detail sampling distance.
Definition: NavigationMesh.h:372
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
dtTileCache * tileCache_
Detour tile cache instance that works with the nav mesh.
Definition: DynamicNavigationMesh.h:140
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
@ FM_RESETFOCUS
Resets focus when clicked.
Definition: UIElement.h:77
void SetStartScale(float startScale)
Definition: RibbonTrail.cpp:331
~TechniqueEntry() noexcept=default
Destruct.
@ FM_FOCUSABLE
Is focusable.
Definition: UIElement.h:79
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
float GetRowHeight() const
Return row height.
Definition: FontFace.h:91
unsigned checksum_
File checksum.
Definition: PackageFile.h:38
SharedArrayPtr< unsigned char > rawVertexData_
Raw vertex data override.
Definition: Geometry.h:148
const TileMapInfo2D & GetInfo() const
Definition: TileMap2D.h:62
void SetSpeedVariance(float speedVariance)
Set speed variance.
Definition: ParticleEffect2D.cpp:314
~Localization() override
Destruct. Free all resources.
bool SetSpeed(const String &name, float speed)
Set animation speed. Return true on success.
Definition: AnimationController.cpp:346
unsigned length_
String length.
Definition: Str.h:551
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 SetOccludee(bool enable)
Definition: Drawable.cpp:235
void SetFontAttr(const ResourceRef &value)
Set font attribute.
Definition: Text3D.cpp:545
Node(const T &key)
Construct with key.
Definition: HashSet.h:45
float GetSizeAdd() const
Definition: ParticleEffect.h:375
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
float GetEdgeMaxError() const
Definition: NavigationMesh.h:253
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
Displays rendering stats and profiling information.
Definition: DebugHud.h:45
Timer elapsedTime_
Elapsed time since program start.
Definition: Timer.h:125
Material * GetCustomMaterial() const
Definition: StaticSprite2D.cpp:243
bool resizePopup_
Resize popup flag.
Definition: DropDownList.h:121
Vector3 position_
Position.
Definition: CustomGeometry.h:35
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
static const Color GREEN
Opaque green color.
Definition: Color.h:275
Mutex bufferMutex_
Mutex for buffer data.
Definition: BufferedSoundStream.h:66
void SetTextEffect(TextEffect textEffect)
Definition: Text3D.cpp:275
void SetAngle(float angle)
Definition: CollisionBox2D.cpp:94
FocusMode GetFocusMode() const
Definition: UIElement.h:629
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
const String & GetCategory() const
Definition: Object.cpp:449
void SetPopup(UIElement *popup)
Definition: Menu.cpp:259
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
bool Empty() const
Definition: Str.h:439
Vector< VAnimEventFrame > eventFrames_
Event frames.
Definition: ValueAnimation.h:177
Vector< U > Values() const
Return all the values.
Definition: HashMap.h:593
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
IntVector2 position_
Position.
Definition: UIElement.h:848
bool enabled_
Enabled flag.
Definition: BillboardSet.h:54
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
bool looped_
Looped flag.
Definition: AnimationState.h:187
PODVector< UIBatch > batches_
UI rendering batches.
Definition: UI.h:402
RenderPath()
Construct.
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
T * ptr_
Pointer to the array.
Definition: ArrayPtr.h:209
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
bool GetFocusOnShow() const
Definition: Console.h:141
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
unsigned fontDataSize_
Size of font data.
Definition: Font.h:108
bool GetUseFixtureMass() const
Definition: RigidBody2D.h:150
const String & GetPixelShaderDefines() const
Definition: Material.h:227
float projNearClip_
Cached actual near clip distance.
Definition: Camera.h:286
float radius_
Sphere radius.
Definition: Sphere.h:205
T * operator->() const
Point to the object.
Definition: Ptr.h:406
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
@ DD_TARGET
Drag and drop target flag.
Definition: UIElement.h:111
High-resolution operating system timer used in profiling.
Definition: Timer.h:48
void SetCullMode(CullMode mode)
Definition: Material.cpp:1074
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
float GetRestitution() const
Definition: RigidBody.cpp:678
PrimitiveType GetPrimitiveType() const
Definition: Geometry.h:90
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
bool Empty() const
Return whether is empty.
Definition: LinkedList.h:187
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 &currentScissor) 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
Node * Head() const
Return the head node.
Definition: List.h:424
void UpdateOffsets()
Update offsets of vertex elements.
Definition: VertexBuffer.cpp:92
unsigned maxLights_
Maximum lights.
Definition: Terrain.h:362
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
void SetFogEnd(float end)
Definition: Zone.cpp:127
static bool GetGL3Support()
Return whether is using an OpenGL 3 context. Return always false on Direct3D9 & Direct3D11.
Definition: OGLGraphics.cpp:2119
2D renderer component.
Definition: Renderer2D.h:69
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
static void RegisterObject(Context *context)
Register object factory.
Definition: NavigationMesh.cpp:134
bool FilterImplicitAttributes(XMLElement &dest) const override
Filter implicit attributes in serialization process.
Definition: DropDownList.cpp:236
void SetCamera(Camera *camera)
Definition: Viewport.cpp:74
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
float GetMasterGain(const String &type) const
Definition: Audio.cpp:206
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
Window mode parameters.
Definition: Graphics.h:128
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
Tile map component.
Definition: TileMapLayer2D.h:44
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
void SetNumHistoryRows(unsigned rows)
Definition: Console.cpp:239
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
float fov_
Spotlight field of view.
Definition: Light.h:431
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
void ReleaseJoint()
Release joint.
Definition: Constraint2D.cpp:101
const Vector< String > & GetXMLAttributes() const
Return the XML format attributes. Empty when loaded with binary serialization.
Definition: UnknownComponent.h:68
bool updateEnabled_
Update enabled flag.
Definition: Scene.h:355
bool WriteColor(const Color &value)
Write a color.
Definition: Serializer.cpp:169
unsigned Capacity() const
Return capacity of vector.
Definition: Vector.h:534
const String & GetShaderCacheDir() const
Definition: Graphics.h:611
bool LoadColorLUT(Deserializer &source)
Load as color LUT. Return true if successful.
Definition: Image.cpp:980
void SetLength(float length)
Definition: Light.cpp:302
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
unsigned GetTotalDataSize() const
Definition: PackageFile.h:81
String pixelShaderDefines_
Pixel shader defines.
Definition: RenderPath.h:168
SharedPtr< Viewport > viewport_
Viewport.
Definition: View3D.h:98
void SetAnimationLodBias(float bias)
Definition: RibbonTrail.cpp:877
float w_
W coordinate.
Definition: Quaternion.h:468
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
LineEdit(Context *context)
Construct.
Definition: LineEdit.cpp:43
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
String * stringValue_
Definition: JSONValue.h:319
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
FontHintLevel GetFontHintLevel() const
Definition: UI.h:243
Material's technique list entry.
Definition: Material.h:56
int WeakRefs() const
Return the array's weak reference count.
Definition: ArrayPtr.h:382
Vector3 GetGravity() const
Definition: PhysicsWorld.cpp:703
EventHandlerImpl(T *receiver, HandlerFunctionPtr function, void *userData=nullptr)
Construct with receiver and function pointers and userdata.
Definition: Object.h:311
unsigned GetNumTriggers() const
Definition: Animation.h:198
void UpdateSplineTangents() const
Update spline tangents.
Definition: ValueAnimation.cpp:489
Vector2 GetPosition2D() const
Definition: Node.h:409
float Angle(const Vector3 &rhs) const
Returns the angle between this vector and another vector in degrees.
Definition: Vector3.h:416
void SetOrthoSize(float orthoSize)
Definition: Camera.cpp:138
void SetFov(float fov)
Definition: Camera.cpp:130
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
PODVector< TrailPoint > points_
Tails.
Definition: RibbonTrail.h:210
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
static const Vector2 DOWN
(0,-1) vector.
Definition: Vector2.h:389
float speed_
The Speed of movement along the Spline.
Definition: SplinePath.h:136
@ JSONNT_NAN
Not a number.
Definition: JSONValue.h:53
HashMap< String, Variant > storedAttributes_
Storage for attributes while script object is being hot-reloaded.
Definition: ScriptInstance.h:208
void SetRegionMinSize(float size)
Definition: NavigationMesh.cpp:276
const String & GetName() const
Return pass name.
Definition: Technique.h:97
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
Vector2 velocity_
Velocity.
Definition: ParticleEmitter2D.h:58
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
int GetIndent() const
Definition: UIElement.h:728
Quaternion initialRotation_
Reset rotation.
Definition: Skeleton.h:69
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
float timeStep_
Timestep in seconds.
Definition: Timer.h:129
void SetHotSpot(const IntVector2 &hotSpot)
Definition: Sprite.cpp:152
CollisionGeometryDataCache & GetTriMeshCache()
Return trimesh collision geometry cache.
Definition: PhysicsWorld.h:285
float GetRange() const
Definition: ProgressBar.h:71
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
int exitCode_
Application exit code.
Definition: Application.h:68
bool GetAnimationEnabled() const
Definition: Animatable.h:109
Physics collision shape component.
Definition: CollisionShape.h:143
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 Reset()
Reset the timer.
Definition: Timer.cpp:210
void UpdateAnimation(float timeStep)
Update animation.
Definition: AnimatedSprite2D.cpp:252
static void RegisterObject(Context *context)
Register object factory.
Definition: FileSelector.cpp:138
static void Write(int level, const String &message)
Definition: Log.cpp:138
Vector3 GetPosition() const
Definition: RigidBody.cpp:602
T * Get() const
Return the raw pointer.
Definition: ArrayPtr.h:159
const float * Data() const
Return float data.
Definition: Vector4.h:207
void SetPath(const String &path)
Definition: FileSelector.cpp:193
void SetBorderColor(const Color &color)
Definition: Texture.cpp:98
void SetAwake(bool awake)
Definition: RigidBody2D.cpp:283
Quaternion rotation_
Constraint rotation.
Definition: Constraint.h:210
FileWatcher(Context *context)
Construct.
Definition: FileWatcher.cpp:52
TouchState * GetTouch(unsigned index) const
Definition: Input.cpp:1439
void ResetRoot()
Reset root pointer recursively. Called when the whole octree is being destroyed.
Definition: Octree.cpp:192
FillMode fillMode_
Polygon fill mode.
Definition: Material.h:330
void Define(const Rect &rect)
Define from another rect.
Definition: Rect.h:139
static const IntVector3 FORWARD_RIGHT_UP
(2, 0, 1) coordinate system.
Definition: RaycastVehicle.h:187
CrowdAgentTargetState GetTargetState() const
Definition: CrowdAgent.cpp:497
2x2 matrix for rotation and scaling.
Definition: Matrix2.h:31
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
bool LoadFile(const String &fileName)
Definition: Resource.cpp:87
~Constraint() override
Destruct.
Definition: Constraint.cpp:74
ShaderVariation(Shader *owner, ShaderType type)
Construct.
Definition: ShaderVariation.cpp:58
float z_
Z coordinate.
Definition: Vector3.h:480
void RemoveRootBone()
Remove (old) skeleton root bone.
Definition: AnimatedModel.cpp:1075
void Pop()
Remove the last JSON value.
Definition: JSONValue.cpp:210
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
~NamedPipe() override
Destruct and close.
Definition: NamedPipe.cpp:70
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
IntRect viewRect_
Viewport rectangle.
Definition: View.h:346
const IntRect & GetRectangle() const
Definition: Sprite2D.h:75
Vector3 center_
World bounding box center.
Definition: Octree.h:146
bool IsChecked() const
Definition: CheckBox.h:62
IntVector3 GetIntVector3() const
Return IntVector3, for string type.
Definition: PListFile.cpp:232
TrailType GetTrailType() const
Definition: RibbonTrail.h:184
void Swap(String &str)
Swap with another string.
Definition: Str.cpp:483
void SetMaxLodLevels(unsigned levels)
Definition: Terrain.cpp:208
bool IsCompressed() const
Definition: Image.h:182
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
Node * node_
Scene node.
Definition: Component.h:146
void SetGravity(const Vector3 &gravity)
Definition: PhysicsWorld.cpp:320
AnimationKeyFrame()
Construct.
Definition: Animation.h:49
Vector3 GetPosition() const
Definition: CrowdAgent.cpp:473
@ 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
IntVector2 minSize_
Minimum size.
Definition: UIElement.h:885
void SetCollisionLayerAndMask(unsigned layer, unsigned mask)
Set collision group and mask.
Definition: RigidBody.cpp:499
static void RegisterObject(Context *)
Register with engine context.
Definition: DynamicNavigationMesh.cpp:228
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
WeakPtr< Terrain > owner_
Parent terrain.
Definition: TerrainPatch.h:126
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
String appliedStyle_
Applied style.
Definition: UIElement.h:854
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
bool GetSmoothing() const
Definition: Terrain.h:152
unsigned ToHash() const
Return hash value.
Definition: FlagSet.h:232
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
float GetDetailSampleMaxError() const
Definition: NavigationMesh.h:261
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
bool Null() const
Check if the pointer is null.
Definition: Ptr.h:643
Material * GetMaterial() const
Definition: ParticleEffect.h:263
void SetShadowCascade(const CascadeParameters &parameters)
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
UIElement * GetParent() const
Definition: UIElement.h:679
@ JSON_NUMBER
JSON number type.
Definition: JSONValue.h:40
int GetAgentCrowdId() const
Return the agent id.
Definition: CrowdAgent.h:168
float GetShadowMaxExtrusion() const
Definition: Light.h:335
void HandleMouseMove(StringHash eventType, VariantMap &eventData)
Handle mouse move event.
Definition: UI.cpp:1794
const Vector2 & GetOwnerBodyAnchor() const
Definition: ConstraintPulley2D.h:69
Node * Head() const
Return the head node.
Definition: HashMap.h:622
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
float y_
Y coordinate.
Definition: Vector4.h:227
float GetAspectRatio() const
Definition: Light.h:299
static void ConstructElements(T *dest, RandomIteratorT start, RandomIteratorT end, CopyTag)
Copy-construct elements.
Definition: Vector.h:552
void Render()
Render after frame update.
Definition: Engine.cpp:705
VariantMap GetVariantMap() const
Return a variant map.
Definition: JSONValue.cpp:573
float edgeMaxLength_
Edge max length.
Definition: NavigationMesh.h:368
ResourceRef GetEffectAttr() const
Set particles effect attribute.
Definition: ParticleEmitter.cpp:364
void StepBack()
Scroll back one step.
Definition: ScrollBar.cpp:191
Vector3 Axis() const
Definition: Quaternion.cpp:224
String name_
Name of the parameter.
Definition: ShaderVariation.h:52
int height_
Buffer height.
Definition: OcclusionBuffer.h:191
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
const T & Front() const
Return first key.
Definition: HashSet.h:512
void MixMonoToMonoIP(Sound *sound, int *dest, unsigned samples, int mixRate)
Mix mono sample to mono buffer interpolated.
Definition: SoundSource.cpp:759
bool GetTileSwapXY() const
Definition: TileMapDefs2D.h:215
unsigned rowSize_
Row size in bytes.
Definition: Image.h:75
void SetOverride(bool enable)
Definition: Zone.cpp:166
VariantType GetType() const
Definition: Variant.h:1331
CollisionGeometryDataCache & GetGImpactTrimeshCache()
Return GImpact trimesh collision geometry cache.
Definition: PhysicsWorld.h:291
unsigned vbRef_
Vertex buffer ref.
Definition: Model.h:98
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
static const Matrix2 ZERO
Zero matrix.
Definition: Matrix2.h:253
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
String pass_
Scene pass name.
Definition: RenderPath.h:156
float GetWheelRadius(int wheel) const
Get wheel radius.
Definition: RaycastVehicle.cpp:562
void RemoveAllEventHandlers() override
Remove all scripted event handlers.
Definition: LuaScriptInstance.cpp:356
BorderImage * GetKnob() const
Definition: Slider.h:96
CompareMode GetDepthTestMode() const
Definition: Technique.h:112
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
void SetDefaultToolTipDelay(float delay)
Definition: UI.cpp:659
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
void Reset()
Reset movement along the path.
Definition: SplinePath.cpp:236
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
Engine(Context *context)
Construct.
Definition: Engine.cpp:95
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
HashNodeBase * ptr_
Node pointer.
Definition: HashBase.h:93
void Clear()
Reset to zero size.
Definition: VectorBuffer.cpp:123
unsigned Value() const
Definition: StringHash.h:91
SharedPtr< Material > material_
Material used for custom rendering.
Definition: BorderImage.h:151
unsigned totalFragments_
Total number of fragments.
Definition: Connection.h:98
Vector2 Min() const
Return left-top corner position.
Definition: Rect.h:245
unsigned GetSize() const
Definition: Deserializer.h:68
Connection * GetOwner() const
Definition: Node.h:401
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
Iterator End()
Return iterator to the end.
Definition: Vector.h:1125
List(List< T > &&list) noexcept
Move-construct from another list.
Definition: List.h:185
void SetRadius(float radius)
Definition: CrowdAgent.cpp:399
String line_
Text line.
Definition: LineEdit.h:152
bool IsDynamic() const
Definition: CustomGeometry.h:146
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
void SetMaxInactiveFps(int fps)
Definition: Engine.cpp:573
b2MassData massData_
Box2D mass data.
Definition: RigidBody2D.h:201
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
ListIteratorBase()
Construct.
Definition: ListBase.h:57
void Clear()
Clear the list.
Definition: List.h:346
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 multiSample_
Multisampling level.
Definition: Texture.h:267
const Quaternion & GetRotation() const
Definition: Node.h:413
bool IsExiting() const
Definition: Engine.h:117
void Merge(const Rect &rect)
Merge a rect.
Definition: Rect.h:172
int GetScriptObjectRef() const
Return Lua reference to script object.
Definition: LuaScriptInstance.h:128
float GetLodBias() const
Definition: Drawable.h:208
bool GetPauseMinimized() const
Definition: Engine.h:105
~Vector()
Destruct.
Definition: Vector.h:104
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
Doubly-linked list iterator base class.
Definition: ListBase.h:54
Cube texture resource.
Definition: TextureCube.h:36
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
bool GetUseReflection() const
Definition: Camera.h:214
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
Pass * pass_
Material pass.
Definition: Batch.h:102
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
HashSet< int > keyDown_
Key down state.
Definition: Input.h:414
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
FillMode
Fill mode.
Definition: GraphicsDefs.h:107
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 &currentScissor) override
Return UI rendering batches.
Definition: UISelectable.cpp:42
bool sorted_
Billboards sorted flag.
Definition: ParticleEffect.h:437
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
CrowdAgentState
Definition: CrowdAgent.h:51
Texture * texture_
Texture.
Definition: UIBatch.h:83
int touchID_
Touch (finger) ID.
Definition: Input.h:65
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
~Skybox() override
Destruct.
bool IsSceneLoaded() const
Definition: Connection.h:215
const Matrix3x4 & GetView() const
Return the view transform.
Definition: DebugRenderer.h:160
int FloorToInt(T x)
Definition: MathDefs.h:214
Base class for sound streams.
Definition: SoundStream.h:31
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
bool IsAutoVisibleOnError() const
Definition: Console.h:110
float x_
X coordinate.
Definition: Vector3.h:476
bool IsSDFFont() const
Is signed distance field font.
Definition: Font.h:79
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 IsNumber() const
Definition: JSONValue.h:190
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
~ConstraintGear2D() override
Destruct.
SharedArrayPtr< T > & operator=(const SharedArrayPtr< T > &rhs)
Assign from another shared array pointer.
Definition: ArrayPtr.h:67
FrustumPlane
Frustum planes.
Definition: Frustum.h:37
bool SetHeightMap(Image *image)
Definition: Terrain.cpp:244
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
TextureUsage usage_
Texture usage type.
Definition: Texture.h:243
FillMode fillMode_
Polygon fill mode.
Definition: Graphics.h:874
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
Iterator End()
Return iterator to the end.
Definition: HashSet.h:506
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
bool GetKeyPress(Key key) const
Definition: Input.cpp:1339
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
unsigned checksum_
Package file checksum.
Definition: PackageFile.h:106
const void * vertexData_
Vertex data pointer.
Definition: OcclusionBuffer.h:70
SharedPtr< ValueAnimation > animation_
Attribute animation.
Definition: ValueAnimationInfo.h:88
bool operator==(const SharedPtr< U > &rhs) const
Test for equality with another shared pointer.
Definition: Ptr.h:155
static const Color MAGENTA
Opaque magenta color.
Definition: Color.h:281
unsigned format_
Texture format.
Definition: RenderPath.h:78
const T first_
Key.
Definition: HashMap.h:76
void SetAreaID(unsigned newID)
Definition: NavArea.cpp:60
bool minimized_
Minimized flag.
Definition: Input.h:470
Rendering path definition. A sequence of commands (e.g. clear screen, draw objects with specific pass...
Definition: RenderPath.h:202
WrapMode
Animation wrap mode.
Definition: AnimationDefs.h:31
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
bool operator==(const SharedArrayPtr< T > &rhs) const
Test for equality with another shared array pointer.
Definition: ArrayPtr.h:120
float GetMotorSpeed() const
Definition: ConstraintPrismatic2D.h:98
unsigned memoryUse_
Memory use in bytes.
Definition: Resource.h:115
void SetMaterial(Material *material)
Definition: BorderImage.cpp:242
void SetOptimizeBufferSize(bool enable)
Definition: DecalSet.cpp:290
const IntVector2 & GetMinSize() const
Definition: UIElement.h:474
bool mouseVisible_
Operating system mouse cursor visible flag.
Definition: Input.h:450
Stored occlusion render job.
Definition: OcclusionBuffer.h:65
void Clear()
Clear the buffer.
Definition: OcclusionBuffer.cpp:152
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 SetMaxLights(unsigned num)
Definition: Terrain.cpp:464
bool Create()
Create buffer.
Definition: OGLVertexBuffer.cpp:229
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
U second_
Second value.
Definition: Pair.h:76
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
unsigned zoneMask_
Zone mask.
Definition: Drawable.h:385
bool interpolation_
Mixing interpolation flag.
Definition: Audio.h:149
void UpdateGeometries()
Update geometries and sort batches.
Definition: View.cpp:1280
unsigned GetMaximumIterations() const
Definition: IKSolver.cpp:193
Plane planes_[NUM_FRUSTUM_PLANES]
Frustum planes.
Definition: Frustum.h:182
void DrawDebugGeometry(bool depthTest)
Add debug geometry to the debug renderer.
Definition: Renderer.cpp:749
Random access const iterator.
Definition: Iter.h:127
Texture2D * GetDefaultLightSpot() const
Definition: Renderer.h:439
@ O_HEXAGONAL
Hexagonal.
Definition: TileMapDefs2D.h:45
bool GetMultiselect() const
Definition: ListView.h:159
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
const IntVector2 & GetCustomSize() const
Definition: UI.h:265
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
static const Vector2 UP
(0,1) vector.
Definition: Vector2.h:387
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
Vector< String > headers_
Headers.
Definition: HttpRequest.h:97
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
WeakPtr< SoundListener > listener_
Sound listener.
Definition: Audio.h:161
bool LoadXML(const XMLElement &source) override
Load from XML data. Return true if successful.
Definition: UIElement.cpp:171
AllocatorBlock * allocator_
Node allocator.
Definition: HashBase.h:155
bool Remove()
Remove element from its parent.
Definition: XMLElement.cpp:142
2D texture array resource.
Definition: Texture2DArray.h:36
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
static const Matrix3 IDENTITY
Identity matrix.
Definition: Matrix3.h:334
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
void SetAutoAspectRatio(bool enable)
Definition: Camera.cpp:203
PODVector< Component * > delayedDirtyComponents_
Delayed dirty notification queue for components.
Definition: Scene.h:329
void SetRegionMergeSize(float size)
Definition: NavigationMesh.cpp:283
SharedPtr< LuaScriptEventInvoker > eventInvoker_
Event invoker.
Definition: LuaScriptInstance.h:175
unsigned GetSelectionStart() const
Definition: Text.h:171
TechniqueEntry() noexcept
Construct with defaults.
Definition: Material.cpp:168
SharedPtr< File > logFile_
Log file.
Definition: Log.h:128
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
const char ** enumNames_
Enum names.
Definition: Attribute.h:106
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
int depth_
Depth.
Definition: Image.h:69
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
float GetFogHeightScale() const
Definition: Zone.h:118
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
static const Vector3 DOWN
(0,-1,0) vector.
Definition: Vector3.h:491
unsigned viewMask_
View mask.
Definition: Terrain.h:348
bool GetTextureRectangle(Rect &rect, bool flipX=false, bool flipY=false) const
Return texture rectangle.
Definition: Sprite2D.cpp:167
unsigned format_
Texture format.
Definition: Texture.h:241
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
bool hovering_
Hovering flag.
Definition: UIElement.h:822
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
@ OT_TILE
Tile.
Definition: TileMapDefs2D.h:102
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 Set(unsigned index)
Set a bit.
Definition: ReplicationState.h:62
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
int drawOrder_
Draw order.
Definition: TileMapLayer2D.h:132
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
UniquePtr< dtTileCacheAlloc > allocator_
Used by dtTileCache to allocate blocks of memory.
Definition: DynamicNavigationMesh.h:142
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
Iterator Begin()
Return iterator to the beginning.
Definition: HashMap.h:603
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
Vector2 anchorMax_
Anchor maximum position.
Definition: UIElement.h:903
void OnSceneSet(Scene *scene) override
Subscribe to events when assigned to a scene.
Definition: DynamicNavigationMesh.cpp:1069
unsigned ToHash() const
Return hash value for HashSet & HashMap.
Definition: Vector3.h:153
Shader(Context *context)
Construct.
Definition: Shader.cpp:64
RenderSurface * GetRenderTarget(unsigned index) const
Return current rendertarget by index.
Definition: OGLGraphics.cpp:2181
VariantType type_
Attribute type.
Definition: Attribute.h:102
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
void ReleaseBody()
Remove the rigid body.
Definition: RigidBody.cpp:875
Component * component_
Component.
Definition: NavigationMesh.h:62
@ OT_RECTANGLE
Rectangle.
Definition: TileMapDefs2D.h:94
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
Model * GetModel() const
Definition: StaticModel.h:82
void RebuildChainTrees()
Updates the solver's internal data structures, which is required whenever the tree is modified in any...
Definition: IKSolver.cpp:378
bool inputFocus_
Input focus flag.
Definition: Input.h:468
const float * Data() const
Return float data.
Definition: Matrix4.h:639
Button * GetOKButton() const
Definition: FileSelector.h:115
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
BoundingBox box_
Bounding box.
Definition: OctreeQuery.h:135
SharedArrayPtr< unsigned char > loadByteCode_
Byte code for asynchronous loading.
Definition: ScriptFile.h:152
static const Rect FULL
Rect in the range (-1, -1) - (1, 1).
Definition: Rect.h:272
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
TextEffect GetTextEffect() const
Definition: Text.h:179
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 wchar_t * CString() const
Return character data.
Definition: Str.h:627
Iterator()=default
Construct.
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
PODVector< unsigned short > indices_
Decal indices.
Definition: DecalSet.h:99
static ThreadID GetCurrentThreadID()
Definition: Thread.cpp:137
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 &parameters=Variant::emptyVariantVector)
Add a delay-executed function call, optionally repeating.
Definition: ScriptFile.cpp:491
void SetMinAnchor(const Vector2 &anchor)
Definition: UIElement.cpp:769
static int Print(lua_State *L)
Print function.
Definition: LuaScript.cpp:397
T Pow(T x, T y)
Definition: MathDefs.h:178
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
static const IntRect ZERO
Zero-sized rect.
Definition: Rect.h:481
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
bool array_
Texture array status if DDS.
Definition: Image.h:239
SharedPtr< BorderImage > cursor_
Cursor element.
Definition: LineEdit.h:150
static void RegisterObject(Context *context)
Register object factory.
Definition: CheckBox.cpp:48
const Frustum & GetFrustum() const
Return the view frustum.
Definition: DebugRenderer.h:166
Model * GetModel() const
Definition: CollisionShape.h:249
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
@ INHERIT_PARENT_ROTATION
Definition: IKEffector.h:61
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
~BufferedSoundStream() override
Destruct.
Vector3 GetSignedWorldScale() const
Definition: Node.cpp:1182
HashMap< StringHash, ResourceGroup > resourceGroups_
Resources by type.
Definition: ResourceCache.h:250
Tooltip UI element.
Definition: ToolTip.h:32
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
Drawable2D(Context *context)
Construct.
Definition: Drawable2D.cpp:46
~RigidBody2D() override
Destruct.
Definition: RigidBody2D.cpp:61
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
LayoutMode GetLayoutMode() const
Definition: UIElement.h:643
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
@ AM_FILE
Attribute used for file serialization.
Definition: Attribute.h:39
virtual bool IsEof() const
Definition: Deserializer.h:56
unsigned char areaID_
Area id to assign to the marked area.
Definition: NavArea.h:70
float farClip_
Far clip distance.
Definition: OcclusionBuffer.h:213
const Vector< TechniqueEntry > & GetTechniques() const
Return all techniques.
Definition: Material.h:206
LightBatchQueue * lightQueue_
Light properties.
Definition: Batch.h:100
List & operator+=(const T &rhs)
Add-assign an element.
Definition: List.h:227
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
~Node() override
Destruct. Any child nodes are detached.
Definition: Node.cpp:67
void SetName(const String &name)
Set name.
Definition: ShaderVariation.cpp:70
int GetVSMMultiSample() const
Definition: Renderer.h:346
float fadeTime_
Animation weight fade time, 0 if no fade.
Definition: AnimationController.h:65
Cursor(Context *context)
Construct.
Definition: Cursor.cpp:76
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
float GetFrequency() const
Definition: Sound.h:95
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
~ValueAnimation() override
Destruct.
SharedArrayPtr(const SharedArrayPtr< T > &rhs)
Copy-construct from another shared array pointer.
Definition: ArrayPtr.h:45
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
float GetGravityScale() const
Definition: RigidBody2D.h:174
HashMap< Pair< Light *, Camera * >, Rect > lightScissorCache_
Cache for light scissor queries.
Definition: Renderer.h:587
HashNodeBase ** ptrs_
Bucket head pointers.
Definition: HashBase.h:153
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
void StaticCast(const SharedArrayPtr< U > &rhs)
Perform a static cast from a shared array pointer of another type.
Definition: ArrayPtr.h:135
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
unsigned GetViewMask() const
Definition: Drawable.h:212
float GetMinAngle() const
Definition: BillboardSet.h:150
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
bool keepInterResults_
Keep internal build resources for debug draw modes.
Definition: NavigationMesh.h:386
TextureAddressMode
Texture addressing mode.
Definition: GraphicsDefs.h:242
void SetFixedHeightResizing(bool enable)
Definition: Window.cpp:267
bool IsHeadless() const
Definition: Engine.h:121
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
const Color & GetColor(Corner corner) const
Definition: Text3D.cpp:498
bool GetParametersDirty() const
Return whether the parameters are dirty.
Definition: OGLTexture.cpp:176
void SetContentElement(UIElement *element)
Definition: ScrollView.cpp:281
void SetEdgeMaxError(float error)
Definition: NavigationMesh.cpp:297
unsigned GetBufferNumBytes() const
Return amount of buffered (unplayed) sound data in bytes.
Definition: BufferedSoundStream.cpp:110
float GetCFM() const
Definition: Constraint.h:166
void SetBringToBack(bool enable)
Definition: UIElement.cpp:864
unsigned GetNumDrawables() const
Return number of drawables.
Definition: Octree.h:93
void SetSmoothingConstant(float constant)
Definition: Scene.cpp:655
@ JSON_ARRAY
JSON array type.
Definition: JSONValue.h:44
bool SetNumGeometryLodLevels(unsigned index, unsigned num)
Definition: Model.cpp:556
bool HasAlphaChannel() const
Definition: Image.cpp:2356
Vector< PODVector< GlyphLocation > > pageGlyphLocations_
Glyph locations per each texture in the font.
Definition: Text.h:293
float GetStepFactor() const
Definition: ScrollBar.h:91
static void RegisterObject(Context *)
Register object factory and attributes.
Definition: NavArea.cpp:50
unsigned GetShadowMask() const
Definition: Terrain.h:217
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
virtual const String & GetName() const
Definition: Deserializer.cpp:53
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 &center, 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
~Light() override
Destruct.
void SetBlockEvents(bool block)
Block object from sending and receiving events.
Definition: Object.h:179
bool IsStereo() const
Definition: Audio.h:87
static void RegisterObject(Context *context)
Register object factory.
Definition: TileMap2D.cpp:49
bool GetSRGBWriteSupport() const
Definition: Graphics.h:476
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
Static model per-geometry extra data.
Definition: StaticModel.h:33
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
int * data_
Buffer data.
Definition: OcclusionBuffer.h:59
SharedPtr< ResourceRouter > router_
AngelScript resource router.
Definition: Script.h:143
Context * context_
Execution context.
Definition: Object.h:185
static Urho3D::StringHash GetTypeStatic()
Return static type.
Definition: UnknownComponent.h:77
float GetEdgeMaxLength() const
Definition: NavigationMesh.h:249
float GetDefaultToolTipDelay() const
Definition: UI.h:215
ConstIterator Find(const T &value) const
Return const iterator to value, or to the end if not found.
Definition: List.h:381
bool compiled_
Compiled flag.
Definition: ScriptFile.h:136
File selector dialog.
Definition: FileSelector.h:51
~Animatable() override
Destruct.
Vector3 position_
Position.
Definition: DecalSet.h:62
TileMapObject2D * GetObject(unsigned index) const
Return tile map object at index.
Definition: TmxFile2D.cpp:327
SharedPtr< Texture2D > texture_
Texture.
Definition: Sprite2D.h:107
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
const Vector3 & GetScale() const
Definition: Node.h:433
unsigned rootBoneIndex_
Root bone index.
Definition: Skeleton.h:147
int GetWidth() const
Definition: TileMapLayer2D.cpp:274
float GetPageStep() const
Definition: ScrollView.h:140
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
bool enabled_
Enabled flag.
Definition: Component.h:152
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
void SetDepthTestMode(CompareMode mode)
Definition: Technique.cpp:109
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 SetFixedScreenSize(bool enable)
Definition: Text3D.cpp:359
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
BlendMode blendMode_
Blending mode.
Definition: Graphics.h:856
Mutex sceneMutex_
Mutex for the delayed dirty notification queue.
Definition: Scene.h:331
void SetInertia(float inertia)
Definition: RigidBody2D.cpp:141
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
bool ReadTiles(Deserializer &source, bool silent)
Read tiles data to the navigation mesh.
Definition: DynamicNavigationMesh.cpp:770
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
bool GetAmbientGradient() const
Definition: Zone.h:134
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
~RibbonTrail() override
Destruct.
unsigned GetProfilerMaxDepth() const
Definition: DebugHud.h:103
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
void Stop()
Stop playback.
Definition: SoundSource.cpp:255
UniquePtr< pugi::xml_document > document_
Pugixml document.
Definition: XMLFile.h:97
const IntVector2 & GetPopupOffset() const
Definition: Menu.h:80
SDL_JoystickID joystickID_
SDL joystick instance ID.
Definition: Input.h:122
Image resource.
Definition: Image.h:81
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
bool IsInView() const
Definition: Drawable.cpp:264
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
bool scissorTest_
Scissor test enable flag.
Definition: Graphics.h:876
Iterator Begin()
Return iterator to the beginning.
Definition: Str.h:383
Variant(const String &value)
Construct from a string.
Definition: Variant.h:410
unsigned GetPoolSize() const
Definition: Database.h:64
bool IsBool() const
Definition: JSONValue.h:187
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
Material * GetMaterial() const
Definition: Terrain.cpp:523
void WriteTile(Serializer &dest, int x, int z) const
Write tile data.
Definition: NavigationMesh.cpp:1253
int vsmMultiSample_
Multisample level for VSM shadows.
Definition: Renderer.h:623
VertexMaskFlags elementMask_
Vertex element legacy bitmask.
Definition: VertexBuffer.h:165
TextureUsage
Texture usage types.
Definition: GraphicsDefs.h:261
static const Vector3 RIGHT
(1,0,0) vector.
Definition: Vector3.h:487
void SetAgentRadius(float radius)
Definition: NavigationMesh.cpp:255
bool compressed_
Compression flag.
Definition: File.h:146
@ 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
bool IsPlaying() const
Definition: Audio.h:91
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
float GetGain() const
Definition: SoundSource.h:106
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
float GetWeight() const
Definition: AnimationState.h:147
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
Vector2 startPos_
Start position.
Definition: ParticleEmitter2D.h:56
void SetVertexShader(const String &name)
Definition: Technique.cpp:135
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
void SetText(const String &text)
Definition: Text3D.cpp:223
Two-dimensional bounding rectangle with integer values.
Definition: Rect.h:280
int height_
Height of the window. 0 to pick automatically.
Definition: Graphics.h:133
bool IsObstacleInTile(Obstacle *obstacle, const IntVector2 &tile) const
Return whether the Obstacle is touching the given tile.
Definition: DynamicNavigationMesh.cpp:548
void PushString(const String &string)
Push string to stack.
Definition: LuaFunction.cpp:130
void SetScene(Scene *scene)
Definition: Viewport.cpp:69
AllocatorBlock * allocator_
Allocator block.
Definition: Allocator.h:124
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
~ValueAnimationInfo() override
Destruct.
bool IsOpen() const
Definition: File.cpp:419
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
Matrix4 projection_
Cached projection matrix.
Definition: Camera.h:274
void UpdateGeometry(const FrameInfo &frame) override
Prepare geometry for rendering. Called from a worker thread if possible (no GPU update).
Definition: RibbonTrail.cpp:397
Decal renderer component.
Definition: DecalSet.h:103
float tileWidth_
Tile width.
Definition: TileMapDefs2D.h:59
float sortValue_
Current sort value.
Definition: Drawable.h:397
Vertex buffer morph data.
Definition: Model.h:41
void SetLodBias(float bias)
Definition: Drawable.cpp:185
bool operator!=(const SharedPtr< U > &rhs) const
Test for inequality with another shared pointer.
Definition: Ptr.h:158
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
String ToString() const
Return as string.
Definition: Rect.cpp:81
rcPolyMeshDetail * polyMeshDetail_
Recast detail poly mesh.
Definition: NavBuildData.h:99
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
static const Vector3 BACK
(0,0,-1) vector.
Definition: Vector3.h:495
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
bool multiselect_
Multiselect flag.
Definition: ListView.h:193
void OnDeviceLost() override
Mark the GPU resource destroyed on context destruction.
Definition: OGLTexture3D.cpp:42
const Color & GetModalFrameColor() const
Definition: Window.h:140
const Quaternion & GetRotation() const
Definition: CollisionShape.h:241
@ WM_CLAMP
Clamp mode.
Definition: AnimationDefs.h:38
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
unsigned GetAnisotropy() const
Definition: Texture.h:112
void SetCenter(const Vector2 &center)
Definition: CollisionCircle2D.cpp:69
void DrawDebugGeometry(DebugRenderer *debug, bool depthTest) override
Visualize the component as debug geometry.
Definition: NavigationMesh.cpp:162
float g_
Green value.
Definition: Color.h:260
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
Material * material_
Material.
Definition: Batch.h:201
Tile define.
Definition: TileMapDefs2D.h:134
void SetLoop(bool loop)
Definition: CollisionChain2D.cpp:57
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
lua_State * GetState() const
Return Lua state.
Definition: LuaScript.h:88
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
Text * GetModeText() const
Definition: DebugHud.h:87
bool GetDirectoryMode() const
Definition: FileSelector.h:144
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
unsigned GetEchoCharacter() const
Definition: LineEdit.h:115
void ApplyTrack(AnimationStateTrack &stateTrack, float weight, bool silent)
Apply track.
Definition: AnimationState.cpp:477
float GetMaxMotorTorque() const
Definition: ConstraintRevolute2D.h:91
void DrawDebugGeometry(DebugRenderer *debug, bool depthTest) override
Render debug geometry for the bounds.
Definition: NavArea.cpp:75
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
Instanced 3D geometry draw call.
Definition: Batch.h:134
virtual ~CustomVariantValue()=default
Destruct.
bool retryCreation_
Constraint creation retry flag if attributes initially set without scene.
Definition: Constraint.h:234
Timeline.
Definition: SpriterData2D.h:200
void SetRatio(float ratio)
Definition: ConstraintGear2D.cpp:88
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
WeakPtr< Terrain > north_
North neighbor terrain.
Definition: Terrain.h:306
CompressedFormat compressedFormat_
Compressed format.
Definition: Image.h:243
RenderPath * renderPath_
Renderpath.
Definition: View.h:386
List iterator.
Definition: List.h:58
Pair()=default
Construct undefined.
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
const int * Data() const
Return integer data.
Definition: Vector2.h:144
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
VariantMap extraData_
Extra control data.
Definition: Controls.h:70
String GetTextAttr() const
Return text attribute.
Definition: Text.cpp:461
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
DebugTriangle()=default
Construct undefined.
Quaternion Inverse() const
Return inverse.
Definition: Quaternion.h:364
Tmx objects layer.
Definition: TmxFile2D.h:107
SoundSource(Context *context)
Construct.
Definition: SoundSource.cpp:103
Vector< String > StringVector
Vector of strings.
Definition: Variant.h:83
~ConstraintWheel2D() override
Destruct.
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 SetMaxObstacles(unsigned maxObstacles)
Definition: DynamicNavigationMesh.h:87
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
int drawOrder_
Draw order.
Definition: Drawable2D.h:58
Decal()
Construct with defaults.
Definition: DecalSet.h:79
void Decompose(Vector3 &translation, Quaternion &rotation, Vector3 &scale) const
Return decomposition to translation, rotation and scale.
Definition: Matrix4.cpp:65
float GetFogEnd() const
Definition: Zone.h:110
float radialAccelVariance_
Radial acceleration variance.
Definition: ParticleEffect2D.h:282
void BeginSendEvent(Object *sender, StringHash eventType)
Begin event send.
Definition: Context.cpp:454
Texture2D * GetRenderTexture() const
Definition: View3D.cpp:141
Definition: Input.h:58
int GetMouseMoveY() const
Definition: Input.cpp:1431
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
bool GetVSync() const
Definition: Graphics.h:395
Vector3 Scale() const
Return the scaling part.
Definition: Matrix3x4.h:616
T & Front()
Return first element.
Definition: Vector.h:503
String fileName_
XML file name.
Definition: ShaderPrecache.h:54
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
int GetLevel() const
Definition: Log.h:99
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
bool IsFixedRotation() const
Definition: RigidBody2D.h:166
void SetMinDirection(const Vector3 &direction)
Definition: ParticleEffect.cpp:490
Definition: Octree.h:40
Timer()
Construct. Get the starting clock value.
Definition: Timer.cpp:195
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 SetIsDesktop(bool enable)
Definition: Technique.cpp:130
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
~SoundStream() override
Destruct.
StencilOp stencilZFail_
Stencil operation on depth fail.
Definition: Graphics.h:886
float nearClip_
Near clip distance.
Definition: Camera.h:290
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
float GetMaxForce() const
Definition: ConstraintMouse2D.h:62
Vector2() noexcept
Construct a zero vector.
Definition: Vector2.h:179
void SetPixelShaderDefines(const String &defines)
Definition: Material.cpp:944
void DefineTexCoord(const Vector2 &texCoord)
Define a vertex UV coordinate.
Definition: CustomGeometry.cpp:568
~DebugHud() override
Destruct.
Definition: DebugHud.cpp:105
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
Vector3 GetAngularFactor() const
Definition: RigidBody.cpp:648
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
void SetAxis(const Vector3 &axis)
Definition: Constraint.cpp:197
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
void Clear()
Clear to undefined state.
Definition: Sphere.h:144
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
IntRect rect_
Viewport rectangle.
Definition: Viewport.h:119
FaceCameraMode faceCameraMode_
Billboard rotation mode in relation to the camera.
Definition: BillboardSet.h:190
Vector2 anchor_
Anchor.
Definition: ConstraintPrismatic2D.h:107
void SetDepthStencilName(const String &name)
Definition: RenderPath.cpp:283
float GetRadius() const
Definition: CollisionCircle2D.h:54
Object * GetTarget() const
Return target object.
Definition: ValueAnimationInfo.cpp:119
RayQueryLevel
Graphics raycast detail level.
Definition: OctreeQuery.h:180
bool IsResizable() const
Definition: Window.h:116
float height_
Height on screen.
Definition: FontFace.h:50
MouseButtonFlags lastMouseButtons_
Last mouse button pressed.
Definition: UI.h:428
int GetMouseMoveX() const
Definition: Input.cpp:1423
Contact info.
Definition: PhysicsWorld2D.h:275
Geometry * geometry_
Geometry.
Definition: Batch.h:203
void Flush()
Flush any buffered output to the file.
Definition: File.cpp:408
float GetSplineTension() const
Definition: ValueAnimation.h:122
bool HasRequestedTarget() const
Definition: CrowdAgent.h:204
String ToString() const
Return as string.
Definition: Vector3.cpp:59
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
int GetPatchSize() const
Definition: Terrain.h:128
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
bool shadowed_
Shadowed flag.
Definition: VertexBuffer.h:177
Vector3 scale_
Bone scale.
Definition: Animation.h:62
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
bool occluder_
Occluder flag.
Definition: Drawable.h:367
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 SetRowSpacing(float spacing)
Definition: Text.cpp:320
float edgeMaxError_
Edge max error.
Definition: NavigationMesh.h:370
unsigned GetShadowMask() const
Definition: Drawable.h:220
bool GetEffectRoundStroke() const
Definition: Text.h:191
void CalculateLodErrors(TerrainPatch *patch)
Calculate LOD errors for a patch.
Definition: Terrain.cpp:1365
float time_
Time.
Definition: ParticleEffect.h:100
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
bool GetSelectOnClickEnd() const
Definition: ListView.h:167
bool Empty() const
Return whether is empty.
Definition: Polyhedron.h:105
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
Matrix4 GetProjection() const
Definition: Camera.cpp:440
void SetSelected(bool enable)
Definition: UIElement.cpp:952
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
IntVector2 viewSize_
Viewport size.
Definition: Drawable.h:75
bool CheckAlignment() const
Check whether alignment supports moving and resizing.
Definition: Window.cpp:419
unsigned index_
Pass index.
Definition: Technique.h:174
static void DestructElements(T *dest, unsigned count)
Call the elements' destructors.
Definition: Vector.h:674
bool IsBullet() const
Definition: RigidBody2D.h:170
CullMode cullMode_
Culling mode.
Definition: Technique.h:178
unsigned GetNumChars() const
Definition: Text.h:207
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
unsigned target_
Definition: RenderSurface.h:166
void ResetMouseMode()
Reset the last mouse mode that wasn't suppressed in SetMouseMode.
Definition: Input.cpp:923
void SetSelection(unsigned index)
Definition: DropDownList.cpp:183
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
LinkedListNode()
Construct.
Definition: LinkedList.h:39
static void RegisterObject(Context *context)
Register object factory.
Definition: Renderer2D.cpp:86
UIElement(Context *context)
Construct.
Definition: UIElement.cpp:95
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
IntVector2 maxOffset_
Maximum offset.
Definition: UIElement.h:895
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
const IntVector2 & GetNumVertices() const
Definition: Terrain.h:136
void AdjustScissor(IntRect &currentScissor)
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
~DynamicNavBuildData() override
Destructor.
Definition: NavBuildData.cpp:78
bool exiting_
Exiting flag.
Definition: Engine.h:169
void SetAxis(const Vector2 &axis)
Definition: ConstraintWheel2D.cpp:72
void SetSpriteAttr(const ResourceRef &value)
Set sprite attribute.
Definition: StaticSprite2D.cpp:248
int x_
X coordinate.
Definition: Vector3.h:159
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
ProgressBar bar UI element.
Definition: ProgressBar.h:33
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
float GetTimeScale() const
Definition: Scene.h:212
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 SetMaterial(Material *material)
Definition: Text3D.cpp:181
StencilOp
Stencil operation.
Definition: GraphicsDefs.h:115
void HandleTouchEnd(StringHash eventType, VariantMap &eventData)
Handle touch end event.
Definition: UI.cpp:1908
unsigned indexCount_
Index count.
Definition: Renderer2D.h:49
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
~Constraint2D() override
Destruct.
Definition: Constraint2D.cpp:47
void RecreateFixture()
Recreate fixture.
Definition: CollisionCircle2D.cpp:90
bool emitting_
Currently emitting flag.
Definition: RibbonTrail.h:277
unsigned maxObstacles_
Maximum number of obstacle objects allowed.
Definition: DynamicNavigationMesh.h:148
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
T * Detach()
Detach without destroying the object even if the refcount goes zero. To be used for scripting languag...
Definition: Ptr.h:174
void SetDelay(float delay)
Definition: ToolTip.cpp:133
Log(Context *context)
Construct.
Definition: Log.cpp:61
float emissionRateMin_
Particles per second minimum.
Definition: ParticleEffect.h:459
void CleanupScratchBuffers()
Clean up too large scratch buffers.
Definition: Graphics.cpp:461
LoopMode2D
Loop mode.
Definition: AnimatedSprite2D.h:39
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
unsigned GetNumAttributes() const
Definition: XMLElement.cpp:648
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
Object(Context *context)
Construct.
Definition: Object.cpp:76
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
float GetFontSize() const
Definition: Text.h:147
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
String GetLanguage()
Definition: Localization.cpp:64
ResourceCache * owner_
Resource cache.
Definition: BackgroundLoader.h:80
void RemoveRenderTarget(unsigned index)
Remove a rendertarget by index.
Definition: RenderPath.cpp:440
ShadowQuality
Shadow type.
Definition: GraphicsDefs.h:366
ResourceRef GetScriptFileAttr() const
Return script file attribute.
Definition: ScriptInstance.cpp:484
IntVector2 GetTileIndex(const Vector3 &position) const
Return index of the tile at the position.
Definition: NavigationMesh.cpp:560
ResourceRef GetResourceRef() const
Return a resource reference attribute, or empty if missing.
Definition: XMLElement.cpp:873
UniquePtr & operator=(const UniquePtr &)=delete
Prevent assignment.
WeakPtr< Scene > scene_
Scene pointer.
Definition: Viewport.h:113
Vector< TextureFrame > textureFrames_
Texture animation frames.
Definition: ParticleEffect.h:489
IntVector2 size_
Size.
Definition: UIElement.h:883
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
static void RegisterObject(Context *context)
Register object factory.
Definition: Navigable.cpp:43
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 autoUpdate_
Render texture auto update mode.
Definition: View3D.h:108
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
int height_
Height.
Definition: Image.h:67
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
void SetSize(const Vector3 &size)
Definition: CollisionShape.cpp:738
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
~ProgressBar() override
Destruct.
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
int width_
Buffer width.
Definition: OcclusionBuffer.h:189
IntVector2 maxSize_
Maximum size.
Definition: UIElement.h:887
IntRect imageRect_
Image rectangle.
Definition: Sprite.h:136
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
unsigned dataSize_
Index data size.
Definition: Model.h:87
Definition: Plane.h:32
StringHash type_
Type.
Definition: Object.h:63
float fadeDistance_
Fade start distance.
Definition: Light.h:435
float GetAngularDamping() const
Definition: RigidBody2D.h:158
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
T Asin(T x)
Definition: MathDefs.h:162
void SetWindowIcon(Image *windowIcon)
Definition: Graphics.cpp:80
float GetAgentRadius() const
Definition: NavigationMesh.h:229
float GetFogHeight() const
Definition: Zone.h:114
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 GetChainLength() const
Definition: IKEffector.cpp:152
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
Vector3 spacing_
Vertex and height spacing.
Definition: Terrain.h:314
void OnWorldBoundingBoxUpdate() override
Recalculate the world-space bounding box.
Definition: AnimatedModel.cpp:959
~FontFaceBitmap() override
Destruct.
Connection * owner_
Network owner connection.
Definition: Node.h:63
bool GetToggleFullscreen() const
Definition: Input.h:313
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 IsInf() const
Return whether any element is Inf.
Definition: Matrix4.h:663
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
void Pop()
Erase the last element.
Definition: List.h:316
Iterator(Node *ptr)
Construct with a node pointer.
Definition: List.h:64
float fogEnd_
Fog end distance.
Definition: Zone.h:184
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 &currentScissor) 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 ResetLod()
Reset to LOD level 0.
Definition: TerrainPatch.cpp:243
void ResetUseTimer()
Reset last used timer.
Definition: Resource.cpp:110
void CancelUpdate(Drawable *drawable)
Cancel drawable object's update.
Definition: Octree.cpp:564
unsigned GetTileGid() const
Definition: TileMapDefs2D.h:206
int WeakRefs() const
Definition: RefCounted.cpp:73
void SetName(const String &name)
Definition: Resource.cpp:99
void SetPriority(int priority)
Definition: Zone.cpp:148
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
const IntVector2 & GetPressedOffset() const
Definition: Button.h:82
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
void SetAsyncLoadingMs(int ms)
Definition: Scene.cpp:667
Ray ray_
Ray.
Definition: OctreeQuery.h:251
unsigned dataSize_
Sound data size in bytes.
Definition: Sound.h:130
unsigned GetSelectionLength() const
Definition: Text.h:175
unsigned GetNumRows() const
Definition: Console.h:122
Vector< DelayedCall > delayedCalls_
Delayed method calls.
Definition: ScriptInstance.h:202
bool quiet_
Quiet mode flag.
Definition: Log.h:138
~Context() override
Destruct.
Definition: Context.cpp:135
const Vector2 & GetAxis() const
Definition: ConstraintWheel2D.h:71
float offsetX_
Glyph X offset from origin.
Definition: FontFace.h:52
int CalculateLayoutParentSize(const PODVector< int > &sizes, int begin, int end, int spacing)
Calculate layout width for resizing the parent element.
Definition: UIElement.cpp:2077
void ClearSelection()
Clear selection.
Definition: Text.cpp:378
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
Urho3D engine. Creates the other subsystems.
Definition: Engine.h:35
float emitRadiusDelta_
Emit radius delta.
Definition: ParticleEmitter2D.h:68
void RemoveChild(Node *node)
Remove a child scene node.
Definition: Node.cpp:866
Scripting subsystem. Allows execution of AngelScript.
Definition: Script.h:56
SharedPtr< Font > font_
Font.
Definition: Text.h:251
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
JSONNumberType GetNumberType() const
Definition: JSONValue.cpp:171
UniquePtr< NodeImpl > impl_
Pointer to implementation.
Definition: Node.h:753
unsigned windowID_
SDL window ID.
Definition: Input.h:446
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
lua_State * luaState_
Lua state.
Definition: LuaScript.h:119
Ref.
Definition: SpriterData2D.h:178
bool GetUpdateInvisible() const
Definition: ParticleEffect.h:271
int weakRefs_
Weak reference count.
Definition: RefCounted.h:55
bool BeginLoad(Deserializer &source) override
Load resource from stream. May be called from a worker thread. Return true if successful.
Definition: Sprite2D.cpp:54
Iterator()=default
Construct.
void UpdateEventSubscription()
Subscribe/unsubscribe from scene updates as necessary.
Definition: ScriptInstance.cpp:763
FlagSet(const Enum value)
Construct from Enum value.
Definition: FlagSet.h:67
Intersection IsInside(const Sphere &sphere) const
Test if a sphere is inside, outside or intersects.
Definition: Frustum.h:95
void SetModal(bool modal)
Definition: Window.cpp:280
unsigned GetZoneMask() const
Definition: Terrain.h:221
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
unsigned numLevels_
Subdivision level.
Definition: Octree.h:220
AttributeInfo * attributeInfo_
Attribute info.
Definition: Attribute.h:130
Definition: Object.h:39
bool IsSelected() const
Definition: UIElement.h:605
VertexMaskFlags morphElementMask_
Morph vertex element mask.
Definition: AnimatedModel.h:245
Color(const float *data) noexcept
Construct from a float array.
Definition: Color.h:93
Cached state of a frame buffer object.
Definition: OGLGraphicsImpl.h:84
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
T Round(T x)
Definition: MathDefs.h:218
bool GetTimeStamp() const
Definition: Log.h:103
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
void UpdateText()
Update displayed text.
Definition: LineEdit.cpp:565
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 SetFloat(float value)
Set float.
Definition: PListFile.cpp:146
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 SetSize(const IntVector2 &size)
Definition: UIElement.cpp:548
void SetWeight(float weight)
Sets how much influence the effector has on the solution.
Definition: IKEffector.cpp:175
Variant(void *value)
Construct from a pointer.
Definition: Variant.h:434
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
HttpRequestState
HTTP connection state.
Definition: HttpRequest.h:37
unsigned short GetPort() const
Definition: Connection.h:227
SharedArrayPtr< char > data_
File data.
Definition: LuaFile.h:60
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
Vector2 highLimit_
High limit.
Definition: Constraint.h:218
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
void SetTmxFile(TmxFile2D *tmxFile)
Definition: TileMap2D.cpp:116
bool GetHDRRendering() const
Definition: Renderer.h:302
RenderSurface * GetRenderSurface(CubeMapFace face) const
Definition: TextureCube.h:75
~DecalSet() override
Destruct.
void SetMaxSpeed(float maxSpeed)
Definition: CrowdAgent.cpp:389
SDL_Window * window_
SDL window.
Definition: Graphics.h:765
VariantMap metadata_
Attribute metadata.
Definition: Attribute.h:114
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
void LoadShaders()
Reload shaders.
Definition: Renderer.cpp:1616
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
Vector3 direction_
Ray direction.
Definition: Ray.h:113
void RefreshShaderParameterHash()
Recalculate shader parameter hash.
Definition: Material.cpp:1285
void SetEffectColor(const Color &effectColor)
Definition: Text3D.cpp:298
bool showPopup_
Show popup flag.
Definition: Menu.h:102
float GetRepeatRate() const
Definition: Slider.h:100
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
float GetValue() const
Definition: ProgressBar.h:75
IntVector2() noexcept
Construct a zero vector.
Definition: Vector2.h:36
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
Navigable(Context *context)
Construct.
Definition: Navigable.cpp:35
Dirty attribute bits structure for network replication.
Definition: ReplicationState.h:49
ListView * GetFileList() const
Definition: FileSelector.h:99
Scene * scene_
Scene (root node).
Definition: Node.h:735
static const Color CYAN
Opaque cyan color.
Definition: Color.h:279
Vector3(float x, float y) noexcept
Construct from two-dimensional coordinates (for Urho2D).
Definition: Vector3.h:231
String windowTitle_
Window title.
Definition: Graphics.h:767
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
virtual ~Deserializer()
Destruct.
MouseMode lastMouseMode_
The last mouse mode set by SetMouseMode.
Definition: Input.h:460
IntVector2 shadowOffset_
Text effect shadow offset.
Definition: Text.h:273
DirtyBits dirtyAttributes_
Dirty attribute bits.
Definition: ReplicationState.h:163
BoundingBox GetTileBoundingBox(const IntVector2 &tile) const
Return bounding box of the tile in the node space.
Definition: NavigationMesh.cpp:544
void SetWheelRadius(int wheel, float wheelRadius)
Set wheel radius.
Definition: RaycastVehicle.cpp:555
bool IsUpdateEnabled() const
Definition: PhysicsWorld2D.h:177
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
float pageStep_
Arrow key page step.
Definition: ScrollView.h:194
void SetMaxOccluderTriangles(int triangles)
Definition: Renderer.cpp:486