Updated:
- dxRotatef
- dxTranslatef
- dxuLookAt
- dxMatrixMode
- dxLoadIdentity
- dxuPerspective
- dxClearColor
- dxClear
- dxDisable
- dxEnable
- dxBegin
- dxTexCoord2f
- dxVertex3f
- dxEnd
- dxPushMatrix
- dxPopMatrix
- dxBindTexture

new version http://igrodel.ru/opengl_to_directx_01.zip




Hello!
I fixed my old D3D example to be more OGL-like:

Code:
 
glRotatef(gettickcount/10,0,1,0);
glTranslatef(-10,0,0);
becomes
Code:
dxRotatef(gettickcount/10,0,1,0);
dxTranslatef(-10,0,0);
and this too
Code:
dxuLookAt(0, 0, 30,
     0, 0, 0,
     0, 1, 0);
based on MESA3D source code

Very basic at the moment. DX and OGL render must be 99..100% identically (http://www.igrodel.ru/tdg3d/OGL-D3D.zip).

Georgy.