Mono, OpenGL and GTK #

Source: Internet
Author: User

If you want to integrate OpenGL in your C # based application you currently only have the option to use either freeglut, SDL or the gtkglarea widget. in this example I show you how to use the gtkglareasharp widget to create the necessary OpenGL context and draw to it using TAO. openGL. additionally we will insert a GTK slider widget to adjust the zoom level (using gltranslate)

In the end it shoshould look like:

Please note that you have to satisfy some dependencies to make this work:

  • Tao. OpenGL (encoded DED) (=> installed native OpenGL libraries required)
  • Tao. freeglut (defined DED) (=> installed native freeglut library required)
  • Gtkglareasharp (pinned DED) (=> installed native gtkglarea library required)

Download the monodevelop source here: gtkglareasharptest

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.