Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Previous revision
mgl:gettingstarted [2020/07/14 17:36]
mgl:gettingstarted [2023/08/11 21:14] (current)
justin [Compatibility with latest MAC OS and Matlab versions]
Line 48: Line 48:
 If you are running into an obvious error like a segmentation fault, then you may want to recompile. The command to recompile is: If you are running into an obvious error like a segmentation fault, then you may want to recompile. The command to recompile is:
  
- >> ​mglMake(1);+ >> ​mglMakeMetal(1);
  
-If you run into any problems with mglMake, you may want to restart matlab and try again.+If you run into any problems with mglMakeMetal, you may want to restart matlab and try again.
  
-The mglMake ​command simply runs mex on all the .c files in the mgl/mgllib directory -- you can do this by hand (e.g. mex mglPrivateOpen.c),​ if you prefer.+The mglMakeMetal ​command simply runs mex on all the .c files in the mgl/mgllib directory -- you can do this by hand (e.g. mex mglPrivateOpen.c),​ if you prefer.
  
 Note that this requires mex to be setup properly on your machine. On a Mac OS X machine, at a minimum you will need to have the apple developer tools installed (XCode) [[http://​developer.apple.com/​tools/​]]. On linux, you will need a compatible version of gcc (older versions of gcc can be found [[ftp://​ftp.mirrorservice.org/​sites/​sourceware.org/​pub/​gcc/​|here]]). Note that this requires mex to be setup properly on your machine. On a Mac OS X machine, at a minimum you will need to have the apple developer tools installed (XCode) [[http://​developer.apple.com/​tools/​]]. On linux, you will need a compatible version of gcc (older versions of gcc can be found [[ftp://​ftp.mirrorservice.org/​sites/​sourceware.org/​pub/​gcc/​|here]]).
Line 68: Line 68:
 Also, some of our test programs will run until you hit the <ESC> key (e.g. testExperiment),​ so it is worth trying that as well. Also, some of our test programs will run until you hit the <ESC> key (e.g. testExperiment),​ so it is worth trying that as well.
  
-====== ​ Can I get access to all OpenGL functions? ​ ====== 
-We have only exposed parts of the OpenGL functionality. If you need to dig 
-deeper to code your stimulus, consider writing your own mex file. This will 
-allow you to use the full functionality of the OpenGL library. To do this, 
-you could start by modifying one of our mex functions (e.g. mglClearScreen.c) 
-and add your own GL code to do what you want and compile. 
-====== ​ Printing the wiki help pages  ====== 
-You can print out all the wiki help pages at once, by using this [[mgl:​mglsinglepage|link]]. 
  
-====== ​ Compatibility with latest MAC OS and Matlab versions ====== 
  
-We stay reasonably up-to-date ​with OS and Matlab versions. As of this writing (3/2020) we are using MGL on Mac OS 10.15.3 (Catalina) and Matlab 2015a. If you are using a newer or very much older version of MGL, you may need to recompile. ​+====== ​ Compatibility ​with latest MAC OS and Matlab versions ​======
  
-There is an [[:​mgl:​mglmetal|alpha (proof ​of principleversion]] that is compatible with Metal.+We stay reasonably up-to-date with OS and Matlab versions. As of this writing (8/2023we are using MGL on Mac OS 13.5 (Ventura) and Matlab 2023a