Rigs of Rods 2026.01
Soft-body Physics Simulation
Loading...
Searching...
No Matches
Public Member Functions
AngelOgre::TexturePtr Class Reference

Description

A shared pointer to a texture.

Binding of Ogre::TexturePtr.

Remarks
Obtain one with TextureManager::load() or TextureUnitState::_getTexturePtr().

Definition at line 15 of file AngelOgre_TexturePtr.h.

Public Member Functions

 TexturePtr ()
 
 TexturePtr (const TexturePtr &in other)
 
TexturePtr & opAssign (const TexturePtr &in other)
 
bool isNull ()
 
string getName () const
 
uint getWidth ()
 
uint getHeight ()
 
uint getNumMipmaps ()
 
HardwarePixelBufferPtr getBuffer (uint face, uint mipmap)
 

Constructor & Destructor Documentation

◆ TexturePtr() [1/2]

AngelOgre::TexturePtr::TexturePtr ( )

Creates an empty (null) pointer.

◆ TexturePtr() [2/2]

AngelOgre::TexturePtr::TexturePtr ( const TexturePtr &in  other)

Creates a copy pointing to the same texture.

Member Function Documentation

◆ getBuffer()

HardwarePixelBufferPtr AngelOgre::TexturePtr::getBuffer ( uint  face,
uint  mipmap 
)

Returns the pixel buffer of the given face and mipmap level, see HardwarePixelBufferPtr.

◆ getHeight()

uint AngelOgre::TexturePtr::getHeight ( )

◆ getName()

string AngelOgre::TexturePtr::getName ( ) const

Name of the texture resource.

◆ getNumMipmaps()

uint AngelOgre::TexturePtr::getNumMipmaps ( )

◆ getWidth()

uint AngelOgre::TexturePtr::getWidth ( )

◆ isNull()

bool AngelOgre::TexturePtr::isNull ( )

Returns true if the pointer doesn't point to a texture.

◆ opAssign()

TexturePtr & AngelOgre::TexturePtr::opAssign ( const TexturePtr &in  other)

The documentation for this class was generated from the following file: