20,741
edits
Line 283: | Line 283: | ||
|- | |- | ||
|} | |} | ||
The example shown above uses a fixed symbol/icon cache that is set up while booting Flightgear - sometimes, we may need cache for different purposes. So, let's assume, we need a new/custom cache with a different resolution for each entry in the cache (e.g. 256x256), we can easily accomplish that by setting up a new cache like this: | |||
<syntaxhighlight lang="nasal"> | |||
var mySymbolCache256x256 = canvas.SymbolCache.new(1024,256); | |||
</syntaxhighlight> | |||
== Adding Text Elements == | == Adding Text Elements == |