首页 文章 精选 留言 我的

精选列表

搜索[opengl图形接口],共10000篇文章
优秀的个人博客,低调大师

Mesa 19.3.3 发布,3D 图形库开源集合

Mesa 19.3.3现已发布,该版本是一个 bug 修复版本,修复了自 19.3.2 版本以来发现的 bug。其中大多数修复是常规的 AMD Radeon 和 Intel churn 以及其他核心工作,更新内容如下: 针对 RADV 的 Valve ACO 编译器后端的一些修复。 由于问题,在 RAFX 上禁用了 GFX10 / Navi 上的 VK_EXT_sample_locations。 修复了基于 Mesa GLSL 软件的 64 位整数到 32 位浮点数的转换。 修复了多个英特尔 ANV Vulkan 驱动程序。 RadeonSI 有解决 AMDGPU LLVM 崩溃的方法。 许多其他 RadeonSI 修复程序。 ...... 更多详细信息可查看更新说明。

优秀的个人博客,低调大师

Mesa 19.3.1 发布,3D 图形库开源集合

距离Mesa 19.3.0 发布才过去没几天的时间,现如今,为了避开圣诞节和新年假期,Mesa 19.3.1也紧接着发布了,相较其正常的发布时间早了一周。 据介绍,Mesa 19.3.1 是一个很小的版本。有一些小小的修正,大部分是针对英特尔的驱动程序,此外也具有 radv,virgl 和 core dri 修复程序。 此版本的一些更新内容具体包括有:公开了对 Intel i965 驱动程序的 B8G8R8X8 sRGB 视觉支持;对于 Intel Iris 上不带修饰符的扫描缓冲区,默认为X-tiling;而 Intel Vulkan 驱动程序仅在实际受支持时才公开 filter_minmax 扩展支持。 同时,Radeon 方面有一个 Stoney APU 修复程序,以及一个新的 RADV 安全编译功能的修复程序,打破了 ARM 支持。另外,在此版本中,Virgl 驱动程序还将着色器传输缓冲区的大小加倍。 更多详细信息可点击发布公告进行查看。 值得一提的是,随着 Mesa 19.3.1 的发布,Mesa 19.2.8也作为上一季度系列的最后计划更新发布。 参考消息: https://lists.freedesktop.org/archives/mesa-dev/2019-December/223969.html https://www.phoronix.com/scan.php?page=news_item&px=Mesa-19.3.1-Released

优秀的个人博客,低调大师

Mesa 19.2.6 发布,3D 图形库开源集合

Mesa 19.2.5在本周早些时候才刚刚发布。然而由于先前的发行版破坏了IBM POWER的构建,因此v19.2.6目前也已紧随其后发布。 据悉,Mesa 19.2.5 引入了对LLVMpipe中PowerPC 64位的支持,以便将LLVM的大代码模型用于JIT编译的着色器,因为对于诸如GNOME Shell和Firefox这样的大型进程来说,中/小代码模型可能会解决空间问题。使用较大的代码模型不会对LLVMpipe性能产生任何可衡量的影响,但是当提交被反向移植到Mesa 19.2系列时,commit 却带来了一些问题。 由于所做的更改,Mesa 19.2.5最终在PPC64LE上引入了编译错误,不过现在问题已经解决,19.2.6版本也已立即发布。 此外,Mesa 19.2.6还对Broadcom V3D进行了一些修复,并在短时间内进行了其他一些常规更改。 详细信息: https://lists.freedesktop.org/archives/mesa-dev/2019-November/223800.html https://www.phoronix.com/scan.php?page=news_item&px=Mesa-19.2.6-Released

优秀的个人博客,低调大师

[雪峰磁针石博客]python tkinter图形工具样式作业

python测试开发项目实战-目录 python工具书籍下载-持续更新 使用tkinter绘制如下窗口 参考资料 本文最新版本地址 本文涉及的python测试开发库 谢谢点赞! 本文相关海量书籍下载 https://github.com/CoderDojoSV/beginner-python 代码 #!/usr/bin/env python3 # -*- coding: utf-8 -*- # 技术支持:https://www.jianshu.com/u/69f40328d4f0 # 技术支持 https://china-testing.github.io/ # https://github.com/china-testing/python-api-tesing/blob/master/practices/tk/tk4.py # 项目实战讨论QQ群630011153 144081101 # CreateDate: 2018-12-02 import tkinter as tk root = tk.Tk() root.configure(background='#4D4D4D') #top level styling # connecting to the external styling optionDB.txt root.option_readfile('optionDB.txt') #widget specific styling text = tk.Text( root, background='#101010', foreground="#D6D6D6", borderwidth=18, relief='sunken', width=17, height=5) text.insert( tk.END, "Style is knowing who you are,what you want to say, and not giving a damn." ) text.grid(row=0, column=0, columnspan=6, padx=5, pady=5) # all the below widgets derive their styling from optionDB.txt file tk.Button(root, text='*').grid(row=1, column=1) tk.Button(root, text='^').grid(row=1, column=2) tk.Button(root, text='#').grid(row=1, column=3) tk.Button(root, text='<').grid(row=2, column=1) tk.Button( root, text='OK', cursor='target').grid( row=2, column=2) #changing cursor style tk.Button(root, text='>').grid(row=2, column=3) tk.Button(root, text='+').grid(row=3, column=1) tk.Button(root, text='v').grid(row=3, column=2) tk.Button(root, text='-').grid(row=3, column=3) for i in range(10): tk.Button( root, text=str(i)).grid( column=3 if i % 3 == 0 else (1 if i % 3 == 1 else 2), row=4 if i <= 3 else (5 if i <= 6 else 6)) root.mainloop() 可以使用十六进制颜色代码为红色(r),绿色(g)和蓝色(b)的比例指定颜色。常用的表示是#rgb(4位),#rrggbb(8位)和#rrrgggbbb(12位)。 例如,#ff是白色,#000000是黑色,#f00是红色(R = 0xf,G = 0x0,B = 0x0),#00ff00为绿色(R = 0x00,G = 0xff,B = 0x00),#000000fff为蓝色(R = 0x000,G = 0x000,B = 0xfff)。 或者,Tkinter提供标准颜色名称的映射。有关预定义命名颜色的列表,请访问http://wiki.tcl.tk/37701或http://wiki.tcl.tk/16166。

