forked from bartvdbraak/blender
Draw a checker board as a background for animation player
This makes it easier and useful to investigate alpha channels, without this straight colors are displayed on the screen which are completely useless in case of player.
This commit is contained in:
parent
5cb22bbedf
commit
bad03bcfb1
@ -252,8 +252,15 @@ static void playanim_toscreen(PlayAnimPict *picture, struct ImBuf *ibuf, int fon
|
|||||||
|
|
||||||
glRasterPos2f(0.0f, 0.0f);
|
glRasterPos2f(0.0f, 0.0f);
|
||||||
|
|
||||||
|
glEnable(GL_BLEND);
|
||||||
|
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
|
||||||
|
|
||||||
|
fdrawcheckerboard(0.0f, 0.0f, ibuf->x, ibuf->y);
|
||||||
|
|
||||||
glDrawPixels(ibuf->x, ibuf->y, GL_RGBA, GL_UNSIGNED_BYTE, ibuf->rect);
|
glDrawPixels(ibuf->x, ibuf->y, GL_RGBA, GL_UNSIGNED_BYTE, ibuf->rect);
|
||||||
|
|
||||||
|
glDisable(GL_BLEND);
|
||||||
|
|
||||||
pupdate_time();
|
pupdate_time();
|
||||||
|
|
||||||
if (picture && (g_WS.qual & (WS_QUAL_SHIFT | WS_QUAL_LMOUSE)) && (fontid != -1)) {
|
if (picture && (g_WS.qual & (WS_QUAL_SHIFT | WS_QUAL_LMOUSE)) && (fontid != -1)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user