The fastest way of drawing an iimage?
The fastest way of drawing an iimage?
How do i view an iimage on the screen?
C++/Irrlicht Noob pl3se B p4t1ent.
Visit www.d-grafix.com
Visit www.d-grafix.com
so :
Code: Select all
IGUIEnvironment* env = device->getGUIEnvironment();
IGUIImage* img = env->addImage(driver->getTexture("image.jpg"),position2d<int>(0,0));
Doesn't that still take its source from a texture? I want to be able to send an "IImage" type, modified image to the screen.
C++/Irrlicht Noob pl3se B p4t1ent.
Visit www.d-grafix.com
Visit www.d-grafix.com
-
- Admin
- Posts: 14143
- Joined: Wed Apr 19, 2006 9:20 pm
- Location: Oldenburg(Oldb), Germany
- Contact:
You cannot send an IImage to the screen, because data needs to be passed to the GPU before it can access the screen. And since ITexture is the struct which is used when an IImage was passed to the GPU, it's the only way to draw things to the screen. But of course you can also create a texture from an IImage, or lock the textures and change their contents.