优秀的个人博客,低调大师

Android绘制(一):来用shape绘出想要的图形吧!

目录 前言 shape绘制 矩形 椭圆 线 环 用shape绘制SeekBar 最后 前言 在没有UI设计师的时候, 或者是想简单看下效果的时候, 用shape进行快速绘制是极好的! 官方文档. shape绘制 一共有四种shape: rectangle, oval, line, ring. 矩形 我们一个一个来看, 首先是矩形: 矩形例子 <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle"> <!-- 尺寸 --> <size android:width="160dp" android:height="80dp" /> <!-- 颜色 --> <!--<solid android:color="@color/colorPrimary" />--> <!-- 内间距 --> <padding android:bottom="8dp" android:left="8dp" android:right="8dp" android:top="8dp" /> <!-- 渐变 --> <gradient android:angle="45" android:endColor="@color/colorPrimary" android:startColor="@color/colorAccent" android:type="linear" /> <!-- 圆角 --> <!--<corners android:radius="200dp" />--> <!-- 圆角单独设置 --> <corners android:bottomLeftRadius="0dp" android:bottomRightRadius="0dp" android:topLeftRadius="40dp" android:topRightRadius="40dp" /> <!-- 描边 --> <stroke android:width="2dp" android:color="#666" android:dashGap="4dp" android:dashWidth="4dp" /> </shape> 渐变gradient是会覆盖颜色的, 如果你想要纯色, 直接设置颜色值即可, 就是设置solid中的color. 顺带一提, solid只有color一个参数. 如果你没有渐变gradient, 也不写solid, 那么将会是空心的. 渐变gradient的type参数有3个: linear 线性渐变 sweep 扫描渐变 radial 放射渐变, 需要配合参数gradientRadius 圆角corners可以直接设置radius, 也可以一个一个指定. 描边stroke的话不写dashGap, dashWidth就会是实线, dashWidth代表虚线宽度, dashGap代表虚线间隔. 内间距padding和尺寸size就不提了, 大家都懂的. 椭圆 椭圆例子 <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="oval"> <!-- 尺寸 --> <size android:width="160dp" android:height="80dp" /> <!-- 颜色 --> <!--<solid android:color="@color/colorPrimary" />--> <!-- 内间距 --> <padding android:bottom="8dp" android:left="8dp" android:right="8dp" android:top="8dp" /> <!-- 渐变 --> <gradient android:centerColor="@color/colorPrimary" android:endColor="@color/colorPrimaryDark" android:startColor="@color/colorAccent" android:type="sweep" /> <!-- 描边 --> <stroke android:width="1dp" android:color="#333" /> </shape> 渐变是最多可以设置三种颜色, 意思一看便知了: startColor centerColor endColor 一般椭圆都会用来绘制实心的小圆点. 线 线就很简单了: 线例子 <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="line"> <!-- 描边 --> <stroke android:width="8dp" android:color="@color/colorPrimary" android:dashGap="8dp" android:dashWidth="6dp" /> </shape> 环 最后来看环, 它有些特有属性: 环例子B <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" android:innerRadiusRatio="4" android:shape="ring" android:thicknessRatio="100" android:useLevel="false"> <!-- 尺寸 --> <size android:width="200dp" android:height="200dp" /> <!-- 渐变 --> <gradient android:angle="0" android:centerColor="@color/colorPrimaryDark" android:endColor="@color/colorPrimary" android:startColor="@color/colorAccent" android:type="sweep" /> <!-- 描边 --> <stroke android:width="1dp" android:color="#777" android:dashGap="4dp" android:dashWidth="4dp" /> </shape> thicknessRatio 指的是环厚度百分比, 默认是9, 比如说这里宽度是200dp, thicknessRatio是100, 环厚度就是200dp / 100 = 2dp. 当然, 你可以直接用thickness设置厚度. innerRadiusRatio 是内环百分比, 默认是3, 就是指用宽度 / 百分比得到的值就是内环半径. 同样可以用innerRadius直接设置. 用shape绘制SeekBar 我知道有很多非常好看的自定义进度条, 但是我写这个SeekBar是想补充下shape的使用, 用非常少量的代码实现自定义进度条. 来看看效果图: 用shape绘制SeekBar 实现 <SeekBar android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_margin="@dimen/eight_dp" android:max="200" android:maxHeight="@dimen/eight_dp" android:minHeight="@dimen/eight_dp" android:progressDrawable="@drawable/layout_progress" android:thumb="@drawable/shape_circle" /> 简单解释下几个要点属性: max代表进度条最大的值. maxHeight, minHeight可以设置进度条宽度, 我喜欢稍微宽一点的. thumb设置滑块, 可以是图片, 可以是shape写的设置. progressDrawable代表进度条的外观, 可以是图片, 可以是shape写的设置. 再来看看滑块和进度条外观具体代码, 进度条可以设置背景, 进度, 和第二进度. 滑块的话, 你想画成什么样都行. <?xml version="1.0" encoding="utf-8"?> <layer-list xmlns:android="http://schemas.android.com/apk/res/android"> <item android:id="@android:id/background"> <shape> <corners android:radius="@dimen/four_dp" /> <solid android:color="@android:color/darker_gray" /> </shape> </item> <item android:id="@android:id/secondaryProgress"> <clip> <shape> <corners android:radius="@dimen/four_dp" /> <solid android:color="@color/colorAccent" /> </shape> </clip> </item> <item android:id="@android:id/progress"> <clip> <shape> <corners android:radius="@dimen/four_dp" /> <solid android:color="@android:color/holo_blue_light" /> </shape> </clip> </item> </layer-list> <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="oval"> <solid android:color="@android:color/holo_blue_light" /> <stroke android:width="@dimen/one_dp" android:color="@android:color/holo_blue_light" /> <size android:width="@dimen/sixteen_dp" android:height="@dimen/sixteen_dp" /> </shape> java部分的话, 用Handler实例postDelayed方法让进度条跑起来就可以看到效果了. 这里设定50ms发一次消息. findViewById(R.id.cv_start).setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { if (mRunnable == null) { mRunnable = new MyRunnable(); mHandler.postDelayed(mRunnable, 0); } } }); findViewById(R.id.cv_stop).setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { mHandler.removeCallbacks(mRunnable); mRunnable = null; } }); private class MyRunnable implements Runnable { @Override public void run() { int progress = mSbTest.getProgress(); mTvProgress.setText(String.valueOf(progress)); mSbTest.setProgress(++progress); mSbTest.setSecondaryProgress(progress + 10); int progress2 = mSbTest2.getProgress(); mTvProgress2.setText(String.valueOf(progress2)); mSbTest2.setProgress(++progress2); mSbTest2.setSecondaryProgress(progress2 + 20); mHandler.postDelayed(this, 50); } } 最后 我个人还是偏向用shape绘制的, 图片一出理不好就是内存溢出啊, 形变啊, 还要注意分辨率, 真心头大. 喜欢记得点赞哦, 暗中关注我也是可以的~

