#include "Image.h" #include "../UserInterface/Primitives.h" Image::Image(Texture* texture, double x, double y, double width, double height) :Rectangle(x, y, width, height), source(texture) { } void Image::Render() { if (!source) { return; } UI::Primitives::SubmitImage( source, UI::Rect(static_cast(x), static_cast(y), static_cast(width), static_cast(height)), UI::Color(static_cast(r), static_cast(g), static_cast(b), static_cast(a)) ); }