Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

sdl_wasinit(3) [debian 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)

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)
Man Page

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Weird Question

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)
Discussion started by: rahulrathod
4 Replies

2. Solaris

Enable Core dump

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)
Discussion started by: sharath_mr
1 Replies

3. What is on Your Mind?

Cool YouTube Video: Here Comes Another Bubble - The Richter Scales!

You will like this :) fi4fzvQ6I-o (2 Replies)
Discussion started by: Neo
2 Replies

4. What is on Your Mind?

Vegetable Oil - PC

Cool Down His Computer with Some Oil Video Pretty amazing. (3 Replies)
Discussion started by: sparcguy
3 Replies

5. Shell Programming and Scripting

Video Tutorial for sed and awk

Could anyone help me with the link/URL where I can find the Complete Video Tutorial for SED and AWK (1 Reply)
Discussion started by: frintocf
1 Replies

6. Programming

Playing Video with MinGW and SDL

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)
Discussion started by: robfwauk
1 Replies

7. Shell Programming and Scripting

Text Formatting using printf[ksh]

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)
Discussion started by: angie1234
5 Replies

8. UNIX and Linux Applications

Need help on uploading Video files on Mediawiki and embed to page

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)
Discussion started by: sunnysthakur
1 Replies

9. What is on Your Mind?

UNIX.com Hello World HUD YT Video

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)
Discussion started by: Neo
3 Replies

10. What is on Your Mind?

Video: What Do You Do for a Living? @UNIX.com

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)
Discussion started by: Neo
0 Replies