Jump to content

MartFayer

Members
  • Posts

    6
  • Joined

  • Last visited

Posts posted by MartFayer

  1. How to change the size of the texture resolution?

     

    I create texture .

    Texture* Tex = Texture::Create(512, 512);
    camera->SetRenderTarget(Tex);
    

     

     

    draws its... OK...

    context->DrawImage(Tex,0,0);
    

     

    It is necessary to change the size of the texture .

     

     

    Here it does not work:

     

    camera->SetRenderTarget(0);
    Tex->Release();
    Texture* CamTex2 = Texture::Create(1024, 1024); //new size
    Tex = CamTex2;
    camera->SetRenderTarget(Tex);
    

     

     

    After that - a black image :-/

     

    How to decide ?

    Thanks.

×
×
  • Create New...