82 lines
2.5 KiB
Plaintext
82 lines
2.5 KiB
Plaintext
// Filename: texture.I
|
|
// Created by: drose (05Feb99)
|
|
//
|
|
////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function: Texture::apply
|
|
// Access: Public
|
|
// Description:
|
|
////////////////////////////////////////////////////////////////////
|
|
INLINE void Texture::
|
|
apply(GraphicsStateGuardianBase *gsg) {
|
|
gsg->apply_texture(prepare(gsg));
|
|
}
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function: Texture::get_level
|
|
// Access: Public
|
|
// Description:
|
|
////////////////////////////////////////////////////////////////////
|
|
INLINE int Texture::
|
|
get_level() const {
|
|
return _level;
|
|
}
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function: Texture::get_wrapu
|
|
// Access: Public
|
|
// Description:
|
|
////////////////////////////////////////////////////////////////////
|
|
INLINE Texture::WrapMode Texture::
|
|
get_wrapu() const {
|
|
return _wrapu;
|
|
}
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function: Texture::get_wrapv
|
|
// Access: Public
|
|
// Description:
|
|
////////////////////////////////////////////////////////////////////
|
|
INLINE Texture::WrapMode Texture::
|
|
get_wrapv() const {
|
|
return _wrapv;
|
|
}
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function: Texture::get_minfilter
|
|
// Access: Public
|
|
// Description:
|
|
////////////////////////////////////////////////////////////////////
|
|
INLINE Texture::FilterType Texture::
|
|
get_minfilter() const {
|
|
return _minfilter;
|
|
}
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function: Texture::get_magfilter
|
|
// Access: Public
|
|
// Description:
|
|
////////////////////////////////////////////////////////////////////
|
|
INLINE Texture::FilterType Texture::
|
|
get_magfilter() const {
|
|
return _magfilter;
|
|
}
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function: Texture::get_anisotropic_degree
|
|
// Access: Public
|
|
// Description: Returns the degree of anisotropic filtering that
|
|
// should be applied to the texture. Normally, this is
|
|
// 1, to indicate that anisotropic filtering should be
|
|
// disabled. If this is a number higher than 1,
|
|
// anisotropic filtering should be enabled (if the
|
|
// rendering backend supports it).
|
|
////////////////////////////////////////////////////////////////////
|
|
INLINE int Texture::
|
|
get_anisotropic_degree() const {
|
|
return _anisotropic_degree;
|
|
}
|