"L. Spiro Engine"
Public Member Functions | Static Public Attributes | Protected Attributes | Static Protected Attributes | Friends

lsg::CTextureBase Class Reference

The base class for textures. More...

#include <LSGTextureBase.h>

Inheritance diagram for lsg::CTextureBase:
lsg::CRenderTargetInterface lsg::CDirectX11FloatTexture lsg::CDirectX11StandardTexture lsg::CStandardTexture

List of all members.

Public Member Functions

LSE_INLINE
LSG_TEXTURE_USAGE_FORMAT
LSE_CALL 
GetUsageFormat () const
LSE_INLINE LSUINT32 LSE_CALL GetUsageType () const
virtual LSVOID LSE_CALL Reset ()
virtual LSBOOL LSE_CALL Activate (LSUINT32 _ui32Slot)
LSE_INLINE LSBOOL LSE_CALL Finalized () const

Static Public Attributes

static const LSG_TEX_PARMS m_tpStandardPreset
static const LSG_TEX_PARMS m_tpStandardHighQualityPreset
static const LSG_TEX_PARMS m_tpSpritePreset
static const LSG_TEX_PARMS m_tpSpriteSoftPreset
static CMatrix4x4 m_mTextureMatrix [LSG_MAX_TEXTURE_UNITS]

Protected Attributes

LSUINT32 m_ui32PhysicalWidth
LSUINT32 m_ui32PhysicalHeight
LSG_TEXTURE_USAGE_FORMAT m_tufUsageFormat
LSG_WRAP_MODE m_wmWrap
LSUINT32 m_ui32Usage
LSBOOL m_bMipMaps
LSUINT32 m_ui32Lock
LSBOOL m_bFinalized

Static Protected Attributes

static LSUINT32 m_ui32LastTextures [LSG_TM_MAX_SLOTS]
static LSUINT32 m_ui32LastCubeTextures [LSG_TM_MAX_SLOTS]

Friends

class COpenGlRenderTarget

Detailed Description

The base class for textures.

Class CTextureBase Description: The base class for textures.


Member Function Documentation

virtual LSBOOL LSE_CALL lsg::CTextureBase::Activate ( LSUINT32  _ui32Slot) [virtual]

Activate this texture in a given slot.

Parameters:
_ui32SlotSlot in which to place this texture.
Returns:
Returns true if the texture is activated successfully.

Reimplemented in lsg::CDirectX11FloatTexture, and lsg::CDirectX11StandardTexture.

LSE_INLINE LSBOOL LSE_CALL lsg::CTextureBase::Finalized ( ) const

Has this texture been finalized?

Returns:
Returns true if the texture has been finalized, false otherwise.
LSE_INLINE LSG_TEXTURE_USAGE_FORMAT LSE_CALL lsg::CTextureBase::GetUsageFormat ( ) const

Get the usage format.

Returns:
Returns the usage format for this texture.
LSE_INLINE LSUINT32 LSE_CALL lsg::CTextureBase::GetUsageType ( ) const

Get the usage type.

Returns:
Returns the usage type for this texture.
virtual LSVOID LSE_CALL lsg::CTextureBase::Reset ( ) [virtual]

Reset everything.

Reimplemented in lsg::CStandardTexture.


Member Data Documentation

LSBOOL lsg::CTextureBase::m_bFinalized [protected]

Have we finalized yet?

LSBOOL lsg::CTextureBase::m_bMipMaps [protected]

Should we generate mipmaps?

CMatrix4x4 lsg::CTextureBase::m_mTextureMatrix[LSG_MAX_TEXTURE_UNITS] [static]

The array of texture matrices.

A texture-creation preset for sprites. Includes nearest sampling, set-only, and clamp modes.

A texture-creation preset for sprites. Includes linear sampling, set-only, and clamp modes.

A texture-creation preset for standard cases. Includes anisotropic sampling, mipmapping, set-only, and repeat modes.

A texture-creation preset for standard cases. Includes linear sampling, mipmapping, set-only, and repeat modes.

The usage type.

LSUINT32 lsg::CTextureBase::m_ui32LastCubeTextures[LSG_TM_MAX_SLOTS] [static, protected]

Last cube textures applied to slots.

LSUINT32 lsg::CTextureBase::m_ui32LastTextures[LSG_TM_MAX_SLOTS] [static, protected]

Last textures applied to slots.

LSUINT32 lsg::CTextureBase::m_ui32Lock [protected]

Lock count.

Physical texture height, which will be different from its normal height if rescaling is required.

Physical texture width, which will be different from its normal width if rescaling is required.

LSUINT32 lsg::CTextureBase::m_ui32Usage [protected]

Usage type.

Wrapping mode.


The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator