ATI offers DirectX - OpenGL converter
Graphics chip maker ATI Technologies has released HLSL2GLSL, an open source application designed to help programmers convert graphics code optimized for Windows’ DirectX 9 Application Programming Interface (API) to OpenGL, which is used on the Mac. Binaries for Mac OS X and Windows are available for download.
High Level Shader Language (HLSL) was developed by Microsoft to enable programmers using its DirectX API to develop complex graphical effects. Its OpenGL equivalent is GLSL, and this application enables developers to translate HLSL shaders into GLSL instead. The software generated either GLSL 1.10.58 desktop OpenGL shaders or ES SL v1.00 embedded OpenGL ES shaders.
Many Mac OS X programmers already working on Mac games or cross-platform conversions already have home-rolled tools in their own libraries that provide them with the ability to convert DirectX code into OpenGL code. Commercial products exist that do the same. But ATI is offering this software — released earlier this month as version 0.9 — to further assist programmers who want some help.
The download includes documentation and a library file, along with a standalone command line application that converts snippets of HLSL code into GLSL instead.