Canvas concepts - An introduction

From FlightGear wiki
Jump to navigation Jump to search


This article is a stub. You can help the wiki by expanding it.

Objective

Introduce important Canvas concepts and terminology, inspired by Thorsten's thread on the forum [1]

Background

What is a Canvas

Here's the main concept (found by googling "canvas 2D"): https://en.wikipedia.org/wiki/Canvas_element

In FlightGear, things are a bit different, mainly in that [2]:

  • a Canvas represents an actual OpenGL texture (2D)
  • is hardware-accelerated
  • is using OSG for most of its features
  • there is an actual scenegraph
  • uses Nasal instead of ECMAScript/JavaScript

What is a Canvas element