2001-09-20 05:19:47 +08:00
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
< HTML >
< HEAD >
< TITLE > class SG_EXPORT osg::Image< / TITLE >
< META NAME = "GENERATOR" CONTENT = "DOC++ 3.4.8" >
< / HEAD >
< BODY BGCOLOR = "#ffffff" >
< H2 > class SG_EXPORT < A HREF = "#DOC.DOCU" > osg::Image< / A > < / H2 > < / H2 > < BLOCKQUOTE > Image class for encapsulating the storage texture image data< / BLOCKQUOTE >
< HR >
< H2 > Inheritance:< / H2 >
< APPLET CODE = "ClassGraph.class" WIDTH = 600 HEIGHT = 95 >
< param name = classes value = "CReferenced,MReferenced.html,CObject,MObject.html,CImage,MImage.html" >
< param name = before value = "M,M,M" >
< param name = after value = "Md_SP,Md_,M" >
< param name = indent value = "0,1,2" >
< param name = arrowdir value = "down" >
< / APPLET >
< HR >
< DL >
< P > < DL >
< DT > < H3 > Public Methods< / H3 > < DD > < DT >
2002-04-22 05:53:03 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > < B > < A HREF = "#DOC.2.43.1" > Image< / A > < / B > ()
2001-09-20 05:19:47 +08:00
< DT >
2002-04-22 05:53:03 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > < B > < A HREF = "#DOC.2.43.2" > Image< / A > < / B > (const <!1> < A HREF = "Image.html#DOC.2.43.2" > Image< / A > & image, const <!1> < A HREF = "CopyOp.html" > CopyOp< / A > & copyop=CopyOp::SHALLOW_COPY)
2002-02-09 18:54:18 +08:00
< DD > < I > Copy constructor using CopyOp to manage deep vs shallow copy< / I >
2001-09-20 05:19:47 +08:00
< DT >
2002-04-22 05:53:03 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > virtual <!1> < A HREF = "Object.html" > Object< / A > * < B > < A HREF = "#DOC.2.43.3" > cloneType< / A > < / B > () const
2001-09-20 05:19:47 +08:00
< DT >
2002-04-22 05:53:03 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > virtual <!1> < A HREF = "Object.html" > Object< / A > * < B > < A HREF = "#DOC.2.43.4" > clone< / A > < / B > (const <!1> < A HREF = "CopyOp.html" > CopyOp< / A > & copyop) const
2001-09-20 05:19:47 +08:00
< DT >
2002-04-22 05:53:03 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > virtual bool < B > < A HREF = "#DOC.2.43.5" > isSameKindAs< / A > < / B > (const <!1> < A HREF = "Object.html" > Object< / A > * obj) const
2001-09-20 05:19:47 +08:00
< DT >
2002-04-22 05:53:03 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > virtual const char* < B > < A HREF = "#DOC.2.43.6" > className< / A > < / B > () const
2001-09-20 05:19:47 +08:00
< DT >
2002-04-22 05:53:03 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > void < B > < A HREF = "#DOC.2.43.7" > setFileName< / A > < / B > (const std::string& fileName)
2002-02-09 18:54:18 +08:00
< DT >
2002-04-22 05:53:03 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline const std::string& < B > < A HREF = "#DOC.2.43.8" > getFileName< / A > < / B > () const
2002-02-09 18:54:18 +08:00
< DT >
2002-04-22 05:53:03 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > void < B > < A HREF = "#DOC.2.43.9" > createImage< / A > < / B > (int <!1> < A HREF = "Image.html#DOC.2.43.13" > s< / A > , int <!1> < A HREF = "Image.html#DOC.2.43.14" > t< / A > , int <!1> < A HREF = "Image.html#DOC.2.43.15" > r< / A > , GLenum format, GLenum type, int packing=1)
< DT >
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > void < B > < A HREF = "#DOC.2.43.10" > setImage< / A > < / B > (int <!1> < A HREF = "Image.html#DOC.2.43.13" > s< / A > , int <!1> < A HREF = "Image.html#DOC.2.43.14" > t< / A > , int <!1> < A HREF = "Image.html#DOC.2.43.15" > r< / A > , GLint internalTextureformat, GLenum format, GLenum type, unsigned char* <!1> < A HREF = "Image.html#DOC.2.43.26" > data< / A > , int packing=1)
2001-09-20 05:19:47 +08:00
< DD > < I > set the image data and format.< / I >
< DT >
2002-04-25 04:13:50 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > void < B > < A HREF = "#DOC.2.43.11" > readPixels< / A > < / B > (int <!1> < A HREF = "Viewport.html#DOC.2.111.7" > x< / A > , int <!1> < A HREF = "Viewport.html#DOC.2.111.8" > y< / A > , int <!1> < A HREF = "Viewport.html#DOC.2.111.9" > width< / A > , int <!1> < A HREF = "Viewport.html#DOC.2.111.10" > height< / A > , GLenum format, GLenum type)
2002-04-22 05:53:03 +08:00
< DD > < I > readPixels from screen at specified position and size, using glReadPixels.< / I >
< DT >
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > void < B > < A HREF = "#DOC.2.43.12" > scaleImage< / A > < / B > (const int <!1> < A HREF = "Image.html#DOC.2.43.13" > s< / A > , const int <!1> < A HREF = "Image.html#DOC.2.43.14" > t< / A > , const int <!1> < A HREF = "Image.html#DOC.2.43.15" > r< / A > )
< DD > < I > Scale image to specified size.< / I >
< DT >
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline const int < B > < A HREF = "#DOC.2.43.13" > s< / A > < / B > () const
2001-09-20 05:19:47 +08:00
< DD > < I > Width of image< / I >
< DT >
2002-04-22 05:53:03 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline const int < B > < A HREF = "#DOC.2.43.14" > t< / A > < / B > () const
2001-09-20 05:19:47 +08:00
< DD > < I > Height of image< / I >
< DT >
2002-04-22 05:53:03 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline const int < B > < A HREF = "#DOC.2.43.15" > r< / A > < / B > () const
2001-09-20 05:19:47 +08:00
< DD > < I > Depth of image< / I >
< DT >
2002-04-22 05:53:03 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > void < B > < A HREF = "#DOC.2.43.16" > setInternalTextureFormat< / A > < / B > (GLint internalFormat)
< DT >
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline const GLint < B > < A HREF = "#DOC.2.43.17" > getInternalTextureFormat< / A > < / B > () const
< DT >
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > void < B > < A HREF = "#DOC.2.43.18" > setPixelFormat< / A > < / B > (const GLenum format)
< DT >
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline const GLenum < B > < A HREF = "#DOC.2.43.19" > getPixelFormat< / A > < / B > () const
2001-09-20 05:19:47 +08:00
< DT >
2002-04-22 05:53:03 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline const GLenum < B > < A HREF = "#DOC.2.43.20" > getDataType< / A > < / B > () const
2001-09-20 05:19:47 +08:00
< DT >
2002-04-22 05:53:03 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline const unsigned int < B > < A HREF = "#DOC.2.43.21" > getPacking< / A > < / B > () const
2001-09-20 05:19:47 +08:00
< DT >
2002-04-22 05:53:03 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline const unsigned int < B > < A HREF = "#DOC.2.43.22" > getPixelSizeInBits< / A > < / B > () const
< DD > < I > return the numbers of bits required for each pixel< / I >
2001-09-20 05:19:47 +08:00
< DT >
2002-04-22 05:53:03 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline const unsigned int < B > < A HREF = "#DOC.2.43.23" > getRowSizeInBytes< / A > < / B > () const
< DD > < I > return the numbers of bytes each row of pixels occupies once it has been packed< / I >
< DT >
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline const unsigned int < B > < A HREF = "#DOC.2.43.24" > getImageSizeInBytes< / A > < / B > () const
< DD > < I > return the numbers of bytes each image (_s*_t) of pixels occupies< / I >
< DT >
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline const unsigned int < B > < A HREF = "#DOC.2.43.25" > getTotalSizeInBytes< / A > < / B > () const
< DD > < I > return the numbers of bytes the whole row/image/volume of pixels occupies< / I >
< DT >
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline unsigned char* < B > < A HREF = "#DOC.2.43.26" > data< / A > < / B > ()
2001-09-20 05:19:47 +08:00
< DD > < I > raw image data< / I >
< DT >
2002-04-22 05:53:03 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline const unsigned char* < B > < A HREF = "#DOC.2.43.27" > data< / A > < / B > () const
2001-09-20 05:19:47 +08:00
< DD > < I > raw const image data< / I >
< DT >
2002-04-22 05:53:03 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > unsigned char* < B > < A HREF = "#DOC.2.43.28" > data< / A > < / B > (int column, int row=0, int image=0)
2001-09-20 05:19:47 +08:00
< DT >
2002-04-22 05:53:03 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > void < B > < A HREF = "#DOC.2.43.29" > ensureValidSizeForTexturing< / A > < / B > ()
2001-09-20 05:19:47 +08:00
< DD > < I > Ensure image dimensions are a power of two.< / I >
< DT >
2002-04-22 05:53:03 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline void < B > < A HREF = "#DOC.2.43.30" > dirty< / A > < / B > ()
2001-12-25 05:56:22 +08:00
< DD > < I > Dirty the image, which increments the modified flag, to force osg::Texture to reload the image< / I >
< DT >
2002-04-22 05:53:03 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline void < B > < A HREF = "#DOC.2.43.31" > setModifiedTag< / A > < / B > (const unsigned int value)
2001-12-25 05:56:22 +08:00
< DD > < I > Set the modified tag value, only used by osg::Texture when using texture subloading.< / I >
< DT >
2002-04-22 05:53:03 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline const unsigned int < B > < A HREF = "#DOC.2.43.32" > getModifiedTag< / A > < / B > () const
2001-12-25 05:56:22 +08:00
< DD > < I > Get modified tag value, only used by osg::Texture when using texture subloading.< / I >
2002-04-22 05:53:03 +08:00
< DT >
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > static const bool < B > < A HREF = "#DOC.2.43.33" > isPackedType< / A > < / B > (GLenum type)
< DT >
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > static const unsigned int < B > < A HREF = "#DOC.2.43.34" > computeNumComponents< / A > < / B > (GLenum format)
< DT >
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > static const unsigned int < B > < A HREF = "#DOC.2.43.35" > computePixelSizeInBits< / A > < / B > (GLenum format, GLenum type)
< DT >
2002-04-25 04:13:50 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > static const unsigned int < B > < A HREF = "#DOC.2.43.36" > computeRowWidthInBytes< / A > < / B > (int <!1> < A HREF = "Viewport.html#DOC.2.111.9" > width< / A > , GLenum format, GLenum type, int packing)
< DT >
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > typedef std::vector< unsigned int > inline MipmapDataType bool < B > < A HREF = "#DOC.2.43.37" > isMipmap< / A > < / B > () const
< DT >
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > unsigned int < B > < A HREF = "#DOC.2.43.38" > getNumMipmaps< / A > < / B > () const
< DT >
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline void < B > < A HREF = "#DOC.2.43.39" > setMipmapData< / A > < / B > (const MipmapDataType& mipmapDataVector)
< DT >
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline unsigned char* < B > < A HREF = "#DOC.2.43.40" > getMipmapData< / A > < / B > (unsigned int mipmapNumber) const
2001-09-20 05:19:47 +08:00
< / DL > < / P >
< P > < DL >
< DT > < H3 > Protected Fields< / H3 > < DD > < DT >
2002-04-25 04:13:50 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > std::string < B > < A HREF = "#DOC.2.43.43" > _fileName< / A > < / B >
< DT >
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > int < B > < A HREF = "#DOC.2.43.44" > _s< / A > < / B >
2001-09-20 05:19:47 +08:00
< DT >
2002-04-25 04:13:50 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > int < B > < A HREF = "#DOC.2.43.45" > _t< / A > < / B >
2001-09-20 05:19:47 +08:00
< DT >
2002-04-25 04:13:50 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > int < B > < A HREF = "#DOC.2.43.46" > _r< / A > < / B >
2001-09-20 05:19:47 +08:00
< DT >
2002-04-25 04:13:50 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > GLint < B > < A HREF = "#DOC.2.43.47" > _internalTextureFormat< / A > < / B >
2001-09-20 05:19:47 +08:00
< DT >
2002-04-25 04:13:50 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > GLenum < B > < A HREF = "#DOC.2.43.48" > _pixelFormat< / A > < / B >
2001-09-20 05:19:47 +08:00
< DT >
2002-04-25 04:13:50 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > GLenum < B > < A HREF = "#DOC.2.43.49" > _dataType< / A > < / B >
2001-09-20 05:19:47 +08:00
< DT >
2002-04-25 04:13:50 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > unsigned int < B > < A HREF = "#DOC.2.43.50" > _packing< / A > < / B >
2001-09-20 05:19:47 +08:00
< DT >
2002-04-25 04:13:50 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > unsigned char* < B > < A HREF = "#DOC.2.43.51" > _data< / A > < / B >
2001-09-20 05:19:47 +08:00
< DT >
2002-04-25 04:13:50 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > unsigned int < B > < A HREF = "#DOC.2.43.52" > _modifiedTag< / A > < / B >
2001-09-20 05:19:47 +08:00
< DT >
2002-04-25 04:13:50 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > MipmapDataType < B > < A HREF = "#DOC.2.43.53" > _mipmapData< / A > < / B >
2001-09-20 05:19:47 +08:00
< / DL > < / P >
< P > < DL >
< DT > < H3 > Protected Methods< / H3 > < DD > < DT >
2002-04-25 04:13:50 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > virtual < B > < A HREF = "#DOC.2.43.41" > ~Image< / A > < / B > ()
2002-02-09 18:54:18 +08:00
< DT >
2002-04-25 04:13:50 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > <!1> < A HREF = "Image.html" > Image< / A > & < B > < A HREF = "#DOC.2.43.42" > operator = < / A > < / B > (const <!1> < A HREF = "Image.html" > Image< / A > & )
2001-09-20 05:19:47 +08:00
< / DL > < / P >
< / DL >
< HR > < H3 > Inherited from < A HREF = "Object.html" > Object< / A > :< / H3 >
< DL >
2002-04-22 05:53:03 +08:00
< P > < DL >
< DT > < H3 > Public Methods< / H3 > < DD > < DT >
2002-04-25 04:13:50 +08:00
< IMG ALT = "o" SRC = icon2.gif > inline void < B > setDataVariance< / B > (const <!1> < A HREF = "Object.html#DOC.2.74.7" > DataVariance< / A > dv)
2002-04-22 05:53:03 +08:00
< DT >
2002-04-25 04:13:50 +08:00
< IMG ALT = "o" SRC = icon2.gif > inline const <!1> < A HREF = "Object.html#DOC.2.74.7" > DataVariance< / A > < B > getDataVariance< / B > () const
2002-04-22 05:53:03 +08:00
< / DL > < / P >
< P > < DL >
< DT > < H3 > Public Members< / H3 > < DD > < DT >
< IMG ALT = "o" SRC = icon2.gif > enum < B > DataVariance< / B >
< / DL > < / P >
< P > < DL >
< DT > < H3 > Protected Fields< / H3 > < DD > < DT >
2002-04-25 04:13:50 +08:00
< IMG ALT = "o" SRC = icon2.gif > <!1> < A HREF = "Object.html#DOC.2.74.7" > DataVariance< / A > < B > _dataVariance< / B >
2002-04-22 05:53:03 +08:00
< / DL > < / P >
2001-09-20 05:19:47 +08:00
< / DL >
< HR > < H3 > Inherited from < A HREF = "Referenced.html" > Referenced< / A > :< / H3 >
< DL >
< P > < DL >
< DT > < H3 > Public Methods< / H3 > < DD > < DT >
< IMG ALT = "o" SRC = icon2.gif > inline void < B > ref< / B > () const
< DT >
< IMG ALT = "o" SRC = icon2.gif > inline void < B > unref< / B > () const
< DT >
2002-04-22 05:53:03 +08:00
< IMG ALT = "o" SRC = icon2.gif > inline void < B > unref_nodelete< / B > () const
< DT >
2001-09-20 05:19:47 +08:00
< IMG ALT = "o" SRC = icon2.gif > inline const int < B > referenceCount< / B > () const
< / DL > < / P >
< P > < DL >
< DT > < H3 > Protected Fields< / H3 > < DD > < DT >
< IMG ALT = "o" SRC = icon2.gif > mutable int < B > _refCount< / B >
< / DL > < / P >
< / DL >
< A NAME = "DOC.DOCU" > < / A >
< HR >
< H2 > Documentation< / H2 >
< BLOCKQUOTE > Image class for encapsulating the storage texture image data< / BLOCKQUOTE >
< DL >
< A NAME = "Image" > < / A >
2002-04-22 05:53:03 +08:00
< A NAME = "DOC.2.43.1" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > Image()< / B > < / TT >
< DL > < DT > < DD > < / DL > < P >
2002-02-09 18:54:18 +08:00
< A NAME = "Image" > < / A >
2002-04-22 05:53:03 +08:00
< A NAME = "DOC.2.43.2" > < / A >
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > Image(const <!1> < A HREF = "Image.html#DOC.2.43.2" > Image< / A > & image, const <!1> < A HREF = "CopyOp.html" > CopyOp< / A > & copyop=CopyOp::SHALLOW_COPY)< / B > < / TT >
2002-02-09 18:54:18 +08:00
< DD > Copy constructor using CopyOp to manage deep vs shallow copy
< DL > < DT > < DD > < / DL > < P >
< A NAME = "cloneType" > < / A >
2002-04-22 05:53:03 +08:00
< A NAME = "DOC.2.43.3" > < / A >
2002-02-09 18:54:18 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > virtual <!1> < A HREF = "Object.html" > Object< / A > * cloneType() const < / B > < / TT >
< DL > < DT > < DD > < / DL > < P >
2001-09-20 05:19:47 +08:00
< A NAME = "clone" > < / A >
2002-04-22 05:53:03 +08:00
< A NAME = "DOC.2.43.4" > < / A >
2002-02-09 18:54:18 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > virtual <!1> < A HREF = "Object.html" > Object< / A > * clone(const <!1> < A HREF = "CopyOp.html" > CopyOp< / A > & copyop) const < / B > < / TT >
2001-09-20 05:19:47 +08:00
< DL > < DT > < DD > < / DL > < P >
< A NAME = "isSameKindAs" > < / A >
2002-04-22 05:53:03 +08:00
< A NAME = "DOC.2.43.5" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > virtual bool isSameKindAs(const <!1> < A HREF = "Object.html" > Object< / A > * obj) const < / B > < / TT >
< DL > < DT > < DD > < / DL > < P >
< A NAME = "className" > < / A >
2002-04-22 05:53:03 +08:00
< A NAME = "DOC.2.43.6" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > virtual const char* className() const < / B > < / TT >
< DL > < DT > < DD > < / DL > < P >
2002-04-22 05:53:03 +08:00
< A NAME = "setFileName" > < / A >
< A NAME = "DOC.2.43.7" > < / A >
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > void setFileName(const std::string& fileName)< / B > < / TT >
< DL > < DT > < DD > < / DL > < P >
2001-09-20 05:19:47 +08:00
< A NAME = "getFileName" > < / A >
2002-04-22 05:53:03 +08:00
< A NAME = "DOC.2.43.8" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline const std::string& getFileName() const < / B > < / TT >
< DL > < DT > < DD > < / DL > < P >
2002-04-22 05:53:03 +08:00
< A NAME = "createImage" > < / A >
< A NAME = "DOC.2.43.9" > < / A >
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > void createImage(int <!1> < A HREF = "Image.html#DOC.2.43.13" > s< / A > , int <!1> < A HREF = "Image.html#DOC.2.43.14" > t< / A > , int <!1> < A HREF = "Image.html#DOC.2.43.15" > r< / A > , GLenum format, GLenum type, int packing=1)< / B > < / TT >
2001-09-20 05:19:47 +08:00
< DL > < DT > < DD > < / DL > < P >
< A NAME = "setImage" > < / A >
2002-04-22 05:53:03 +08:00
< A NAME = "DOC.2.43.10" > < / A >
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > void setImage(int <!1> < A HREF = "Image.html#DOC.2.43.13" > s< / A > , int <!1> < A HREF = "Image.html#DOC.2.43.14" > t< / A > , int <!1> < A HREF = "Image.html#DOC.2.43.15" > r< / A > , GLint internalTextureformat, GLenum format, GLenum type, unsigned char* <!1> < A HREF = "Image.html#DOC.2.43.26" > data< / A > , int packing=1)< / B > < / TT >
2001-09-20 05:19:47 +08:00
< DD > set the image data and format.
note, when the packing value is negative (the default is -1) this method assumes
a _packing width of 1 if the width is not a multiple of 4,
2001-12-25 05:56:22 +08:00
otherwise automatically sets to _packing to 4. If a positive
2001-09-20 05:19:47 +08:00
value of packing is supplied than _packing is simply set to that value.
< DL > < DT > < DD > < / DL > < P >
2002-04-22 05:53:03 +08:00
< A NAME = "readPixels" > < / A >
< A NAME = "DOC.2.43.11" > < / A >
2002-04-25 04:13:50 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > void readPixels(int <!1> < A HREF = "Viewport.html#DOC.2.111.7" > x< / A > , int <!1> < A HREF = "Viewport.html#DOC.2.111.8" > y< / A > , int <!1> < A HREF = "Viewport.html#DOC.2.111.9" > width< / A > , int <!1> < A HREF = "Viewport.html#DOC.2.111.10" > height< / A > , GLenum format, GLenum type)< / B > < / TT >
2002-04-22 05:53:03 +08:00
< DD > readPixels from screen at specified position and size, using glReadPixels.
Create memory for storage if required, reuse existing pixel coords if possible.
if pixelFormat or dataType
< DL > < DT > < DD > < / DL > < P >
< A NAME = "scaleImage" > < / A >
< A NAME = "DOC.2.43.12" > < / A >
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > void scaleImage(const int <!1> < A HREF = "Image.html#DOC.2.43.13" > s< / A > , const int <!1> < A HREF = "Image.html#DOC.2.43.14" > t< / A > , const int <!1> < A HREF = "Image.html#DOC.2.43.15" > r< / A > )< / B > < / TT >
< DD > Scale image to specified size.
< DL > < DT > < DD > < / DL > < P >
2001-09-20 05:19:47 +08:00
< A NAME = "s" > < / A >
2002-04-22 05:53:03 +08:00
< A NAME = "DOC.2.43.13" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline const int s() const < / B > < / TT >
< DD > Width of image
< DL > < DT > < DD > < / DL > < P >
< A NAME = "t" > < / A >
2002-04-22 05:53:03 +08:00
< A NAME = "DOC.2.43.14" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline const int t() const < / B > < / TT >
< DD > Height of image
< DL > < DT > < DD > < / DL > < P >
< A NAME = "r" > < / A >
2002-04-22 05:53:03 +08:00
< A NAME = "DOC.2.43.15" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline const int r() const < / B > < / TT >
< DD > Depth of image
< DL > < DT > < DD > < / DL > < P >
2002-04-22 05:53:03 +08:00
< A NAME = "setInternalTextureFormat" > < / A >
< A NAME = "DOC.2.43.16" > < / A >
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > void setInternalTextureFormat(GLint internalFormat)< / B > < / TT >
< DL > < DT > < DD > < / DL > < P >
< A NAME = "getInternalTextureFormat" > < / A >
< A NAME = "DOC.2.43.17" > < / A >
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline const GLint getInternalTextureFormat() const < / B > < / TT >
2001-09-20 05:19:47 +08:00
< DL > < DT > < DD > < / DL > < P >
2002-04-22 05:53:03 +08:00
< A NAME = "setPixelFormat" > < / A >
< A NAME = "DOC.2.43.18" > < / A >
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > void setPixelFormat(const GLenum format)< / B > < / TT >
2001-09-20 05:19:47 +08:00
< DL > < DT > < DD > < / DL > < P >
2002-04-22 05:53:03 +08:00
< A NAME = "getPixelFormat" > < / A >
< A NAME = "DOC.2.43.19" > < / A >
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline const GLenum getPixelFormat() const < / B > < / TT >
2001-09-20 05:19:47 +08:00
< DL > < DT > < DD > < / DL > < P >
2002-04-22 05:53:03 +08:00
< A NAME = "getDataType" > < / A >
< A NAME = "DOC.2.43.20" > < / A >
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline const GLenum getDataType() const < / B > < / TT >
< DL > < DT > < DD > < / DL > < P >
< A NAME = "getPacking" > < / A >
< A NAME = "DOC.2.43.21" > < / A >
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline const unsigned int getPacking() const < / B > < / TT >
< DL > < DT > < DD > < / DL > < P >
< A NAME = "getPixelSizeInBits" > < / A >
< A NAME = "DOC.2.43.22" > < / A >
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline const unsigned int getPixelSizeInBits() const < / B > < / TT >
< DD > return the numbers of bits required for each pixel
< DL > < DT > < DD > < / DL > < P >
< A NAME = "getRowSizeInBytes" > < / A >
< A NAME = "DOC.2.43.23" > < / A >
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline const unsigned int getRowSizeInBytes() const < / B > < / TT >
< DD > return the numbers of bytes each row of pixels occupies once it has been packed
< DL > < DT > < DD > < / DL > < P >
< A NAME = "getImageSizeInBytes" > < / A >
< A NAME = "DOC.2.43.24" > < / A >
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline const unsigned int getImageSizeInBytes() const < / B > < / TT >
< DD > return the numbers of bytes each image (_s*_t) of pixels occupies
< DL > < DT > < DD > < / DL > < P >
< A NAME = "getTotalSizeInBytes" > < / A >
< A NAME = "DOC.2.43.25" > < / A >
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline const unsigned int getTotalSizeInBytes() const < / B > < / TT >
< DD > return the numbers of bytes the whole row/image/volume of pixels occupies
2001-09-20 05:19:47 +08:00
< DL > < DT > < DD > < / DL > < P >
< A NAME = "data" > < / A >
2002-04-22 05:53:03 +08:00
< A NAME = "DOC.2.43.26" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline unsigned char* data()< / B > < / TT >
< DD > raw image data
< DL > < DT > < DD > < / DL > < P >
< A NAME = "data" > < / A >
2002-04-22 05:53:03 +08:00
< A NAME = "DOC.2.43.27" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline const unsigned char* data() const < / B > < / TT >
< DD > raw const image data
< DL > < DT > < DD > < / DL > < P >
2002-04-22 05:53:03 +08:00
< A NAME = "data" > < / A >
< A NAME = "DOC.2.43.28" > < / A >
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > unsigned char* data(int column, int row=0, int image=0)< / B > < / TT >
2001-09-20 05:19:47 +08:00
< DL > < DT > < DD > < / DL > < P >
2002-04-22 05:53:03 +08:00
< A NAME = "ensureValidSizeForTexturing" > < / A >
< A NAME = "DOC.2.43.29" > < / A >
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > void ensureValidSizeForTexturing()< / B > < / TT >
2001-09-20 05:19:47 +08:00
< DD > Ensure image dimensions are a power of two.
Mip Mapped texture require the image dimensions to be
2002-04-22 05:53:03 +08:00
power of two and are within the maxiumum texture size for
the host machine.
2001-09-20 05:19:47 +08:00
< DL > < DT > < DD > < / DL > < P >
2001-12-25 05:56:22 +08:00
< A NAME = "dirty" > < / A >
2002-04-22 05:53:03 +08:00
< A NAME = "DOC.2.43.30" > < / A >
2001-12-25 05:56:22 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline void dirty()< / B > < / TT >
< DD > Dirty the image, which increments the modified flag, to force osg::Texture to reload the image
< DL > < DT > < DD > < / DL > < P >
< A NAME = "setModifiedTag" > < / A >
2002-04-22 05:53:03 +08:00
< A NAME = "DOC.2.43.31" > < / A >
2001-12-25 05:56:22 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline void setModifiedTag(const unsigned int value)< / B > < / TT >
< DD > Set the modified tag value, only used by osg::Texture when using texture subloading.
< DL > < DT > < DD > < / DL > < P >
2001-09-20 05:19:47 +08:00
< A NAME = "getModifiedTag" > < / A >
2002-04-22 05:53:03 +08:00
< A NAME = "DOC.2.43.32" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline const unsigned int getModifiedTag() const < / B > < / TT >
2001-12-25 05:56:22 +08:00
< DD > Get modified tag value, only used by osg::Texture when using texture subloading.
2001-09-20 05:19:47 +08:00
< DL > < DT > < DD > < / DL > < P >
2002-04-22 05:53:03 +08:00
< A NAME = "isPackedType" > < / A >
< A NAME = "DOC.2.43.33" > < / A >
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > static const bool isPackedType(GLenum type)< / B > < / TT >
< DL > < DT > < DD > < / DL > < P >
< A NAME = "computeNumComponents" > < / A >
< A NAME = "DOC.2.43.34" > < / A >
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > static const unsigned int computeNumComponents(GLenum format)< / B > < / TT >
< DL > < DT > < DD > < / DL > < P >
< A NAME = "computePixelSizeInBits" > < / A >
< A NAME = "DOC.2.43.35" > < / A >
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > static const unsigned int computePixelSizeInBits(GLenum format, GLenum type)< / B > < / TT >
< DL > < DT > < DD > < / DL > < P >
< A NAME = "computeRowWidthInBytes" > < / A >
< A NAME = "DOC.2.43.36" > < / A >
2002-04-25 04:13:50 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > static const unsigned int computeRowWidthInBytes(int <!1> < A HREF = "Viewport.html#DOC.2.111.9" > width< / A > , GLenum format, GLenum type, int packing)< / B > < / TT >
2002-04-22 05:53:03 +08:00
< DL > < DT > < DD > < / DL > < P >
2002-04-25 04:13:50 +08:00
< A NAME = "isMipmap" > < / A >
2002-04-22 05:53:03 +08:00
< A NAME = "DOC.2.43.37" > < / A >
2002-04-25 04:13:50 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > typedef std::vector< unsigned int > inline MipmapDataType bool isMipmap() const < / B > < / TT >
< DL > < DT > < DD > < / DL > < P >
< A NAME = "getNumMipmaps" > < / A >
< A NAME = "DOC.2.43.38" > < / A >
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > unsigned int getNumMipmaps() const < / B > < / TT >
< DL > < DT > < DD > < / DL > < P >
< A NAME = "setMipmapData" > < / A >
< A NAME = "DOC.2.43.39" > < / A >
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline void setMipmapData(const MipmapDataType& mipmapDataVector)< / B > < / TT >
< DL > < DT > < DD > < / DL > < P >
< A NAME = "getMipmapData" > < / A >
< A NAME = "DOC.2.43.40" > < / A >
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline unsigned char* getMipmapData(unsigned int mipmapNumber) const < / B > < / TT >
< DL > < DT > < DD > < / DL > < P >
< A NAME = "~Image" > < / A >
< A NAME = "DOC.2.43.41" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > virtual ~Image()< / B > < / TT >
< DL > < DT > < DD > < / DL > < P >
2002-02-09 18:54:18 +08:00
< A NAME = "operator = " > < / A >
2002-04-25 04:13:50 +08:00
< A NAME = "DOC.2.43.42" > < / A >
2002-02-09 18:54:18 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > <!1> < A HREF = "Image.html" > Image< / A > & operator = (const <!1> < A HREF = "Image.html" > Image< / A > & )< / B > < / TT >
< DL > < DT > < DD > < / DL > < P >
2001-09-20 05:19:47 +08:00
< A NAME = "_fileName" > < / A >
2002-04-25 04:13:50 +08:00
< A NAME = "DOC.2.43.43" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > std::string _fileName< / B > < / TT >
< DL > < DT > < DD > < / DL > < P >
< A NAME = "_s" > < / A >
2002-04-25 04:13:50 +08:00
< A NAME = "DOC.2.43.44" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > int _s< / B > < / TT >
< DL > < DT > < DD > < / DL > < P >
< A NAME = "_t" > < / A >
2002-04-25 04:13:50 +08:00
< A NAME = "DOC.2.43.45" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > int _t< / B > < / TT >
< DL > < DT > < DD > < / DL > < P >
< A NAME = "_r" > < / A >
2002-04-25 04:13:50 +08:00
< A NAME = "DOC.2.43.46" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > int _r< / B > < / TT >
< DL > < DT > < DD > < / DL > < P >
2002-04-22 05:53:03 +08:00
< A NAME = "_internalTextureFormat" > < / A >
2002-04-25 04:13:50 +08:00
< A NAME = "DOC.2.43.47" > < / A >
2002-04-22 05:53:03 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > GLint _internalTextureFormat< / B > < / TT >
2001-09-20 05:19:47 +08:00
< DL > < DT > < DD > < / DL > < P >
< A NAME = "_pixelFormat" > < / A >
2002-04-25 04:13:50 +08:00
< A NAME = "DOC.2.43.48" > < / A >
2002-04-22 05:53:03 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > GLenum _pixelFormat< / B > < / TT >
2001-09-20 05:19:47 +08:00
< DL > < DT > < DD > < / DL > < P >
< A NAME = "_dataType" > < / A >
2002-04-25 04:13:50 +08:00
< A NAME = "DOC.2.43.49" > < / A >
2002-04-22 05:53:03 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > GLenum _dataType< / B > < / TT >
2001-09-20 05:19:47 +08:00
< DL > < DT > < DD > < / DL > < P >
< A NAME = "_packing" > < / A >
2002-04-25 04:13:50 +08:00
< A NAME = "DOC.2.43.50" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > unsigned int _packing< / B > < / TT >
< DL > < DT > < DD > < / DL > < P >
< A NAME = "_data" > < / A >
2002-04-25 04:13:50 +08:00
< A NAME = "DOC.2.43.51" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > unsigned char* _data< / B > < / TT >
< DL > < DT > < DD > < / DL > < P >
< A NAME = "_modifiedTag" > < / A >
2002-04-25 04:13:50 +08:00
< A NAME = "DOC.2.43.52" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > unsigned int _modifiedTag< / B > < / TT >
2002-04-25 04:13:50 +08:00
< DL > < DT > < DD > < / DL > < P >
< A NAME = "_mipmapData" > < / A >
< A NAME = "DOC.2.43.53" > < / A >
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > MipmapDataType _mipmapData< / B > < / TT >
2001-09-20 05:19:47 +08:00
< DL > < DT > < DD > < / DL > < P > < / DL >
< HR > < DL > < DT > < B > This class has no child classes.< / B > < / DL >
< DL > < DT > < DD > < / DL > < P > < P > < I > < A HREF = "index.html" > Alphabetic index< / A > < / I > < I > < A HREF = "HIER.html" > HTML hierarchy of classes< / A > or < A HREF = "HIERjava.html" > Java< / A > < / I > < / P > < HR >
< BR >
This page was generated with the help of < A HREF = "http://docpp.sourceforge.net" > DOC++< / A > .
< / BODY >
< / HTML >