Advertisement
Guest User

why

a guest
Feb 11th, 2016
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.56 KB | None | 0 0
  1.     static int SetTexture( T* p, lua_State *L )
  2.     {
  3.         RageTexture *pTexture = Luna<RageTexture>::check(L, 1);
  4.         //RageTexture *pTexture = Luna<RageTextureRenderTarget>::check(L, 1);
  5.        
  6.         pTexture = TEXTUREMAN->CopyTexture( pTexture );
  7.         p->SetTexture( pTexture );
  8.         return 0;
  9.     }
  10.    
  11.     static int SetTextureRT( T* p, lua_State *L )
  12.     {
  13.         //RageTexture *pTexture = Luna<RageTexture>::check(L, 1);
  14.         RageTexture *pTexture = Luna<RageTextureRenderTarget>::check(L, 1);
  15.        
  16.         pTexture = TEXTUREMAN->CopyTexture( pTexture );
  17.         p->SetTexture( pTexture );
  18.         return 0;
  19.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement