i seen the dx sample (misc > c# > texture) it shown a cylinder rendering a video as a texture..
the code had some eventhandlers.. but den .. it only starts rendering when it has a texture render.. and i tried to insert a boolean into the TextureRenderEventArgs
so that i can render in my Onpaint or render overrides..
but it couldnt work..
has anyone sucessfully managed to render a video as a texture?..
help needed...
the code had some eventhandlers.. but den .. it only starts rendering when it has a texture render.. and i tried to insert a boolean into the TextureRenderEventArgs
so that i can render in my Onpaint or render overrides..
but it couldnt work..
has anyone sucessfully managed to render a video as a texture?..
help needed...
edit some of the code..
bRender is my bool
void RenderIt(object sender, TextureRenderEventArgs e){
lock(this)
{
texture = e.Texture;
bRender = true;
}
}
protected override Render(){
if(bRender){
RenderTexture();
}
}
failed.......
Last edited: