Using the C++ STL in graphics engine code?

Discussion about everything. New games, 3d math, development tips...
Electron
Posts: 874
Joined: Sun Mar 14, 2004 12:05 am
Location: Massachusetts USA

Post by Electron »

if you like hlsl syntax better than glsl but want to use OpenGL, try Cg. Its supported under both API's and is basically hlsl syntax compatible
You do a lot of programming? Really? I try to get some in, but the debugging keeps me pretty busy.

Crucible of Stars
Spintz
Posts: 1688
Joined: Thu Nov 04, 2004 3:25 pm

Post by Spintz »

I've thought about that, but don't want to have the requirement to have CG installed.
Image
Eternl Knight
Posts: 313
Joined: Tue Nov 01, 2005 5:01 am

Post by Eternl Knight »

I've thought about that, but don't want to have the requirement to have CG installed.
I'm of the same mind. The good thing about GLSL (and arguably HLSL) is that one only needs the card, and video drivers for it to work (the arguability comes from whether DirectX can be counted as a "driver").

My original point still stands though - I prefer GLSL (and OpenGL) because of the fact it can be easily ported and developed on both Linux & Windows machines. It can also probably be easily developed on Macs, but it's not really worth targetting anymore (they are on Intel chips and all, so there is no REAL advantage to Macs anymore).

--EK
Post Reply