Graphics API

From TargetWiki

The graphics API controls aspects of Targetware's 3D rendering.

graphics.features()
This returns a table of OpenGL rendering features supported by the user's hardware and drivers. All of the values reported by Targetware in the log file are set in this table.
graphics.anisotropy()
This returns the current anisotropic texturing level.
graphics.setanisotropy( <number> )
This sets the anisotropic texturing level.
graphics.font()
Returns the file name, point size and face index of the current 3D font.
graphics.setfont( <filename>, <point size>, <face index> )
Sets the file name, point size and face index of the current 3D font. The face index can be left off, and defaults to zero, which is usually what's desired.
graphics.load( <filename>, <imposter size>, <imposter fade> )
Loads a 3D model specified by the filename. The imposter size (default 32) is the size in pixels on screen below which a simple imposter will be substituted for the 3D model. The imposter fade (default 48) is the size in pixels on screen below which the 3D model will be blended with the imposter for a smooth transition.
graphics.clearcache()
Calling this clears the graphics memory cache. New objects that are loaded will be loaded from the data on disk rather than from the data cached in memory.
Views