![]() |
ImFusion SDK 4.3
|
#include <ImFusion/GL/GlImageParameters.h>
Set texture parameters for the lifetime of the object and then restore old parameters. More...
Inheritance diagram for GlImageParameters:Set texture parameters for the lifetime of the object and then restore old parameters.
Public Types | |
| enum | Interpolation { Nearest = 0x2600 , Linear = 0x2601 } |
| enum | WrapMode { Clamp = 0x2900 , ClampToEdge = 0x812F , ClampToBorder = 0x812D , Repeat = 0x2901 , MirroredRepeat = 0x8370 } |
Public Member Functions | |
| GlImageParameters (const GlImage &img, int interpolation, int wrapMode) | |
| Constructor which binds texture and changes settings. | |
| GlImageParameters (unsigned int target, int interpolation, int wrapMode) | |
| Constructor which assumes a texture is bound to specified target. | |
| ~GlImageParameters () | |
| Destructor, restores original settings. | |
Static Public Member Functions | |
| static void | set (unsigned int target, int interpolation, int wrapMode) |
| Static method to set texture parameters without any backup. | |
Protected Member Functions | |
| void | set (int interpolation, int wrapMode) |
| Backup and apply desired settings. | |
Protected Attributes | |
| const GlImage * | m_img |
| unsigned int | m_target |
| int | m_interpolationMin |
| int | m_interpolationMag |
| int | m_wrapS |
| int | m_wrapT |
| int | m_wrapR |