S3DW_SURFACE_NEW(3)

✨ S3DW_SURFACE_NEW ✨

okay bestie, welcome to the s3d manual, section 3 πŸ’– this one's about s3dw_surface_new, and yes it's exactly as iconic as it sounds.


🌸 NAME 🌸

s3dw_surface_new β€” make a brand new surface, fr fr ✨


πŸŽ€ SYNOPSIS πŸŽ€

#include <s3dw.h>

s3dw_surface *s3dw_surface_new(const char *title, float width,
                               float height);

like… she's a function, she takes four-ish things, she gives you back a pointer. slay πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

okay so. s3dw_surface_new creates a new surface β€” and a surface is literally just a new window, no cap πŸͺŸβœ¨

You hand her a title (that's the window title, the thing up top that everyone reads) and the dimensions width x height. That's it. That's the whole vibe. 🌈

ngl if you wanna know about the callbacks you can define on this thing, go read s3dw_surface β€” she has the whole lore. πŸ“–πŸ’œ

πŸ‘‘ AUTHOR πŸ‘‘

Simon Wunderlich Author of s3d β€” the main character, honestly πŸ™Œ


that's the page, bestie!! this one came out of the s3d manual, and the header/footer energy is all S3DW_SURFACE_NEW(3) with source s3d 🫢 go make some windows, you got this πŸ’–πŸŽ€πŸ¦‹