Public Methods |
| | Texture1D () |
| | Texture1D (const Texture1D &text, const CopyOp ©op=CopyOp::SHALLOW_COPY) |
| | Copy constructor using CopyOp to manage deep vs shallow copy.
|
| | META_StateAttribute (osg, Texture1D, TEXTURE) |
| virtual int | compare (const StateAttribute &rhs) const |
| | return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs.
|
| virtual void | getAssociatedModes (std::vector< GLMode > &modes) const |
| | return the modes associated with this StateSet
|
| void | setImage (Image *image) |
| | Set the texture image.
|
| Image * | getImage () |
| | Get the texture image.
|
| const Image * | getImage () const |
| | Get the const texture image.
|
| void | setTextureSize (const int width) const |
| | Set the texture width and height.
|
| void | getTextureSize (int &width) const |
| | Get the texture subload width.
|
| void | setSubloadCallback (SubloadCallback *cb) |
| SubloadCallback * | getSubloadCallback () |
| const SubloadCallback * | getSubloadCallback () const |
| void | setNumMipmapLevels (unsigned int num) const |
| | 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.
|
| unsigned int | getNumMipmapLevels () const |
| | Get the number of mip map levels the the texture has been created with.
|
| void | copyTexImage1D (State &state, int x, int y, int width) |
| | Copy pixels into a 1D texture image.As per glCopyTexImage1D.
|
| void | copyTexSubImage1D (State &state, int xoffset, int x, int y, int width) |
| | Copy a one-dimensional texture subimage.
|
| virtual void | apply (State &state) const |
| | On first apply (unless already compiled), create the minmapped texture and bind it, subsequent apply will simple bind to texture.
|
Protected Methods |
| virtual | ~Texture1D () |
| virtual void | computeInternalFormat () const |
| void | applyTexImage1D (GLenum target, Image *image, State &state, GLsizei &width, GLsizei &numMimpmapLevels) const |
| | Helper method which does the creation of the texture itself, and does not set or use texture binding.
|
Protected Attributes |
| ref_ptr< Image > | _image |
| GLsizei | _textureWidth |
| GLsizei | _numMimpmapLevels |
| ref_ptr< SubloadCallback > | _subloadCallback |