I'm trying to load an image in one texture, before last OGRE version 1.0 I use the function blitToTexture, but in the 1.0 version the texture class has lost this usefull function. I have seen that texture class has a new function getBuffer() that retuns a HardwarePixelBufferSharedPtr. I think that with this class I can access to he graphical card memory and draw my image. The problem is that the c++ compiler (linux) show me this error when I try to create a variable of HardwarePixelBufferSharedPtr:
Code: Select all
myBillBoardSet.cpp:74: error: invalid use of undefined type `struct
Ogre::HardwarePixelBufferSharedPtr'
The line 74:
I have tried to compile this:
Code:
Code: Select all
HardwareVertexBufferSharedPtr hpb;
and I haven't got no problem.
I'll hope that someona can help me. And excuse me for my poor english.