How to draw a textured rectangle with Metal

醉酒当歌 提交于 2021-01-29 06:35:10

问题


I'm looking for a most efficient way of drawing a 2-dimensional background in metal. This requires rendering a textured rectangle.

The basic geometry example shows an example on how to draw a triangle. Is there an easy and non-bloated way to draw a rectangle (a polygon with 4 corners)?


回答1:


The Basic Texturing sample draws a textured rectangle



来源:https://stackoverflow.com/questions/52515513/how-to-draw-a-textured-rectangle-with-metal

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!