get Texture from a surface ??

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
leobm
Posts: 1
Joined: Sat Jan 17, 2004 8:02 pm

get Texture from a surface ??

Post by leobm »

irr::video::ISurface* surface = irr::video::createSurface(core::dimension2d<s32>(32,32));

how can i get a Texture from a Surface ?


thanks..
niko
Site Admin
Posts: 1759
Joined: Fri Aug 22, 2003 4:44 am
Location: Vienna, Austria
Contact:

Post by niko »

There are no surfaces any more. (Take a look at version 0.4.2). There is a news think, which I call IImage instead. You can create and load them, and even create textures from them, via ITexture * IVideDriver::addTexture (const c8 *name, IImage *image)
Post Reply