Answered by:
Writing games with an off screen bitmap

Question
-
I want to start writing games for Windows 8 apps in C++.
I have already written a printed circuit design program using direct2d (Simple_PCBCAD)
I also used to write Z80 programs for the Sinclair Spectrum in the 1980's.
So I come from a background of using the screen like a bitmap.
From what I have seen this is very difficult to do with direct2d.
I guess I could write a game using the basic direct2d functions of filled shapes but this is very different to what I am used to.
Is there a way I can use bit mapped memory then dump it to the screen in one go ?
n.Wright
- Edited by nigelwright7557 Friday, September 6, 2013 1:55 AM
Friday, September 6, 2013 1:50 AM
Answers
-
Use Direct3D, even for 2D games. Find a good book and tutorials if you are just getting started. Check out the DirectX Tool Kit which is an easy to use XNA clone library for c++. With the DirectXTK spritebatch and WIC texture loaders you will be drawing bitmaps (sprites) in no time.
- Marked as answer by nigelwright7557 Wednesday, September 11, 2013 1:41 AM
Wednesday, September 11, 2013 1:33 AM
All replies
-
Hi nigelwright7557,
Welcome to MSDN forum!
I could only find the method ID2D1Bitmap::CopyFromMemory.
I hope it is helpful.
If i misunderstand you, please feel free let me know.
Regards!
<THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
Thanks
MSDN Community Support
Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.Monday, September 9, 2013 3:00 AMModerator -
Use Direct3D, even for 2D games. Find a good book and tutorials if you are just getting started. Check out the DirectX Tool Kit which is an easy to use XNA clone library for c++. With the DirectXTK spritebatch and WIC texture loaders you will be drawing bitmaps (sprites) in no time.
- Marked as answer by nigelwright7557 Wednesday, September 11, 2013 1:41 AM
Wednesday, September 11, 2013 1:33 AM -
I downloaded the simplesample project and used that as a basis for a game.
I created a texture then a shader and wrote to the texture.
I displayed the texture as fullscreen.
n.Wright
Sunday, September 29, 2013 5:45 PM