资源下载

更多资源
腾讯云软件源

腾讯云软件源

为解决软件依赖安装时官方源访问速度慢的问题,腾讯云为一些软件搭建了缓存服务。您可以通过使用腾讯云软件源站来提升依赖包的安装速度。为了方便用户自由搭建服务架构,目前腾讯云软件源站支持公网访问和内网访问。

Nacos

Nacos

Nacos /nɑ:kəʊs/ 是 Dynamic Naming and Configuration Service 的首字母简称,一个易于构建 AI Agent 应用的动态服务发现、配置管理和AI智能体管理平台。Nacos 致力于帮助您发现、配置和管理微服务及AI智能体应用。Nacos 提供了一组简单易用的特性集,帮助您快速实现动态服务发现、服务配置、服务元数据、流量管理。Nacos 帮助您更敏捷和容易地构建、交付和管理微服务平台。

Rocky Linux

Rocky Linux

Rocky Linux(中文名:洛基)是由Gregory Kurtzer于2020年12月发起的企业级Linux发行版,作为CentOS稳定版停止维护后与RHEL(Red Hat Enterprise Linux)完全兼容的开源替代方案,由社区拥有并管理,支持x86_64、aarch64等架构。其通过重新编译RHEL源代码提供长期稳定性,采用模块化包装和SELinux安全架构,默认包含GNOME桌面环境及XFS文件系统,支持十年生命周期更新。

Sublime Text

Sublime Text

Sublime Text具有漂亮的用户界面和强大的功能,例如代码缩略图,Python的插件,代码段等。还可自定义键绑定,菜单和工具栏。Sublime Text 的主要功能包括:拼写检查,书签,完整的 Python API , Goto 功能,即时项目切换,多选择,多窗口等等。Sublime Text 是一个跨平台的编辑器,同时支持Windows、Linux、Mac OS X等操作系统。

用户登录
用户注册