Skip to main content
CrystalDocs
Search documentation
Search
Browse Docs
CrystalShards
About
class
GSDL::Surface
Inherits
Reference
<
Object
Constructors
new
(surface :
SDL3::Surface
)
Source
new
(width :
Int32
= 0, height :
Int32
= 0, format :
LibSDL3::PixelFormat
=
LibSDL3::PixelFormat::RGBA8888
)
Source
Class methods
create_text_engine
Source
Instance methods
blit
(source_rect :
Rect
|
Nil
, dest_rect :
Rect
|
Nil
, dest_surface :
Surface
) :
Bool
Source
destroy
Source
draw_rect_fill
(rect :
Rect
, color :
Color
)
Source
fill
(color :
Color
)
Source
h
Source
height
Source
to_sdl
Source
w
Source
width
Source