raylib_impl 0.1.0
Vendor raylib 5.5 : IGraphic2Module / IGraphic3Module / IAudioModule
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
 
Vector2f getSize () const override
 
raylib::Texture2D handle () const
 

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
inlineoverride

◆ handle()

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

◆ isReady()

bool RayTexture::isReady ( ) const
inlineoverride

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