Original Post
🔒 Locked
string to D3DENUMTYPE
Advertisement
Not exactly. But, look at the Effects framework. It might fit in really well with your engine, and handle things like that.
I like pie.
I like pie.
- The effects framework is part of D3DX. Search for Effects framework or ID3DXEffect in the docs. They're not exactly what you're looking for. They're what you're trying to do, kind of. They're text files that you can use to 'script' all the pipeline state changes and setups.
- You can use a std::map with string keys and integer values. Then at initialization, insert all your "state names" coupled with their D3DENUM value. After that, you'll be able to do things like:
Muhammad Haggag,
Optimize
Bitwise account: MHaggag -
[edit]Correction
[edited by - Coder on April 27, 2004 3:11:36 PM]
- You can use a std::map with string keys and integer values. Then at initialization, insert all your "state names" coupled with their D3DENUM value. After that, you'll be able to do things like:
D3DRENDERSTATETYPE rs = rsTable["D3DRS_LIGHTING"];
Muhammad Haggag,
Optimize
Bitwise account: MHaggag -
[edit]Correction
[edited by - Coder on April 27, 2004 3:11:36 PM]
Topic Locked
This topic has been locked by a moderator. New replies are not allowed.
Sign in to reply to this topic.
Advertisement