Original Post
this is what im trying to achive:
// SOME CODE FROM INSIDE SOME FUNCTION:
const char* profileOpts[] =
{
"-profileopts", "dcls", NULL,
};
newShader.shader = cgCreateProgramFromFile( *Direct3D::GetCgContext(),
CG_SOURCE, actualPath, Direct3D::GetCgFragmentProfile(),
"main",
profileOpts );
now here is a function i have created, and it shows this funciton used to achive the same result as above:
const char** Direct3D::GetCgCompileOptions()
{
const char* profileOpts[] =
{
"-profileopts", "dcls", NULL,
};
return profileOpts;
}
// SOME CODE FROM INSIDE SOME FUNCTION:
newShader.shader = cgCreateProgramFromFile( *Direct3D::GetCgContext(),
CG_SOURCE, actualPath, Direct3D::GetCgFragmentProfile(),
"main",
Direct3D::GetCgCompileOptions() );
now, the above piece of code works, the bottom doesnt,
but when i print both to file, i get the same strings, so i know it should be working...
:-/
i'm stumped
[edited by - supagu on August 31, 2003 10:48:07 AM]
[edited by - supagu on August 31, 2003 10:49:35 AM]
[edited by - supagu on August 31, 2003 10:49:58 AM]