#include <Inventor/nodes/SoTextureScalePolicy.h>
Inheritance diagram for SoTextureScalePolicy:
If a texture map is of size != 2^n, it must be scaled before OpenGL can handle it. This node enables you to control how/if textures are scaled before it is sent to OpenGL.
Also, if a texture map is bigger than the maximum OpenGL texture size (implementation and context dependent), it will be scaled down to the maximum size. You can avoid this by setting the texture policy to FRACTURE, in which case the texture will be split into several small subtextures before the geometry using the texture is rendered.
Public Types | |
enum | Policy { USE_TEXTURE_QUALITY, SCALE_DOWN, SCALE_UP, FRACTURE } |
Public Member Functions | |
SoTextureScalePolicy (void) | |
virtual void | GLRender (SoGLRenderAction *action) |
Static Public Member Functions | |
void | initClass (void) |
Public Attributes | |
SoSFEnum | policy |
SoSFFloat | quality |
Protected Member Functions | |
virtual | ~SoTextureScalePolicy () |
|
|
Constructor. |
|
Destructor. |
|
Sets up initialization for data common to all instances of this class, like submitting necessary information to the Coin type system. Reimplemented from SoNode. |
|
Action method for the SoGLRenderAction. This is called during rendering traversals. Nodes influencing the rendering state in any way or who wants to throw geometry primitives at OpenGL overrides this method. Reimplemented from SoNode. |
|
The policy setting. Default value is USE_TEXTURE_QUALITY. |
|
The texture scale/resize quality. Default value is 0.5. |