Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
Screenshots
Shapes
AppDelegate.cs
Earth.jpg
GLFullScreen.csproj
GLFullScreen.sln
Geometry.cs
Info.plist
LICENSE.txt
Main.cs
MainMenu.xib
MainMenu.xib.designer.cs
MainWindow.cs
MainWindow.xib
MainWindow.xib.designer.cs
MainWindowController.cs
Metadata.xml
MyOpenGLView.cs
README.md
Scene.cs
Texture.cs

README.md

GLFullScreen

This sample code demonstrates OpenGL drawing to the entire screen.

Files Description

  • MainWindowController.cs - A controller object that handles full-screen/window modes switching and user interactions.
  • MyOpenGLView.m - An NSView subclass that delegates to separate "scene" and "controller" objects for OpenGL rendering and input event handling.
  • Scene.cs - A delegate object used by MyOpenGLView and MainWindowController to render a simple scene.
  • Texture.cs - A helper class that loads an OpenGL texture from an image path.

Instructions

  • In the window mode, press the "Go FullScreen" button to switch to the full-screen mode.
  • In the full-screen mode, press [ESC] to switch to the window mode.
  • In both modes, press [space] to toggle rotation of the globe.
  • Press [w]/[W] to toggle wireframe rendering.
  • Hold and drag the mouse to change the roll angle and from which the light is coming.

Copyright

Xamarin port changes are released under the MIT license

Author

Ported to Xamarin.Mac by Kenneth J. Pouncey.