Updated raylib-cpp header files

This commit is contained in:
2025-09-08 22:06:21 -04:00
parent a0a658ca8a
commit fff611cc72
45 changed files with 2533 additions and 2382 deletions

View File

@@ -12,7 +12,7 @@ namespace raylib {
* @see raylib::TextureUnmanaged
*/
class Texture : public TextureUnmanaged {
public:
public:
using TextureUnmanaged::TextureUnmanaged;
/**
@@ -28,7 +28,7 @@ class Texture : public TextureUnmanaged {
/**
* Move constructor.
*/
Texture(Texture&& other) {
Texture(Texture&& other) noexcept {
set(other);
other.id = 0;
@@ -41,9 +41,7 @@ class Texture : public TextureUnmanaged {
/**
* On destruction, unload the Texture.
*/
~Texture() {
Unload();
}
~Texture() { Unload(); }
/**
* Move assignment.
@@ -67,13 +65,13 @@ class Texture : public TextureUnmanaged {
};
// Create the Texture aliases.
typedef Texture Texture2D;
typedef Texture TextureCubemap;
using Texture2D = Texture;
using TextureCubemap = Texture;
} // namespace raylib
} // namespace raylib
using RTexture = raylib::Texture;
using RTexture2D = raylib::Texture2D;
using RTextureCubemap = raylib::TextureCubemap;
#endif // RAYLIB_CPP_INCLUDE_TEXTURE_HPP_
#endif // RAYLIB_CPP_INCLUDE_TEXTURE_HPP_