diff options
| author | Ray <[email protected]> | 2017-05-09 18:11:02 +0200 |
|---|---|---|
| committer | Ray <[email protected]> | 2017-05-09 18:11:02 +0200 |
| commit | 321027a242e287e00ac0884387113db4b09ea065 (patch) | |
| tree | cee04fff8279f94aaf7af4d59dadb0d4199ecfa0 /src/core.c | |
| parent | 4c27412eff10f8ef633d97017dcb9e2faff4c4e1 (diff) | |
| download | raylib-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/core.c')
| -rw-r--r-- | src/core.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |
