Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

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

pods::SDL::Mouse(3pm)					User Contributed Perl Documentation				     pods::SDL::Mouse(3pm)

NAME
SDL::Mouse - SDL Bindings for the Mouse device CATEGORY
Core, Mouse CONSTANTS
The constants for SDL::Mouse belong to SDL::Events/SDL::Event, under the export tag of ':state'. METHODS
warp_mouse SDL::Mouse::warp_mouse( $x, $y ); Set the position of the mouse cursor (generates a mouse motion event). Even if the mouse is warped to where it currently is, a mouse motion event is generated. set_cursor SDL::Mouse::set_cursor( $cursor_object ); Sets the currently active cursor to the specified one. See SDL::Cursor for details on cursor objects. If the cursor is currently visible, the change will be immediately represented on the display. "set_cursor()" can be used to force cursor redraw, if this is desired for any reason. get_cursor my $cursor_object = SDL::Mouse::get_cursor; Gets the currently active mouse cursor. show_cursor my $return = SDL::Mouse::show_cursor( $state ); Toggle whether or not the cursor is shown on the screen. Passing "SDL_ENABLE" displays the cursor and passing "SDL_DISABLE" hides it. The current state of the mouse cursor can be queried by passing "SDL_QUERY", either "SDL_DISABLE" or "SDL_ENABLE" will be returned. use SDL; use SDL::Mouse; use SDL::Video; use SDL::Events ':state'; #For the constants SDL::init(SDL_INIT_VIDEO); SDL::Video::set_video_mode(640, 480, 16, SDL_SWSURFACE); printf("Cursor is %s ", SDL::Mouse::show_cursor(SDL_QUERY) ? 'visible' : 'not visible'); sleep(3); SDL::Mouse::show_cursor(SDL_DISABLE); printf("Cursor is %s ", SDL::Mouse::show_cursor(SDL_QUERY) ? 'visible' : 'not visible'); sleep(3); SDL::Mouse::show_cursor(SDL_ENABLE); printf("Cursor is %s ", SDL::Mouse::show_cursor(SDL_QUERY) ? 'visible' : 'not visible'); sleep(3); SEE ALSO
SDL::Cursor AUTHORS
See "AUTHORS" in SDL. perl v5.14.2 2012-05-28 pods::SDL::Mouse(3pm)
Man Page

9 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. 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

7. 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

8. 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

9. 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