DirectX7 D3DIM
Hi does anybody know how I make a texture transparent (colokey) in D3D ? ... It is easy in Direct Draw, but now I need to make it in D3D, and the closest I can get i alpha blending.
My textures are loaded from a .bmp file, where I use black as my colorkey. I think that I have my alpha blending operations set up correct, BUT I need to tell directx that it is black that is my colokey.
Regards
JB
For surfaces created with DDSCAPS_TEXTURE parameter use IDirectDrawSurface7::SetColorKey method.
I have a tutorial for that
here
Ben
[The Rabbit Hole | The Labyrinth | Programming | Gang Wars | The Wall]
here
Ben
[The Rabbit Hole | The Labyrinth | Programming | Gang Wars | The Wall]
Based off these project options settings can any one tell why i get this linker error
[Linker Fatal Error] Fatal: Unable to open file ''ODBCCP32.LIB''
ok
in project options
c++ tab
in the member pointers section all cases is selected
in compatibility nothing is selected
in general nothing is selected
in templates nothing is selected
in exception handling enable RTI and Enable exceptions/ destructor cleanup is
selected
in virtual tables smart is selected
advanced compiler tab
in the out put section autodependency information & generate underscores is
selected
in floating point nothing
in language compliance Borland
in source mfc compatibility and identifier length is set to 250
in instruction set 80386 is selected
in data alignment quad word is selected
in calling conversion c is selected
in register variables automatic is selected
compiler tab
code optimization speed is selected
in warnings all is selected
debugging nothing is selected
precompiled headers nothing is selected
compiling stack frames and treat eneum types as ints is selected
application
application settings nothing
output settings target file extension : exe
Forms
nothing
packages
all my packages are checked in the design packages box
runtime packages is un checked
tasm
debugging information -line numbers
case sensitivity -globals
warnings - level2
generate listings nothing
code gaurd - - nothing
pascal
in not sure this is relevant
linker
linking - create debuging information and dont generate state file s is
selected
map files off is selected
warnings - selected is selected
advanced linker
nothing
directories and conditionals
include path $(BCB)\include;$(BCB)\include\mfc;$(BCB)\include\atl
library path $(BCB)\lib;$(RELEASELIBPATH);$(BCB)\lib\psdk
debug source path $(BCB)\source\vcl
intermedeate output release
find output Release\
conditional defines WIN32;NDEBUG;_WINDOWS;_MBCS;WIN32;NDEBUG;_WINDOWS;_MBCS
yeah thats about it
i also haaave the correct dx paths in there when iam actually trying to build the project code
sakira9@netzero.net
[Linker Fatal Error] Fatal: Unable to open file ''ODBCCP32.LIB''
ok
in project options
c++ tab
in the member pointers section all cases is selected
in compatibility nothing is selected
in general nothing is selected
in templates nothing is selected
in exception handling enable RTI and Enable exceptions/ destructor cleanup is
selected
in virtual tables smart is selected
advanced compiler tab
in the out put section autodependency information & generate underscores is
selected
in floating point nothing
in language compliance Borland
in source mfc compatibility and identifier length is set to 250
in instruction set 80386 is selected
in data alignment quad word is selected
in calling conversion c is selected
in register variables automatic is selected
compiler tab
code optimization speed is selected
in warnings all is selected
debugging nothing is selected
precompiled headers nothing is selected
compiling stack frames and treat eneum types as ints is selected
application
application settings nothing
output settings target file extension : exe
Forms
nothing
packages
all my packages are checked in the design packages box
runtime packages is un checked
tasm
debugging information -line numbers
case sensitivity -globals
warnings - level2
generate listings nothing
code gaurd - - nothing
pascal
in not sure this is relevant
linker
linking - create debuging information and dont generate state file s is
selected
map files off is selected
warnings - selected is selected
advanced linker
nothing
directories and conditionals
include path $(BCB)\include;$(BCB)\include\mfc;$(BCB)\include\atl
library path $(BCB)\lib;$(RELEASELIBPATH);$(BCB)\lib\psdk
debug source path $(BCB)\source\vcl
intermedeate output release
find output Release\
conditional defines WIN32;NDEBUG;_WINDOWS;_MBCS;WIN32;NDEBUG;_WINDOWS;_MBCS
yeah thats about it
i also haaave the correct dx paths in there when iam actually trying to build the project code
sakira9@netzero.net
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement