Radfordhound / HedgeLib

A C++ library and collection of tools that aims to make modding games in the Sonic the Hedgehog franchise easier.
MIT License
88 stars 24 forks source link

HedgeEdit - Spline Previewing #23

Open Radfordhound opened 5 years ago

Radfordhound commented 5 years ago

It'd be nice to actually be able to see splines. Shouldn't be hard in the DirectX version since Direct3D actually has built-in support for drawing lines, unlike modern OpenGL for some reason.

Sajidur78 commented 5 years ago

Modern OpenGL has built in support for drawing lines that grid is drawn using GL_LINES

image

Radfordhound commented 5 years ago

...Huh, I swear I tried that at some point lol. My bad!

thesupersonic16 commented 5 years ago

I have only used OpenGL 1.1, And I know that has Line Rendering.

Radfordhound commented 5 years ago

Yeah, I knew GL 1.1 had it. Somehow I didn't realize you could still specify PrimitiveType.Lines with OpenTK when using modern GL. Ah well...