rename RaylibDeprecated into RaylibExtra
This commit is contained in:
parent
96326263a2
commit
83250406b3
@ -1,6 +1,5 @@
|
|||||||
#include <raylib.h>
|
|
||||||
|
|
||||||
#include "Panda.hpp"
|
#include "Panda.hpp"
|
||||||
|
#include <raylib.h>
|
||||||
|
|
||||||
// Draw part of a texture (defined by a rectangle) with rotation and scale tiled into dest.
|
// Draw part of a texture (defined by a rectangle) with rotation and scale tiled into dest.
|
||||||
void panda::DrawTextureTiled(Texture texture, Rectangle source, Rectangle dest, Vector2 origin, float rotation, float scale, Color tint)
|
void panda::DrawTextureTiled(Texture texture, Rectangle source, Rectangle dest, Vector2 origin, float rotation, float scale, Color tint)
|
||||||
@ -85,3 +84,16 @@ void panda::DrawTextureTiled(Texture texture, Rectangle source, Rectangle dest,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void panda::DrawRenderTexture(const RenderTexture &buffer, const float &x, const float &y, const Color &color)
|
||||||
|
{
|
||||||
|
DrawTextureRec(
|
||||||
|
buffer.texture,
|
||||||
|
{0.0f, 0.0f, 1.0f*buffer.texture.width, -1.0f*buffer.texture.height},
|
||||||
|
{x, y}, color);
|
||||||
|
}
|
||||||
|
|
||||||
|
Rectangle panda::GetTextureRect(const Texture &tex, bool flipX, bool flipY)
|
||||||
|
{
|
||||||
|
return { 0.0f, 0.0f, (flipX ? -tex.width : tex.width)*1.0f, (flipY ? -tex.height : tex.height)*1.0f };
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user