Forgotten files (oops)
This commit is contained in:
BIN
assets/ld.png
Normal file
BIN
assets/ld.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 46 KiB |
24
src/JUI/Base/ImageBase.cpp
Normal file
24
src/JUI/Base/ImageBase.cpp
Normal file
@@ -0,0 +1,24 @@
|
||||
#include <JUI/Base/ImageBase.hpp>
|
||||
#include <JGL/JGL.h>
|
||||
|
||||
using namespace JGL;
|
||||
|
||||
namespace JUI
|
||||
{
|
||||
void ImageBase::Draw(const Vector2 &pos, const Vector2 &size) {
|
||||
J2D::Begin();
|
||||
J2D::DrawSprite(*texture, pos, origin, scale, image_color);
|
||||
J2D::End();
|
||||
}
|
||||
|
||||
ImageBase::ImageBase()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
ImageBase::ImageBase(JGL::Texture* tex) : ImageBase()
|
||||
{
|
||||
this->texture = tex;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user