The fastest way of drawing an iimage?
The fastest way of drawing an iimage?
How do i view an iimage on the screen?
so
:
Code: Select all
IGUIEnvironment* env = device->getGUIEnvironment();
IGUIImage* img = env->addImage(driver->getTexture("image.jpg"),position2d<int>(0,0));-
hybrid
- 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.