bbmod_surface_check

A function defined in bbmod_surface_check.gml

bbmod_surface_check(_surface, _width, _height[, _format[, _depthBuffer]])

Description

Assures a surface has the correct size and format. Reallocates the surface if it does not exist.

Arguments

Name Type Description
_surface Id.Surface The surface to check.
_width Real The desired width of the surface.
_height Real The desired height of the surface.
_format Constant.SurfaceFormatType The surface format to use when the surface is created. Use one of the surface_ constants. Defaults to surface_rgba8unorm.
_depthBuffer Bool Whether to create a depth buffer for the surface. Defaults to true.

Returns

Id.Surface The surface.

Do you find this page helpful?

Copyright © 2024, BlueBurn. Built on January 21, 2024 using GMDoc.