Code Search for Developers
 
 
  

bgfx.c from Allegro game programming library at Krugle


Show bgfx.c syntax highlighted

/*         ______   ___    ___ 
 *        /\  _  \ /\_ \  /\_ \ 
 *        \ \ \L\ \\//\ \ \//\ \      __     __   _ __   ___ 
 *         \ \  __ \ \ \ \  \ \ \   /'__`\ /'_ `\/\`'__\/ __`\
 *          \ \ \/\ \ \_\ \_ \_\ \_/\  __//\ \L\ \ \ \//\ \L\ \
 *           \ \_\ \_\/\____\/\____\ \____\ \____ \ \_\\ \____/
 *            \/_/\/_/\/____/\/____/\/____/\/___L\ \/_/ \/___/
 *                                           /\____/
 *                                           \_/__/
 *
 *      Stuff for BeOS.
 *
 *      By Jason Wilkins.
 *
 *      See readme.txt for copyright information.
 */

#include "allegro.h"
#include "allegro/internal/aintern.h"
#include "allegro/platform/aintbeos.h"

#ifndef ALLEGRO_BEOS
#error something is wrong with the makefile
#endif 



AL_GFX_DRIVER gfx_beos_fullscreen = {
   AL_GFX_BEOS_FULLSCREEN,               // int id;
   al_empty_string,                      // char *name;
   al_empty_string,                      // char *desc;
   "Fullscreen",                      // char *ascii_name;
   be_gfx_fullscreen_init,            // AL_METHOD(struct AL_BITMAP *, init, (int w, int h, int v_w, int v_h, int color_depth));
   be_gfx_fullscreen_exit,            // AL_METHOD(void, exit, (struct AL_BITMAP *b));
   be_gfx_fullscreen_scroll,          // AL_METHOD(int, scroll, (int x, int y));
   be_gfx_vsync,                      // AL_METHOD(void, al_vsync, (void));
   be_gfx_fullscreen_set_palette,     // AL_METHOD(void, al_set_palette, (struct AL_RGB *p, int from, int to, int al_vsync));
   be_gfx_fullscreen_request_scroll,  // AL_METHOD(int, al_request_scroll, (int x, int y));
   be_gfx_fullscreen_poll_scroll,     // AL_METHOD(int, al_poll_scroll, (void));
   NULL,                              // AL_METHOD(void, al_enable_triple_buffer, (void));
   NULL,                              // AL_METHOD(struct AL_BITMAP *, al_create_video_bitmap, (int width, int height));
   NULL,                              // AL_METHOD(void, destroy_video_bitmap, (struct AL_BITMAP *bitmap));
   NULL,                              // AL_METHOD(int, al_show_video_bitmap, (struct AL_BITMAP *bitmap));
   be_gfx_fullscreen_request_video_bitmap,// AL_METHOD(int, al_request_video_bitmap, (struct AL_BITMAP *bitmap));
   NULL,                              // AL_METHOD(struct AL_BITMAP *, al_create_system_bitmap, (int width, int height));
   NULL,                              // AL_METHOD(void, destroy_system_bitmap, (struct AL_BITMAP *bitmap));
   NULL,                              // AL_METHOD(int, al_set_mouse_sprite, (struct AL_BITMAP *sprite, int xfocus, int yfocus));
   NULL,                              // AL_METHOD(int, al_show_mouse, (struct AL_BITMAP *bmp, int x, int y));
   NULL,                              // AL_METHOD(void, hide_mouse, (void));
   NULL,                              // AL_METHOD(void, move_mouse, (int x, int y));
   NULL,                              // AL_METHOD(void, al_drawing_mode, (void));
   NULL,                              // AL_METHOD(void, save_state, (void));
   NULL,                              // AL_METHOD(void, restore_state, (void));
   be_gfx_fullscreen_fetch_mode_list, // AL_METHOD(int, fetch_mode_list, (void));
   0, 0,                              // int w, h;  /* physical (not virtual!) al_screen size */
   TRUE,                              // int linear;  /* true if video memory is linear */
   0,                                 // long bank_size;  /* bank size, in bytes */
   0,                                 // long bank_gran;  /* bank granularity, in bytes */
   0,                                 // long vid_mem;  /* video memory size, in bytes */
   0,                                 // long vid_phys_base;  /* physical address of video memory */
   FALSE                              // int windowed;  /* true if driver runs windowed */
};



AL_GFX_DRIVER gfx_beos_fullscreen_safe = {
   AL_GFX_BEOS_FULLSCREEN_SAFE,          // int id;
   al_empty_string,                      // char *name;
   al_empty_string,                      // char *desc;
   "Safe Fullscreen",                 // char *ascii_name;
   be_gfx_fullscreen_safe_init,       // AL_METHOD(struct AL_BITMAP *, init, (int w, int h, int v_w, int v_h, int color_depth));
   be_gfx_fullscreen_exit,            // AL_METHOD(void, exit, (struct AL_BITMAP *b));
   be_gfx_fullscreen_scroll,          // AL_METHOD(int, scroll, (int x, int y));
   be_gfx_vsync,                      // AL_METHOD(void, al_vsync, (void));
   be_gfx_fullscreen_set_palette,     // AL_METHOD(void, al_set_palette, (struct AL_RGB *p, int from, int to, int al_vsync));
   be_gfx_fullscreen_request_scroll,  // AL_METHOD(int, al_request_scroll, (int x, int y));
   be_gfx_fullscreen_poll_scroll,     // AL_METHOD(int, al_poll_scroll, (void));
   NULL,                              // AL_METHOD(void, al_enable_triple_buffer, (void));
   NULL,                              // AL_METHOD(struct AL_BITMAP *, al_create_video_bitmap, (int width, int height));
   NULL,                              // AL_METHOD(void, destroy_video_bitmap, (struct AL_BITMAP *bitmap));
   NULL,                              // AL_METHOD(int, al_show_video_bitmap, (struct AL_BITMAP *bitmap));
   be_gfx_fullscreen_request_video_bitmap,// AL_METHOD(int, al_request_video_bitmap, (struct AL_BITMAP *bitmap));
   NULL,                              // AL_METHOD(struct AL_BITMAP *, al_create_system_bitmap, (int width, int height));
   NULL,                              // AL_METHOD(void, destroy_system_bitmap, (struct AL_BITMAP *bitmap));
   NULL,                              // AL_METHOD(int, al_set_mouse_sprite, (struct AL_BITMAP *sprite, int xfocus, int yfocus));
   NULL,                              // AL_METHOD(int, al_show_mouse, (struct AL_BITMAP *bmp, int x, int y));
   NULL,                              // AL_METHOD(void, hide_mouse, (void));
   NULL,                              // AL_METHOD(void, move_mouse, (int x, int y));
   NULL,                              // AL_METHOD(void, al_drawing_mode, (void));
   NULL,                              // AL_METHOD(void, save_state, (void));
   NULL,                              // AL_METHOD(void, restore_state, (void));
   be_gfx_fullscreen_fetch_mode_list, // AL_METHOD(int, fetch_mode_list, (void));
   0, 0,                              // int w, h;  /* physical (not virtual!) al_screen size */
   TRUE,                              // int linear;  /* true if video memory is linear */
   0,                                 // long bank_size;  /* bank size, in bytes */
   0,                                 // long bank_gran;  /* bank granularity, in bytes */
   0,                                 // long vid_mem;  /* video memory size, in bytes */
   0,                                 // long vid_phys_base;  /* physical address of video memory */
   FALSE                              // int windowed;  /* true if driver runs windowed */
};



AL_GFX_DRIVER gfx_beos_windowed = {
   AL_GFX_BEOS_WINDOWED,                 // int id;
   al_empty_string,                      // char *name;
   al_empty_string,                      // char *desc;
   "Windowed",                        // char *ascii_name;
   be_gfx_windowed_init,              // AL_METHOD(struct AL_BITMAP *, init, (int w, int h, int v_w, int v_h, int color_depth));
   be_gfx_windowed_exit,              // AL_METHOD(void, exit, (struct AL_BITMAP *b));
   NULL,                              // AL_METHOD(int, scroll, (int x, int y));
   be_gfx_vsync,                      // AL_METHOD(void, al_vsync, (void));
   be_gfx_windowed_set_palette,       // AL_METHOD(void, al_set_palette, (struct AL_RGB *p, int from, int to, int al_vsync));
   NULL,                              // AL_METHOD(int, al_request_scroll, (int x, int y));
   NULL,                              // AL_METHOD(int, al_poll_scroll, (void));
   NULL,                              // AL_METHOD(void, al_enable_triple_buffer, (void));
   NULL,                              // AL_METHOD(struct AL_BITMAP *, al_create_video_bitmap, (int width, int height));
   NULL,                              // AL_METHOD(void, destroy_video_bitmap, (struct AL_BITMAP *bitmap));
   NULL,                              // AL_METHOD(int, al_show_video_bitmap, (struct AL_BITMAP *bitmap));
   NULL,                              // AL_METHOD(int, al_request_video_bitmap, (struct AL_BITMAP *bitmap));
   NULL,                              // AL_METHOD(struct AL_BITMAP *, al_create_system_bitmap, (int width, int height));
   NULL,                              // AL_METHOD(void, destroy_system_bitmap, (struct AL_BITMAP *bitmap));
   NULL,                              // AL_METHOD(int, al_set_mouse_sprite, (struct AL_BITMAP *sprite, int xfocus, int yfocus));
   NULL,                              // AL_METHOD(int, al_show_mouse, (struct AL_BITMAP *bmp, int x, int y));
   NULL,                              // AL_METHOD(void, hide_mouse, (void));
   NULL,                              // AL_METHOD(void, move_mouse, (int x, int y));
   NULL,                              // AL_METHOD(void, al_drawing_mode, (void));
   NULL,                              // AL_METHOD(void, save_state, (void));
   NULL,                              // AL_METHOD(void, restore_state, (void));
   NULL,                              // AL_METHOD(int, fetch_mode_list, (void));
   0, 0,                              // int w, h;  /* physical (not virtual!) al_screen size */
   TRUE,                              // int linear;  /* true if video memory is linear */
   0,                                 // long bank_size;  /* bank size, in bytes */
   0,                                 // long bank_gran;  /* bank granularity, in bytes */
   0,                                 // long vid_mem;  /* video memory size, in bytes */
   0,                                 // long vid_phys_base;  /* physical address of video memory */
   TRUE                               // int windowed;  /* true if driver runs windowed */
};




See more files for this project here

Allegro game programming library

Allegro is a cross-platform library intended for use in computer games and other types of multimedia programming.

Project homepage: http://sourceforge.net/projects/alleg
Programming language(s): Assembly,C,Shell Script
License: other

  baccel.cpp
  bclasses.cpp
  bdispsw.cpp
  bgfx.c
  bgfxapi.cpp
  bgfxdrv.c
  bjoy.c
  bjoyapi.cpp
  bjoydrv.c
  bkey.c
  bkeyapi.cpp
  bkeydrv.c
  bmidi.c
  bmidiapi.cpp
  bmididrv.c
  bmousapi.cpp
  bmousdrv.c
  bmouse.c
  bsnd.c
  bsndapi.cpp
  bsnddrv.c
  bswitch.s
  bsysapi.cpp
  bsysdrv.c
  bsystem.c
  btimeapi.cpp
  btimedrv.c
  btimer.c