|
Public Member Functions
|
|
virtual const mudbox::ClassDesc
* |
RuntimeClass (void)
const |
|
virtual void |
Create (unsigned int iWidth,
unsigned int iHeight, unsigned int iChannelCount, enum
Image::Format eFormat, const Color &cColor) |
| |
Create/allocate the content of the texture.
|
|
virtual void |
Create (unsigned int iWidth,
unsigned int iHeight, unsigned int iChannelCount, enum
Image::Format eFormat) |
| |
Create/allocate the content of the texture.
|
|
virtual bool |
CreateFromFile (const QString
&sFileName) |
| |
Create the texture from an image file.
|
|
virtual void |
CopyTo (Texture &cTexture)
const |
| |
Copy the content of the texture into another
one, using the current opengl pipeline settings.
|
|
virtual unsigned int |
Width (void) const |
| |
Returns the width of the texture in pixels.
|
|
virtual unsigned int |
Height (void) const |
| |
Returns the height of the texture in pixels.
|
|
virtual unsigned int |
BitDepth (void) const |
| |
Returns the bit depth of the texture (per
channel).
|
|
virtual enum Image::Format |
Format (void) const |
| |
Returns the format of the texture.
|
|
virtual bool |
Activate (void) const |
| |
Binds the texture node.
|
|
virtual bool |
Deactivate (void) const |
| |
UnBinds the texture node, but does not
restore the previous active texture.
|
|
virtual unsigned int |
OpenGLName (void) const |
| |
Returns the opengl name of the texture.
|
|
virtual bool |
SetAsRenderTarget
(void) |
| |
Sets the texture as a render target.
Subsequent renderings will render into that texture.
|
|
virtual bool |
RestoreRenderTarget
(void) |
| |
Restore previous render target.
|
|
virtual abool * |
getFilteringPref () |
|
virtual void |
CopyFrom (Image *pImage) |
| |
Create the texture content from an image.
|
|
virtual void |
ReplaceWith (Image *pImage) |
| |
Replace the texture with the content from an
image.
|
|
virtual void |
CopyTo (Image *pImage, bool tiled=true,
const ImgTile *region=0, ImageDescriptor::MemoryChannelOrder
eOrder=ImageDescriptor::orderRGBA) |
| |
Copy the texture or a region thereof to an
image. If region == 0, it copies the entire texture.
|
|
virtual void |
SetLocation (unsigned int
iLocation) |
| |
Sets the location for the texture pool.
|
|
virtual unsigned int |
Location (void) |
| |
Gets the location for the texture pool.
|
|
virtual int64 |
TotalMemoryUsage (void)
const |
| |
Return the memory usage of all texture
instances of the class in bytes.
|
|
virtual void |
SetLive (bool bLive) |
| |
For internal use only.
|
|
virtual bool |
IsLive (void) const |
| |
For internal use only.
|
|
virtual void |
SetFiltered (bool
bFiltered) |
| |
Set the texture filtering on this texture.
|
|
virtual void |
SetConvert32To16bitFloat
(bool bConvert) |
| |
Set to true to automatically convert 32 bit
floating point textures to 16 bit floating point textures on the
gpu.
|
|
|
|
These methods provide a multi-level undo and
redo system for textures.
|
|
virtual bool |
NewVersion () |
| |
Caches a copy of the current texture.
Returns true if successful.
|
|
virtual bool |
PrevVersion () |
| |
Makes the previous version of the texture
current. Returns true if successful.
|
|
virtual bool |
NextVersion () |
| |
Makes the 'next' version of the texture
current. Returns true if successful.
|
|
virtual int |
NumVersions () |
| |
Returns the number of versions of this
texture. Returns 1 for unversioned textures.
|
|
virtual bool |
MergeOldestVersions () |
| |
Merges the oldest two versions of this
texture. Returns true if successful.
|
|
virtual bool |
PurgeNewerVersions () |
| |
Purges any versions of this texture after
the current one (i.e. all "next" versions). Returns true if
successful.
|
|
virtual bool |
PurgeAllButCurrentVersion
() |
| |
Purges all but the current version of this
Texture. Used
to flush the undo queue. Returns true if successful.
|
|
virtual bool |
BeginUndoableOperation
() |
| |
Notifies the texture that you are about to
start making undoable changes to it (such as a brush stroke).
Returns true if successful.
|
|
virtual bool |
EndUndoableOperation
() |
| |
Notifies the texture that you have finished
making undoable changes to it (such as a brush stroke). Returns
true if successful.
|
|
|
|
The dirty tile methods are used by the undo
mechanism so that it only has to save those portions of the texture
that has been modified.
|
|
void |
ResetDirtyTile () |
| |
Resets the dirty region to be empty.
|
|
virtual void |
AddToDirtyTile (int x, int
y) |
| |
Notifies the texture that part of it has
changed.
|
|
virtual void |
AddToDirtyTile (const
ImgTile
&t) |
| |
Notifies the texture that part of it has
changed.
|
|
const ImgTile & |
DirtyTile () const |
| |
Returns the dirty rectangle of the texture.
|
Static Public Member Functions
|
|
const mudbox::ClassDesc
* |
StaticClass (void) |
|
mudbox::Node
* |
CreateInstances (unsigned int
iCount=1) |
Protected Member Functions
|
|
|
Texture (void) |
| |
Constructor. Do not use it directly; Use
CreateInstance()
instead.
|
Protected Attributes
|
|
ImgTile |
m_DirtyTile |
mudbox::Texture mudbox::Texture
mudbox::Texture mudbox::Texture mudbox::Texture mudbox::Texture
mudbox::Texture mudbox::Texture mudbox::Texture
mudbox::Texture
mudbox::Texture mudbox::Texture
mudbox::Texture mudbox::Texture mudbox::Texture mudbox::Texture
mudbox::Texture mudbox::Texture mudbox::Texture
mudbox::Texture