Canvas concepts - An introduction: Difference between revisions

From FlightGear wiki
Jump to navigation Jump to search
No edit summary
Line 9: Line 9:


=== What is a Canvas ===
=== What is a Canvas ===
{{FGCquote
 
|1= Here's the main concept (found by googling "canvas 2D"): [https://en.wikipedia.org/wiki/Canvas_element https://en.wikipedia.org/wiki/Canvas_element]
Here's the main concept (found by googling "canvas 2D"): [https://en.wikipedia.org/wiki/Canvas_element https://en.wikipedia.org/wiki/Canvas_element]


In FlightGear, things are a bit different, mainly in that <ref>{{cite web
In FlightGear, things are a bit different, mainly in that <ref>{{cite web
Line 26: Line 26:
*  there is an actual scenegraph
*  there is an actual scenegraph
*  uses Nasal instead of ECMAScript/JavaScript
*  uses Nasal instead of ECMAScript/JavaScript
=== What is a Canvas element ===
=== What is a Canvas element ===

Revision as of 12:59, 27 February 2016


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