|
Support for volume textures
#357753
02/08/11 16:48
02/08/11 16:48
|
Joined: Feb 2011
Posts: 44 UK, Aylesbury
AdrenalinMod
OP
Newbie
|
OP
Newbie
Joined: Feb 2011
Posts: 44
UK, Aylesbury
|
There is a stunning error in your code. It should read
// Creates a volume texture from the given filename
LPDIRECT3DVOLUMETEXTURE9 shd_voltex_create(STRING *filename)
{
LPDIRECT3DVOLUMETEXTURE9 temptex;
HRESULT res = D3DXCreateVolumeTextureFromFile((LPDIRECT3DDEVICE9)pd3ddev, filename, &temptex);
if(res != S_OK)
{
printf("error: %x", res);
return NULL;
}
return temptex;
}
What is _chr anyways?
|
|
|
Re: Support for volume textures
[Re: AdrenalinMod]
#357757
02/08/11 16:59
02/08/11 16:59
|
Joined: Apr 2007
Posts: 3,751 Canada
WretchedSid
Expert
|
Expert
Joined: Apr 2007
Posts: 3,751
Canada
|
There is a stunning error in your code. There is a stunning fail in your post
Shitlord by trade and passion. Graphics programmer at Laminar Research. I write blog posts at feresignum.com
|
|
|
Re: Support for volume textures
[Re: AdrenalinMod]
#357862
02/08/11 22:07
02/08/11 22:07
|
Joined: Apr 2007
Posts: 3,751 Canada
WretchedSid
Expert
|
Expert
Joined: Apr 2007
Posts: 3,751
Canada
|
And you thought that STRING evaluates to char?
Shitlord by trade and passion. Graphics programmer at Laminar Research. I write blog posts at feresignum.com
|
|
|
Re: Support for volume textures
[Re: AdrenalinMod]
#357873
02/08/11 22:18
02/08/11 22:18
|
Joined: Apr 2007
Posts: 3,751 Canada
WretchedSid
Expert
|
Expert
Joined: Apr 2007
Posts: 3,751
Canada
|
You should've looked it up, you'd knew that it isn't a type definition of char. But as the function gets the name passed at STRING and the function excepts a char, there has to be some kind of conversion. If you had looked that up, you had made one fail less.
Oh and btw, char is neither a Win32 data type, so what?
Shitlord by trade and passion. Graphics programmer at Laminar Research. I write blog posts at feresignum.com
|
|
|
|