Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
GUITexture.cpp File Reference
#include "GUITexture.h"
#include "GUILargeTextureManager.h"
#include "GUITextureCallbackManager.h"
#include "Texture.h"
#include "TextureManager.h"
#include "utils/MathUtils.h"
#include "utils/StringUtils.h"
#include "windowing/GraphicContext.h"
#include <stdexcept>

Macros

#define MIX_ALPHA(a, c)
 
#define ROUND_TO_PIXEL(x)
 

Macro Definition Documentation

◆ MIX_ALPHA

#define MIX_ALPHA ( a,
c )
Value:
(((a * (c >> 24)) / 255) << 24) | (c & 0x00ffffff)

◆ ROUND_TO_PIXEL

#define ROUND_TO_PIXEL ( x)
Value:
static_cast<float>(MathUtils::round_int(static_cast<double>(x)))
int round_int(double x)
Round to nearest integer. This routine does fast rounding to the nearest integer. In the case (k + 0....
Definition MathUtils.h:66