This project has moved and is read-only. For the latest updates, please go here.


problem with drawing textures on HTC 8S(WP8 ARM)


problem with drawing textures on HTC 8S(WP8 ARM),compile the Example 'Example2DGame' (from nokia[ ]),
and Reference this example to create a simple project On Arm will also have the same problem,
Closed Feb 6, 2013 at 12:34 AM by ShawnHargreaves
This is a bug in the Nokia sample, not in DirectXTK. They are setting the active rendertarget /after/ trying to draw the scene contents using SpriteBatch, but this is the wrong way around: rendertarget needs to be set before anything can be drawn onto it!

I will ping Nokia to see if they can update this sample.


Cadaqs wrote Jan 20, 2013 at 5:47 AM

Reference :Renderer.cpp void Renderer::Render(){...----------------------------------------------------------------------------------------- m_d3dContext->OMSetRenderTargets( 1, m_renderTargetView.GetAddressOf(), m_depthStencilView.Get() );------------------------------------------------ move to before of m_spriteBatch->Begin();---------------------------------------------------------------

ShawnHargreaves wrote Jan 20, 2013 at 6:03 PM

Sorry, I don't understand what your problem is here. Are you changing the code from the Nokia sample? Please explain how exactly do you change it, what are you trying to do, and what goes wrong when you run your modified version.

Cadaqs wrote Jan 21, 2013 at 4:23 PM

I don't changing the code,This example on WIN32 is perfect,problem on arm only,to follow these steps:1. download 'Example2DGame' from Nokia and compile with 'ARM' (Despite some minor problems maybe, but not the reason to cause this problem);2. connected your Device(HTC 8S 620e) to PC;3. press 'F5' Run this APP at your device'