-
Notifications
You must be signed in to change notification settings - Fork 223
DirectWrite and Direct3D11 integration #41
Comments
Combining is definately possible. You probably messed something in your project. |
@QuantumDeveloper
|
first of all d2d rendertarget should be created on the backbuffer surface, because you want it to be over D3D. So, you need to pass to D2D a backbuffer as a Surface. |
@QuantumDeveloper |
D2D can take Surface as a render target. So, you can cast Backbuffer to Surface type and set it as a render target like this:
|
@QuantumDeveloper |
Sorry, just ignore it) |
@QuantumDeveloper |
Hello!
I'm really interested in DirectWrite and Direct3D11 but I have never tried to combine them in 1 project.
So I tried to combine the MiniTri project from the samples and the AdvancedTextRenderer, also from the samples.
But the result is terrible, I can see the Triangle from the MiniTri and also I can see the text from AdvancedTextRenderer App, but the window, with the entire scene is flashing per frame.
I just want to render text in my SharpDX games, but rendering from image file and building a texture from it is a little bit too complicated, and it is bugged of course, so I thought using DirectWrite could be easier to implement.
It is my mistake while copying the code from Samples, or just combining DirectWrite and Direct3D11 is impossible?
Regards!
The text was updated successfully, but these errors were encountered: