Support Forum       G3D Web Page     
Public Member Functions | Friends | List of all members
G3D::Icon Class Reference

Public Member Functions

 Icon ()
 
 Icon (const shared_ptr< Texture > &t, const Rect2D &r)
 Create a new icon. More...
 
 Icon (const shared_ptr< Texture > &t)
 
int height () const
 
const Rect2DsourceRect () const
 Position within texture() of this icon, in pixels. More...
 
const shared_ptr< Texture > & texture () const
 
int width () const
 

Friends

class IconSet
 

Constructor & Destructor Documentation

◆ Icon() [1/3]

G3D::Icon::Icon ( )
inline

◆ Icon() [2/3]

G3D::Icon::Icon ( const shared_ptr< Texture > &  t,
const Rect2D r 
)
inline

Create a new icon.

Parameters
rIn pixels
See also
G3D::IconSet

◆ Icon() [3/3]

G3D::Icon::Icon ( const shared_ptr< Texture > &  t)
inline

Member Function Documentation

◆ height()

int G3D::Icon::height ( ) const
inline

◆ sourceRect()

const Rect2D& G3D::Icon::sourceRect ( ) const
inline

Position within texture() of this icon, in pixels.

◆ texture()

const shared_ptr<Texture>& G3D::Icon::texture ( ) const
inline

◆ width()

int G3D::Icon::width ( ) const
inline

Friends And Related Function Documentation

◆ IconSet

friend class IconSet
friend

documentation generated on Wed Nov 24 2021 08:01:57 using doxygen 1.8.15