Sign in to follow this  

setup cube texture?

Recommended Posts


first create it using D3DXCreateCubeTexture.
then the cube texture will have a function called GetCubeMapSurface. You can get the six surfaces separatly. I can't remember if you have to lock it but then use D3DXLoadSurfaceFromFile to load a texture to a surface.
Don't forget to Release things.
If this isn't working, then I will post you complete source since I did this not so long ago, but don't have the code here now.


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this