Hi, I have a CopyRect with the first two parameters at 144, 44 which I show a texture on a quad that works perfectly on the screen resolution 800 x 600, but if I change the screen resolution texture is only possible to view its content one part of the quad.
Any suggestions friends?
; - Inicio del Quad para DOF
Function Init_QuadDOF%()
DOFQuad.Quad = Init_ObjQuad.Quad()
EntityParent DOFQuad\Rec%,Camara.Camara\Camara%
PositionEntity DOFQuad.Quad\Rec%,0,0,.1
EntityFX DOFQuad\Rec%,1
TraQuad_DOF.CrearTextura = Init_ObjCrearTextura.CrearTextura(512,512,8)
RenderWorld
CopyRect 144, 44, 512, 512, 0, 0, BackBuffer(),TextureBuffer(TraQuad_DOF.CrearTextura\Tra%)
EntityTexture DOFQuad.Quad\Rec%,TraQuad_DOF.CrearTextura\Tra%
Flip
End Function
|