Updated raylib-cpp header files
This commit is contained in:
@@ -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_
|
||||
|
Reference in New Issue
Block a user