Jump to content

  • Log In with Google      Sign In   
  • Create Account

Texture Creation in D3DIM


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
2 replies to this topic

#1 Pseudo   Members   -  Reputation: 100

Like
Likes
Like

Posted 29 August 1999 - 07:24 AM

I am trying to create a texture, in D3DIM, and i have gotten it to work, but not the way I want. My textures are must have the same format at the front buffer. If I try to create the surface with a different format, it fails. I am obviously doing something wrong, so could someone just throw me some code? Also, all the examples I've seen, to load a texture, always create a temp. surface, and then blt the image onto the texture surface...why? Isn't this an unnessisary step?

Pseudo_me@Email.com


Sponsor:

#2 Anonymous Poster_Anonymous Poster_*   Guests   -  Reputation:

Likes

Posted 28 August 1999 - 01:32 PM

The reason to copy your texture to a surface and then blt it into the texture map is because windows will perform automagical conversion in the proper format... Saving you the trouble of doing it yourself



#3 Anonymous Poster_Anonymous Poster_*   Guests   -  Reputation:

Likes

Posted 29 August 1999 - 07:24 AM

I know why you use a DC to convert, but I have read to sources that create a temporary dd surface, and then loaded the image in it, and then blitted from the temp surface, to the texture surface.




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS