hdunderscore
|
9fabafec87
Clean up + included a by-pass in UI.cpp to allow for drag move and drag end to occur when Input::IsMouseGrabbed() is true (allowing existing events to continue, preventing new events from triggering).
|
11 years ago |
Lasse Öörni
|
ec7c262be6
Expose Matrix4 * Matrix3x4 to scripting. Move the multiply as a Matrix4 member function so that it can be properly exposed to lua.
|
11 years ago |
aster2013
|
49d9856dd5
Add transform functions for Urho2D.
|
11 years ago |
Lasse Öörni
|
56e0aad21d
Minor rendering code cleanup. Added Plane::Project().
|
11 years ago |
Yao Wei Tjong 姚伟忠
|
41df6dc2e0
Expose Color constants in AngelScript. Use them in sample app.
|
11 years ago |
Lasse Öörni
|
cf4c43d344
Added Serializer / Deserializer functions for reading & writing matrices. Added bool success parameter to Quaternion::FromLookRotation() and Node::LookAt(), as it can potentially give a NaN result (in which case the original rotation is kept). Optimized reading of math objects in Deserializer to avoid default construction.
|
11 years ago |
Lasse Öörni
|
f7b99ecdee
Added Matrix types to Variant. Added ToString() to Matrix types. Added Matrix getters/setters to XMLElement. Added ToMatrix string conversion functions. Added possibility to assign shader parameters from Matrix variants. Fixed missing setting of Color variant shader parameter on Direct3D9.
|
11 years ago |
Lasse Öörni
|
0a1d2ea259
Default-construct math objects to zero or identity to unify C++ / AngelScript / Lua behavior. Closes #279.
|
11 years ago |
Lasse Öörni
|
094006ef91
Added brightness attribute to Light. Added separate equality test with and without epsilon to Color, similar to Vector2/3/4.
|
11 years ago |
Lasse Öörni
|
4080f024c5
Exposed IsPowerOfTwo(), NextPowerOfTwo() and SDBMHash() to script.
|
11 years ago |
Lasse Öörni
|
02e543ba5c
Support for per-pixel negative lights. Added BLEND_SUBTRACT & BLEND_SUBTRACTALPHA blend modes. Light code cleanup.
|
11 years ago |
Lasse Öörni
|
2529f4c51a
Added IsNaN() to Vector2, Vector3, Vector4, Quaternion. Safeguard against Node::LookAt() misbehaving if target is very close. Closes #231.
|
11 years ago |
Lasse Öörni
|
c1205473d4
Tabs to spaces + other code formatting.
|
12 years ago |
mightyCelu
|
03888602bf
Added scriptbindings for normal distribution generator and included the generator in the mathdefs
|
12 years ago |
Lasse Öörni
|
6d5ddc23e0
Bump the copyright for 2014.
|
12 years ago |
Lasse Öörni
|
39e13d49c8
Renamed the plane intercept parameter to "d" and reversed its sign so that it fits the conventional plane formula ax + by + cz + d = 0.
|
12 years ago |
Nick Royer
|
9985f0a122
Added a convenience function to find the angle between two vectors.
|
12 years ago |
Lasse Öörni
|
eb4e99457c
Code cleanup. Removed Camera functions to return forward, right, up vectors as they are now also in Node. Added Lua property accessors for Node up/right vectors. Exposed SmoothStep() to script. Modified Node::LookAt() to use the new Quaternion function. Updated credits.
|
12 years ago |
Nick Royer
|
432b9d3645
Added scripting APIs for the previous convenience functions
|
12 years ago |
Lasse Öörni
|
cadb503976
Added transform by matrix functions to Plane. Added camera clipping plane support. Added basic reflective+refractive water shader + material.
|
12 years ago |
Lasse Öörni
|
6d38f23467
Added conversion of Plane to Vector4.
|
12 years ago |
Lasse Öörni
|
3343e52986
Added IsInside() to Rect & IntRect. Closes #128.
|
12 years ago |
Lasse Öörni
|
a7d8f0fd18
Added reflection related functions to Plane. Fixed rendering a SkyBox from multiple views during the same frame. Better error message in ShaderCompiler if input file can not be opened.
|
12 years ago |
primitivewaste
|
7d641ca3fc
Add a grid to the editor. Add default zone and grid editor preferences. Make editor settings and preferences dialogs resizable and scrollable. Fix Pow() script registration.
|
12 years ago |
Lasse Öörni
|
a022430876
Added Random() & RandomInt() script functions with min & max range parameters. Similar to the RandomInt(range) overload, in RandomInt(min, max) the max value is exclusive. Note that the corresponding C++ functions are simply called Random for both int and float versions. Closes #48.
|
12 years ago |
Lasse Öörni
|
f02650d10e
Add int versions of Max, Min & Clamp to the AngelScript API.
|
12 years ago |
Lasse Öörni
|
372fbed88d
Normalize resource names in SanitateResourceName() if they also contain a registered resource dir name, ie. Data/Scripts/NinjaSnowWar.as becomes Scripts/NinjaSnowWar.as. This fixes script file possibly getting loaded twice.
|
12 years ago |
Lasse Öörni
|
caf0994b8f
Optimize vector/quaternion Normalize() to a no-op if already at unit length. Changed return value to void.
|
12 years ago |
Lasse Öörni
|
e6d0b4d3f3
Normalize ray direction in constructor.
|
12 years ago |
Lasse Öörni
|
26a9bc763e
Added Temporary flag to Serializable, which means it will not be saved if enabled. Currently the sub-nodes created by Terrain are marked temporary.
|
12 years ago |