set_target

function

set_target()

Description

Sets next cubemap side surface as the render target and sets the current view and projection matrices appropriately.

Returns

Bool Returns true if the render target was set or false if all cubemap sides were iterated through.

Example

while (cubemap.set_target())
{
    draw_clear(c_black);
    // Render to cubemap here...
    cubemap.reset_target();
}

See also

BBMOD_IRenderTarget.reset_target

Do you find this page helpful?

Copyright © 2022, BlueBurn. Built on May 16, 2022 using GMDoc.