开发者

OpenGL - Triangulation. Can It be used as an API?

开发者 https://www.devze.com 2023-04-12 18:41 出处:网络
I need to have triangulation as a part of my project. OpenGL uses its ow开发者_如何学编程n tessellation logic for rendering points.

I need to have triangulation as a part of my project. OpenGL uses its ow开发者_如何学编程n tessellation logic for rendering points.

Can the triangulation logic can be used as an API, giving points as input and get the triangulation index as output?


OpenGL is a drawing API, not some all purpose geometry library. You must use some third party tesselation-triangulation library. FYI: GLU (gluTesselate) is not part of OpenGL.

OpenGL uses its own tessellation logic for rendering points

What exactly do you mean/think by that? OpenGL takes vertex data and a primitive mode and rasters it. You may attach a tesselation shader, to refine geometry on the go, but that's not what you're probably after.

0

精彩评论

暂无评论...
验证码 换一张
取 消