|
The Vish Visualization Shell 0.3
Vish
|
Public Member Functions | |
| bool | activate (const Anemone &) override |
| Activate this tentacle. | |
| bool | deactivate (const Anemone &) override |
| Deactivate this tentacle. | |
| int | getTextureUnit () const override |
| Get the texture unit number which was specified during construction, if positive then it refers to some texture unit that is used in an associated shader. | |
| bool | load (const MemCore::RefPtr< MemCore::ChunkBase > &TextureData, RenderBasin::TextureFormat TF, int rank, const size_t *Dimensions, int TextureUnit=0, RenderBasin::TextureStorageFormat TSF=RenderBasin::AutomaticTexture(), int level=0, bool GenerateDoMipMap=false) override |
| size_t | memsize () const override |
| Return the memory occupied by this buffer if it occupies memory at all. Otherwise, returns 0 (default). | |
| unsigned int | name () const |
| The OpenGL texture "name". | |
| bool | setTextureParameter (const std::string &name, const std::type_info &T, const void *dataptr, int multiplicity=1) override |
| Set a texture parameter. | |
| Public Member Functions inherited from Wizt::RenderBasin::TextureTentacle | |
| template<class Type> | |
| bool | setTextureParameter (const std::string &name, const Type &Data) |
| Set a texture parameter consisting of a single element. | |
| Public Member Functions inherited from Wizt::Anemone::Tentacle | |
| virtual const char * | getSamplerType () const |
| If this tentacle refers to some texture sampler in a shader, then hereby return the type of this sampler is it occurs in the code. | |
| virtual size_t | NumberOfElements () const |
| Returns the number of elements provided and used by this object, if it refers to countable elements. | |
| virtual bool | updateValue (VRenderContext &Context) |
| Possibly update a tentacle from settings in a context. | |
| Public Member Functions inherited from MemCore::ReferenceBase< Tentacle > | |
| auto | getObjectCountID () const noexcept |
| Get a unique ID for this object in the given domain. | |
| bool | isIdentical (const WeakPtr< Tentacle, Tentacle > &PossibleSelf) const noexcept |
| Check if this object is identical to the one used by the given pointer. | |
| void | mkAutoDestructive () |
| Marks this object as being automatically destructed, e.g. | |
| refcount_t | refcount () const noexcept |
| The strong reference count. | |
| ReferenceBase (Tentacle *that) noexcept | |
| Constructor, initializes reference counter to zero. | |
| const auto & | self () const |
| Return weak pointer to the object self. | |
| refcount_t | wrefcount () const noexcept |
| The weak reference count. | |
Additional Inherited Members | |
| Public Types inherited from MemCore::ReferenceBase< Tentacle > | |
| using | reference_domain_t |
| The type of the base class. | |
| using | SelfPtr_t |
| Type for a pointer to this object itself. | |
| Public Attributes inherited from Wizt::RenderBasin::TextureTentacle | |
| glsl | GLSLSamplerName |
| Suggested type of the corresponding variable declaration in a corresponding GLSL code. | |
| glsl | GLSLSamplerValueType |
| Suggested type of the corresponding variable type when reading the texture. | |
| TextureStorageFormat | myTextureStorageFormat |
| Associated texture format. | |
| Public Attributes inherited from Wizt::Anemone::Tentacle | |
| Activity_t | Activity |
| A bit mask telling whether this tentacle should participate in the waving of an Anemone. | |
| Protected Member Functions inherited from MemCore::ReferenceBase< Tentacle > | |
| virtual void | extremeUnction () |
| A virtual function that will be called just before the object is destroyed. | |
| ReferenceBase & | operator= (const ReferenceBase &R) |
| Protected assignment operator (should not be called). | |
| void | suicide () |
| Delete this. | |
| virtual | ~ReferenceBase () |
| Virtual destructor. | |
|
overridevirtual |
| TextureData | actual data to be loaded |
| TF | The type of the texture |
| rank | The dimensionality of the data |
| Dimensions | The extension of the data in each dimension, must match the provided TextureData |
| TextureUnit | The OpenGL texture unit in which to load these data |
| TSF | The internal storage format of the texture, affects memory utilization. |
Implements Wizt::RenderBasin::TextureTentacle.
References load().
Referenced by load().
|
overridevirtual |
Set a texture parameter.
Note that this call will not immediately issue any OpenGL calls. Rather it prepares the TextureTentacle such that the right texture parameters will be set at the right time.
| name | A textual specification of the render parameter from the list in http://www.opengl.org/sdk/docs/man4/xhtml/glTexParameter.xml or as otherwise documented in the implementation of some RenderContext. |
Implements Wizt::RenderBasin::TextureTentacle.
References name().