Carna
Version 3.3.2
|
Specializes the ManagedTexture3D class s.t. the texture's data is initialized from a math::VectorField that supports a buffer
method, like BufferedHUVolume and BufferedNormalMap3D do.
More...
#include <BufferedVectorFieldTexture.h>
Public Member Functions | |
virtual bool | controlsSameVideoResource (const GeometryFeature &other) const override |
Tells true if other is of same type and references the same field. Tells false otherwise. | |
![]() | |
virtual ManagedTexture3DInterface * | acquireVideoResource () override |
Acquires the video resources from this GeometryFeature by returning new instance of a class derived from ManagedInterface, that realizes the RAII idiom. Refer to its documentation for details. May return nullptr if this GeometryFeature does not provide any video resources. | |
![]() | |
unsigned int | videoResourceAcquisitionsCount () const |
Tells current number of video resource acquisitions. | |
void | release () |
Denotes that this object is no longer required and may be deleted as soon as it is valid to delete it. More... | |
void | addTo (Geometry &sceneGraphNode, unsigned int role) |
Puts this geometry feature on the sceneGraphNode. More... | |
void | removeFrom (Geometry &sceneGraphNode) |
Removes this geometry feature from the sceneGraphNode. More... | |
Static Public Member Functions | |
static BufferedVectorFieldTexture< BufferedVectorFieldType > & | create (const BufferedVectorFieldType &field) |
Instantiates. Invoke release when it isn't needed any longer. More... | |
![]() | |
static ManagedTexture3D & | create (const math::Vector3ui &size, int internalFormat, int pixelFormat, int bufferType, const void *bufferPtr) |
Instantiates. Invoke release when it isn't needed any longer. More... | |
Public Attributes | |
const BufferedVectorFieldType & | field |
References the math::VectorField to be uploaded to the texture. | |
![]() | |
const math::Vector3ui | size |
Tells the resolution of this texture. More... | |
const int | internalFormat |
Holds the number of color components in the texture, e.g. GL_RGBA8UI or GL_INTENSITY16 . More... | |
const int | pixelFormat |
Holds the format of the pixel data, e.g. GL_RED , GL_RGB or GL_RGBA . More... | |
const int | bufferType |
Specifies the data type of the pixel data to be uploaded to the texture. | |
const void *const | bufferPtr |
Points to the pixel data that will be uploaded to the texture. | |
const base::math::Matrix4f | textureCoordinatesCorrection |
Stretches texture coordinates s.t. the centers of the texels, that are located in the texture corners, become located in those corners. More... | |
Protected Member Functions | |
BufferedVectorFieldTexture (const BufferedVectorFieldType &field) | |
Instantiates. More... | |
![]() | |
ManagedTexture3D (const math::Vector3ui &size, int internalFormat, int pixelFormat, int bufferType, const void *bufferPtr) | |
Instantiates. More... | |
~ManagedTexture3D () | |
Deletes. | |
![]() | |
GeometryFeature () | |
Instantiates. | |
virtual | ~GeometryFeature () |
Deletes and logs an error if video resources are leaked. | |
Additional Inherited Members | |
![]() | |
typedef ManagedTexture3DInterface | ManagedInterface |
Defines the type to be used for interfacing the video resource. | |
![]() | |
std::unique_ptr< Texture< 3 > > | textureObject |
Holds the maintained OpenGL texture object. | |
Specializes the ManagedTexture3D class s.t. the texture's data is initialized from a math::VectorField that supports a buffer
method, like BufferedHUVolume and BufferedNormalMap3D do.
Definition at line 44 of file BufferedVectorFieldTexture.h.
|
protected |
Instantiates.
field | references the math::VectorField to be uploaded to the texture. |
Definition at line 82 of file BufferedVectorFieldTexture.h.
|
static |
Instantiates. Invoke release when it isn't needed any longer.
field | references the math::VectorField to be uploaded to the texture. |
Definition at line 96 of file BufferedVectorFieldTexture.h.
Documentation generated by Doxygen