Skip to content

Commit 453ffd8

Browse files
committed
add gpu blendmode to frameman
1 parent 3da231d commit 453ffd8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Source/Managers/FrameMan.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,12 @@ namespace RTE {
193193
/// Clears the 32bpp backbuffer with black.
194194
void ClearBackBuffer32() { clear_to_color(m_BackBuffer32.get(), 0); }
195195

196+
/// Set the current GL Blend mode. This generally requires a batch flush.
197+
/// @param blendMode The new blend mode to set.
198+
/// @remark Some blendmodes are not possible to do within the limits of the usual gpu blending functions
199+
/// and will make use of the blending shader instead, so if necessary restore the current shader after use.
200+
void SetBlendMode(DrawBlendMode blendMode);
201+
196202
/// Sets a specific color table which is used for any subsequent blended drawing in indexed color modes.
197203
/// @param blendMode The blending mode that will be used in drawing.
198204
/// @param colorChannelBlendAmounts The color channel blend amounts that will be used to select or create the correct table in the specified blending mode.

0 commit comments

Comments
 (0)