|
OSG
3.4.0
|
#include <TextureBuffer.h>


Classes | |
| class | TextureBufferObject |
Public Member Functions | |
| TextureBuffer () | |
| TextureBuffer (Image *image) | |
| TextureBuffer (const TextureBuffer &text, const CopyOp ©op=CopyOp::SHALLOW_COPY) | |
| META_StateAttribute (osg, TextureBuffer, TEXTURE) | |
| virtual int | compare (const StateAttribute &rhs) const |
| virtual GLenum | getTextureTarget () const |
| void | setImage (Image *image) |
| Image * | getImage () |
| const Image * | getImage () const |
| unsigned int & | getModifiedCount (unsigned int contextID) const |
| virtual void | setImage (unsigned int, Image *image) |
| virtual Image * | getImage (unsigned int) |
| virtual const Image * | getImage (unsigned int) const |
| virtual unsigned int | getNumImages () const |
| void | setTextureWidth (int width) |
| virtual int | getTextureWidth () const |
| virtual int | getTextureHeight () const |
| virtual int | getTextureDepth () const |
| void | setUsageHint (GLenum usageHint) |
| GLenum | getUsageHint () const |
| virtual void | allocateMipmap (State &) const |
| virtual void | apply (State &state) const |
| void | bindBufferAs (unsigned int contextID, GLenum target) |
| void | unbindBufferAs (unsigned int contextID, GLenum target) |
Public Member Functions inherited from osg::Texture | |
| Texture () | |
| Texture (const Texture &text, const CopyOp ©op=CopyOp::SHALLOW_COPY) | |
| virtual osg::Object * | cloneType () const =0 |
| virtual osg::Object * | clone (const CopyOp ©op) const =0 |
| virtual bool | isSameKindAs (const osg::Object *obj) const |
| virtual const char * | libraryName () const |
| virtual const char * | className () const |
| virtual Texture * | asTexture () |
| virtual const Texture * | asTexture () const |
| virtual Type | getType () const |
| virtual bool | isTextureAttribute () const |
| virtual bool | getModeUsage (StateAttribute::ModeUsage &usage) const |
| void | setWrap (WrapParameter which, WrapMode wrap) |
| WrapMode | getWrap (WrapParameter which) const |
| void | setBorderColor (const Vec4d &color) |
| const Vec4d & | getBorderColor () const |
| void | setBorderWidth (GLint width) |
| GLint | getBorderWidth () const |
| void | setFilter (FilterParameter which, FilterMode filter) |
| FilterMode | getFilter (FilterParameter which) const |
| void | setMaxAnisotropy (float anis) |
| float | getMaxAnisotropy () const |
| void | setSwizzle (const Vec4i &swizzle) |
| const Vec4i & | getSwizzle () const |
| void | setUseHardwareMipMapGeneration (bool useHardwareMipMapGeneration) |
| bool | getUseHardwareMipMapGeneration () const |
| void | setUnRefImageDataAfterApply (bool flag) |
| bool | getUnRefImageDataAfterApply () const |
| void | setClientStorageHint (bool flag) |
| bool | getClientStorageHint () const |
| void | setResizeNonPowerOfTwoHint (bool flag) |
| bool | getResizeNonPowerOfTwoHint () const |
| void | setInternalFormatMode (InternalFormatMode mode) |
| InternalFormatMode | getInternalFormatMode () const |
| void | setInternalFormat (GLint internalFormat) |
| GLint | getInternalFormat () const |
| bool | isCompressedInternalFormat () const |
| void | setSourceFormat (GLenum sourceFormat) |
| GLenum | getSourceFormat () const |
| void | setSourceType (GLenum sourceType) |
| GLenum | getSourceType () const |
| InternalFormatType | getInternalFormatType () const |
| TextureObject * | getTextureObject (unsigned int contextID) const |
| void | setTextureObject (unsigned int contextID, TextureObject *to) |
| void | dirtyTextureObject () |
| bool | areAllTextureObjectsLoaded () const |
| unsigned int & | getTextureParameterDirty (unsigned int contextID) const |
| void | dirtyTextureParameters () |
| void | allocateMipmapLevels () |
| void | bindToImageUnit (unsigned int unit, GLenum access, GLenum format=0, int level=0, bool layered=false, int layer=0) |
| ImageAttachment & | getImageAttachment () |
| const ImageAttachment & | getImageAttachment () const |
| void | setShadowComparison (bool flag) |
| bool | getShadowComparison () const |
| void | setShadowCompareFunc (ShadowCompareFunc func) |
| ShadowCompareFunc | getShadowCompareFunc () const |
| void | setShadowTextureMode (ShadowTextureMode mode) |
| ShadowTextureMode | getShadowTextureMode () const |
| void | setShadowAmbient (float shadow_ambient) |
| float | getShadowAmbient () const |
| void | setReadPBuffer (GraphicsContext *context) |
| GraphicsContext * | getReadPBuffer () |
| const GraphicsContext * | getReadPBuffer () const |
| virtual void | compileGLObjects (State &state) const |
| virtual void | resizeGLObjectBuffers (unsigned int maxSize) |
| virtual void | releaseGLObjects (State *state=0) const |
| void | applyTexImage2D_load (State &state, GLenum target, const Image *image, GLsizei width, GLsizei height, GLsizei numMipmapLevels) const |
| void | applyTexImage2D_subload (State &state, GLenum target, const Image *image, GLsizei width, GLsizei height, GLint inInternalFormat, GLsizei numMipmapLevels) const |
| TextureObject * | generateAndAssignTextureObject (unsigned int contextID, GLenum target) const |
| TextureObject * | generateAndAssignTextureObject (unsigned int contextID, GLenum target, GLint numMipmapLevels, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLint border) const |
Public Member Functions inherited from osg::StateAttribute | |
| StateAttribute () | |
| StateAttribute (const StateAttribute &sa, const CopyOp ©op=CopyOp::SHALLOW_COPY) | |
| virtual StateAttribute * | asStateAttribute () |
| virtual const StateAttribute * | asStateAttribute () const |
| virtual unsigned int | getMember () const |
| TypeMemberPair | getTypeMemberPair () const |
| bool | operator< (const StateAttribute &rhs) const |
| bool | operator== (const StateAttribute &rhs) const |
| bool | operator!= (const StateAttribute &rhs) const |
| const ParentList & | getParents () const |
| StateSet * | getParent (unsigned int i) |
| const StateSet * | getParent (unsigned int i) const |
| unsigned int | getNumParents () const |
| void | setShaderComponent (ShaderComponent *sc) |
| ShaderComponent * | getShaderComponent () |
| const ShaderComponent * | getShaderComponent () const |
| virtual bool | checkValidityOfAssociatedModes (osg::State &) const |
| void | setUpdateCallback (StateAttributeCallback *uc) |
| StateAttributeCallback * | getUpdateCallback () |
| const StateAttributeCallback * | getUpdateCallback () const |
| void | setEventCallback (StateAttributeCallback *ec) |
| StateAttributeCallback * | getEventCallback () |
| const StateAttributeCallback * | getEventCallback () const |
Public Member Functions inherited from osg::Object | |
| Object () | |
| Object (bool threadSafeRefUnref) | |
| Object (const Object &, const CopyOp ©op=CopyOp::SHALLOW_COPY) | |
| std::string | getCompoundClassName () const |
| virtual Node * | asNode () |
| virtual const Node * | asNode () const |
| virtual NodeVisitor * | asNodeVisitor () |
| virtual const NodeVisitor * | asNodeVisitor () const |
| virtual Uniform * | asUniform () |
| virtual const Uniform * | asUniform () const |
| virtual void | setThreadSafeRefUnref (bool threadSafe) |
| virtual void | setName (const std::string &name) |
| void | setName (const char *name) |
| const std::string & | getName () const |
| void | setDataVariance (DataVariance dv) |
| DataVariance | getDataVariance () const |
| virtual void | computeDataVariance () |
| void | setUserDataContainer (osg::UserDataContainer *udc) |
| osg::UserDataContainer * | getUserDataContainer () |
| const osg::UserDataContainer * | getUserDataContainer () const |
| osg::UserDataContainer * | getOrCreateUserDataContainer () |
| virtual void | setUserData (Referenced *obj) |
| virtual Referenced * | getUserData () |
| virtual const Referenced * | getUserData () const |
| template<typename T > | |
| bool | getUserValue (const std::string &name, T &value) const |
| template<typename T > | |
| void | setUserValue (const std::string &name, const T &value) |
| template<typename T > | |
| BoolValueObject UCharValueObject UShortValueObject UIntValueObject DoubleValueObject Vec3fValueObject Vec2dValueObject Vec4dValueObject PlaneValueObject MatrixdValueObject BoundingBoxdValueObject BoundingSpheredValueObject bool | getUserValue (const std::string &name, T &value) const |
Public Member Functions inherited from osg::Referenced | |
| Referenced () | |
| Referenced (bool threadSafeRefUnref) | |
| Referenced (const Referenced &) | |
| Referenced & | operator= (const Referenced &) |
| bool | getThreadSafeRefUnref () const |
| OpenThreads::Mutex * | getRefMutex () const |
| int | ref () const |
| int | unref () const |
| int | unref_nodelete () const |
| int | referenceCount () const |
| ObserverSet * | getObserverSet () const |
| ObserverSet * | getOrCreateObserverSet () const |
| void | addObserver (Observer *observer) const |
| void | removeObserver (Observer *observer) const |
Protected Types | |
| typedef buffered_value < unsigned int > | ImageModifiedCount |
| typedef osg::buffered_object < osg::ref_ptr < TextureBufferObject > > | TextureBufferObjectList |
Protected Types inherited from osg::Texture | |
| typedef buffered_value < unsigned int > | TexParameterDirtyList |
| typedef buffered_object < ref_ptr< TextureObject > > | TextureObjectBuffer |
Protected Member Functions | |
| virtual | ~TextureBuffer () |
| virtual void | computeInternalFormat () const |
Protected Member Functions inherited from osg::Texture | |
| virtual | ~Texture () |
| void | computeInternalFormatWithImage (const osg::Image &image) const |
| void | computeRequiredTextureDimensions (State &state, const osg::Image &image, GLsizei &width, GLsizei &height, GLsizei &numMipmapLevels) const |
| void | computeInternalFormatType () const |
| void | applyTexParameters (GLenum target, State &state) const |
| bool | isHardwareMipmapGenerationEnabled (const State &state) const |
| bool | isSafeToUnrefImageData (const State &state) const |
| GenerateMipmapMode | mipmapBeforeTexImage (const State &state, bool hardwareMipmapOn) const |
| void | mipmapAfterTexImage (State &state, GenerateMipmapMode beforeResult) const |
| void | generateMipmap (State &state) const |
| int | compareTexture (const Texture &rhs) const |
| int | compareTextureObjects (const Texture &rhs) const |
Protected Member Functions inherited from osg::StateAttribute | |
| virtual | ~StateAttribute () |
| void | addParent (osg::StateSet *object) |
| void | removeParent (osg::StateSet *object) |
Protected Member Functions inherited from osg::Object | |
| virtual | ~Object () |
Protected Member Functions inherited from osg::Referenced | |
| virtual | ~Referenced () |
| void | signalObserversAndDelete (bool signalDelete, bool doDelete) const |
| void | deleteUsingDeleteHandler () const |
Encapsulates OpenGL texture buffer functionality.
Definition at line 26 of file TextureBuffer.h.
|
protected |
Definition at line 106 of file TextureBuffer.h.
|
protected |
Definition at line 132 of file TextureBuffer.h.
| osg::TextureBuffer::TextureBuffer | ( | ) |
| osg::TextureBuffer::TextureBuffer | ( | Image * | image | ) |
| osg::TextureBuffer::TextureBuffer | ( | const TextureBuffer & | text, |
| const CopyOp & | copyop = CopyOp::SHALLOW_COPY |
||
| ) |
Copy constructor using CopyOp to manage deep vs shallow copy.
|
protectedvirtual |
Allocate mipmap levels of the texture by subsequent calling of glTexImage* function.
Implements osg::Texture.
Definition at line 86 of file TextureBuffer.h.
Bind the texture buffer.
Implements osg::Texture.
| void osg::TextureBuffer::bindBufferAs | ( | unsigned int | contextID, |
| GLenum | target | ||
| ) |
Bind buffer to different target.
|
virtual |
Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs.
Implements osg::StateAttribute.
|
protectedvirtual |
Implements osg::Texture.
|
inline |
Gets the texture image.
Definition at line 49 of file TextureBuffer.h.
|
inline |
Gets the const texture image.
Definition at line 52 of file TextureBuffer.h.
|
inlinevirtual |
Gets the texture image, ignoring face.
Implements osg::Texture.
Definition at line 65 of file TextureBuffer.h.
|
inlinevirtual |
Gets the const texture image, ignoring face.
Implements osg::Texture.
Definition at line 68 of file TextureBuffer.h.
|
inline |
Definition at line 54 of file TextureBuffer.h.
|
inlinevirtual |
Gets the number of images that can be assigned to the Texture.
Implements osg::Texture.
Definition at line 71 of file TextureBuffer.h.
|
inlinevirtual |
Reimplemented from osg::Texture.
Definition at line 81 of file TextureBuffer.h.
|
inlinevirtual |
Reimplemented from osg::Texture.
Definition at line 80 of file TextureBuffer.h.
|
inlinevirtual |
Implements osg::Texture.
Definition at line 43 of file TextureBuffer.h.
|
inlinevirtual |
Gets the texture width.
Reimplemented from osg::Texture.
Definition at line 79 of file TextureBuffer.h.
|
inline |
Definition at line 84 of file TextureBuffer.h.
| osg::TextureBuffer::META_StateAttribute | ( | osg | , |
| TextureBuffer | , | ||
| TEXTURE | |||
| ) |
Sets the texture image, ignoring face.
Implements osg::Texture.
Definition at line 62 of file TextureBuffer.h.


|
inline |
Sets the texture width. If width is zero, calculate the value from the source image width.
Definition at line 76 of file TextureBuffer.h.
|
inline |
Definition at line 83 of file TextureBuffer.h.
| void osg::TextureBuffer::unbindBufferAs | ( | unsigned int | contextID, |
| GLenum | target | ||
| ) |
Definition at line 101 of file TextureBuffer.h.
|
mutableprotected |
Definition at line 107 of file TextureBuffer.h.
|
mutableprotected |
Definition at line 133 of file TextureBuffer.h.
|
mutableprotected |
Definition at line 103 of file TextureBuffer.h.
|
protected |
Definition at line 104 of file TextureBuffer.h.
1.8.8