CaptureBuffer (class)

From Moondust Wiki
Revision as of 09:22, 7 August 2016 by Kevsoft (talk | contribs) (Created page with "Category:LunaLua API Category:LunaLua classes A caputure buffer can be used to snapshot a frame to a specific rendering priority. For examp...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

A caputure buffer can be used to snapshot a frame to a specific rendering priority. For example, if you capture up to -5, then you will capture all but the SMBX HUD. This capture buffer object can be passed as texture to Graphics.glDraw.

CaptureBuffer class
Type Function/Field Return values/Value type Description
Constructor myCaptureBuffer = Graphics.CaptureBuffer(int width, int height) CaptureBuffer Construct a new CaptureBuffer-Object.
Constructor CaptureBuffer:captureAt(number priority) nil Captures a frame which is rendered up to priority.