Advertisement
Guest User

It doesn't work D:

a guest
Jul 19th, 2012
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.44 KB | None | 0 0
  1. video::ITexture *eyehole_texture =
  2.     gamedef->getTextureSource()->getTextureRaw("eyehole.png");
  3. if(eyehole_texture)
  4. {
  5.     const video::SColor color(255,255,255,255);
  6.     const video::SColor colors[] = {color,color,color,color};
  7.     core::rect<s32> rect(0,0,500,500);
  8.     driver->draw2DImage(eyehole_texture, rect,
  9.             core::rect<s32>(core::position2d<s32>(0,0),
  10.             core::dimension2di(eyehole_texture->getOriginalSize())),
  11.             NULL, colors, true);
  12.             }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement