GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  IS_WINDOWED_MODE (3)

NAME

is_windowed_mode - Tells if you are running in windowed mode. Allegro game programming library.

CONTENTS

Synopsis
Description
See Also

SYNOPSIS

#include <allegro.h>

int is_windowed_mode(void);

DESCRIPTION

This function can be used to detect whether or not set_gfx_mode() selected a windowed mode. Example:

   if (set_gfx_mode(GFX_AUTODETECT, 640, 480, 0, 0) != 0)
      abort_on_error("Couldn’t set graphic mode!");
   if (is_windowed_mode()) {
      /* Windowed mode stuff. */
   } else {
      /* Fullscreen mode stuff. */
   }

RETURN VALUE

Returns true if the current graphics mode is a windowed mode, or zero if it is a fullscreen mode. You should not call this function if you are not in graphics mode.

SEE ALSO

set_gfx_mode(3)
Search for    or go to Top of page |  Section 3 |  Main Index


Allegro IS_WINDOWED_MODE (3) version 4.4.2

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.