NeHe's OpenGL tutorial,
Members - Reputation: 913
Posted 17 September 2001 - 02:40 PM
Members - Reputation: 100
Posted 17 September 2001 - 02:46 PM
"I''ve sparred with creatures from the nine hells themselves... I barely plan on breaking a sweat here, today."~Drizzt Do''Urden
Members - Reputation: 122
Posted 17 September 2001 - 11:53 PM
A good resource might be UT''s OpenGL driver code (I''m not sure of the link - it used to be on epic''s tech page).
Basically group the functions of GL code, and implement an equivalent for DX. In C++ - use different classes and instantiate the one the user wants, in C use a function table.
Its not easy
PortaLib3D : A portable 3D game/demo libary for OpenGL
Community Service Announcement: Read How to ask questions the smart way before posting!