Jump to content
  • Advertisement


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


why cant i mipmap?(d3d7)

This topic is 6791 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

anyone know any articles or tutorials on mipmapping with d3d7? i cant do this.. whats wrong with this.. (im trying to fill in the mipmaps with the same bitmap) int mp[] = {255, 128, 64, 32,16}; for (int cc = 1; cc < 3; cc++) { DDSCAPS2 ddsCaps; ddsCaps.dwCaps = DDSCAPS_TEXTURE / DDSCAPS_MIPMAP; ddsCaps.dwCaps2 = 0; ddsCaps.dwCaps3 = 0; ddsCaps.dwCaps4 = 0; if( SUCCEEDED( pddsTexture->GetAttachedSurface( &ddsCaps, &pddsTexture ) ) ) pddsTexture->Release(); HDC hdcBitmap = CreateCompatibleDC( NULL ); if( NULL == hdcBitmap ) { pddsTexture->Release(); return NULL; } SelectObject( hdcBitmap, hbm ); // Get a DC for the surface HDC hdcTexture; if( SUCCEEDED( pddsTexture->GetDC( &hdcTexture ) ) ) { BitBlt( hdcTexture, 0, 0, mp[cc], mp[cc], hdcBitmap, 0, 0, SRCCOPY ); pddsTexture->ReleaseDC( hdcTexture ); } DeleteDC( hdcBitmap );

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!