Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Draws up the background every frame (50ms)
- // Where the tile is on the tile map and GDI+ loading existing GDI HBITMAP (changing later)
- Rect rcBackgroundTiles(0,0,64,64);
- Bitmap bmpTestingIt(hbmBackgroundTile, NULL);
- // Using a GDI buffer
- Graphics g(buffer.getBufferDC()); // change to?
- // The texture brush and location, paint entire window with texture
- TextureBrush brush(&bmpTestingIt, rcBackgroundTiles);
- g.FillRectangle(&brush, 0, 0, WINDOW_WIDTH, WINDOW_HEIGHT);
- I cannot figure out how to store it as a (GDI+) HBITMAP. I know CreateCompatibleDC(), CreateCompatibleBitmap(), in GDI, but I cannot figure out how to get one started in GDI+.
Advertisement
Add Comment
Please, Sign In to add comment