本文介绍了将纹理渲染到图像(.net cf)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好!

我正在尝试在.net cf中绘制带有开放式gls的非矩形2D形状(多边形,椭圆形),这些形状带有渐变纹理.我以为我可以通过绘制一个其顶点着色的矩形来创建渐变,而不是使用该矩形作为实际形状上的纹理.唯一的问题是,我可以找到一个工作代码段,其中显示了如何将opengl场景渲染到Texture或Image(位图)对象上.
渐变必须是动态的,因此从文件中加载渐变是不可能的,我必须在运行时创建渐变.

请引导我朝正确的方向.
预先提交:Bali

Hi There!

I''m trying to draw non rectangular 2D shapes (polygons, ellipses) with open gl es in .net cf, which are textured with gradients. I thought that i could create the gradient by drawing a rectangle with its vertices colored and than use that rectangle as a texture on the actual shapes. The only problem is that i can find a working code snippet that show how to render an opengl scene onto a Texture or Image (Bitmap) object.
The gradients has to be dynamic so loading them from file is out of the question, i have to create them in run time.

Please guide me to the right direction.
Thx in advance: Bali

推荐答案



这篇关于将纹理渲染到图像(.net cf)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-30 23:06