3#include "sdl_painter/export.h"
4#include "sdl_painter/renderer.h"
65 [[nodiscard]]
bool IsValid() const noexcept {
66 return mHandle != kInvalidRenderTarget;
70 [[nodiscard]] int32_t
Width() const noexcept {
return mWidth; }
73 [[nodiscard]] int32_t
Height() const noexcept {
return mHeight; }
76 [[nodiscard]] RenderTargetHandle
Handle() const noexcept {
return mHandle; }
89 int32_t height) noexcept
90 : mOwner(owner), mHandle(handle), mWidth(width), mHeight(height) {}
93 RenderTargetHandle mHandle{kInvalidRenderTarget};
Backend-agnostik soyut renderer arayüzü.
Definition renderer.h:75
Ana çizim sınıfı
Definition painter.h:60
Ekran yerine çizilebilen offscreen bir yüzey (dokuya çizim).
Definition render_target.h:51
int32_t Width() const noexcept
Genişlik (piksel).
Definition render_target.h:70
RenderTargetHandle Handle() const noexcept
Backend tanımlayıcısı — ileri düzey kullanım için.
Definition render_target.h:76
void Reset() noexcept
Hedefi kaynaklarıyla birlikte serbest bırak.
RenderTarget()=default
Geçersiz (boş) hedef.
int32_t Height() const noexcept
Yükseklik (piksel).
Definition render_target.h:73
bool IsValid() const noexcept
Hedef başarıyla oluşturuldu mu?
Definition render_target.h:65