History log of /haiku/src/add-ons/screen_savers/gravity/GravityView.cpp
Revision Date Author Comments
# a3cdc7c5 13-Oct-2014 Adrien Destugues <pulkomandy@gmail.com>

Gravity and GLife: fix crash on start.

Locking the GL context from a GLView subclass constructor can't work, as
it isn't ready yet. Move the initial setup to AttachedToWindow instead.

Fixes #8898, #10469.


# 8e727810 23-Feb-2014 John Scipione <jscipione@gmail.com>

Gravity: Live update settings and cleanup

Now that this screensaver shows a preview, update the settings live
so that the display updates immediately.

Since this didn't work before this screensaver took a shortcut and only
updated the settings when the saver started.

Some other changes include:
* Update copyright header, add myself to the authors list.
* Convert Particle from using a BList to a BObjectList and remove casts.
* Use switch statement to set particle color that has a default case for blue.
* Initialize member variables to a default value in the constructor.
* Remove Constants.h, the remaining constants are in ConfigView.cpp
* Convert deprecated GroupLayoutBuilder to a LayoutBuilder template instance
* Convert GravitySource from a class to a struct since all members are public.
* Simplify realCount calculation to just a single left shift.
* A bunch of style fixes
- lots of whitespace fixes
- rename rect to frame in GravityView and ConfigView
- reorder the frame parameter first in GravityView and ConfigView
- curly brace goes on same line as class or struct declaration

This turned out to be a bigger change than I originally intended to make.


# 8cd10c71 31-Dec-2012 Tri-Edge AI <triedgeai@gmail.com>

Gravity: Big code changes

* Reworked code style completely.
* Improved the behaviour of the particles.
* Made particles smaller (2,5x performance gain).
* Cleaned unnecessary includes.
* Tried improving performance with glCallList - performance dropped even more.
* Tried improving performance with glDrawArrays - no noticeable performance changes.


# 93f12425 27-Dec-2012 Alexander von Gluck IV <kallisti5@unixzen.com>

screensaver: Add gravity based on GCI 2012 work

* A modified version of TriEdgeAI's original work.
* Cleaned up style problems
* Some virtual functions didn't mesh properly with
ones defined in the OpenGL kit (Draw for example)
* Wrote Jamfile
* Add missing include cstdlib for rand
* Not in image yet as it still needs gcc2 testing


# a3cdc7c5889d45d1005b83f4403ef0d82d40b77c 13-Oct-2014 Adrien Destugues <pulkomandy@gmail.com>

Gravity and GLife: fix crash on start.

Locking the GL context from a GLView subclass constructor can't work, as
it isn't ready yet. Move the initial setup to AttachedToWindow instead.

Fixes #8898, #10469.


# 8e727810a7795df5c54b6f67a966969d8bbdb539 23-Feb-2014 John Scipione <jscipione@gmail.com>

Gravity: Live update settings and cleanup

Now that this screensaver shows a preview, update the settings live
so that the display updates immediately.

Since this didn't work before this screensaver took a shortcut and only
updated the settings when the saver started.

Some other changes include:
* Update copyright header, add myself to the authors list.
* Convert Particle from using a BList to a BObjectList and remove casts.
* Use switch statement to set particle color that has a default case for blue.
* Initialize member variables to a default value in the constructor.
* Remove Constants.h, the remaining constants are in ConfigView.cpp
* Convert deprecated GroupLayoutBuilder to a LayoutBuilder template instance
* Convert GravitySource from a class to a struct since all members are public.
* Simplify realCount calculation to just a single left shift.
* A bunch of style fixes
- lots of whitespace fixes
- rename rect to frame in GravityView and ConfigView
- reorder the frame parameter first in GravityView and ConfigView
- curly brace goes on same line as class or struct declaration

This turned out to be a bigger change than I originally intended to make.


# 8cd10c710fcecc63e86ac1d9db3db25e176d0c3e 31-Dec-2012 Tri-Edge AI <triedgeai@gmail.com>

Gravity: Big code changes

* Reworked code style completely.
* Improved the behaviour of the particles.
* Made particles smaller (2,5x performance gain).
* Cleaned unnecessary includes.
* Tried improving performance with glCallList - performance dropped even more.
* Tried improving performance with glDrawArrays - no noticeable performance changes.


# 93f124253a04af96e300ffaf224885df729463d7 27-Dec-2012 Alexander von Gluck IV <kallisti5@unixzen.com>

screensaver: Add gravity based on GCI 2012 work

* A modified version of TriEdgeAI's original work.
* Cleaned up style problems
* Some virtual functions didn't mesh properly with
ones defined in the OpenGL kit (Draw for example)
* Wrote Jamfile
* Add missing include cstdlib for rand
* Not in image yet as it still needs gcc2 testing