MCPcopy Create free account
hub / github.com/ZDoom/Raze / GetRenderStyle

Function GetRenderStyle

source/core/palette.cpp:436–445  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

434
435
436FRenderStyle GetRenderStyle(int blend, int def)
437{
438 FRenderStyle rs;
439 rs.BlendOp = STYLEOP_Add;
440 auto glbdef = &glblend[blend].def[def];
441 rs.SrcAlpha = glbdef->src;
442 rs.DestAlpha = glbdef->dst;
443 rs.Flags = 0;
444 return rs;
445}
446
447float GetAlphaFromBlend(uint32_t method, uint32_t blend)
448{

Callers 4

renderDrawMapViewFunction · 0.85
SetSpriteTranslucencyFunction · 0.85
DoTextureMethod · 0.85
ProcessSectorMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected