# How to use overlay transparent layer by Using DRM with GLES on PowerVR SGX544MP2

**URL:** <https://forums.imgtec.com/t/how-to-use-overlay-transparent-layer-by-using-drm-with-gles-on-powervr-sgx544mp2/2234>\
**Category:** PowerVR Insider\
**Tags:** pvrtrace\
**Created:** [January 19, 2015, 7:11am UTC](https://forums.imgtec.com/t/how-to-use-overlay-transparent-layer-by-using-drm-with-gles-on-powervr-sgx544mp2/2234 "2015-01-19T07:11:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ginjoe](https://avatars.discourse-cdn.com/v4/letter/g/3da27b/32.png) [@ginjoe](https://forums.imgtec.com/u/ginjoe)\
**Post date:** [January 19, 2015, 7:11am UTC](https://forums.imgtec.com/t/how-to-use-overlay-transparent-layer-by-using-drm-with-gles-on-powervr-sgx544mp2/2234/1 "2015-01-19T07:11:57Z")

</div>

Hi.  
  
  
  
I am trying to draw using multiple layers using GLES and DRM.  
  
I am able to simply drawn with GLES for multiple layers.  
  
However, transparent color of the upper layers is not reflected.  
  
A result of the investigation, it was found to be that allows the setting of alpha values for the layer in ‘drmModeObjectSetProperty’.  
  
But I don’t know is should I pass what the argument for setting the alpha value (Object Type, Object ID, Property ID) .  
  
Could you advice me?  
  
  
  
Thank you.  
  
ginjoe

---

<div class="post-metadata">

**Author:** ![JoeDavis](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.imgtec.com/joedavis/32/71_2.png) [@JoeDavis](https://forums.imgtec.com/u/JoeDavis)\
**Post date:** [January 19, 2015, 8:27am UTC](https://forums.imgtec.com/t/how-to-use-overlay-transparent-layer-by-using-drm-with-gles-on-powervr-sgx544mp2/2234/2 "2015-01-19T08:27:21Z")

</div>

Hi ginjoe,  
  
  
  
I’m not familiar with the DRM framework you are referring to.  
  
  
  
I would recommend using our [PVRTrace OpenGL ES capture and analysis tool](https://www.imgcommunity.local/developers/powervr/tools/pvrtrace/)to verify that you are correctly setting the blend mode & associated functions. If your application isn’t setting blend modes correctly, then there may be a bug in the logic of your application or the framework you are using.  
  
  
  
Regards,  
  
Joe

---

<div class="post-metadata">

**Author:** ![ginjoe](https://avatars.discourse-cdn.com/v4/letter/g/3da27b/32.png) [@ginjoe](https://forums.imgtec.com/u/ginjoe)\
**Post date:** [January 19, 2015, 9:12am UTC](https://forums.imgtec.com/t/how-to-use-overlay-transparent-layer-by-using-drm-with-gles-on-powervr-sgx544mp2/2234/3 "2015-01-19T09:12:54Z")

</div>

Hi Joe.  
  
  
  
Thank you for your answer.  
  
  
  
That tool is great !!  
  
But My question is very elementary question.  
  
I have not been able to yet use even API for setting…  
  
  
  
However I was worth having asked you a question just to have been able to know this tool !!  
  
thank you.  
  
  
  
ginjoe

---

<div class="post-metadata">

**Author:** ![JoeDavis](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.imgtec.com/joedavis/32/71_2.png) [@JoeDavis](https://forums.imgtec.com/u/JoeDavis)\
**Post date:** [January 19, 2015, 9:31am UTC](https://forums.imgtec.com/t/how-to-use-overlay-transparent-layer-by-using-drm-with-gles-on-powervr-sgx544mp2/2234/4 "2015-01-19T09:31:35Z")

</div>

Hi ginjoe,  
  
  
  
If you’re new to OpenGL ES and want to know more about setting blend modes, I would recommend referring to the source code of our SDK’s AlphaBlend Example.  
  
[https://github.com/powervr-graphics/Native\_SDK/blob/3.4/Examples/Intermediate/AlphaBlend/OGLES2/OGLES2AlphaBlend.cpp](https://github.com/powervr-graphics/Native_SDK/blob/3.4/Examples/Intermediate/AlphaBlend/OGLES2/OGLES2AlphaBlend.cpp)  
  
  
  
Let us know if there is anything else we can help you with.  
  
  
  
Joe
