English 中文(简体)
开放式GL 扩大垂直阵列
原标题:OpenGL scaling vertex arrays

我有一阵列如下(我正致力于把这改成一只冰川阵列,因此这里不是问题):

gl.glVertexPointer(3, GL.GL_FLOAT, 0, buff);
for ( int i = 0; i < numPoints; i++  ) {
    gl.glDrawArrays(GL.GL_LINE_LOOP, i*verticesPerPoint, verticesPerPoint);
}

这项工作,但我要扩大正在形成的路线。 我在打电话之前试图打上<条码>glScaled,但随后各点没有显示。 我会想到,扩大范围只是现有的线索,但似乎没有。

请注意,由于我希望能够在不同规模重新利用同一缓冲地带,缓冲地带的垂直点被停下来。 想法是,我可以重新划定固定的子体大小,而不重新计算每张通行证的阵列。

谁能解释我做了什么错误,或者甚至可能这样做?

最佳回答

是否使用目前矩阵模式(GL_MODELVIEW矩阵模式? 如果是的话,它是否在任何物体空间变迁之前或之后被称作? 使用<glScale[f/d]是一种稳妥的做法,将适用于垂直数据,但提及固定的星体大小可能表明这是一个2D问题。 在该案中,可能值得研究glViewport的机械设备。

问题回答

暂无回答




相关问题
How are mobile service provider databases so fast?

i was wondering on how these databases which have over millions of records and millions of lookups per second soo fast. how are they optimised? are there any special servers hosting these databases? ...

C# Resized images have black borders

I have a problem with image scaling in .NET. I use the standard Graphics type to resize images like in this example: public static Image Scale(Image sourceImage, int destWidth, int destHeight) { ...

Performance tuning CakePHP application

I just got this quite large CakePHP app (about 20k lines of code), which isn t very clean and there is no documentation at all. The app is running in production, but it has really major problems with ...

AS3 按比例提升外部形象

目前,我正在利用一种 lo机,以动态方式载录XML图像,并将其放入一个grid网。 我有安排,所有数据都在顺利地装上,但现在我需要做......。

Using EC2 Load Balancing with Existing Wordpress Blog

I currently have a virtual dedicated server through Media Temple that I use to run several high traffic Wordpress blogs. Both tend to receive sudden StumbleUpon traffic surges that (I m assuming) ...

High-traffic, Highly-secure web API, what language? [closed]

If you were planning on building a high-traffic, very secure site what language would you use? For example, if you were planning on say building an authorize.net-scale site, that had to handle tons ...

热门标签