Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.

The C modest god

Base texture and texture

This topic is 5398 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

In D3D, what i sthe difference between base texture and texture? In the tutorial about texture, the program loads an IDirect3DTexture9 with a function from the D3DX. Then it uses the method SetTexture which in the parameter specified base texture and not texture. The weird thing is that when I put a texture in the parameter of the set texture method, it generates a warnning and in the tutrial program which does the same, it doesnt. Can it cause problems?

Share this post

Link to post
Share on other sites
This is an OOP issue. IDirect3DBaseTexture9 is basically a virtual class that defines the basic interface that all texture types must support. You''ll never use this class directly. IDirect3DTexture9 inherits its basic functionality from IDirect3DBaseTexture9.

You shouldn''t get any warnings as long as you''ve defined your variables and initialized them correctly. The warnings'' text message should give you an idea as to why it was generated and a maybe how you can fix it.


Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!