P-E-R-R-Y
Utilitaires, contrats et vendors du moteur, en une seule doc
Loading...
Searching...
No Matches
RayTexture Class Reference

Raylib Texture class - owns the GPU texture. RaySprite/RayModel only reference it, never own it: this survives as long as the caller keeps it alive, regardless of how many sprites/models get created and destroyed against it. More...

#include <RayTexture.hpp>

Inheritance diagram for RayTexture:
Collaboration diagram for RayTexture:

Public Member Functions

 RayTexture (std::string path)
 ~RayTexture ()
bool isReady () const override
 notice if the texture is ready
Vector2f getSize () const override
 Get the Size object.
raylib::Texture2D handle () const
Public Member Functions inherited from graphic::ITexture
virtual ~ITexture ()=default

Detailed Description

Raylib Texture class - owns the GPU texture. RaySprite/RayModel only reference it, never own it: this survives as long as the caller keeps it alive, regardless of how many sprites/models get created and destroyed against it.

Constructor & Destructor Documentation

◆ RayTexture()

RayTexture::RayTexture ( std::string path)
inline

◆ ~RayTexture()

RayTexture::~RayTexture ( )
inline

Member Function Documentation

◆ getSize()

Vector2f RayTexture::getSize ( ) const
inlineoverridevirtual

Get the Size object.

Returns
Vector2f

Implements graphic::ITexture.

◆ handle()

raylib::Texture2D RayTexture::handle ( ) const
inline

◆ isReady()

bool RayTexture::isReady ( ) const
inlineoverridevirtual

notice if the texture is ready

Returns
bool

Implements graphic::ITexture.


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