This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
gamedev:canvassystem:capture [2019/05/24 23:43] – ↷ Links adapted because of a move operation dragonlord | gamedev:canvassystem:capture [2024/03/14 16:53] (current) – dragonlord | ||
---|---|---|---|
Line 5: | Line 5: | ||
====== Capture Canvas ====== | ====== Capture Canvas ====== | ||
- | Render of graphics modules is allowed to be asynchronous and for performance reasons this is usually the case. This has implications for handling capturing of canvas. All kinds of off-screen rendering inside the graphic module is handled by the graphic module in whatever way it sees fitting. If the game scripts desire though to obtain a screenshot for example the data crosses the influence sphere of the graphic module. For this reason capturing a canvas has to be done using [[http:// | + | Render of graphics modules is allowed to be asynchronous and for performance reasons this is usually the case. This has implications for handling capturing of canvas. All kinds of off-screen rendering inside the graphic module is handled by the graphic module in whatever way it sees fitting. If the game scripts desire though to obtain a screenshot for example the data crosses the influence sphere of the graphic module. For this reason capturing a canvas has to be done using # |
====== Capture Process ====== | ====== Capture Process ====== | ||
- | Capturing using this class is a two-phase process. First and formost you can create and store a capture canvas to use it only when needed. It is not required to time the creation of capture canvas since capturing is only started if all requirements are set. To start a capture set the [[http:// | + | Capturing using this class is a two-phase process. First and formost you can create and store a capture canvas to use it only when needed. It is not required to time the creation of capture canvas since capturing is only started if all requirements are set. To start a capture set the # |
The following code snippet shows the basic flow: | The following code snippet shows the basic flow: | ||
Line 32: | Line 32: | ||
====== Screenshot Creator (DragonScript) ====== | ====== Screenshot Creator (DragonScript) ====== | ||
- | The DragonScript module simplifies this process of creating a screenshot by providing the [[http:// | + | The DragonScript module simplifies this process of creating a screenshot by providing the # |
< | < |