Merge pull request #160 from kleinerm/master

Pull from kleinerm for PTB BETA RELEASE "Blue skies and empty brains" - SP3
* GUI window mode fixes for OSX and MS-Windows.
Fix a few glitches in printout, mostly fixing case statement options.

Signed-off-by: David Brainard <brainard@psych.upenn.edu>
Comment clean up.

Signed-off-by: David Brainard <brainard@psych.upenn.edu>
Comment clean up.

Signed-off-by: David Brainard <brainard@psych.upenn.edu>
Renamed to match the transition of vset -> isetbio.

Signed-off-by: David Brainard <brainard@psych.upenn.edu>
Added comment about where isetbio lives on gitHub.

Signed-off-by: David Brainard <brainard@psych.upenn.edu>
Added many more checks for consistency in the routines that compute photoreceptor parameters.

It is now harder to do something stupid, such as specify a nomogram for absorbance and then pass absorbance directly, thus ignoring the nomogram that you specified.

And, the returned structure is more informative about what was computed and what was supplied.

I checked that none of these changes break test routines within the PTB.   But if you were cleverly overriding values set by DefaultPhotoreceptors, you may now need to explictly set some sources to 'None' or some values to the empty matrix.  The error messages should be moderately informative about how to go about this, and there are some examples of this being done in CIEConeFundamentalsTest (where such changes were made.)

Signed-off-by: David Brainard <brainard@psych.upenn.edu>
Tightening up cone fundamental generation code

Added options to DefaultPhotoreceptors that will produce the CIE (aka Stockman-Sharpe) 2 and 10 degree fundamentals.

Added a lot of comments about relation between various routines that do similar things.

Added check that FillInPhotoreceptors and ComputeRawConeFundamentals are consistent with one another, and added extra return args to ComputeCIEConeFundamentals and ComputeRawConeFundamentals to allow access to unnormalized quantal sensitivity functions.

Added other miscellaneous comments.

Signed-off-by: David Brainard <brainard@psych.upenn.edu>
Continuing to clean up and extend isomerization calcs.

Most of this effort is just checks and commenting.  It is possible that some of the checks will break calling code that was a little sloppy.  I believe I've fixed up all such cases within the PTB.

Added AbsorbtanceToAbsorbance, from the Stanford group.

The isomerization calcs now more cleanly incorporate the CIE standard cone fundamentals (that is, you can get them from DefaultPhotoreceptors).

Signed-off-by: David Brainard <brainard@psych.upenn.edu>
Added little utility to find color matching function peak wavelengths and values.

Used in PrintPhotoreceptors.

Signed-off-by: David Brainard <brainard@psych.upenn.edu>
Cleaned up PrintPhotoreceptors some, and little bit of small bug swatting in FillInPhotoreceptors and DefaultPhotoreceptors.

Verified that the main unit tests that use this stuff still run OK.
  IsomerizationsInEyeDemo
  IsomerizationsInDishDemo
  CIEConeFundamentalsTest
  FitConeFundamentalsTest

Signed-off-by: David Brainard <brainard@psych.upenn.edu>
Tuning this up.

Signed-off-by: David Brainard <brainard@psych.upenn.edu>
Merge branch 'master' of https://github.com/Psychtoolbox-3/Psychtoolbox-3
Updated comment to include information about wavelength sampling of tabulated Smith-Pokorny fundamentals.

Signed-off-by: David Brainard <brainard@psych.upenn.edu>
Make GetEchoString and GetEchoNumber less broken.

Update help text and syntax of GetEchoNumber to match actual behaviour.
Allow its textColor and bgColor to be optional, just as in
GetEchoString.

GetEchoString: Do not clear framebuffer after each typed character,
that's just weird!
Also, if a non-empty bgColor is specified, make sure it is applied
properly.
Improve backspace handling, so a backspace properly erases the typed
text string visually, despite the rest of the framebuffer staying
intact.

This is much more reasonable behaviour for interactive text input with
visual feedback.

Hopefully it doesn't break code outside, due to no longer clearing the
framebuffer after text input, ie., after ENTER confirms end of text
input.
LoadShaderFromFile: Add support for geometry and tesselation shaders.

For future use...
Merge pull request #162 from kleinerm/master

Pull from kleinerm for PTB BETA RELEASE "Stadtmusikanten"

* ECVP2013 demos and slides pdf
* New function PsychDefaultSetup for normalized color range by default.
* Some new demos, e.g., SimpleSoundScheduleDemo.
* Minor fixes and improvements here and there.
Merge pull request #38 from Psychtoolbox-3/master

Resync with current master of official Psychtoolbox-3 repo.
For PTB BETA "Stadtmusikanten"
Screen: Don't make window transparent for mouse for shieldinglevel < 1000.

Only make windows transparent for mouse for windowShieldingLevels
between 1000 and 1499. This was so on OSX, but inconsistent on Linux
and Windows.

-> Screen.mexw64 for 64-Bit Matlab on Windows rebuilt and tested.
-> Other mex files will be rebuild later together with other changes.