2002-08-29 22:39:41 +08:00
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
< HTML >
< HEAD >
< TITLE > class SG_EXPORT osg::Texture2D< / TITLE >
< META NAME = "GENERATOR" CONTENT = "DOC++ 3.4.8" >
< / HEAD >
< BODY BGCOLOR = "#ffffff" >
< H2 > class SG_EXPORT < A HREF = "#DOC.DOCU" > osg::Texture2D< / A > < / H2 > < / H2 > < BLOCKQUOTE > Texture state class which encapsulates OpenGl texture functionality< / BLOCKQUOTE >
< HR >
< H2 > Inheritance:< / H2 >
< APPLET CODE = "ClassGraph.class" WIDTH = 600 HEIGHT = 155 >
< param name = classes value = "CReferenced,MReferenced.html,CObject,MObject.html,CStateAttribute,MStateAttribute.html,CTexture,MTexture.html,CTexture2D,MTexture2D.html" >
< param name = before value = "M,M,M,M,M" >
< param name = after value = "Md_SPSPSP,Md_SPSP,Md_SP,Md_,M" >
< param name = indent value = "0,1,2,3,4" >
< param name = arrowdir value = "down" >
< / APPLET >
< HR >
< DL >
< P > < DL >
< DT > < H3 > Public Methods< / H3 > < DD > < DT >
2002-11-08 22:15:17 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > < B > < A HREF = "#DOC.2.177.1" > Texture2D< / A > < / B > ()
2002-08-29 22:39:41 +08:00
< DT >
2002-11-08 22:15:17 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > < B > < A HREF = "#DOC.2.177.2" > Texture2D< / A > < / B > (const <!1> < A HREF = "Texture2D.html#DOC.2.177.2" > Texture2D< / A > & text, const <!1> < A HREF = "CopyOp.html" > CopyOp< / A > & copyop=CopyOp::SHALLOW_COPY)
2002-08-29 22:39:41 +08:00
< DD > < I > Copy constructor using CopyOp to manage deep vs shallow copy< / I >
< DT >
2002-11-08 22:15:17 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > < B > < A HREF = "#DOC.2.177.3" > META_StateAttribute< / A > < / B > (<!1> < A HREF = "osg.html" > osg< / A > , <!1> < A HREF = "Texture2D.html" > Texture2D< / A > , <!1> < A HREF = "StateAttribute.html#DOC.2.164.6.1" > TEXTURE< / A > )
2002-08-29 22:39:41 +08:00
< DT >
2002-11-08 22:15:17 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > virtual int < B > < A HREF = "#DOC.2.177.4" > compare< / A > < / B > (const <!1> < A HREF = "StateAttribute.html" > StateAttribute< / A > & rhs) const
2002-08-29 22:39:41 +08:00
< DD > < I > return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs< / I >
< DT >
2002-11-08 22:15:17 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > virtual void < B > < A HREF = "#DOC.2.177.5" > getAssociatedModes< / A > < / B > (std::vector< <!1> < A HREF = "StateAttribute.html#DOC.2.164.1" > GLMode< / A > > & modes) const
2002-08-29 22:39:41 +08:00
< DT >
2002-11-08 22:15:17 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > void < B > < A HREF = "#DOC.2.177.6" > setImage< / A > < / B > (<!1> < A HREF = "Image.html" > Image< / A > * image)
2002-08-29 22:39:41 +08:00
< DD > < I > Set the texture image.< / I >
< DT >
2002-11-08 22:15:17 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > <!1> < A HREF = "Image.html" > Image< / A > * < B > < A HREF = "#DOC.2.177.7" > getImage< / A > < / B > ()
2002-08-29 22:39:41 +08:00
< DD > < I > Get the texture image.< / I >
< DT >
2002-11-08 22:15:17 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline const <!1> < A HREF = "Image.html" > Image< / A > * < B > < A HREF = "#DOC.2.177.8" > getImage< / A > < / B > () const
2002-08-29 22:39:41 +08:00
< DD > < I > Get the const texture image.< / I >
< DT >
2002-11-08 22:15:17 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline void < B > < A HREF = "#DOC.2.177.9" > setTextureSize< / A > < / B > (int <!1> < A HREF = "Viewport.html#DOC.2.200.9" > width< / A > , int <!1> < A HREF = "Viewport.html#DOC.2.200.10" > height< / A > ) const
2002-08-29 22:39:41 +08:00
< DD > < I > Set the texture width and height.< / I >
< DT >
2002-11-08 22:15:17 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline void < B > < A HREF = "#DOC.2.177.10" > getTextureSize< / A > < / B > (int& <!1> < A HREF = "Viewport.html#DOC.2.200.9" > width< / A > , int& <!1> < A HREF = "Viewport.html#DOC.2.200.10" > height< / A > ) const
2002-08-29 22:39:41 +08:00
< DD > < I > Get the texture subload width.< / I >
< DT >
2002-11-08 22:15:17 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > void < B > < A HREF = "#DOC.2.177.12" > setSubloadCallback< / A > < / B > (<!1> < A HREF = "SubloadCallback.2.html" > SubloadCallback< / A > * cb)
2002-08-29 22:39:41 +08:00
< DT >
2002-11-08 22:15:17 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > <!1> < A HREF = "SubloadCallback.2.html" > SubloadCallback< / A > * < B > < A HREF = "#DOC.2.177.13" > getSubloadCallback< / A > < / B > ()
2002-08-29 22:39:41 +08:00
< DT >
2002-11-08 22:15:17 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > const <!1> < A HREF = "SubloadCallback.2.html" > SubloadCallback< / A > * < B > < A HREF = "#DOC.2.177.14" > getSubloadCallback< / A > < / B > () const
2002-08-29 22:39:41 +08:00
< DT >
2002-11-08 22:15:17 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > void < B > < A HREF = "#DOC.2.177.15" > setNumMipmapLevels< / A > < / B > (unsigned int num) const
2002-08-29 22:39:41 +08:00
< DD > < I > Set the number of mip map levels the the texture has been created with, should only be called within an osg::Texuture::apply() and custom OpenGL texture load< / I >
< DT >
2002-11-08 22:15:17 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > unsigned int < B > < A HREF = "#DOC.2.177.16" > getNumMipmapLevels< / A > < / B > () const
2002-08-29 22:39:41 +08:00
< DD > < I > Get the number of mip map levels the the texture has been created with< / I >
< DT >
2002-11-08 22:15:17 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > void < B > < A HREF = "#DOC.2.177.17" > copyTexImage2D< / A > < / B > (<!1> < A HREF = "State.html" > State< / A > & state, int <!1> < A HREF = "Viewport.html#DOC.2.200.7" > x< / A > , int <!1> < A HREF = "Viewport.html#DOC.2.200.8" > y< / A > , int <!1> < A HREF = "Viewport.html#DOC.2.200.9" > width< / A > , int <!1> < A HREF = "Viewport.html#DOC.2.200.10" > height< / A > )
2002-08-29 22:39:41 +08:00
< DD > < I > Copy pixels into a 2D texture imageAs per glCopyTexImage2D.< / I >
< DT >
2002-11-08 22:15:17 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > void < B > < A HREF = "#DOC.2.177.18" > copyTexSubImage2D< / A > < / B > (<!1> < A HREF = "State.html" > State< / A > & state, int xoffset, int yoffset, int <!1> < A HREF = "Viewport.html#DOC.2.200.7" > x< / A > , int <!1> < A HREF = "Viewport.html#DOC.2.200.8" > y< / A > , int <!1> < A HREF = "Viewport.html#DOC.2.200.9" > width< / A > , int <!1> < A HREF = "Viewport.html#DOC.2.200.10" > height< / A > )
2002-08-29 22:39:41 +08:00
< DD > < I > Copy a two-dimensional texture subimage.< / I >
< DT >
2002-11-08 22:15:17 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > virtual void < B > < A HREF = "#DOC.2.177.19" > apply< / A > < / B > (<!1> < A HREF = "State.html" > State< / A > & state) const
2002-08-29 22:39:41 +08:00
< DD > < I > On first apply (unless already compiled), create the minmapped texture and bind it, subsequent apply will simple bind to texture< / I >
< / DL > < / P >
< P > < DL >
< DT > < H3 > Public Members< / H3 > < DD > < DT >
class < B > < A HREF = "SubloadCallback.2.html" > SubloadCallback< / A > < / B > : public <!1> < A HREF = "Referenced.html" > Referenced< / A >
< / DL > < / P >
< P > < DL >
< DT > < H3 > Protected Fields< / H3 > < DD > < DT >
2002-11-08 22:15:17 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > mutable <!1> < A HREF = "ref_ptr.html" > ref_ptr< / A > < <!1> < A HREF = "Image.html" > Image< / A > > < B > < A HREF = "#DOC.2.177.22" > _image< / A > < / B >
2002-08-29 22:39:41 +08:00
< DT >
2002-11-08 22:15:17 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > mutable GLsizei < B > < A HREF = "#DOC.2.177.23" > _textureWidth< / A > < / B >
2002-08-29 22:39:41 +08:00
< DT >
2002-11-08 22:15:17 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > mutable GLsizei < B > < A HREF = "#DOC.2.177.24" > _textureHeight< / A > < / B >
2002-08-29 22:39:41 +08:00
< DT >
2002-11-08 22:15:17 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > mutable GLsizei < B > < A HREF = "#DOC.2.177.25" > _numMimpmapLevels< / A > < / B >
2002-08-29 22:39:41 +08:00
< DT >
2002-11-08 22:15:17 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > <!1> < A HREF = "ref_ptr.html" > ref_ptr< / A > < <!1> < A HREF = "SubloadCallback.2.html" > SubloadCallback< / A > > < B > < A HREF = "#DOC.2.177.26" > _subloadCallback< / A > < / B >
2002-08-29 22:39:41 +08:00
< / DL > < / P >
< P > < DL >
< DT > < H3 > Protected Methods< / H3 > < DD > < DT >
2002-11-08 22:15:17 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > virtual < B > < A HREF = "#DOC.2.177.20" > ~Texture2D< / A > < / B > ()
2002-08-29 22:39:41 +08:00
< DT >
2002-11-08 22:15:17 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > virtual void < B > < A HREF = "#DOC.2.177.21" > computeInternalFormat< / A > < / B > () const
2002-08-29 22:39:41 +08:00
< / DL > < / P >
< / DL >
< HR > < H3 > Inherited from < A HREF = "Texture.html" > Texture< / A > :< / H3 >
< DL >
< P > < DL >
< DT > < H3 > Public Methods< / H3 > < DD > < DT >
< IMG ALT = "o" SRC = icon2.gif > virtual <!1> < A HREF = "Object.html" > osg::Object< / A > * < B > cloneType< / B > () const
< DT >
< IMG ALT = "o" SRC = icon2.gif > virtual <!1> < A HREF = "Object.html" > osg::Object< / A > * < B > clone< / B > (const <!1> < A HREF = "CopyOp.html" > CopyOp< / A > & copyop) const
< DT >
< IMG ALT = "o" SRC = icon2.gif > virtual bool < B > isSameKindAs< / B > (const <!1> < A HREF = "Object.html" > osg::Object< / A > * obj) const
< DT >
< IMG ALT = "o" SRC = icon2.gif > virtual const char* < B > libraryName< / B > () const
< DT >
< IMG ALT = "o" SRC = icon2.gif > virtual const char* < B > className< / B > () const
< DT >
2002-11-08 22:15:17 +08:00
< IMG ALT = "o" SRC = icon2.gif > virtual <!1> < A HREF = "StateAttribute.html#DOC.2.164.5" > Type< / A > < B > getType< / B > () const
2002-08-29 22:39:41 +08:00
< DT >
< IMG ALT = "o" SRC = icon2.gif > virtual bool < B > isTextureAttribute< / B > () const
< DT >
2002-11-08 22:15:17 +08:00
< IMG ALT = "o" SRC = icon2.gif > void < B > setWrap< / B > (<!1> < A HREF = "Texture.html#DOC.2.175.10" > WrapParameter< / A > which, <!1> < A HREF = "Texture.html#DOC.2.175.11" > WrapMode< / A > wrap)
2002-08-29 22:39:41 +08:00
< DT >
2002-11-08 22:15:17 +08:00
< IMG ALT = "o" SRC = icon2.gif > <!1> < A HREF = "Texture.html#DOC.2.175.11" > WrapMode< / A > < B > getWrap< / B > (<!1> < A HREF = "Texture.html#DOC.2.175.10" > WrapParameter< / A > which) const
2002-08-29 22:39:41 +08:00
< DT >
< IMG ALT = "o" SRC = icon2.gif > void < B > setBorderColor< / B > (const <!1> < A HREF = "Vec4.html" > Vec4< / A > & color)
< DT >
2002-11-08 22:15:17 +08:00
< IMG ALT = "o" SRC = icon2.gif > const <!1> < A HREF = "Vec4.html" > Vec4< / A > & < B > getBorderColor< / B > () const
2002-08-29 22:39:41 +08:00
< DT >
2002-11-08 22:15:17 +08:00
< IMG ALT = "o" SRC = icon2.gif > void < B > setFilter< / B > (<!1> < A HREF = "Texture.html#DOC.2.175.16" > FilterParameter< / A > which, <!1> < A HREF = "Texture.html#DOC.2.175.17" > FilterMode< / A > filter)
2002-08-29 22:39:41 +08:00
< DT >
2002-11-08 22:15:17 +08:00
< IMG ALT = "o" SRC = icon2.gif > <!1> < A HREF = "Texture.html#DOC.2.175.17" > FilterMode< / A > < B > getFilter< / B > (<!1> < A HREF = "Texture.html#DOC.2.175.16" > FilterParameter< / A > which) const
2002-08-29 22:39:41 +08:00
< DT >
< IMG ALT = "o" SRC = icon2.gif > void < B > setMaxAnisotropy< / B > (float anis)
< DT >
< IMG ALT = "o" SRC = icon2.gif > inline float < B > getMaxAnisotropy< / B > () const
< DT >
2002-11-08 22:15:17 +08:00
< IMG ALT = "o" SRC = icon2.gif > inline void < B > setInternalFormatMode< / B > (<!1> < A HREF = "Texture.html#DOC.2.175.22" > InternalFormatMode< / A > mode)
2002-08-29 22:39:41 +08:00
< DT >
2002-11-08 22:15:17 +08:00
< IMG ALT = "o" SRC = icon2.gif > inline <!1> < A HREF = "Texture.html#DOC.2.175.22" > InternalFormatMode< / A > < B > getInternalFormatMode< / B > () const
2002-08-29 22:39:41 +08:00
< DT >
2002-11-08 22:15:17 +08:00
< IMG ALT = "o" SRC = icon2.gif > inline void < B > setInternalFormat< / B > (GLint internalFormat)
2002-08-29 22:39:41 +08:00
< DT >
2002-11-08 22:15:17 +08:00
< IMG ALT = "o" SRC = icon2.gif > inline GLint < B > getInternalFormat< / B > () const
2002-08-29 22:39:41 +08:00
< DT >
< IMG ALT = "o" SRC = icon2.gif > bool < B > isCompressedInternalFormat< / B > () const
< DT >
2002-11-08 22:15:17 +08:00
< IMG ALT = "o" SRC = icon2.gif > inline GLuint& < B > getTextureObject< / B > (<!1> < A HREF = "osg.html#DOC.2.186" > uint< / A > contextID) const
2002-08-29 22:39:41 +08:00
< DT >
2002-11-08 22:15:17 +08:00
< IMG ALT = "o" SRC = icon2.gif > inline <!1> < A HREF = "osg.html#DOC.2.186" > uint< / A > & < B > getModifiedTag< / B > (<!1> < A HREF = "osg.html#DOC.2.186" > uint< / A > contextID) const
< DT >
2002-11-13 20:42:58 +08:00
< IMG ALT = "o" SRC = icon2.gif > inline <!1> < A HREF = "osg.html#DOC.2.186" > uint< / A > & < B > getTextureParameterDirty< / B > (<!1> < A HREF = "osg.html#DOC.2.186" > uint< / A > contextID) const
2002-08-29 22:39:41 +08:00
< DT >
< IMG ALT = "o" SRC = icon2.gif > void < B > dirtyTextureObject< / B > ()
< DT >
2002-11-08 22:15:17 +08:00
< IMG ALT = "o" SRC = icon2.gif > void < B > dirtyTextureParameters< / B > ()
2002-08-29 22:39:41 +08:00
< DT >
2002-11-08 22:15:17 +08:00
< IMG ALT = "o" SRC = icon2.gif > static void < B > deleteTextureObject< / B > (<!1> < A HREF = "osg.html#DOC.2.186" > uint< / A > contextID, GLuint handle)
2002-08-29 22:39:41 +08:00
< DT >
2002-11-08 22:15:17 +08:00
< IMG ALT = "o" SRC = icon2.gif > static void < B > flushDeletedTextureObjects< / B > (<!1> < A HREF = "osg.html#DOC.2.186" > uint< / A > contextID)
2002-08-29 22:39:41 +08:00
< DT >
< IMG ALT = "o" SRC = icon2.gif > virtual void < B > compile< / B > (<!1> < A HREF = "State.html" > State< / A > & state) const
2002-11-08 22:15:17 +08:00
< DT >
< IMG ALT = "o" SRC = icon2.gif > static const <!1> < A HREF = "Extensions.html" > Extensions< / A > * < B > getExtensions< / B > (<!1> < A HREF = "osg.html#DOC.2.186" > uint< / A > contextID, bool createIfNotInitalized)
< DT >
< IMG ALT = "o" SRC = icon2.gif > static void < B > setExtensions< / B > (<!1> < A HREF = "osg.html#DOC.2.186" > uint< / A > contextID, <!1> < A HREF = "Extensions.html" > Extensions< / A > * extensions)
2002-08-29 22:39:41 +08:00
< / DL > < / P >
< P > < DL >
< DT > < H3 > Public Members< / H3 > < DD > < DT >
< IMG ALT = "o" SRC = icon2.gif > enum < B > WrapParameter< / B >
< DT >
< IMG ALT = "o" SRC = icon2.gif > enum < B > WrapMode< / B >
< DT >
< IMG ALT = "o" SRC = icon2.gif > enum < B > FilterParameter< / B >
< DT >
< IMG ALT = "o" SRC = icon2.gif > enum < B > FilterMode< / B >
< DT >
< IMG ALT = "o" SRC = icon2.gif > enum < B > InternalFormatMode< / B >
< DT >
< IMG ALT = "o" SRC = icon2.gif > < B > Get the handle to the texture object for the current context< / B >
2002-11-08 22:15:17 +08:00
< DT >
class < B > < A HREF = "Extensions.html" > Extensions< / A > < / B > : public <!1> < A HREF = "Referenced.html" > osg::Referenced< / A >
< DD > < I > Extensions class which encapsulates the querring of extensions and associated function pointers, and provide convinience wrappers to check for the extensions or use the associated functions< / I >
2002-08-29 22:39:41 +08:00
< / DL > < / P >
< P > < DL >
< DT > < H3 > Protected Fields< / H3 > < DD > < DT >
2002-11-08 22:15:17 +08:00
< IMG ALT = "o" SRC = icon2.gif > mutable <!1> < A HREF = "Texture.html#DOC.2.175.48" > TextureNameList< / A > < B > _handleList< / B >
< DT >
< IMG ALT = "o" SRC = icon2.gif > mutable <!1> < A HREF = "Texture.html#DOC.2.175.50" > ImageModifiedTag< / A > < B > _modifiedTag< / B >
< DT >
< IMG ALT = "o" SRC = icon2.gif > mutable <!1> < A HREF = "Texture.html#DOC.2.175.52" > TexParameterDirtyList< / A > < B > _texParametersDirtyList< / B >
2002-08-29 22:39:41 +08:00
< DT >
2002-11-08 22:15:17 +08:00
< IMG ALT = "o" SRC = icon2.gif > <!1> < A HREF = "Texture.html#DOC.2.175.11" > WrapMode< / A > < B > _wrap_s< / B >
2002-08-29 22:39:41 +08:00
< DT >
2002-11-08 22:15:17 +08:00
< IMG ALT = "o" SRC = icon2.gif > <!1> < A HREF = "Texture.html#DOC.2.175.11" > WrapMode< / A > < B > _wrap_t< / B >
2002-08-29 22:39:41 +08:00
< DT >
2002-11-08 22:15:17 +08:00
< IMG ALT = "o" SRC = icon2.gif > <!1> < A HREF = "Texture.html#DOC.2.175.11" > WrapMode< / A > < B > _wrap_r< / B >
2002-08-29 22:39:41 +08:00
< DT >
2002-11-08 22:15:17 +08:00
< IMG ALT = "o" SRC = icon2.gif > <!1> < A HREF = "Texture.html#DOC.2.175.17" > FilterMode< / A > < B > _min_filter< / B >
< DT >
< IMG ALT = "o" SRC = icon2.gif > <!1> < A HREF = "Texture.html#DOC.2.175.17" > FilterMode< / A > < B > _mag_filter< / B >
2002-08-29 22:39:41 +08:00
< DT >
< IMG ALT = "o" SRC = icon2.gif > float < B > _maxAnisotropy< / B >
< DT >
< IMG ALT = "o" SRC = icon2.gif > <!1> < A HREF = "Vec4.html" > Vec4< / A > < B > _borderColor< / B >
< DT >
2002-11-08 22:15:17 +08:00
< IMG ALT = "o" SRC = icon2.gif > <!1> < A HREF = "Texture.html#DOC.2.175.22" > InternalFormatMode< / A > < B > _internalFormatMode< / B >
2002-08-29 22:39:41 +08:00
< DT >
< IMG ALT = "o" SRC = icon2.gif > mutable GLint < B > _internalFormat< / B >
< / DL > < / P >
< P > < DL >
< DT > < H3 > Protected Methods< / H3 > < DD > < DT >
< IMG ALT = "o" SRC = icon2.gif > void < B > computeInternalFormatWithImage< / B > (<!1> < A HREF = "Image.html" > osg::Image< / A > & image) const
< DT >
< IMG ALT = "o" SRC = icon2.gif > bool < B > isCompressedInternalFormat< / B > (GLint internalFormat) const
< DT >
< IMG ALT = "o" SRC = icon2.gif > void < B > applyTexParameters< / B > (GLenum target, <!1> < A HREF = "State.html" > State< / A > & state) const
< DT >
2002-11-08 22:15:17 +08:00
< IMG ALT = "o" SRC = icon2.gif > void < B > applyTexImage2D< / B > (GLenum target, <!1> < A HREF = "Image.html" > Image< / A > * image, <!1> < A HREF = "State.html" > State< / A > & state, GLsizei& <!1> < A HREF = "Viewport.html#DOC.2.200.9" > width< / A > , GLsizei& <!1> < A HREF = "Viewport.html#DOC.2.200.10" > height< / A > , GLsizei& numMimpmapLevels) const
2002-08-29 22:39:41 +08:00
< DT >
< IMG ALT = "o" SRC = icon2.gif > int < B > compareTexture< / B > (const <!1> < A HREF = "Texture.html" > Texture< / A > & rhs) const
< / DL > < / P >
< P > < DL >
< DT > < H3 > Protected Members< / H3 > < DD > < DT >
2002-11-08 22:15:17 +08:00
< IMG ALT = "o" SRC = icon2.gif > typedef <!1> < A HREF = "buffered_value.html" > buffered_value< / A > < GLuint> < B > TextureNameList< / B >
2002-08-29 22:39:41 +08:00
< DT >
2002-11-08 22:15:17 +08:00
< IMG ALT = "o" SRC = icon2.gif > typedef <!1> < A HREF = "buffered_value.html" > buffered_value< / A > < <!1> < A HREF = "osg.html#DOC.2.186" > uint< / A > > < B > ImageModifiedTag< / B >
2002-08-29 22:39:41 +08:00
< DT >
2002-11-08 22:15:17 +08:00
< IMG ALT = "o" SRC = icon2.gif > typedef <!1> < A HREF = "buffered_value.html" > buffered_value< / A > < <!1> < A HREF = "osg.html#DOC.2.186" > uint< / A > > < B > TexParameterDirtyList< / B >
2002-08-29 22:39:41 +08:00
< / DL > < / P >
< / DL >
< HR > < H3 > Inherited from < A HREF = "StateAttribute.html" > StateAttribute< / A > :< / H3 >
< DL >
< P > < DL >
< DT > < H3 > Public Methods< / H3 > < DD > < DT >
< IMG ALT = "o" SRC = icon2.gif > bool < B > operator < < / B > (const <!1> < A HREF = "StateAttribute.html" > StateAttribute< / A > & rhs) const
< DT >
< IMG ALT = "o" SRC = icon2.gif > bool < B > operator == < / B > (const <!1> < A HREF = "StateAttribute.html" > StateAttribute< / A > & rhs) const
< DT >
< IMG ALT = "o" SRC = icon2.gif > bool < B > operator != < / B > (const <!1> < A HREF = "StateAttribute.html" > StateAttribute< / A > & rhs) const
< / DL > < / P >
< P > < DL >
< DT > < H3 > Public Members< / H3 > < DD > < DT >
< IMG ALT = "o" SRC = icon2.gif > typedef GLenum < B > GLMode< / B >
< DT >
< IMG ALT = "o" SRC = icon2.gif > typedef unsigned int < B > GLModeValue< / B >
< DT >
< IMG ALT = "o" SRC = icon2.gif > typedef unsigned int < B > OverrideValue< / B >
< DT >
< IMG ALT = "o" SRC = icon2.gif > enum < B > Values< / B >
< DT >
< IMG ALT = "o" SRC = icon2.gif > typedef unsigned int < B > Type< / B >
< DT >
< IMG ALT = "o" SRC = icon2.gif > enum < B > Types< / B >
< / DL > < / P >
< / DL >
< HR > < H3 > Inherited from < A HREF = "Object.html" > Object< / A > :< / H3 >
< DL >
< P > < DL >
< DT > < H3 > Public Methods< / H3 > < DD > < DT >
2002-11-13 20:42:58 +08:00
< IMG ALT = "o" SRC = icon2.gif > inline void < B > setDataVariance< / B > (<!1> < A HREF = "Object.html#DOC.2.106.8" > DataVariance< / A > dv)
2002-08-29 22:39:41 +08:00
< DT >
2002-11-13 20:42:58 +08:00
< IMG ALT = "o" SRC = icon2.gif > inline <!1> < A HREF = "Object.html#DOC.2.106.8" > DataVariance< / A > < B > getDataVariance< / B > () const
2002-08-29 22:39:41 +08:00
< DT >
< IMG ALT = "o" SRC = icon2.gif > inline void < B > setUserData< / B > (<!1> < A HREF = "Referenced.html" > Referenced< / A > * obj)
< DT >
< IMG ALT = "o" SRC = icon2.gif > inline <!1> < A HREF = "Referenced.html" > Referenced< / A > * < B > getUserData< / B > ()
< DT >
< IMG ALT = "o" SRC = icon2.gif > inline const <!1> < A HREF = "Referenced.html" > Referenced< / A > * < B > getUserData< / B > () const
< / 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-11-08 22:15:17 +08:00
< IMG ALT = "o" SRC = icon2.gif > <!1> < A HREF = "Object.html#DOC.2.106.8" > DataVariance< / A > < B > _dataVariance< / B >
2002-08-29 22:39:41 +08:00
< DT >
< IMG ALT = "o" SRC = icon2.gif > <!1> < A HREF = "ref_ptr.html" > ref_ptr< / A > < <!1> < A HREF = "Referenced.html" > Referenced< / A > > < B > _userData< / B >
< / DL > < / P >
< / 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 <!1> < A HREF = "Referenced.html" > Referenced< / A > & < B > operator = < / B > (<!1> < A HREF = "Referenced.html" > Referenced< / A > & )
< 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 >
< IMG ALT = "o" SRC = icon2.gif > inline void < B > unref_nodelete< / B > () const
< DT >
2002-11-08 22:15:17 +08:00
< IMG ALT = "o" SRC = icon2.gif > inline int < B > referenceCount< / B > () const
< DT >
< IMG ALT = "o" SRC = icon2.gif > inline static int < B > createdCount< / B > ()
< DT >
< IMG ALT = "o" SRC = icon2.gif > inline static int < B > deletedCount< / B > ()
2002-08-29 22:39:41 +08:00
< / DL > < / P >
< P > < DL >
< DT > < H3 > Protected Fields< / H3 > < DD > < DT >
< IMG ALT = "o" SRC = icon2.gif > mutable int < B > _refCount< / B >
2002-11-08 22:15:17 +08:00
< DT >
< IMG ALT = "o" SRC = icon2.gif > static int < B > _createdCount< / B >
< DT >
< IMG ALT = "o" SRC = icon2.gif > static int < B > _deletedCount< / B >
2002-08-29 22:39:41 +08:00
< / DL > < / P >
< / DL >
< A NAME = "DOC.DOCU" > < / A >
< HR >
< H2 > Documentation< / H2 >
< BLOCKQUOTE > Texture state class which encapsulates OpenGl texture functionality< / BLOCKQUOTE >
< DL >
< A NAME = "Texture2D" > < / A >
2002-11-08 22:15:17 +08:00
< A NAME = "DOC.2.177.1" > < / A >
2002-08-29 22:39:41 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > Texture2D()< / B > < / TT >
< DL > < DT > < DD > < / DL > < P >
< A NAME = "Texture2D" > < / A >
2002-11-08 22:15:17 +08:00
< A NAME = "DOC.2.177.2" > < / A >
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > Texture2D(const <!1> < A HREF = "Texture2D.html#DOC.2.177.2" > Texture2D< / A > & text, const <!1> < A HREF = "CopyOp.html" > CopyOp< / A > & copyop=CopyOp::SHALLOW_COPY)< / B > < / TT >
2002-08-29 22:39:41 +08:00
< DD > Copy constructor using CopyOp to manage deep vs shallow copy
< DL > < DT > < DD > < / DL > < P >
< A NAME = "META_StateAttribute" > < / A >
2002-11-08 22:15:17 +08:00
< A NAME = "DOC.2.177.3" > < / A >
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > META_StateAttribute(<!1> < A HREF = "osg.html" > osg< / A > , <!1> < A HREF = "Texture2D.html" > Texture2D< / A > , <!1> < A HREF = "StateAttribute.html#DOC.2.164.6.1" > TEXTURE< / A > )< / B > < / TT >
2002-08-29 22:39:41 +08:00
< DL > < DT > < DD > < / DL > < P >
< A NAME = "compare" > < / A >
2002-11-08 22:15:17 +08:00
< A NAME = "DOC.2.177.4" > < / A >
2002-08-29 22:39:41 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > virtual int compare(const <!1> < A HREF = "StateAttribute.html" > StateAttribute< / A > & rhs) const < / B > < / TT >
< DD > return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs
< DL > < DT > < DD > < / DL > < P >
< A NAME = "getAssociatedModes" > < / A >
2002-11-08 22:15:17 +08:00
< A NAME = "DOC.2.177.5" > < / A >
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > virtual void getAssociatedModes(std::vector< <!1> < A HREF = "StateAttribute.html#DOC.2.164.1" > GLMode< / A > > & modes) const < / B > < / TT >
2002-08-29 22:39:41 +08:00
< DL > < DT > < DD > < / DL > < P >
< A NAME = "setImage" > < / A >
2002-11-08 22:15:17 +08:00
< A NAME = "DOC.2.177.6" > < / A >
2002-08-29 22:39:41 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > void setImage(<!1> < A HREF = "Image.html" > Image< / A > * image)< / B > < / TT >
< DD > Set the texture image.
< DL > < DT > < DD > < / DL > < P >
< A NAME = "getImage" > < / A >
2002-11-08 22:15:17 +08:00
< A NAME = "DOC.2.177.7" > < / A >
2002-08-29 22:39:41 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > <!1> < A HREF = "Image.html" > Image< / A > * getImage()< / B > < / TT >
< DD > Get the texture image.
< DL > < DT > < DD > < / DL > < P >
< A NAME = "getImage" > < / A >
2002-11-08 22:15:17 +08:00
< A NAME = "DOC.2.177.8" > < / A >
2002-08-29 22:39:41 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline const <!1> < A HREF = "Image.html" > Image< / A > * getImage() const < / B > < / TT >
< DD > Get the const texture image.
< DL > < DT > < DD > < / DL > < P >
< A NAME = "setTextureSize" > < / A >
2002-11-08 22:15:17 +08:00
< A NAME = "DOC.2.177.9" > < / A >
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline void setTextureSize(int <!1> < A HREF = "Viewport.html#DOC.2.200.9" > width< / A > , int <!1> < A HREF = "Viewport.html#DOC.2.200.10" > height< / A > ) const < / B > < / TT >
2002-08-29 22:39:41 +08:00
< DD > Set the texture width and height. If width or height are zero then
the repsective size value is calculated from the source image sizes.
< DL > < DT > < DD > < / DL > < P >
< A NAME = "getTextureSize" > < / A >
2002-11-08 22:15:17 +08:00
< A NAME = "DOC.2.177.10" > < / A >
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline void getTextureSize(int& <!1> < A HREF = "Viewport.html#DOC.2.200.9" > width< / A > , int& <!1> < A HREF = "Viewport.html#DOC.2.200.10" > height< / A > ) const < / B > < / TT >
2002-08-29 22:39:41 +08:00
< DD > Get the texture subload width.
< DL > < DT > < DD > < / DL > < P >
< A NAME = "setSubloadCallback" > < / A >
2002-11-08 22:15:17 +08:00
< A NAME = "DOC.2.177.12" > < / A >
2002-08-29 22:39:41 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > void setSubloadCallback(<!1> < A HREF = "SubloadCallback.2.html" > SubloadCallback< / A > * cb)< / B > < / TT >
< DL > < DT > < DD > < / DL > < P >
< A NAME = "getSubloadCallback" > < / A >
2002-11-08 22:15:17 +08:00
< A NAME = "DOC.2.177.13" > < / A >
2002-08-29 22:39:41 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > <!1> < A HREF = "SubloadCallback.2.html" > SubloadCallback< / A > * getSubloadCallback()< / B > < / TT >
< DL > < DT > < DD > < / DL > < P >
< A NAME = "getSubloadCallback" > < / A >
2002-11-08 22:15:17 +08:00
< A NAME = "DOC.2.177.14" > < / A >
2002-08-29 22:39:41 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > const <!1> < A HREF = "SubloadCallback.2.html" > SubloadCallback< / A > * getSubloadCallback() const < / B > < / TT >
< DL > < DT > < DD > < / DL > < P >
< A NAME = "setNumMipmapLevels" > < / A >
2002-11-08 22:15:17 +08:00
< A NAME = "DOC.2.177.15" > < / A >
2002-08-29 22:39:41 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > void setNumMipmapLevels(unsigned int num) const < / B > < / TT >
< DD > Set the number of mip map levels the the texture has been created with,
should only be called within an osg::Texuture::apply() and custom OpenGL texture load
< DL > < DT > < DD > < / DL > < P >
< A NAME = "getNumMipmapLevels" > < / A >
2002-11-08 22:15:17 +08:00
< A NAME = "DOC.2.177.16" > < / A >
2002-08-29 22:39:41 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > unsigned int getNumMipmapLevels() const < / B > < / TT >
< DD > Get the number of mip map levels the the texture has been created with
< DL > < DT > < DD > < / DL > < P >
< A NAME = "copyTexImage2D" > < / A >
2002-11-08 22:15:17 +08:00
< A NAME = "DOC.2.177.17" > < / A >
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > void copyTexImage2D(<!1> < A HREF = "State.html" > State< / A > & state, int <!1> < A HREF = "Viewport.html#DOC.2.200.7" > x< / A > , int <!1> < A HREF = "Viewport.html#DOC.2.200.8" > y< / A > , int <!1> < A HREF = "Viewport.html#DOC.2.200.9" > width< / A > , int <!1> < A HREF = "Viewport.html#DOC.2.200.10" > height< / A > )< / B > < / TT >
2002-08-29 22:39:41 +08:00
< DD > Copy pixels into a 2D texture imageAs per glCopyTexImage2D.
Creates an OpenGL texture object from the current OpenGL background
framebuffer contents at pos \a x, \a y with width \a width and
height \a height. \a width and \a height must be a power of two.
< DL > < DT > < DD > < / DL > < P >
< A NAME = "copyTexSubImage2D" > < / A >
2002-11-08 22:15:17 +08:00
< A NAME = "DOC.2.177.18" > < / A >
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > void copyTexSubImage2D(<!1> < A HREF = "State.html" > State< / A > & state, int xoffset, int yoffset, int <!1> < A HREF = "Viewport.html#DOC.2.200.7" > x< / A > , int <!1> < A HREF = "Viewport.html#DOC.2.200.8" > y< / A > , int <!1> < A HREF = "Viewport.html#DOC.2.200.9" > width< / A > , int <!1> < A HREF = "Viewport.html#DOC.2.200.10" > height< / A > )< / B > < / TT >
2002-08-29 22:39:41 +08:00
< DD > Copy a two-dimensional texture subimage. As per glCopyTexSubImage2D.
Updates portion of an existing OpenGL texture object from the current OpenGL background
framebuffer contents at pos \a x, \a y with width \a width and
height \a height. \a width and \a height must be a power of two,
and writing into the texture with offset \a xoffset and \a yoffset.
< DL > < DT > < DD > < / DL > < P >
< A NAME = "apply" > < / A >
2002-11-08 22:15:17 +08:00
< A NAME = "DOC.2.177.19" > < / A >
2002-08-29 22:39:41 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > virtual void apply(<!1> < A HREF = "State.html" > State< / A > & state) const < / B > < / TT >
< DD > On first apply (unless already compiled), create the minmapped
texture and bind it, subsequent apply will simple bind to texture
< DL > < DT > < DD > < / DL > < P >
< A NAME = "~Texture2D" > < / A >
2002-11-08 22:15:17 +08:00
< A NAME = "DOC.2.177.20" > < / A >
2002-08-29 22:39:41 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > virtual ~Texture2D()< / B > < / TT >
< DL > < DT > < DD > < / DL > < P >
< A NAME = "computeInternalFormat" > < / A >
2002-11-08 22:15:17 +08:00
< A NAME = "DOC.2.177.21" > < / A >
2002-08-29 22:39:41 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > virtual void computeInternalFormat() const < / B > < / TT >
< DL > < DT > < DD > < / DL > < P >
< A NAME = "_image" > < / A >
2002-11-08 22:15:17 +08:00
< A NAME = "DOC.2.177.22" > < / A >
2002-08-29 22:39:41 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > mutable <!1> < A HREF = "ref_ptr.html" > ref_ptr< / A > < <!1> < A HREF = "Image.html" > Image< / A > > _image< / B > < / TT >
< DL > < DT > < DD > < / DL > < P >
< A NAME = "_textureWidth" > < / A >
2002-11-08 22:15:17 +08:00
< A NAME = "DOC.2.177.23" > < / A >
2002-08-29 22:39:41 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > mutable GLsizei _textureWidth< / B > < / TT >
< DL > < DT > < DD > < / DL > < P >
< A NAME = "_textureHeight" > < / A >
2002-11-08 22:15:17 +08:00
< A NAME = "DOC.2.177.24" > < / A >
2002-08-29 22:39:41 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > mutable GLsizei _textureHeight< / B > < / TT >
< DL > < DT > < DD > < / DL > < P >
< A NAME = "_numMimpmapLevels" > < / A >
2002-11-08 22:15:17 +08:00
< A NAME = "DOC.2.177.25" > < / A >
2002-08-29 22:39:41 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > mutable GLsizei _numMimpmapLevels< / B > < / TT >
< DL > < DT > < DD > < / DL > < P >
< A NAME = "_subloadCallback" > < / A >
2002-11-08 22:15:17 +08:00
< A NAME = "DOC.2.177.26" > < / A >
2002-08-29 22:39:41 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > <!1> < A HREF = "ref_ptr.html" > ref_ptr< / A > < <!1> < A HREF = "SubloadCallback.2.html" > SubloadCallback< / A > > _subloadCallback< / B > < / TT >
< 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 >