summaryrefslogtreecommitdiff
path: root/src/libXNVCtrlAttributes/NvCtrlAttributesEgl.c
AgeCommit message (Collapse)AuthorFilesLines
2018-04-11Add EGL information to the OpenGL/GLX information page.Jonathan Waddell1-0/+554
This change adds EGL information in a similar form to the already shown OpenGL and GLX information listed per display in nvidia-settings. This also adds a button to show available EGL Frame Buffer configurations in a popup window. To properly format these additions, some changes are required on the existing OpenGL/GLX information page. First, the page has been renamed to "Graphics Information" but the "ctkglx" and name on top level functions and files has been left as is. Second, the layout of the page has been changed from a simple full list of GLX, Server GLX, Client GLX, and OpenGL information to an expanding view with each of the previously listed items as collapsible headers and adding an entry for EGL Information. This change also adds the command line "--eglinfo" (and "-E") option to print the added EGL information and related Frame Buffer Configurations. Includes PNG files for both the GLX -> Graphics page rename and for VDPAU to keep a consistent look. The following are the steps used to create the text images in GIMP. ==Instructions== Create a Gradient Split it into 3 parts, referred as 1, 2 and 3. Left to Right. Segment 1, Left color #AAAAAA, Right color #EEEEEE, endpoints around 0.0 and 0.45 Segment 2, Left and right #EEEEEE, endpoints 0.45 to 0.55. Segment 3, Reverse of 1, Left color #EEEEEE, Right color #AAAAAA, endpoints 0.55 to 1.0 Make the Text Using DIN Pro font, the font NVIDIA uses for promo material, type in the text with text tool. Right click on it, click "Path from Text" Select it with Select -> From Path Choose Gradient tool, using custom gradient made above, drag from above right of center to below left of center. Then Filters -> Light and Shadow -> Drop Shadow. I used Offsets of 5, Blur radius 4, and Opacity 60. Then select the text along with a bit of space around the text and then Image -> Crop to Selection Then Image -> Scale Image so that image is now similar size to other text graphics. From command line run> optipng -o7 -zm1-9 new_graphic.png ==End Instructions==