DOKK / manpages / debian 10 / s3d-doc / s3d_init.3.en
S3D_INIT(3) s3d Manual S3D_INIT(3)

s3d_init - initialize s3d library

#include <s3d.h>

int s3d_init(int *argc, char ***argv, const char *name);

This will initialize the s3d-library and the connection to the Server. It will return 0 on success in server initialization. name specifies the your programs name.


int main(char argc, char **argv)
{
if (!s3d_init(&argc, &argv, "Hello world"))
{
...
s3d_quit();
}
return 0;
}

Simon Wunderlich

Author of s3d
s3d