Computer Graphics

Moderators: Sephiroth
Number of threads: 1241
Number of posts: 2641

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
UNICODE and Dx shaders???????????? Posted by Asesh on 22 Aug 2006 at 9:49 AM
Am just wondering why UNICODE version of ::D3DXCreateEffectFromFile and ::D3DXCompileShaderFromFile and other effects and shader compiling functions exist. By default VStudio 2005 compiles project in UNICODE format so I had to typecast (LPCSTR) some/a params of those two APIs and LPCSTR is ANSI for eg, entry point function name in ::D3DXCompileShaderFromFile. Even in it's UNICODE version it's takes LPCSTR as argument. So I typecasted LPCSTR to a param that takes LPCSTR as argument and compile the project in UNICODE format and the shader wouldn't just compile...
Report
Re: UNICODE and Dx shaders???????????? Posted by Sephiroth on 28 Aug 2006 at 7:17 AM
: Am just wondering why UNICODE version of ::D3DXCreateEffectFromFile and ::D3DXCompileShaderFromFile and other effects and shader compiling functions exist. By default VStudio 2005 compiles project in UNICODE format so I had to typecast (LPCSTR) some/a params of those two APIs and LPCSTR is ANSI for eg, entry point function name in ::D3DXCompileShaderFromFile. Even in it's UNICODE version it's takes LPCSTR as argument. So I typecasted LPCSTR to a param that takes LPCSTR as argument and compile the project in UNICODE format and the shader wouldn't just compile...
:
Microsoft is pro-UNICODE and anti-ANSI. Every bt of MS code I've ever seen has been in UNICODE and since they promote it, you can expect them to use only UNICODE in their API's as well. This is one reason I prefer OpenGL and OpenAL.

-Sephiroth




 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.