SDL_WasInit(3) SDL API Reference SDL_WasInit(3)NAME
SDL_WasInit - Check which subsystems are initialized
SYNOPSIS
#include "SDL.h"
Uint32 SDL_WasInit(Uint32 flags);
DESCRIPTION
SDL_WasInit allows you to see which SDL subsytems have been initialized. flags is a bitwise OR'd combination of the subsystems you wish to
check (see SDL_Init for a list of subsystem flags).
RETURN VALUE
SDL_WasInit returns a bitwised OR'd combination of the initialized subsystems.
EXAMPLES
/* Here are several ways you can use SDL_WasInit() */
/* Get init data on all the subsystems */
Uint32 subsystem_init;
subsystem_init=SDL_WasInit(SDL_INIT_EVERYTHING);
if(subsystem_init&SDL_INIT_VIDEO)
printf("Video is initialized.
");
else
printf("Video is not initialized.
");
/* Just check for one specfic subsystem */
if(SDL_WasInit(SDL_INIT_VIDEO)!=0)
printf("Video is initialized.
");
else
printf("Video is not initialized.
");
/* Check for two subsystems */
Uint32 subsystem_mask=SDL_INIT_VIDEO|SDL_INIT_AUDIO;
if(SDL_WasInit(subsystem_mask)==subsystem_mask)
printf("Video and Audio initialized.
");
else
printf("Video and Audio not initialized.
");
SEE ALSO
SDL_Init, SDL_Subsystem
SDL Tue 11 Sep 2001, 23:00 SDL_WasInit(3)
Check Out this Related Man Page
SDL_WasInit(3) SDL API Reference SDL_WasInit(3)NAME
SDL_WasInit- Check which subsystems are initialized
SYNOPSIS
#include "SDL.h"
Uint32 SDL_WasInit(Uint32 flags);
DESCRIPTION
SDL_WasInit allows you to see which SDL subsytems have been initialized. flags is a bitwise OR'd combination of the subsystems you wish to
check (see SDL_Init for a list of subsystem flags).
RETURN VALUE
SDL_WasInit returns a bitwised OR'd combination of the initialized subsystems.
EXAMPLES
/* Here are several ways you can use SDL_WasInit() */
/* Get init data on all the subsystems */
Uint32 subsystem_init;
subsystem_init=SDL_WasInit(SDL_INIT_EVERYTHING);
if(subsystem_init&SDL_INIT_VIDEO)
printf("Video is initialized.
");
else
printf("Video is not initialized.
");
/* Just check for one specfic subsystem */
if(SDL_WasInit(SDL_INIT_VIDEO)!=0)
printf("Video is initialized.
");
else
printf("Video is not initialized.
");
/* Check for two subsystems */
Uint32 subsystem_mask=SDL_INIT_VIDEO|SDL_INIT_AUDIO;
if(SDL_WasInit(subsystem_mask)==subsystem_mask)
printf("Video and Audio initialized.
");
else
printf("Video and Audio not initialized.
");
SEE ALSO
SDL_Init, SDL_Subsystem
SDL Tue 11 Sep 2001, 23:00 SDL_WasInit(3)
As in Windows we have Video memory and we can access it through C programs, do we have anything similar to that in Unix and similar operating systems. If we have some sort of Video memory in Unix flavours, then how can we access it through C programs. (4 Replies)
Our application has lots of subsystems. I want to enable coredump for one of the subsystems.
Currently the ulimit is set to 0 on the Solaris Box.
Inorder to enable core dump for a particular subsystem, I have added to the following to the .profile
coreadm -p core.%f <processId>
... (1 Reply)
Hi All,
I've one problem with printf.
Iam printing some field values from one file "file.txt" using printf, which is resulting anonymously.
awk '{
printf (" %-6s\n", substr($0,18,23))
}' file.txt
But the same printf is workin fine as per my expectation, if I try as below:
... (1 Reply)
Hi All,
I was wondering if someone could clarify the best way to display mpeg video with SDL in MinGW.
After scouring the internet it seems there is not a lot of information regarding this subject (or at least not up to date) and libraries that are available for this purpose.
Any help/... (1 Reply)
Hi All,
I am attempting to create a fixed length tilde delimited file using printf.
The variables are initialized to fixed length blank spaces
a=' '
b=' '
c=' '
d=' '
Sometimes the variable might contain values and sometimes they are... (5 Replies)
I am working on to uploading Video files on Mediawiki and embed to page but not getting success. I tried plugin like MediaPlayer and HTML5Player but these plugins seems having extension limitation as i need to embed files like .wmv, .mpg etc.
I am using mediawiki1.17 and CentOS5.8 x64 bit
... (1 Reply)
UNIX.com Hello World HUD YT Video
https://youtu.be/cs3dbPnzDV4
Check it out!
Subscribe, Like, Share, Comment .
Cyber Dystopia (Ep. 2) - The Myth of the Singularity Coming Soon! (3 Replies)
Video: What Do You Do for a Living? @UNIX.com
https://youtu.be/eTddtFa_Z_g
We asked our users at UNIX.com what they do for a living, and this was their top three replies in 1080 HD video.
Shout-outs to quotes in the video from forum members Akshay Hegde, geeky404, ni2 and joeyg.
Here... (0 Replies)