> home > Custom Layer Boundary API

buffer_history_clear_after_current_state

January 19th 2020
Forget the portion of the buffer history on the redo side

Signature

C++
b32
buffer_history_clear_after_current_state(Application_Links* app,
                                         Buffer_ID buffer_id);

Parameters

app

the standard custom layer context pointer

buffer_id

the id of the buffer to modify

Return

non-zero on success, when the buffer exists, otherwise zero