Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Next #111

Merged
merged 51 commits into from May 11, 2012
Merged

Next #111

merged 51 commits into from May 11, 2012

Conversation

seanpaultaylor
Copy link
Contributor

No description provided.

ablake and others added 30 commits April 25, 2012 12:29
Clipping fix in SpriteBatch.
Added ability to override margin, padding from .form file.
Fixed signed/unsigned mismatches and floating-point ambiguity causing wrapping issues in Font.
Refactoring bounds calculations in Control::update().
Using new bounds to draw controls more efficiently.
…into next-ablake

Conflicts:
	gameplay/gameplay.vcxproj.filters
	gameplay/src/Control.cpp
	gameplay/src/Control.h
	gameplay/src/FlowLayout.cpp
	gameplay/src/FlowLayout.h
	gameplay/src/Label.h
	gameplay/src/Slider.h
	gameplay/src/TextBox.h
Removes numerous calls to dirty() [which in turns calls transformChanged() on itself, and it's children] from Transform::setAnimationPropertyValue() when animating ANIMATE_ROTATE_TRANSLATE or ANIMATE_SCALE_ROTATE_TRANSLATE.
Quaternion friends Transform to give access to static void Quaternion::slerp(float q1x, float q1y, float q1z, float q1w, float q2x, float q2y, float q2z, float q2w, float t, float* dstx, float* dsty, float* dstz, float* dstw). This saves the creation of a Quaternion every time Transform::setAnimationPropertyValue() is called when animating ANIMATE_ROTATE, ANIMATE_ROTATE_TRANSLATE or ANIMATE_SCALE_ROTATE_TRANSLATE.
Removes unnecessary friending of class AnimationController by class AnimationTarget.
Frustum culling in ParticleEmitter.
First steps towards optimizing forms.

Note to self: There are unfinished changes in this commit.  Don't push this yet!
- static void suspendTransformChanged();
- static void resumeTransformChanged();
- static bool isTransformChangedSuspended();
This provides a global mechanism for suspending calls to transformChanged().

Animation Optimization.
Significantly reduces the number of calls to transformChanged() during an AnimationController::update() call.
Calls Transform::suspendTransformChanged() before processing animations. This suspends all calls to transformChanged().
Calls Transform::resumeTransformChanged() after processing animations. This calls all the transformChanged() events after all animations are processed. This reduces the calls to transformChanged() (and on any children) every time there is a change to a Transform's scale, rotation or translation, which would happen quite frequently when animating a character.
Animation Optimization - Reduces the number of calls of transformChanged() during processing of animations.
…9b3e70f3dcab)

Fixes bug when resuming transform changed events where the flag, _suspendTransformChanged, was being unset too early. This resulted in child nodes calling Transform::transformChanged() more than once when resuming transform changed events.
Animation Optimization (goes with commit: 6a6f3f1)
Removed Platform::getOrientationAngle
…dirty.

Some code style changes (indentation).
Minor update to the particles sample.
…into next-ablake

Conflicts:
	gameplay/src/AbsoluteLayout.cpp
	gameplay/src/Container.cpp
	gameplay/src/Control.cpp
	gameplay/src/FlowLayout.cpp
	gameplay/src/Form.cpp
	gameplay/src/Frustum.cpp
	gameplay/src/Label.cpp
	gameplay/src/Layout.cpp
	gameplay/src/TextBox.cpp
	gameplay/src/Theme.cpp
	gameplay/src/VerticalLayout.cpp
seanpaultaylor and others added 21 commits May 8, 2012 13:37
Fixes for BlackBerry Simulator
Adds AL_CHECK and AL_LAST_ERROR macros (similar to the GL macros).
Fixes bug where from-by animations were not be created properly. By-values should be converted to to-values before creating an animation curve for the values.
…d projection matrix.

Added Font::Text class so that static text labels can be cached -- vertex and index data need not be re-computed every frame.
Added SpriteBatch::addSprite methods for use by Font::createText() or anything else that wants to cache SpriteVertex objects.
Moved code shared between several Font methods into Font::getMeasurementInfo().
Replaced tabs with spaces in some source files.
Fixed leak of RenderTarget in Form
Moving framerate in the particles sample; trying a different font size.
Fixed compiler warnings for Font changes.
seanpaultaylor added a commit that referenced this pull request May 11, 2012
@seanpaultaylor seanpaultaylor merged commit 6cea249 into gameplay3d:next May 11, 2012
seanpaultaylor added a commit that referenced this pull request May 2, 2013
seanpaultaylor added a commit that referenced this pull request May 2, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants