summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorRay <[email protected]>2017-05-09 18:11:02 +0200
committerRay <[email protected]>2017-05-09 18:11:02 +0200
commit321027a242e287e00ac0884387113db4b09ea065 (patch)
treecee04fff8279f94aaf7af4d59dadb0d4199ecfa0 /src
parent4c27412eff10f8ef633d97017dcb9e2faff4c4e1 (diff)
downloadraylib-321027a242e287e00ac0884387113db4b09ea065.tar.gz
raylib-321027a242e287e00ac0884387113db4b09ea065.zip
Added comments to create transparent framebuffer
Comments to create transparent framebuffer on RPI, when activate you see though full screen window the console below!
Diffstat (limited to 'src')
-rw-r--r--src/core.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core.c b/src/core.c
index 508049c9..08f3a71d 100644
--- a/src/core.c
+++ b/src/core.c
@@ -1836,8 +1836,8 @@ static void InitGraphicsDevice(int width, int height)
EGL_RED_SIZE, 8, // RED color bit depth (alternative: 5)
EGL_GREEN_SIZE, 8, // GREEN color bit depth (alternative: 6)
EGL_BLUE_SIZE, 8, // BLUE color bit depth (alternative: 5)
- //EGL_ALPHA_SIZE, 8, // ALPHA bit depth
- //EGL_TRANSPARENT_TYPE, EGL_TRANSPARENT_RGB, // Request transparent framebuffer
+ //EGL_ALPHA_SIZE, 8, // ALPHA bit depth (required for transparent framebuffer)
+ //EGL_TRANSPARENT_TYPE, EGL_NONE, // Request transparent framebuffer (EGL_TRANSPARENT_RGB does not work on RPI)
EGL_DEPTH_SIZE, 16, // Depth buffer size (Required to use Depth testing!)
//EGL_STENCIL_SIZE, 8, // Stencil buffer size
EGL_SAMPLE_BUFFERS, sampleBuffer, // Activate MSAA
@@ -1912,7 +1912,7 @@ static void InitGraphicsDevice(int width, int height)
VC_DISPMANX_ALPHA_T alpha;
alpha.flags = DISPMANX_FLAGS_ALPHA_FIXED_ALL_PIXELS;
- alpha.opacity = 255;
+ alpha.opacity = 255; // Set transparency level for framebuffer, requires EGLAttrib: EGL_TRANSPARENT_TYPE
alpha.mask = 0;
dispmanDisplay = vc_dispmanx_display_open(0); // LCD