Skip to content
This repository has been archived by the owner on Apr 29, 2024. It is now read-only.

Files

Latest commit

a6577ad · Jul 20, 2019

History

History

GLFullScreen

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
name description page_type languages products urlFragment
Xamarin.Mac - GLFullScreen
This sample code demonstrates OpenGL drawing to the entire screen. Files Description MainWindowController.cs - A controller object that handles...
sample
csharp
xamarin
glfullscreen

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

GLFullScreen application screenshot

Author

Ported to Xamarin.Mac by Kenneth J. Pouncey.