   Direct3D, Sprite: drawing pixels with texture
  Hi,question is in the topic, I want to create a texture that will be a target texture for the pixels, at least this texure will be rendered by Sprite:Draw... but how to create this rendertexture? I created like this:D3DXCreateTexture (Device, 320,200, 0, D3DUSAGE_RENDERTARGET, D3DFMT_A8R8G8B8, D3DPOOL_DEFAULT, PIXEL);well the texture has been created, but when I want to lock it to set the pixels, the pointer points at NULL :S the texture created but I can't use it! Any idea?   
  To refer this http://www.gamedev.net/community/forums/topic.asp?topic_id=182644 I saw how to create the texture "CreateTexture(128,128,0,D3DUSAGE_RENDERTARGET,D3DFMT_A8R8G8B8,D3DPOOL_MANAGED,&Texture);", but if I do it like this, it drop INVALIDCALL.   ;  What's going on lately with the formatting for posts? It seems they get some weird justified text at times, and it makes it weird to read.   ;  I could do something.... see:D3DXCreateTexture (Device, 320,200 0,0, D3DFMT_A8R8G8B8, D3DPOOL_MANAGED, PIXEL);But it's slow because the PIXEL texture is in the system memory... how to create this in video memory?   ;  Why? My english is bad? I'm not english... if I told stupid things, reply and I will contact my teacher and correct...   ;Quote:Original post by BigBeginnerWhy? My english is bad? I'm not english... if I told stupid things, reply and I will contact my teacher and correct...It wasn't you I was referring to, the forum in general has been doing some weird things to people's posts. Sorry if there was any confusion.   