wiki:engine/sections

Background

Draws a centered bitmap loaded from disk in the current rendertarget and viewport.

Parameters

  • string[0]: bitmap filename
  • float[0]:
    • 0: Draws the complete bitmap (full bitmap area) covering the maximum viewport space while keeping the bitmap aspect ratio.
    • 1: Draws the bitmap covering all the viewport space while keeping the bitmap aspect ratio (craps the bitmap).

Save Buffer

Copies the current framebuffer into an offscreen surface.

Parameters

  • float[0]: buffer index to the offscreen surface to store the framebuffer.
  • float[1]: Set to 1 to clean the current color buffer.
  • float[2]: Set to 1 to clean the current depth buffer.

Notes

The offscreen surface has width and height multiple of two and is allways equal or bigger than the framebuffer, the system automatically handles this in save_buffer and draw_buffer.